[TCSACR-43] change GeoFence to Geofence
[platform/core/csapi/geofence.git] / Tizen.Location.Geofence / Tizen.Location.Geofence / GeofenceEventArgs.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.Location.Geofence
20 {
21     /// <summary>
22     /// Event arguments passed when Event is triggered to notify proximity state change.
23     /// </summary>
24     public class ProximityStateEventArgs : EventArgs
25     {
26         /// <summary>
27         /// Internal constructor.
28         /// </summary>
29         /// <param name="id">The geofence id.</param>
30         /// <param name="state">The proximity state.</param>
31         /// <param name="provider">The proximity provider.</param>
32         internal ProximityStateEventArgs(int id, ProximityState state, ProximityProvider provider)
33         {
34             GeofenceId = id;
35             State = state;
36             Provider = provider;
37         }
38
39         /// <summary>
40         /// The geofence id.
41         /// </summary>
42         public int GeofenceId
43         {
44             get;
45         }
46
47         /// <summary>
48         /// The proximity state.
49         /// </summary>
50         public ProximityState State
51         {
52             get;
53         }
54
55         /// <summary>
56         /// The proximity provider.
57         /// </summary>
58         public ProximityProvider Provider
59         {
60             get;
61         }
62     };
63
64     /// <summary>
65     /// Event arguments passed when Event is triggered to notify Geofence state change.
66     /// </summary>
67     public class GeofenceStateEventArgs : EventArgs
68     {
69         /// <summary>
70         /// Internal constructor.
71         /// </summary>
72         /// <param name="fenceId">The specified geofence id.</param>
73         /// <param name="state">The geofence state.</param>
74         internal GeofenceStateEventArgs(int fenceId, GeofenceState state)
75         {
76             GeofenceId = fenceId;
77             State = state;
78         }
79
80         /// <summary>
81         /// The specified geofence id.
82         /// </summary>
83         public int GeofenceId
84         {
85             get;
86         }
87
88         /// <summary>
89         /// The geofence state.
90         /// </summary>
91         public GeofenceState State
92         {
93             get;
94         }
95     }
96
97     /// <summary>
98     /// Event arguments passed when Event occurs in geofence and place such as add, update, etc..
99     /// </summary>
100     public class GeofenceResponseEventArgs : EventArgs
101     {
102         /// <summary>
103         /// Internal constructor.
104         /// </summary>
105         /// <param name="placeId">The place id.</param>
106         /// <param name="fenceId">The specified geofence id.</param>
107         /// <param name="error">The error code for the particular action.</param>
108         /// <param name="eventType">The result code for the particular place and geofence management.</param>
109         internal GeofenceResponseEventArgs(int placeId, int fenceId, GeofenceError error, GeofenceEventType eventType)
110         {
111             PlaceId = placeId;
112             FenceId = fenceId;
113             ErrorCode = error;
114             EventType = eventType;
115         }
116
117         /// <summary>
118         /// The place id.
119         /// </summary>
120         public int PlaceId
121         {
122             get;
123         }
124
125         /// <summary>
126         /// The specified geofence id.
127         /// </summary>
128         public int FenceId
129         {
130             get;
131         }
132
133         /// <summary>
134         /// The error code for the particular action.
135         /// </summary>
136         public GeofenceError ErrorCode
137         {
138             get;
139         }
140
141         /// <summary>
142         /// The result code for the particular place and geofence management.
143         /// </summary>
144         public GeofenceEventType EventType
145         {
146             get;
147         }
148     };
149 }