ActivityRecord class Sensor Data Source
Represents an activity being recorded, including descriptions, type of sport, effort level, associated bicycle profile (if applicable), and visibility preferences.
Constructors
- ActivityRecord({String shortDescription = '', String longDescription = '', SportType sportType = SportType.unknown, EffortType effortType = EffortType.easy, BikeProfileElectricBikeProfile? bikeProfile, ActivityVisibility visibility = ActivityVisibility.everyone})
-
ActivityRecord.fromJson(Map<
String, dynamic> json) -
Creates an instance from a JSON object.
factory
Properties
- bikeProfile ↔ BikeProfileElectricBikeProfile?
-
The bicycle profile, if the activity involves cycling.
getter/setter pair
- effortType ↔ EffortType
-
The effort level for this activity.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- longDescription ↔ String
-
A detailed description of the activity.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shortDescription ↔ String
-
A short description of the activity.
getter/setter pair
- sportType ↔ SportType
-
The type of sport for this activity.
getter/setter pair
- visibility ↔ ActivityVisibility
-
The visibility settings for the activity.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts the instance to a JSON object.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited