From f2e6f8b513a0229049479137215a5170f69117a2 Mon Sep 17 00:00:00 2001 From: Somin Kim Date: Mon, 25 Sep 2017 15:01:11 +0900 Subject: [PATCH] [Tizen.Context] Added since_tizen tag Change-Id: I0dfb16d897845e2cf761ae9a6cde5ecf78b6402a Signed-off-by: Somin Kim --- .../Tizen.Context.AppHistory/AppStatistics.cs | 1 + .../Tizen.Context.AppHistory/AppStatisticsData.cs | 2 ++ .../Tizen.Context.AppHistory/BatteryStatistics.cs | 8 ++++++++ .../BatteryStatisticsData.cs | 2 ++ .../Tizen.Context.AppHistory/NamespaceDoc.cs | 24 ++++++++++++++++++++++ .../Tizen.Context.AppHistory/UsageStatistics.cs | 7 +++++++ .../UsageStatisticsData.cs | 4 ++++ 7 files changed, 48 insertions(+) create mode 100644 src/Tizen.Context/Tizen.Context.AppHistory/NamespaceDoc.cs diff --git a/src/Tizen.Context/Tizen.Context.AppHistory/AppStatistics.cs b/src/Tizen.Context/Tizen.Context.AppHistory/AppStatistics.cs index 3cca79d..8a39392 100644 --- a/src/Tizen.Context/Tizen.Context.AppHistory/AppStatistics.cs +++ b/src/Tizen.Context/Tizen.Context.AppHistory/AppStatistics.cs @@ -21,6 +21,7 @@ namespace Tizen.Context.AppHistory /// /// Base class for application statistics. /// + /// 4 public abstract class AppStatistics { internal const string AppStatsQueryResult = "QueryResult"; diff --git a/src/Tizen.Context/Tizen.Context.AppHistory/AppStatisticsData.cs b/src/Tizen.Context/Tizen.Context.AppHistory/AppStatisticsData.cs index ed46f8c..6499de1 100644 --- a/src/Tizen.Context/Tizen.Context.AppHistory/AppStatisticsData.cs +++ b/src/Tizen.Context/Tizen.Context.AppHistory/AppStatisticsData.cs @@ -19,6 +19,7 @@ namespace Tizen.Context.AppHistory /// /// Base class which contains application statistics query result. /// + /// 4 public abstract class AppStatisticsData { internal AppStatisticsData() @@ -28,6 +29,7 @@ namespace Tizen.Context.AppHistory /// /// Gets the application id. /// + /// 4 /// The application id. public string AppId { get; protected set; } } diff --git a/src/Tizen.Context/Tizen.Context.AppHistory/BatteryStatistics.cs b/src/Tizen.Context/Tizen.Context.AppHistory/BatteryStatistics.cs index 7f62590..bd346b7 100644 --- a/src/Tizen.Context/Tizen.Context.AppHistory/BatteryStatistics.cs +++ b/src/Tizen.Context/Tizen.Context.AppHistory/BatteryStatistics.cs @@ -22,6 +22,7 @@ namespace Tizen.Context.AppHistory /// /// This class provides APIs to query battery consumption per application. /// + /// 4 public class BatteryStatistics : AppStatistics { private const string AppStatsConsumption = "TotalAmount"; @@ -29,6 +30,7 @@ namespace Tizen.Context.AppHistory /// /// The default constructor of BatteryStatistics class. /// + /// 4 /// http://tizen.org/feature/app_history /// http://tizen.org/feature/battery /// Thrown when method fail due to internal error. @@ -54,6 +56,7 @@ namespace Tizen.Context.AppHistory /// /// The constructor of BatteryStatistics class. /// + /// 4 /// The criteria of the battery statistics sorted by. /// http://tizen.org/feature/app_history /// http://tizen.org/feature/battery @@ -86,6 +89,7 @@ namespace Tizen.Context.AppHistory /// /// Retrieves a given type of battery statistics. /// + /// 4 /// The start time of the data to be aggregated. /// The end time of the data to be aggregated. /// Battery statistics data retrieved. @@ -106,6 +110,7 @@ namespace Tizen.Context.AppHistory /// /// Retrieves a given type of battery statistics. /// + /// 4 /// The start time of the data to be aggregated. /// The end time of the data to be aggregated. /// The number of data records to be retrieved. @@ -153,6 +158,7 @@ namespace Tizen.Context.AppHistory /// /// Gets the last time when the device was fully charged. /// + /// 4 /// The last time when the device was fully charged. /// http://tizen.org/feature/app_history /// http://tizen.org/feature/battery @@ -195,12 +201,14 @@ namespace Tizen.Context.AppHistory /// /// Gets the criteria of battery statistics sorted by. /// + /// 4 /// The criteria of battery statistics sorted by. public SortOrderType SortOrder { get; private set; } /// /// Sort order type of battery statistics. /// + /// 4 public enum SortOrderType { /// diff --git a/src/Tizen.Context/Tizen.Context.AppHistory/BatteryStatisticsData.cs b/src/Tizen.Context/Tizen.Context.AppHistory/BatteryStatisticsData.cs index 9dd6e4c..7b7842d 100644 --- a/src/Tizen.Context/Tizen.Context.AppHistory/BatteryStatisticsData.cs +++ b/src/Tizen.Context/Tizen.Context.AppHistory/BatteryStatisticsData.cs @@ -19,6 +19,7 @@ namespace Tizen.Context.AppHistory /// /// The class contains battery statistics information retrieved by BatteryStatistics. /// + /// 4 public class BatteryStatisticsData : AppStatisticsData { internal BatteryStatisticsData(string appId, double consumption) @@ -31,6 +32,7 @@ namespace Tizen.Context.AppHistory /// Gets how many percentage of battery capacity was used by the application. /// /// Battery consumption used by the application. + /// 4 public double Consumption { get; private set; } } } diff --git a/src/Tizen.Context/Tizen.Context.AppHistory/NamespaceDoc.cs b/src/Tizen.Context/Tizen.Context.AppHistory/NamespaceDoc.cs new file mode 100644 index 0000000..8989d3f --- /dev/null +++ b/src/Tizen.Context/Tizen.Context.AppHistory/NamespaceDoc.cs @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2017 Samsung Electronics Co., Ltd All Rights Reserved + * + * Licensed under the Apache License, Version 2.0 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/// +/// The Tizen.Context.AppHistory namespace provides classes to retrieve the user's application usage patterns. +/// +/// +/// The Tizen.Context.AppHistory namespace provides classes to retrieve the user's application usage patterns. +/// +/// 4 +namespace Tizen.Context.AppHistory {} diff --git a/src/Tizen.Context/Tizen.Context.AppHistory/UsageStatistics.cs b/src/Tizen.Context/Tizen.Context.AppHistory/UsageStatistics.cs index 9a96f29..121808d 100644 --- a/src/Tizen.Context/Tizen.Context.AppHistory/UsageStatistics.cs +++ b/src/Tizen.Context/Tizen.Context.AppHistory/UsageStatistics.cs @@ -22,6 +22,7 @@ namespace Tizen.Context.AppHistory /// /// This class provides APIs to query application launch history. /// + /// 4 public class UsageStatistics : AppStatistics { private const string AppStatsDuration = "TotalDuration"; @@ -31,6 +32,7 @@ namespace Tizen.Context.AppHistory /// /// The default constructor of UsageStatistics class. /// + /// 4 /// http://tizen.org/feature/app_history /// Thrown when method fail due to internal error. /// Thrown when the feature is not supported. @@ -55,6 +57,7 @@ namespace Tizen.Context.AppHistory /// /// The constructor of UsageStatistics class. /// + /// 4 /// The criteria of the usage statistics sorted by. /// http://tizen.org/feature/app_history /// Thrown when an invalid argument is used. @@ -86,6 +89,7 @@ namespace Tizen.Context.AppHistory /// /// Retrieves a given type of usage statistics. /// + /// 4 /// The start time of the data to be aggregated. /// The end time of the data to be aggregated. /// Usage statistics data retrieved. @@ -105,6 +109,7 @@ namespace Tizen.Context.AppHistory /// /// Retrieves a given type of usage statistics. /// + /// 4 /// The start time of the data to be aggregated. /// The end time of the data to be aggregated. /// The number of data records to be retrieved. @@ -178,12 +183,14 @@ namespace Tizen.Context.AppHistory /// /// Gets the criteria of usage statistics sorted by. /// + /// 4 /// The criteria of usage statistics sorted by. public SortOrderType SortOrder { get; private set; } /// /// Sort order type of usage statistics /// + /// 4 public enum SortOrderType { /// diff --git a/src/Tizen.Context/Tizen.Context.AppHistory/UsageStatisticsData.cs b/src/Tizen.Context/Tizen.Context.AppHistory/UsageStatisticsData.cs index c090e90..a1aa0d1 100644 --- a/src/Tizen.Context/Tizen.Context.AppHistory/UsageStatisticsData.cs +++ b/src/Tizen.Context/Tizen.Context.AppHistory/UsageStatisticsData.cs @@ -21,6 +21,7 @@ namespace Tizen.Context.AppHistory /// /// The class contains application usage statistics information retrieved by UsageStatistics. /// + /// 4 public class UsageStatisticsData : AppStatisticsData { internal UsageStatisticsData(string appId, int duration, int launchCount, DateTime lastLaunchTime) @@ -34,18 +35,21 @@ namespace Tizen.Context.AppHistory /// /// Gets the time which the application is being displayed in the foreground in seconds. /// + /// 4 /// Duration which the application is used in the foreground in seconds. public int Duration { get; private set; } /// /// Gets how many times the application is used in the foreground. /// + /// 4 /// How many times the application is used in the foreground. public int LaunchCount { get; private set; } /// /// Gets the last time when the application has been used. /// + /// 4 /// The last time when the application has been used. public DateTime LastLaunchTime { get; private set; } } -- 2.7.4