[IoTConnectivity] Added Base implementation
[platform/core/csapi/iotcon.git] / Tizen.Network.IoTConnectivity / Tizen.Network.IoTConnectivity / ResourcePolicy.cs
1 /// Copyright 2016 by Samsung Electronics, Inc.,
2 ///
3 /// This software is the confidential and proprietary information
4 /// of Samsung Electronics, Inc. ("Confidential Information"). You
5 /// shall not disclose such Confidential Information and shall use
6 /// it only in accordance with the terms of the license agreement
7 /// you entered into with Samsung.
8
9 using System;
10
11 namespace Tizen.Network.IoTConnectivity
12 {
13     /// <summary>
14     /// Enumeration for policy which can be held in a resource.
15     /// </summary>
16     [Flags]
17     public enum ResourcePolicy
18     {
19         /// <summary>
20         /// Indicates resource uninitialized
21         /// </summary>
22         NoProperty = 0,
23         /// <summary>
24         /// Indicates resource that is allowed to be discovered
25         /// </summary>
26         Discoverable = (1 << 0),
27         /// <summary>
28         /// Indicates resource that is allowed to be observed
29         /// </summary>
30         Observable = (1 << 1),
31         /// <summary>
32         /// Indicates resource initialized and activated
33         /// </summary>
34         Active = (1 << 2),
35         /// <summary>
36         /// Indicates resource which takes some delay to respond
37         /// </summary>
38         Slow = (1 << 3),
39         /// <summary>
40         /// Indicates secure resource
41         /// </summary>
42         Secure = (1 << 4),
43         /// <summary>
44         /// When this bit is set, the resource is allowed to be discovered only if discovery request contains an explicit querystring.
45         /// </summary>
46         ExplicitDiscoverable = (1 << 5),
47     }
48 }