[TCSACR-43] change GeoFence to Geofence
[platform/core/csapi/geofence.git] / Tizen.Location.Geofence / Tizen.Location.Geofence / GeofenceEnum.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 namespace Tizen.Location.Geofence
18 {
19     /// <summary>
20     /// Enumeration for geofence type.
21     /// </summary>
22     public enum FenceType
23     {
24         /// <summary>
25         /// Geofence is specified by geospatial coordinate.
26         /// </summary>
27         GeoPoint = 1,
28
29         /// <summary>
30         /// Geofence is specified by Wi-Fi access point.
31         /// </summary>
32         Wifi,
33
34         /// <summary>
35         /// Geofence is specified by Bluetooth device.
36         /// </summary>
37         Bluetooth
38     };
39
40     /// <summary>
41     /// Enumerations for the state of geofence.
42     /// </summary>
43     public enum GeofenceState
44     {
45         /// <summary>
46         /// Uncertain state of geofence.
47         /// </summary>
48         Uncertain = 0,
49
50         /// <summary>
51         /// Geofence In state.
52         /// </summary>
53         In,
54
55         /// <summary>
56         /// Geofence Out state.
57         /// </summary>
58         Out
59     };
60
61     /// <summary>
62     /// Enumerations for geofence management events.
63     /// </summary>
64     public enum GeofenceEventType
65     {
66         /// <summary>
67         /// Geofence is added.
68         /// </summary>
69         FenceAdded = 0,
70
71         /// <summary>
72         /// Geofence is removed.
73         /// </summary>
74         FenceRemoved,
75
76         /// <summary>
77         /// Geofencing is started.
78         /// </summary>
79         FenceStarted,
80
81         /// <summary>
82         /// Geofencing is stopped.
83         /// </summary>
84         FenceStopped,
85
86         /// <summary>
87         /// Place is added.
88         /// </summary>
89         PlaceAdded = 0x10,
90
91         /// <summary>
92         /// Place is removed.
93         /// </summary>
94         PlaceRemoved,
95
96         /// <summary>
97         /// Place is updated.
98         /// </summary>
99         PlaceUpdated,
100
101         /// <summary>
102         /// Setting for geofencing is enabled.
103         /// </summary>
104         SettingEnabled = 0x20,
105
106         /// <summary>
107         /// Setting for geofencing is disabled.
108         /// </summary>
109         SettingDisabled
110     };
111
112     /// <summary>
113     /// Enumeration for the provider of proximity.
114     /// </summary>
115     public enum ProximityProvider
116     {
117         /// <summary>
118         /// Proximity is specified by geospatial coordinate.
119         /// </summary>
120         Location = 0,
121
122         /// <summary>
123         /// Proximity is specified by Wi-Fi access point.
124         /// </summary>
125         Wifi,
126
127         /// <summary>
128         /// Proximity is specified by Bluetooth device.
129         /// </summary>
130         Bluetooth,
131
132         /// <summary>
133         /// Proximity is specified by Bluetooth low energy device.
134         /// </summary>
135         BLE,
136
137         /// <summary>
138         /// Proximity is specified by Sensor.
139         /// </summary>
140         Sensor
141     }
142
143     /// <summary>
144     /// Enumeration for the state of proximity.
145     /// </summary>
146     public enum ProximityState
147     {
148         /// <summary>
149         /// Uncertain state of proximity.
150         /// </summary>
151         Uncertain = 0,
152
153         /// <summary>
154         /// Far state of proximity.
155         /// </summary>
156         Far,
157
158         /// <summary>
159         /// Far state of proximity.
160         /// </summary>
161         Near,
162
163         /// <summary>
164         /// Immediate state of proximity.
165         /// </summary>
166         Immediate
167     }
168 }