Release 4.0.0-preview1-00213
[platform/core/csapi/tizenfx.git] / src / Tizen.Network.IoTConnectivity / Tizen.Network.IoTConnectivity / ResourceFoundEventArgs.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
18 using System;
19
20 namespace Tizen.Network.IoTConnectivity
21 {
22     /// <summary>
23     /// This class represents event arguments of the ResourceFound event.
24     /// </summary>
25     /// <since_tizen> 3 </since_tizen>
26     public class ResourceFoundEventArgs : EventArgs
27     {
28         internal ResourceFoundEventArgs() { }
29
30         /// <summary>
31         /// Indicates the request ID.
32         /// This is the same request ID returned by the <see cref="IoTConnectivityClientManager.StartFindingResource(string, ResourceQuery)"/> API.
33         /// </summary>
34         /// <since_tizen> 3 </since_tizen>
35         /// <value>The request ID.</value>
36         public int RequestId { get; internal set; }
37
38         /// <summary>
39         /// Indicates to continuously receive the event for finding resource.
40         /// </summary>
41         /// <since_tizen> 3 </since_tizen>
42         /// <value>Continuously receive the event for finding resource.</value>
43         public bool EventContinue { get; set; }
44
45         /// <summary>
46         /// Remote resource, which is found after <see cref="IoTConnectivityClientManager.StartFindingResource(string, ResourceQuery)"/>.
47         /// </summary>
48         /// <since_tizen> 3 </since_tizen>
49         /// <value>Remote resource which is found after <see cref="IoTConnectivityClientManager.StartFindingResource(string, ResourceQuery)"/>.</value>
50         /// <seealso cref="IoTConnectivityClientManager.ResourceFound"/>
51         /// <seealso cref="IoTConnectivityClientManager.StartFindingResource(string, ResourceQuery)"/>
52         public RemoteResource Resource { get; internal set; }
53     }
54 }