Rollback isReadOnly.get member 73/116973/1 submit/tizen/20170302.073432
authorJooseok Park <jooseok.park@samsung.com>
Thu, 2 Mar 2017 07:24:55 +0000 (16:24 +0900)
committerJooseok Park <jooseok.park@samsung.com>
Thu, 2 Mar 2017 07:26:38 +0000 (16:26 +0900)
Change-Id: I1954f5e0c7b7d69d29d2b0be76140174c0a78e99

Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/Attributes.cs
Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/ResourceOptions.cs
Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/ResourceQuery.cs

index 0bd797b..baf628a 100755 (executable)
@@ -92,6 +92,25 @@ namespace Tizen.Network.IoTConnectivity
         }
 
         /// <summary>
+        /// Represents whether attribute is readonly
+        /// </summary>
+        /// <code>
+        /// Tizen.Network.IoTConnectivity.Attributes attributes = new Tizen.Network.IoTConnectivity.Attributes() {
+        ///     { "state", "ON" },
+        ///     { "dim", 10 }
+        /// };
+        /// if (attributes.IsReadOnly)
+        ///     Console.WriteLine("Read only attribute");
+        /// </code>
+        public bool IsReadOnly
+        {
+            get
+            {
+                return _attributes.IsReadOnly;
+            }
+        }
+
+        /// <summary>
         /// Contains all the attribute keys
         /// </summary>
         /// <code>
index 562f8bb..cd67379 100755 (executable)
@@ -146,6 +146,22 @@ namespace Tizen.Network.IoTConnectivity
         }
 
         /// <summary>
+        /// Represents whether the collection is readonly
+        /// </summary>
+        /// <code>
+        /// ResourceOptions options = new ResourceOptions();
+        /// if (options.IsReadOnly)
+        ///     Console.WriteLine("Read only options");
+        /// </code>
+        public bool IsReadOnly
+        {
+            get
+            {
+                return _options.IsReadOnly;
+            }
+        }
+
+        /// <summary>
         /// Gets or sets the option data
         /// </summary>
         /// <remarks>
index 0d24434..ecbc672 100755 (executable)
@@ -217,6 +217,22 @@ namespace Tizen.Network.IoTConnectivity
         }
 
         /// <summary>
+        /// Represents whether the collection is readonly
+        /// </summary>
+        /// <code>
+        /// ResourceQuery query = new ResourceQuery();
+        /// if (query.IsReadOnly)
+        ///     Console.WriteLine("Read only query");
+        /// </code>
+        public bool IsReadOnly
+        {
+            get
+            {
+                return _query.IsReadOnly;
+            }
+        }
+
+        /// <summary>
         /// Gets or sets the query data
         /// </summary>
         /// <param name="key">The query key to get or set.</param>