From b4d056ef36bb931d707509255ee5848e61249da7 Mon Sep 17 00:00:00 2001 From: "kibak.yoon" Date: Thu, 29 Sep 2016 21:53:10 +0900 Subject: [PATCH] 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 --- .../Tizen.System.Sensor/Plugins/InVehicleActivityDetector.cs | 2 +- .../Tizen.System.Sensor/Plugins/RunningActivityDetector.cs | 2 +- .../Tizen.System.Sensor/Plugins/StationaryActivityDetector.cs | 2 +- .../Tizen.System.Sensor/Plugins/WalkingActivityDetector.cs | 2 +- 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 /// /// Index. Default value for this is 0. Index refers to a particular in-vehicle activity detector in case of multiple sensors. /// - 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 /// /// Index. Default value for this is 0. Index refers to a particular running activity detector in case of multiple sensors. /// - 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 /// /// Index. Default value for this is 0. Index refers to a particular stationary activity detector in case of multiple sensors. /// - 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 /// /// Index. Default value for this is 0. Index refers to a particular walking activity detector in case of multiple sensors. /// - 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"); -- 2.7.4