diff options
author | kibak.yoon <kibak.yoon@samsung.com> | 2016-09-29 21:53:10 +0900 |
---|---|---|
committer | kibak.yoon <kibak.yoon@samsung.com> | 2016-09-29 21:53:10 +0900 |
commit | b4d056ef36bb931d707509255ee5848e61249da7 (patch) | |
tree | b12473bd9d0ca491eda5fd0d43e152f4a026abab | |
parent | e1ad7ac3acd09f50586b913379dceb5394dc573f (diff) | |
download | sensor-b4d056ef36bb931d707509255ee5848e61249da7.tar.gz sensor-b4d056ef36bb931d707509255ee5848e61249da7.tar.bz2 sensor-b4d056ef36bb931d707509255ee5848e61249da7.zip |
csapi-sensor: add default value in constructors of activity detectors
- default value(0) must be assigned to parameter in constructor.
Change-Id: Ifccf544f90e58d7f8d07dc7b41c45575d433ee85
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
4 files changed, 4 insertions, 4 deletions
diff --git a/Tizen.System.Sensor/Tizen.System.Sensor/Plugins/InVehicleActivityDetector.cs b/Tizen.System.Sensor/Tizen.System.Sensor/Plugins/InVehicleActivityDetector.cs index 555b604..d3792cb 100644 --- a/Tizen.System.Sensor/Tizen.System.Sensor/Plugins/InVehicleActivityDetector.cs +++ b/Tizen.System.Sensor/Tizen.System.Sensor/Plugins/InVehicleActivityDetector.cs @@ -47,7 +47,7 @@ namespace Tizen.System.Sensor /// <param name='index'> /// Index. Default value for this is 0. Index refers to a particular in-vehicle activity detector in case of multiple sensors. /// </param> - public InVehicleActivityDetector(int index) : base(index) + public InVehicleActivityDetector(int index = 0) : base(index) { SetAttribute((SensorAttribute)ActivityAttribute, (int)ActivityType.InVehicle); Log.Info(Globals.LogTag, "Creating in-vehicle activity detector object"); diff --git a/Tizen.System.Sensor/Tizen.System.Sensor/Plugins/RunningActivityDetector.cs b/Tizen.System.Sensor/Tizen.System.Sensor/Plugins/RunningActivityDetector.cs index 2032cd7..4c1f063 100644 --- a/Tizen.System.Sensor/Tizen.System.Sensor/Plugins/RunningActivityDetector.cs +++ b/Tizen.System.Sensor/Tizen.System.Sensor/Plugins/RunningActivityDetector.cs @@ -47,7 +47,7 @@ namespace Tizen.System.Sensor /// <param name='index'> /// Index. Default value for this is 0. Index refers to a particular running activity detector in case of multiple sensors. /// </param> - public RunningActivityDetector(int index) : base(index) + public RunningActivityDetector(int index = 0) : base(index) { SetAttribute((SensorAttribute)ActivityAttribute, (int)ActivityType.Running); Log.Info(Globals.LogTag, "Creating running activity detector object"); diff --git a/Tizen.System.Sensor/Tizen.System.Sensor/Plugins/StationaryActivityDetector.cs b/Tizen.System.Sensor/Tizen.System.Sensor/Plugins/StationaryActivityDetector.cs index 6023151..090cc32 100644 --- a/Tizen.System.Sensor/Tizen.System.Sensor/Plugins/StationaryActivityDetector.cs +++ b/Tizen.System.Sensor/Tizen.System.Sensor/Plugins/StationaryActivityDetector.cs @@ -47,7 +47,7 @@ namespace Tizen.System.Sensor /// <param name='index'> /// Index. Default value for this is 0. Index refers to a particular stationary activity detector in case of multiple sensors. /// </param> - public StationaryActivityDetector(int index) : base(index) + public StationaryActivityDetector(int index = 0) : base(index) { SetAttribute((SensorAttribute)ActivityAttribute, (int)ActivityType.Stationary); Log.Info(Globals.LogTag, "Creating stationary activity detector object"); diff --git a/Tizen.System.Sensor/Tizen.System.Sensor/Plugins/WalkingActivityDetector.cs b/Tizen.System.Sensor/Tizen.System.Sensor/Plugins/WalkingActivityDetector.cs index c896f61..0d829b5 100644 --- a/Tizen.System.Sensor/Tizen.System.Sensor/Plugins/WalkingActivityDetector.cs +++ b/Tizen.System.Sensor/Tizen.System.Sensor/Plugins/WalkingActivityDetector.cs @@ -47,7 +47,7 @@ namespace Tizen.System.Sensor /// <param name='index'> /// Index. Default value for this is 0. Index refers to a particular walking activity detector in case of multiple sensors. /// </param> - public WalkingActivityDetector(int index) : base(index) + public WalkingActivityDetector(int index = 0) : base(index) { SetAttribute((SensorAttribute)ActivityAttribute, (int)ActivityType.Walking); Log.Info(Globals.LogTag, "Creating walking activity gesture detector object"); |