Under Desk Bike

    Show / Hide Table of Contents

    Struct BikeWorkoutData

    This a sample of workout data from the bike.

    Implements
    IEquatable<BikeWorkoutData>
    Inherited Members
    ValueType.ToString()
    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 Source

    BikeWorkoutData(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
    IEquatable<T>

    Properties

    | Improve this Doc View Source

    DistanceKms

    Gets the distance in KMs.

    public decimal DistanceKms { get; }
    Property Type
    decimal
    Remarks

    Initializes a new instance of the BikeWorkoutData struct.

    See Also
    IEquatable<T>
    | Improve this Doc View Source

    DistanceMiles

    Gets the distance in miles.

    public decimal DistanceMiles { get; }
    Property Type
    decimal
    Remarks

    Initializes a new instance of the BikeWorkoutData struct.

    See Also
    IEquatable<T>
    | Improve this Doc View Source

    RotationsPerMinute

    Gets the rotations per minute.

    public int RotationsPerMinute { get; }
    Property Type
    int
    Remarks

    Initializes a new instance of the BikeWorkoutData struct.

    See Also
    IEquatable<T>
    | Improve this Doc View Source

    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
    IEquatable<T>
    | Improve this Doc View Source

    SpeedKph

    Gets the speed in KPH.

    public decimal SpeedKph { get; }
    Property Type
    decimal
    Remarks

    Initializes a new instance of the BikeWorkoutData struct.

    See Also
    IEquatable<T>
    | Improve this Doc View Source

    SpeedMph

    Gets the speed in MPH.

    public decimal SpeedMph { get; }
    Property Type
    decimal
    Remarks

    Initializes a new instance of the BikeWorkoutData struct.

    See Also
    IEquatable<T>
    | Improve this Doc View Source

    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
    IEquatable<T>
    | Improve this Doc View Source

    Timestamp

    Gets the timestamp.

    public DateTime Timestamp { get; }
    Property Type
    DateTime
    Remarks

    Initializes a new instance of the BikeWorkoutData struct.

    See Also
    IEquatable<T>
    | Improve this Doc View Source

    WorkoutTime

    Gets the workout time.

    public TimeSpan WorkoutTime { get; }
    Property Type
    TimeSpan
    Remarks

    Initializes a new instance of the BikeWorkoutData struct.

    See Also
    IEquatable<T>

    Methods

    | Improve this Doc View Source

    Equals(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

    true if the specified object is equal to this instance; otherwise, false.

    Overrides
    ValueType.Equals(object)
    Remarks

    Initializes a new instance of the BikeWorkoutData struct.

    See Also
    IEquatable<T>
    | Improve this Doc View Source

    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 other parameter; otherwise, false.

    Remarks

    Initializes a new instance of the BikeWorkoutData struct.

    See Also
    IEquatable<T>
    | Improve this Doc View Source

    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
    ValueType.GetHashCode()
    Remarks

    Initializes a new instance of the BikeWorkoutData struct.

    See Also
    IEquatable<T>

    Operators

    | Improve this Doc View Source

    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.

    See Also
    IEquatable<T>
    | Improve this Doc View Source

    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.

    See Also
    IEquatable<T>

    Implements

    IEquatable<T>

    See Also

    IEquatable<T>
    • Improve this Doc
    • View Source
    Back to top Copyright (c) 2021 by Wayne Venables