generated from jfversluis/Plugin.Maui.Feature
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from jfversluis/improve-pedometerdata
Add PedometerData.Timestamp & API docs
- Loading branch information
Showing
5 changed files
with
17 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,17 @@ | ||
namespace Plugin.Maui.Pedometer; | ||
|
||
/// <summary> | ||
/// Contains the data measured by the user's device pedometer. | ||
/// </summary> | ||
public class PedometerData | ||
{ | ||
public int NumberOfSteps { get; set; } | ||
/// <summary> | ||
/// Gets the timestamp for this sensor reading. | ||
/// </summary> | ||
public DateTimeOffset Timestamp { get; internal set; } | ||
|
||
/// <summary> | ||
/// Gets the total number of steps since the current measuring session started. | ||
/// </summary> | ||
public int NumberOfSteps { get; internal set; } | ||
} |