Struct BikeWorkoutData
This a sample of workout data from the bike.
Implements
Namespace: UnderDeskBike
Assembly: UnderDeskBike.Device.dll
Syntax
public struct BikeWorkoutData : IEquatable<BikeWorkoutData>
Constructors
BikeWorkoutData(Byte[])
Initializes a new instance of the BikeWorkoutData struct.
public BikeWorkoutData(byte[] data)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | data | The data. |
Properties
DistanceKms
Gets the distance in KMs.
public decimal DistanceKms { get; }
Property Type
Decimal |
DistanceMiles
Gets the distance in miles.
public decimal DistanceMiles { get; }
Property Type
Decimal |
RotationsPerMinute
Gets the rotations per minute.
public int RotationsPerMinute { get; }
Property Type
Int32 |
Second
Gets the second of the record.
public int Second { get; }
Property Type
Int32 |
SpeedKph
Gets the speed in KPH.
public decimal SpeedKph { get; }
Property Type
Decimal |
SpeedMph
Gets the speed in MPH.
public decimal SpeedMph { get; }
Property Type
Decimal |
SpeedValue
Gets the speed value (0 to 9).
public int SpeedValue { get; }
Property Type
Int32 |
Timestamp
Gets the timestamp.
public DateTime Timestamp { get; }
Property Type
DateTime |
WorkoutTime
Gets the workout time.
public TimeSpan WorkoutTime { get; }
Property Type
TimeSpan |
Methods
Equals(Object)
Determines whether the specified
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | The |
Returns
Type | Description |
---|---|
Boolean |
|
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 |
---|---|
Boolean | true if the current object is equal to the |
GetHashCode()
Returns a hash code for this instance.
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |
Operators
Equality(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 |
---|---|
Boolean | The result of the operator. |
Inequality(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 |
---|---|
Boolean | The result of the operator. |