[Sensor] Fix build warnings 71/154271/4
authorkibak.yoon <kibak.yoon@samsung.com>
Tue, 10 Oct 2017 03:08:20 +0000 (12:08 +0900)
committerKibak Yoon <kibak.yoon@samsung.com>
Tue, 10 Oct 2017 04:23:17 +0000 (04:23 +0000)
Change-Id: I3dd236d61cc913f55518188085ac726ad7bd0883
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
src/Tizen.Sensor/Tizen.Sensor/Plugins/ActivityDetector.cs
src/Tizen.Sensor/Tizen.Sensor/Plugins/ProximitySensor.cs
src/Tizen.Sensor/Tizen.Sensor/Sensor.cs
src/Tizen.Sensor/Tizen.Sensor/SensorEnumerations.cs

index 061557d..7ada88d 100755 (executable)
@@ -23,15 +23,39 @@ namespace Tizen.Sensor
     /// </summary>
     public abstract class ActivityDetector : Sensor
     {
-        protected const int ActivityAttribute = (((int)SensorType.InVehicleActivityDetector << 8) | 0x80 | 0x1);
+        /// <summary>
+        /// Attribute key for a activity detector.
+        /// </summary>
+        protected const int ActivityAttribute = (((int)SensorType.StationaryActivityDetector << 8) | 0x80 | 0x1);
 
+        /// <summary>
+        /// Activity types.
+        /// </summary>
         protected enum ActivityType
         {
+            /// <summary>
+            /// Unknown.
+            /// </summary>
             Unknown = 1,
+            /// <summary>
+            /// Stationary.
+            /// </summary>
             Stationary = 2,
+            /// <summary>
+            /// Walking.
+            /// </summary>
             Walking = 4,
+            /// <summary>
+            /// Running.
+            /// </summary>
             Running = 8,
+            /// <summary>
+            /// In vehicle.
+            /// </summary>
             InVehicle = 16,
+            /// <summary>
+            /// On bicycle.
+            /// </summary>
             OnBicycle = 32,
         };
 
index 9d2d8f8..7ed55e5 100755 (executable)
@@ -67,7 +67,7 @@ namespace Tizen.Sensor
         /// <feature>http://tizen.org/feature/sensor.proximity</feature>
         /// <exception cref="ArgumentException">Thrown when an invalid argument is used.</exception>
         /// <exception cref="NotSupportedException">Thrown when the sensor is not supported.</exception>
-        /// <exception cref="InvalidOperationException">Thrown when the operation is invalid for the current state.exception>
+        /// <exception cref="InvalidOperationException">Thrown when the operation is invalid for the current state.</exception>
         /// <param name='index'>
         /// Index. Default value for this is 0. Index refers to a particular proximity sensor in case of multiple sensors.
         /// </param>
index 2210fd3..e514f3e 100755 (executable)
@@ -61,6 +61,9 @@ namespace Tizen.Sensor
             }
         }
 
+        /// <summary>
+        /// Destroy the Sensor object.
+        /// </summary>
         ~Sensor()
         {
             Dispose(false);
@@ -351,12 +354,22 @@ namespace Tizen.Sensor
             }
         }
 
+        /// <summary>
+        /// Destroy the current object.
+        /// </summary>
         public void Dispose()
         {
             Dispose(true);
             GC.SuppressFinalize(this);
         }
 
+        /// <summary>
+        /// Releases all resources currently used by this instance.
+        /// </summary>
+        /// <param name="disposing">
+        /// true if managed resources should be disposed
+        /// otherwise, false.
+        /// </param>
         protected virtual void Dispose(bool disposing)
         {
             if (_disposed)
index dc1c7d1..de65873 100755 (executable)
@@ -108,6 +108,10 @@ namespace Tizen.Sensor
         /// </summary>
         SleepMonitor = 0x301,
         /// <summary>
+        /// Stationary activity detector.
+        /// </summary>
+        StationaryActivityDetector = 0x1A00,
+        /// <summary>
         /// Walking activity detector.
         /// </summary>
         WalkingActivityDetector = 0x1A00,
@@ -116,10 +120,6 @@ namespace Tizen.Sensor
         /// </summary>
         RunningActivityDetector = 0x1A00,
         /// <summary>
-        /// Stationary activity detector.
-        /// </summary>
-        StationaryActivityDetector = 0x1A00,
-        /// <summary>
         /// InVehicle activity detector.
         /// </summary>
         InVehicleActivityDetector = 0x1A00,