/* * 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. */ using System; namespace Tizen.Context.AppHistory { /// /// The class contains application usage statistics information retrieved by UsageStatistics. /// public class UsageStatisticsData : AppStatisticsData { internal UsageStatisticsData(string appId, int duration, int launchCount, DateTime lastLaunchTime) { AppId = appId; Duration = duration; LaunchCount = launchCount; LastLaunchTime = lastLaunchTime; } /// /// Gets the time which the application is being displayed in the foreground in seconds. /// /// 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. /// /// 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. /// /// The last time when the application has been used. public DateTime LastLaunchTime { get; private set; } } }