From 46cb5627612de0460205a84d1e2e4af140e58846 Mon Sep 17 00:00:00 2001 From: Jooseok Park Date: Mon, 27 Feb 2017 14:33:12 +0900 Subject: [PATCH 1/1] Update according to design review - add error expeption description - fix wrong log message - invoke this as sender in case of nonstatic event - do not throw expception in case of properites getter - remove IsReadOnly property for IDictionary Change-Id: I154daa67e22b758f5ffcdb921a82143b1d2bf575 --- packaging/csapi-network-iotconnectivity.spec | 4 +-- .../Tizen.Network.IoTConnectivity/Attributes.cs | 31 +++++++----------- .../IoTConnectivityClientManager.cs | 29 +++++++++++++++++ .../RemoteResource.cs | 25 ++++++++++++-- .../Representation.cs | 23 ++++++++----- .../Tizen.Network.IoTConnectivity/Resource.cs | 7 ++++ .../ResourceInterfaces.cs | 14 +++++++- .../ResourceOptions.cs | 25 +++++--------- .../Tizen.Network.IoTConnectivity/ResourceQuery.cs | 38 ++++++++++++---------- .../Tizen.Network.IoTConnectivity/ResourceTypes.cs | 9 +++++ 10 files changed, 139 insertions(+), 66 deletions(-) diff --git a/packaging/csapi-network-iotconnectivity.spec b/packaging/csapi-network-iotconnectivity.spec index ed2b636..933df46 100644 --- a/packaging/csapi-network-iotconnectivity.spec +++ b/packaging/csapi-network-iotconnectivity.spec @@ -1,6 +1,6 @@ Name: csapi-network-iotconnectivity Summary: Tizen IoT Connectivity API for C# -Version: 1.0.1 +Version: 1.0.2 Release: 1 Group: Development/Libraries License: Apache-2.0 @@ -41,4 +41,4 @@ done %files %manifest %{name}.manifest %license LICENSE -%attr(644,root,root) %{dotnet_assembly_files} \ No newline at end of file +%attr(644,root,root) %{dotnet_assembly_files} diff --git a/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/Attributes.cs b/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/Attributes.cs index dc3cae3..0bd797b 100755 --- a/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/Attributes.cs +++ b/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/Attributes.cs @@ -38,6 +38,9 @@ namespace Tizen.Network.IoTConnectivity /// /// The Attributes constructor /// + /// Thrown when the iotcon is not supported + /// Thrown when there is not enough memory + /// Thrown when there is an invalid parameter /// /// Tizen.Network.IoTConnectivity.Attributes attributes = new Tizen.Network.IoTConnectivity.Attributes(); /// @@ -89,25 +92,6 @@ namespace Tizen.Network.IoTConnectivity } /// - /// Represents whether attribute is readonly - /// - /// - /// Tizen.Network.IoTConnectivity.Attributes attributes = new Tizen.Network.IoTConnectivity.Attributes() { - /// { "state", "ON" }, - /// { "dim", 10 } - /// }; - /// if (attributes.IsReadOnly) - /// Console.WriteLine("Read only attribute"); - /// - public bool IsReadOnly - { - get - { - return _attributes.IsReadOnly; - } - } - - /// /// Contains all the attribute keys /// /// @@ -278,6 +262,9 @@ namespace Tizen.Network.IoTConnectivity /// /// Clears attributes collection /// + /// Thrown when the iotcon is not supported + /// Thrown when there is an invalid parameter + /// Thrown when the operation is invalid /// /// Tizen.Network.IoTConnectivity.Attributes attributes = new Tizen.Network.IoTConnectivity.Attributes(); /// attributes.Add("brightness", 50); @@ -377,6 +364,9 @@ namespace Tizen.Network.IoTConnectivity /// /// The attributes element to remove /// true if operation is success. Otherwise, false + /// Thrown when the iotcon is not supported + /// Thrown when there is an invalid parameter + /// Thrown when the operation is invalid /// /// Tizen.Network.IoTConnectivity.Attributes attributes = new Tizen.Network.IoTConnectivity.Attributes() { /// { "state", "ON" }, @@ -395,6 +385,9 @@ namespace Tizen.Network.IoTConnectivity /// /// The attributes element to remove /// true if operation is successful, Otherwise, false + /// Thrown when the iotcon is not supported + /// Thrown when there is an invalid parameter + /// Thrown when the operation is invalid /// /// Tizen.Network.IoTConnectivity.Attributes attributes = new Tizen.Network.IoTConnectivity.Attributes() { /// { "state", "ON" }, diff --git a/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/IoTConnectivityClientManager.cs b/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/IoTConnectivityClientManager.cs index 1cf67f2..7711b44 100755 --- a/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/IoTConnectivityClientManager.cs +++ b/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/IoTConnectivityClientManager.cs @@ -166,6 +166,9 @@ namespace Tizen.Network.IoTConnectivity /// You must call Deinitialize() if IoTCon API is no longer needed. /// /// + /// Thrown when the iotcon is not supported + /// Thrown when there is an invalid parameter + /// Thrown when app does not have privilege to access /// /// string filePath = "../../res/iotcon-test-svr-db-client.dat"; /// IoTConnectivityClientManager.Initialize(filePath); @@ -224,6 +227,7 @@ namespace Tizen.Network.IoTConnectivity ///
         /// Initialize() should be called to initialize.
         /// 
