Release 4.0.0-preview1-00051
[platform/core/csapi/tizenfx.git] / src / Tizen.Maps / Tizen.Maps / PlaceImage.cs
1 /*
2  * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16
17 using System;
18
19 namespace Tizen.Maps
20 {
21     /// <summary>
22     /// Place Image information, used in Place Discovery and Search requests
23     /// </summary>
24     /// <since_tizen>3</since_tizen>
25     public class PlaceImage
26     {
27         private string _id;
28         private string _url;
29         private int _width;
30         private int _height;
31         private PlaceLink _userLink;
32         private PlaceMedia _media;
33
34         internal PlaceImage(Interop.PlaceImageHandle handle)
35         {
36             _id = handle.Id;
37             _url = handle.Url;
38             _width = handle.Width;
39             _height = handle.Height;
40             _userLink = new PlaceLink(handle.User);
41             _media = new PlaceMedia(handle.Media);
42         }
43
44         /// <summary>
45         /// Gets an ID for this place image.
46         /// </summary>
47         /// <since_tizen>3</since_tizen>
48         public string Id { get { return _id; } }
49
50         /// <summary>
51         /// Gets an URL for this place image.
52         /// </summary>
53         /// <since_tizen>3</since_tizen>
54         public string Url { get { return _url; } }
55
56         /// <summary>
57         /// Gets width for this place image.
58         /// </summary>
59         /// <since_tizen>3</since_tizen>
60         public int Width { get { return _width; } }
61
62         /// <summary>
63         /// Gets height for this place image.
64         /// </summary>
65         /// <since_tizen>3</since_tizen>
66         public int Height { get { return _height; } }
67
68         /// <summary>
69         /// Gets an object which representing user link for this place image.
70         /// </summary>
71         /// <since_tizen>3</since_tizen>
72         public PlaceLink UserLink { get { return _userLink; } }
73
74         /// <summary>
75         /// Gets an object which representing image media for this place image.
76         /// </summary>
77         /// <since_tizen>3</since_tizen>
78         public PlaceMedia ImageMedia { get { return _media; } }
79     }
80 }