2 * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
22 /// Place Image information, used in Place Discovery and Search requests
24 public class PlaceImage
30 private PlaceLink _userLink;
31 private PlaceMedia _media;
33 internal PlaceImage(Interop.PlaceImageHandle handle)
37 _width = handle.Width;
38 _height = handle.Height;
39 _userLink = new PlaceLink(handle.User);
40 _media = new PlaceMedia(handle.Media);
44 /// Gets an ID for this place image.
46 public string Id { get { return _id; } }
49 /// Gets an URL for this place image.
51 public string Url { get { return _url; } }
54 /// Gets width for this place image.
56 public int Width { get { return _width; } }
59 /// Gets height for this place image.
61 public int Height { get { return _height; } }
64 /// Gets an object which representing user link for this place image.
66 public PlaceLink UserLink { get { return _userLink; } }
69 /// Gets an object which representing image media for this place image.
71 public PlaceMedia ImageMedia { get { return _media; } }