/*
* Copyright (c) 2016 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.Sensor
{
///
/// The Pedometer changed event arguments class is used for storing the data returned by a pedometer.
///
/// 3
public class PedometerDataUpdatedEventArgs : EventArgs
{
internal PedometerDataUpdatedEventArgs(float[] values)
{
StepCount = (uint) values[0];
WalkStepCount = (uint) values[1];
RunStepCount = (uint) values[2];
MovingDistance = values[3];
CalorieBurned = values[4];
LastSpeed = values[5];
LastSteppingFrequency = values[6];
LastStepStatus = (PedometerState) values[7];
}
///
/// Gets the step count.
///
/// 3
/// The step count.
public uint StepCount { get; private set; }
///
/// Gets the walking step count.
///
/// 3
/// The walk step count.
public uint WalkStepCount { get; private set; }
///
/// Gets the running step count.
///
/// 3
/// The run step count.
public uint RunStepCount { get; private set; }
///
/// Gets the moving distance.
///
/// 3
/// The moving distance.
public float MovingDistance { get; private set; }
///
/// Gets the calorie burned.
///
/// 3
/// The calorie burned.
public float CalorieBurned { get; private set; }
///
/// Gets the last speed.
///
/// 3
/// The last speed.
public float LastSpeed { get; private set; }
///
/// Gets the last stepping frequency.
///
/// 3
/// The last stepping frequency.
public float LastSteppingFrequency { get; private set; }
///
/// Gets the last step status.
///
/// 3
/// The last stepping status.
public PedometerState LastStepStatus { get; private set; }
}
}