+ /// Thrown when the iotcon is not supported /// /// IoTConnectivityClientManager.InvokePolling(); /// @@ -263,6 +267,11 @@ namespace Tizen.Network.IoTConnectivity /// /// /// + /// Thrown when the iotcon is not supported + /// Thrown when there is an invalid parameter + /// Thrown when the operation is invalid + /// Thrown when app does not have privilege to access + /// Thrown when there is not enough memory /// /// EventHandler handler = (sender, e) => { /// Console.Log("PresenceReceived, presence id :" + e.PresenceId); @@ -354,6 +363,11 @@ namespace Tizen.Network.IoTConnectivity /// /// /// + /// Thrown when the iotcon is not supported + /// Thrown when there is an invalid parameter + /// Thrown when the operation is invalid + /// Thrown when app does not have privilege to access + /// Thrown when there is not enough memory /// /// EventHandler handler = (sender, e) => { /// Console.Log("PresenceReceived, presence id :" + e.PresenceId); @@ -420,6 +434,11 @@ namespace Tizen.Network.IoTConnectivity /// /// /// + /// Thrown when the iotcon is not supported + /// Thrown when there is an invalid parameter + /// Thrown when the operation is invalid + /// Thrown when app does not have privilege to access + /// Thrown when there is not enough memory /// /// EventHandler handler = (sender, e) => { /// Console.Log("Found resource at host address :" + e.Resource.HostAddress + ", uri :" + e.Resource.UriPath); @@ -523,6 +542,11 @@ namespace Tizen.Network.IoTConnectivity /// /// /// + /// Thrown when the iotcon is not supported + /// Thrown when there is an invalid parameter + /// Thrown when the operation is invalid + /// Thrown when app does not have privilege to access + /// Thrown when there is not enough memory /// /// EventHandler handler = (sender, e) => { /// Console.Log("Device information found, id : " + e.RequestId + ", name : " + e.Name); @@ -616,6 +640,11 @@ namespace Tizen.Network.IoTConnectivity /// /// /// + /// Thrown when the iotcon is not supported + /// Thrown when there is an invalid parameter + /// Thrown when the operation is invalid + /// Thrown when app does not have privilege to access + /// Thrown when there is not enough memory /// /// EventHandler handler = (sender, e) => { /// Console.Log("PlatformInformationFound :" + e.RequestId); diff --git a/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/RemoteResource.cs b/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/RemoteResource.cs index 30439e9..2672517 100755 --- a/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/RemoteResource.cs +++ b/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/RemoteResource.cs @@ -59,6 +59,9 @@ namespace Tizen.Network.IoTConnectivity /// The policies of the resource /// The resource types of the resource /// The resource interfaces of the resource + /// Thrown when the iotcon is not supported + /// Thrown when there is not enough memory + /// Thrown when there is an invalid parameter public RemoteResource(string hostAddress, string uriPath, ResourcePolicy policy, ResourceTypes resourceTypes, ResourceInterfaces resourceInterfaces) { if (hostAddress == null || uriPath == null || resourceTypes == null || resourceInterfaces == null) @@ -162,6 +165,8 @@ namespace Tizen.Network.IoTConnectivity /// /// The header options of the resource /// + /// Thrown when the iotcon is not supported + /// Thrown when there is an invalid parameter public ResourceOptions Options { get @@ -189,6 +194,11 @@ namespace Tizen.Network.IoTConnectivity /// /// Client can start caching only when this is set true. Set it to false to stop caching the resource attributes. /// + /// Thrown when the iotcon is not supported + /// Thrown when there is an invalid parameter + /// Thrown when the operation is invalid + /// Thrown when app does not have privilege to access + /// Thrown when there is not enough memory public bool CacheEnabled { get @@ -212,6 +222,8 @@ namespace Tizen.Network.IoTConnectivity /// Default time interval is 10 seconds.\n /// Seconds for time interval (must be in range from 1 to 3600) /// + /// Thrown when the iotcon is not supported + /// Thrown when there is an invalid parameter public int TimeInterval { get @@ -273,6 +285,11 @@ namespace Tizen.Network.IoTConnectivity /// /// The type to specify how client wants to observe /// The query to send to server + /// Thrown when the iotcon is not supported + /// Thrown when there is an invalid parameter + /// Thrown when the operation is invalid + /// Thrown when app does not have privilege to access + /// Thrown when there is not enough memory public void StartObserving(ObservePolicy policy, ResourceQuery query = null) { _observeCallback = (IntPtr resource, int err, int sequenceNumber, IntPtr response, IntPtr userData) => @@ -309,7 +326,7 @@ namespace Tizen.Network.IoTConnectivity Representation = repr, Result = (ResponseCode)result }; - ObserverNotified?.Invoke(null, e); + ObserverNotified?.Invoke(this, e); }; IntPtr queryHandle = IntPtr.Zero; @@ -332,6 +349,10 @@ namespace Tizen.Network.IoTConnectivity /// /// http://tizen.org/privilege/internet /// + /// Thrown when the iotcon is not supported + /// Thrown when there is an invalid parameter + /// Thrown when the operation is invalid + /// Thrown when app does not have privilege to access public void StopObserving() { int ret = Interop.IoTConnectivity.Client.RemoteResource.DeregisterObserve(_remoteResourceHandle); @@ -675,7 +696,7 @@ namespace Tizen.Network.IoTConnectivity { Representation = repr }; - CacheUpdated?.Invoke(null, e); + CacheUpdated?.Invoke(this, e); } }; diff --git a/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/Representation.cs b/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/Representation.cs index a809f94..13d795c 100755 --- a/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/Representation.cs +++ b/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/Representation.cs @@ -37,6 +37,9 @@ namespace Tizen.Network.IoTConnectivity /// The Representation constructor /// /// + /// Thrown when the iotcon is not supported + /// Thrown when there is not enough memory + /// Thrown when there is an invalid parameter /// /// Representation repr = new Representation(); /// @@ -83,6 +86,9 @@ namespace Tizen.Network.IoTConnectivity /// /// Setter can throw exceptions /// + /// Thrown when the iotcon is not supported + /// Thrown when there is an invalid parameter + /// Thrown when the operation is invalid /// /// Representation repr = new Representation(); /// repr.UriPath = "/a/light"; @@ -118,6 +124,9 @@ namespace Tizen.Network.IoTConnectivity /// The type of resource /// /// + /// Thrown when the iotcon is not supported + /// Thrown when there is an invalid parameter + /// Thrown when the operation is invalid /// /// Representation repr = new Representation(); /// ResourceTypes types = new ResourceTypes (new List(){ "org.tizen.light" }); @@ -137,10 +146,6 @@ namespace Tizen.Network.IoTConnectivity if (ret != (int)IoTConnectivityError.None) { Log.Error(IoTConnectivityErrorFactory.LogTag, "Failed to get type"); - throw IoTConnectivityErrorFactory.GetException(ret); - } - if (typeHandle == IntPtr.Zero) - { return null; } return new ResourceTypes(typeHandle); @@ -162,6 +167,9 @@ namespace Tizen.Network.IoTConnectivity /// The interface of the resource /// /// + /// Thrown when the iotcon is not supported + /// Thrown when there is an invalid parameter + /// Thrown when the operation is invalid /// /// Representation repr = new Representation(); /// ResourceInterfaces ifaces = new ResourceInterfaces (new List(){ ResourceInterfaces.DefaultInterface }); @@ -181,10 +189,6 @@ namespace Tizen.Network.IoTConnectivity if (ret != (int)IoTConnectivityError.None) { Log.Error(IoTConnectivityErrorFactory.LogTag, "Failed to get interface"); - throw IoTConnectivityErrorFactory.GetException(ret); - } - if (interfaceHandle == IntPtr.Zero) - { return null; } return new ResourceInterfaces(interfaceHandle); @@ -206,6 +210,9 @@ namespace Tizen.Network.IoTConnectivity /// Current attributes of the resource /// /// + /// Thrown when the iotcon is not supported + /// Thrown when there is an invalid parameter + /// Thrown when the operation is invalid /// /// Representation repr = new Representation(); /// Attributes attributes = new Attributes() { diff --git a/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/Resource.cs b/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/Resource.cs index 022c7aa..3fb5ce3 100755 --- a/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/Resource.cs +++ b/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/Resource.cs @@ -53,6 +53,9 @@ namespace Tizen.Network.IoTConnectivity /// /// /// + /// Thrown when the iotcon is not supported + /// Thrown when there is not enough memory + /// Thrown when there is an invalid parameter /// /// // Create a class which inherits from Resource /// public class DoorResource : Resource @@ -155,6 +158,10 @@ namespace Tizen.Network.IoTConnectivity /// /// /// + /// Thrown when the iotcon is not supported + /// Thrown when there is an invalid parameter + /// Thrown when app does not have privilege to access + /// Thrown when the operation is invalid /// /// ResourceInterfaces ifaces = new ResourceInterfaces(new List(){ ResourceInterfaces.DefaultInterface }); /// ResourceTypes types = new ResourceTypes(new List(){ "oic.iot.door.new.notify" }); diff --git a/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/ResourceInterfaces.cs b/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/ResourceInterfaces.cs index bedfc4a..169bab2 100755 --- a/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/ResourceInterfaces.cs +++ b/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/ResourceInterfaces.cs @@ -63,6 +63,9 @@ namespace Tizen.Network.IoTConnectivity /// /// /// + /// Thrown when the iotcon is not supported + /// Thrown when there is not enough memory + /// Thrown when there is an invalid parameter /// /// ResourceInterfaces resourceInterfaces = new ResourceInterfaces(); /// @@ -80,6 +83,9 @@ namespace Tizen.Network.IoTConnectivity /// Constructor of ResourceInterfaces using list of interfaces /// /// List of resource interfaces + /// Thrown when the iotcon is not supported + /// Thrown when there is not enough memory + /// Thrown when there is an invalid parameter /// /// ResourceInterfaces resourceInterfaces = new ResourceInterfaces(new List() /// { ResourceInterfaces.LinkInterface, ResourceInterfaces.ReadonlyInterface }); @@ -161,6 +167,9 @@ namespace Tizen.Network.IoTConnectivity /// /// The string data to insert into the resource interfaces /// + /// Thrown when the iotcon is not supported + /// Thrown when the operation is invalid + /// Thrown when there is an invalid parameter /// /// ResourceInterfaces resourceInterfaces = new ResourceInterfaces(); /// resourceInterfaces.Add(ResourceInterfaces.BatchInterface); @@ -189,6 +198,9 @@ namespace Tizen.Network.IoTConnectivity /// /// The string data to delete from the resource ifaces /// + /// Thrown when the iotcon is not supported + /// Thrown when there is an invalid parameter + /// Thrown when the operation is invalid /// /// ResourceInterfaces resourceInterfaces = new ResourceInterfaces(new List(){ ResourceInterfaces.BatchInterface }); /// resourceInterfaces.Add(ResourceInterfaces.BatchInterface); @@ -201,7 +213,7 @@ namespace Tizen.Network.IoTConnectivity int ret = Interop.IoTConnectivity.Common.ResourceInterfaces.Remove(_resourceInterfacesHandle, item); if (ret != (int)IoTConnectivityError.None) { - Log.Error(IoTConnectivityErrorFactory.LogTag, "Failed to add interface"); + Log.Error(IoTConnectivityErrorFactory.LogTag, "Failed to remove interface"); throw IoTConnectivityErrorFactory.GetException(ret); } } diff --git a/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/ResourceOptions.cs b/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/ResourceOptions.cs index ce17799..562f8bb 100755 --- a/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/ResourceOptions.cs +++ b/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/ResourceOptions.cs @@ -43,6 +43,9 @@ namespace Tizen.Network.IoTConnectivity /// /// /// + /// Thrown when the iotcon is not supported + /// Thrown when there is not enough memory + /// Thrown when there is an invalid parameter /// /// ResourceOptions options = new ResourceOptions(); /// @@ -143,22 +146,6 @@ namespace Tizen.Network.IoTConnectivity } /// - /// Represents whether the collection is readonly - /// - /// - /// ResourceOptions options = new ResourceOptions(); - /// if (options.IsReadOnly) - /// Console.WriteLine("Read only options"); - /// - public bool IsReadOnly - { - get - { - return _options.IsReadOnly; - } - } - - /// /// Gets or sets the option data /// /// @@ -208,6 +195,8 @@ namespace Tizen.Network.IoTConnectivity /// The id of the option to insert /// The string data to insert into the options /// + /// Thrown when the iotcon is not supported + /// Thrown when there is an invalid parameter /// /// ResourceOptions options = new ResourceOptions(); /// options.Add(2050, "sample-data"); @@ -238,6 +227,8 @@ namespace Tizen.Network.IoTConnectivity /// The id of the option to delete /// True if operation is successful. Otherwise, false /// + /// Thrown when the iotcon is not supported + /// Thrown when there is an invalid parameter /// /// ResourceOptions options = new ResourceOptions(); /// options.Add(2050, "12345"); @@ -294,6 +285,8 @@ namespace Tizen.Network.IoTConnectivity /// /// Clears the Options collection /// + /// Thrown when the iotcon is not supported + /// Thrown when there is an invalid parameter /// /// ResourceOptions options = new ResourceOptions(); /// options.Add(2050, "12345"); diff --git a/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/ResourceQuery.cs b/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/ResourceQuery.cs index 00a5f46..0d24434 100755 --- a/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/ResourceQuery.cs +++ b/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/ResourceQuery.cs @@ -37,6 +37,9 @@ namespace Tizen.Network.IoTConnectivity /// /// /// + /// Thrown when the iotcon is not supported + /// Thrown when there is not enough memory + /// Thrown when there is an invalid parameter /// /// ResourceQuery query = new ResourceQuery(); /// @@ -84,6 +87,9 @@ namespace Tizen.Network.IoTConnectivity /// /// Gets and sets the resource type of the query /// + /// Thrown when the iotcon is not supported + /// Thrown when there is an invalid parameter + /// Thrown when the operation is invalid /// /// ResourceQuery query = new ResourceQuery(); /// query.Type = "org.tizen.light"; @@ -98,7 +104,7 @@ namespace Tizen.Network.IoTConnectivity if (ret != (int)IoTConnectivityError.None) { Log.Error(IoTConnectivityErrorFactory.LogTag, "Failed to get type"); - throw IoTConnectivityErrorFactory.GetException(ret); + return ""; } return Marshal.PtrToStringAnsi(type); } @@ -122,6 +128,9 @@ namespace Tizen.Network.IoTConnectivity /// /// Setter value could be a value such as /// + /// Thrown when the iotcon is not supported + /// Thrown when there is an invalid parameter + /// Thrown when the operation is invalid /// /// ResourceQuery query = new ResourceQuery(); /// query.Interface = ResourceInterfaces.LinkInterface; @@ -135,7 +144,7 @@ namespace Tizen.Network.IoTConnectivity if (ret != (int)IoTConnectivityError.None) { Log.Error(IoTConnectivityErrorFactory.LogTag, "Failed to get interface"); - throw IoTConnectivityErrorFactory.GetException(ret); + return ""; } return Marshal.PtrToStringAnsi(iface); } @@ -208,22 +217,6 @@ namespace Tizen.Network.IoTConnectivity } /// - /// Represents whether the collection is readonly - /// - /// - /// ResourceQuery query = new ResourceQuery(); - /// if (query.IsReadOnly) - /// Console.WriteLine("Read only query"); - /// - public bool IsReadOnly - { - get - { - return _query.IsReadOnly; - } - } - - /// /// Gets or sets the query data /// /// The query key to get or set. @@ -271,6 +264,9 @@ namespace Tizen.Network.IoTConnectivity /// The key of the query to insert /// The string data to insert into the query /// + /// Thrown when the iotcon is not supported + /// Thrown when there is an invalid parameter + /// Thrown when the operation is invalid /// /// ResourceQuery query = new ResourceQuery(); /// query.Add("key1", "value1"); @@ -300,6 +296,9 @@ namespace Tizen.Network.IoTConnectivity /// The id of the query to delete /// True if operation is successful. Otherwise, false /// + /// Thrown when the iotcon is not supported + /// Thrown when there is an invalid parameter + /// Thrown when the operation is invalid /// /// ResourceQuery query = new ResourceQuery(); /// query.Add("key1", "value1"); @@ -356,6 +355,9 @@ namespace Tizen.Network.IoTConnectivity /// /// Clears the Query collection /// + /// Thrown when the iotcon is not supported + /// Thrown when there is an invalid parameter + /// Thrown when the operation is invalid /// /// ResourceQuery query = new ResourceQuery(); /// query.Add("key1", "value1"); diff --git a/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/ResourceTypes.cs b/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/ResourceTypes.cs index 5f5900a..d01b4e1 100755 --- a/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/ResourceTypes.cs +++ b/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/ResourceTypes.cs @@ -38,6 +38,9 @@ namespace Tizen.Network.IoTConnectivity /// /// /// + /// Thrown when the iotcon is not supported + /// Thrown when there is not enough memory + /// Thrown when there is an invalid parameter /// /// ResourceTypes types = new ResourceTypes(); /// @@ -130,6 +133,9 @@ namespace Tizen.Network.IoTConnectivity /// /// The string data to insert into the resource types /// + /// Thrown when the iotcon is not supported + /// Thrown when there is an invalid parameter + /// Thrown when the operation is invalid /// /// ResourceTypes resourceTypes = new ResourceTypes(); /// resourceTypes.Add("org.tizen.light"); @@ -158,6 +164,9 @@ namespace Tizen.Network.IoTConnectivity /// /// The string data to delete from the resource types /// + /// Thrown when the iotcon is not supported + /// Thrown when there is an invalid parameter + /// Thrown when the operation is invalid /// /// ResourceTypes resourceTypes = new ResourceTypes(new List() { "org.tizen.light", "oic.if.room" }); /// resourceTypes.Remove("oic.if.room"); -- 2.7.4