[NUI] TCSACR-226 code change (#1032)
[platform/core/csapi/tizenfx.git] / src / Tizen.Sensor / Tizen.Sensor / EventArgs / PedometerDataUpdatedEventArgs.cs
1 /*
2  * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.0 (the License);
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an AS IS BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 using System;
18
19 namespace Tizen.Sensor
20 {
21     /// <summary>
22     /// The Pedometer changed event arguments class is used for storing the data returned by a pedometer.
23     /// </summary>
24     /// <since_tizen> 3 </since_tizen>
25     public class PedometerDataUpdatedEventArgs : EventArgs
26     {
27         internal PedometerDataUpdatedEventArgs(float[] values)
28         {
29             StepCount = (uint) values[0];
30             WalkStepCount = (uint) values[1];
31             RunStepCount = (uint) values[2];
32             MovingDistance = values[3];
33             CalorieBurned = values[4];
34             LastSpeed = values[5];
35             LastSteppingFrequency = values[6];
36             LastStepStatus = (PedometerState) values[7];
37         }
38
39         /// <summary>
40         /// Gets the step count.
41         /// </summary>
42         /// <since_tizen> 3 </since_tizen>
43         /// <value> The step count. </value>
44         public uint StepCount { get; private set; }
45
46         /// <summary>
47         /// Gets the walking step count.
48         /// </summary>
49         /// <since_tizen> 3 </since_tizen>
50         /// <value> The walk step count. </value>
51         public uint WalkStepCount { get; private set; }
52
53         /// <summary>
54         /// Gets the running step count.
55         /// </summary>
56         /// <since_tizen> 3 </since_tizen>
57         /// <value> The run step count.</value>
58         public uint RunStepCount { get; private set; }
59
60         /// <summary>
61         /// Gets the moving distance.
62         /// </summary>
63         /// <since_tizen> 3 </since_tizen>
64         /// <value> The moving distance.</value>
65         public float MovingDistance { get; private set; }
66
67         /// <summary>
68         /// Gets the calorie burned.
69         /// </summary>
70         /// <since_tizen> 3 </since_tizen>
71         /// <value> The calorie burned.</value>
72         public float CalorieBurned { get; private set; }
73
74         /// <summary>
75         /// Gets the last speed.
76         /// </summary>
77         /// <since_tizen> 3 </since_tizen>
78         /// <value> The last speed. </value>
79         public float LastSpeed { get; private set; }
80
81         /// <summary>
82         /// Gets the last stepping frequency.
83         /// </summary>
84         /// <since_tizen> 3 </since_tizen>
85         /// <value> The last stepping frequency.</value>
86         public float LastSteppingFrequency { get; private set; }
87
88         /// <summary>
89         /// Gets the last step status.
90         /// </summary>
91         /// <since_tizen> 3 </since_tizen>
92         /// <value> The last stepping status. </value>
93         public PedometerState LastStepStatus { get; private set; }
94     }
95 }