Add EventContinue attribute
authorJooseok Park <jooseok.park@samsung.com>
Fri, 24 Mar 2017 05:10:14 +0000 (14:10 +0900)
committerJooseok Park <jooseok.park@samsung.com>
Fri, 24 Mar 2017 05:10:14 +0000 (14:10 +0900)
 - after receiving finding callback, the stop functionality for finding callback is needed

Change-Id: Ief35781171ec040a4fe478d9c016898dd39a621b

src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/DeviceInformationFoundEventArgs.cs
src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/IoTConnectivityClientManager.cs
src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/PlatformInformationFoundEventArgs.cs
src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/ResourceFoundEventArgs.cs

index 76b56cd..fe585a5 100755 (executable)
@@ -30,6 +30,11 @@ namespace Tizen.Network.IoTConnectivity
         public int RequestId { get; internal set; }
 
         /// <summary>
+        /// Indicates to continuously receive the event for finding device information.
+        /// </summary>
+        public bool EventContinue { get; set; }
+
+        /// <summary>
         /// Indicates human friendly name for device
         /// </summary>
         public string Name { get; internal set; }
index 7711b44..066d8ce 100755 (executable)
@@ -488,6 +488,8 @@ namespace Tizen.Network.IoTConnectivity
                             Resource = resource
                         };
                         ResourceFound?.Invoke(null, e);
+                        Log.Info(IoTConnectivityErrorFactory.LogTag, "e.EventContinue : " + e.EventContinue);
+                        return e.EventContinue;
                     }
                     else
                     {
@@ -585,6 +587,8 @@ namespace Tizen.Network.IoTConnectivity
                             return true;
                         }
                         DeviceInformationFound?.Invoke(null, e);
+                        Log.Info(IoTConnectivityErrorFactory.LogTag, "e.EventContinue : " + e.EventContinue);
+                        return e.EventContinue;
                     }
                     else
                     {
@@ -683,6 +687,8 @@ namespace Tizen.Network.IoTConnectivity
                             return true; ;
                         }
                         PlatformInformationFound?.Invoke(null, e);
+                        Log.Info(IoTConnectivityErrorFactory.LogTag, "e.EventContinue : " + e.EventContinue);
+                        return e.EventContinue;
                     }
                     else
                     {
@@ -790,6 +796,7 @@ namespace Tizen.Network.IoTConnectivity
             DeviceInformationFoundEventArgs e = new DeviceInformationFoundEventArgs()
             {
                 RequestId = requestId,
+                EventContinue = true,
                 Name = Marshal.PtrToStringAnsi(name),
                 SpecVersion = Marshal.PtrToStringAnsi(specVersion),
                 DeviceId = Marshal.PtrToStringAnsi(deviceId),
index 633083d..c6e6642 100755 (executable)
@@ -30,6 +30,11 @@ namespace Tizen.Network.IoTConnectivity
         public int RequestId { get; internal set; }
 
         /// <summary>
+        /// Indicates to continuously receive the event for finding platform information.
+        /// </summary>
+        public bool EventContinue { get; set; }
+
+        /// <summary>
         /// Indicates the platform identifier
         /// </summary>
         public string PlatformId { get; internal set; }
index 5b1338b..7195cf1 100755 (executable)
@@ -33,6 +33,11 @@ namespace Tizen.Network.IoTConnectivity
         public int RequestId { get; internal set; }
 
         /// <summary>
+        /// Indicates to continuously receive the event for finding resource.
+        /// </summary>
+        public bool EventContinue { get; set; }
+
+        /// <summary>
         /// Remote resource which is found after <see cref="IoTConnectivityClientManager.StartFindingResource()"/>.
         /// </summary>
         /// <seealso cref="IoTConnectivityClientManager.ResourceFound"/>