Release 4.0.0-preview1-00051
[platform/core/csapi/tizenfx.git] / src / Tizen.Location.Geofence / Tizen.Location.Geofence / FenceData.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 namespace Tizen.Location.Geofence
19 {
20     /// <summary>
21     /// Represents the Geofence list Item data.
22     /// </summary>
23     /// <since_tizen>3</since_tizen>
24     public class FenceData
25     {
26         internal FenceData(int fenceId, IntPtr handle, int index, int count)
27         {
28             GeofenceId = fenceId;
29             Fence = new Fence(handle);
30             Index = index;
31             Count = count;
32         }
33         /// <summary>
34         /// Geofence instance.
35         /// </summary>
36         /// <since_tizen>3</since_tizen>
37         public Fence Fence
38         {
39             get;
40             internal set;
41         }
42
43         /// <summary>
44         /// The geofence id.
45         /// </summary>
46         /// <since_tizen>3</since_tizen>
47         public int GeofenceId
48         {
49             get;
50             internal set;
51         }
52
53         /// <summary>
54         /// The index number of the fences in the list.
55         /// </summary>
56         /// <since_tizen>3</since_tizen>
57         /// <value>Index value starts from 1.</value>
58         public int Index
59         {
60             get;
61             internal set;
62         }
63
64         /// <summary>
65         /// The total number of fences that exists for the requester.
66         /// </summary>
67         /// <since_tizen>3</since_tizen>
68         public int Count
69         {
70             get;
71             internal set;
72         }
73     };
74
75     /// <summary>
76     /// Represents the Place list Item data.
77     /// </summary>
78     /// <since_tizen>3</since_tizen>
79     public class PlaceData
80     {
81         internal PlaceData(int id, string name, int index, int count)
82         {
83             PlaceId = id;
84             Name = name;
85             Index = index;
86             Count = count;
87         }
88         /// <summary>
89         /// The current place id.
90         /// </summary>
91         /// <since_tizen>3</since_tizen>
92         public int PlaceId
93         {
94             get;
95             internal set;
96         }
97
98         /// <summary>
99         /// The current place name.
100         /// </summary>
101         /// <since_tizen>3</since_tizen>
102         public string Name
103         {
104             get;
105             internal set;
106         }
107
108         /// <summary>
109         /// The index number of the places in the list.
110         /// </summary>
111         /// <since_tizen>3</since_tizen>
112         /// <value>Index value starts from 1.</value>
113         public int Index
114         {
115             get;
116             internal set;
117         }
118
119         /// <summary>
120         /// The total number of places that exists for the requester.
121         /// </summary>
122         /// <since_tizen>3</since_tizen>
123         public int Count
124         {
125             get;
126             internal set;
127         }
128     };
129 }