Struct BikeWorkoutData
This a sample of workout data from the bike.
Implements
Inherited Members
Namespace: UnderDeskBike
Assembly: UnderDeskBike.Device.dll
Syntax
public readonly struct BikeWorkoutData : IEquatable<BikeWorkoutData>
Remarks
Initializes a new instance of the BikeWorkoutData struct.
Constructors
| Improve this Doc View SourceBikeWorkoutData(byte[])
This a sample of workout data from the bike.
public BikeWorkoutData(byte[] data)
Parameters
Type | Name | Description |
---|---|---|
byte[] | data | The data. |
Remarks
Initializes a new instance of the BikeWorkoutData struct.
See Also
Properties
| Improve this Doc View SourceDistanceKms
Gets the distance in KMs.
public decimal DistanceKms { get; }
Property Type
decimal |
Remarks
Initializes a new instance of the BikeWorkoutData struct.
See Also
DistanceMiles
Gets the distance in miles.
public decimal DistanceMiles { get; }
Property Type
decimal |
Remarks
Initializes a new instance of the BikeWorkoutData struct.
See Also
RotationsPerMinute
Gets the rotations per minute.
public int RotationsPerMinute { get; }
Property Type
int |
Remarks
Initializes a new instance of the BikeWorkoutData struct.
See Also
Second
Gets the second of the record.
public int Second { get; }
Property Type
int |
Remarks
Initializes a new instance of the BikeWorkoutData struct.
See Also
SpeedKph
Gets the speed in KPH.
public decimal SpeedKph { get; }
Property Type
decimal |
Remarks
Initializes a new instance of the BikeWorkoutData struct.
See Also
SpeedMph
Gets the speed in MPH.
public decimal SpeedMph { get; }
Property Type
decimal |
Remarks
Initializes a new instance of the BikeWorkoutData struct.
See Also
SpeedValue
Gets the speed value (0 to 9).
public int SpeedValue { get; }
Property Type
int |
Remarks
Initializes a new instance of the BikeWorkoutData struct.
See Also
Timestamp
Gets the timestamp.
public DateTime Timestamp { get; }
Property Type
DateTime |
Remarks
Initializes a new instance of the BikeWorkoutData struct.
See Also
WorkoutTime
Gets the workout time.
public TimeSpan WorkoutTime { get; }
Property Type
TimeSpan |
Remarks
Initializes a new instance of the BikeWorkoutData struct.
See Also
Methods
| Improve this Doc View SourceEquals(object?)
Determines whether the specified object, is equal to this instance.
public override bool Equals(object? obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with this instance. |
Returns
Type | Description |
---|---|
bool |
|
Overrides
Remarks
Initializes a new instance of the BikeWorkoutData struct.
See Also
Equals(BikeWorkoutData)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(BikeWorkoutData other)
Parameters
Type | Name | Description |
---|---|---|
BikeWorkoutData | other | An object to compare with this object. |
Returns
Type | Description |
---|---|
bool | true if the current object is equal to the |
Remarks
Initializes a new instance of the BikeWorkoutData struct.
See Also
GetHashCode()
Returns a hash code for this instance.
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |
Overrides
Remarks
Initializes a new instance of the BikeWorkoutData struct.
See Also
Operators
| Improve this Doc View Sourceoperator ==(BikeWorkoutData, BikeWorkoutData)
Implements the operator ==.
public static bool operator ==(BikeWorkoutData lhs, BikeWorkoutData rhs)
Parameters
Type | Name | Description |
---|---|---|
BikeWorkoutData | lhs | The LHS. |
BikeWorkoutData | rhs | The RHS. |
Returns
Type | Description |
---|---|
bool | The result of the operator. |
Remarks
Initializes a new instance of the BikeWorkoutData struct.
See Also
operator !=(BikeWorkoutData, BikeWorkoutData)
Implements the operator !=.
public static bool operator !=(BikeWorkoutData lhs, BikeWorkoutData rhs)
Parameters
Type | Name | Description |
---|---|---|
BikeWorkoutData | lhs | The LHS. |
BikeWorkoutData | rhs | The RHS. |
Returns
Type | Description |
---|---|
bool | The result of the operator. |
Remarks
Initializes a new instance of the BikeWorkoutData struct.