FitbitActivityTimeseriesAPIURL class

FitbitActivityTimeseriesAPIURL is a class that expresses multiple factory constructors to be used to generate Fitbit Web APIs urls to fetch FitbitActivityTimeseriesData.

Inheritance

Constructors

FitbitActivityTimeseriesAPIURL({required FitbitCredentials? fitbitCredentials, required String url, required String resourceString})
Default FitbitActivityTimeseriesAPIURL constructor.
FitbitActivityTimeseriesAPIURL.dateRangeWithResource({required FitbitCredentials fitbitCredentials, required DateTime startDate, required DateTime endDate, required Resource resource})
Generates a FitbitActivityTimeseriesAPIURL to get FitbitActivityTimeseriesData of a specific date range between startDate and endDate.
factory
FitbitActivityTimeseriesAPIURL.dayWithResource({required FitbitCredentials fitbitCredentials, required DateTime date, required Resource resource})
Generates a FitbitActivityTimeseriesAPIURL to get FitbitActivityTimeseriesData of a given resource of a specific day date.
factory
FitbitActivityTimeseriesAPIURL.monthWithResource({required FitbitCredentials fitbitCredentials, required DateTime baseDate, required Resource resource})
Generates a FitbitActivityTimeseriesAPIURL to get FitbitActivityTimeseriesData of a specific month ending in baseDate.
factory
FitbitActivityTimeseriesAPIURL.sixMonthsWithResource({required FitbitCredentials fitbitCredentials, required DateTime baseDate, required Resource resource})
Generates a FitbitActivityTimeseriesAPIURL to get FitbitActivityTimeseriesData of a specific 6 months range ending in baseDate.
factory
FitbitActivityTimeseriesAPIURL.threeMonthsWithResource({required FitbitCredentials fitbitCredentials, required DateTime baseDate, required Resource resource})
Generates a FitbitActivityTimeseriesAPIURL to get FitbitActivityTimeseriesData of a specific 3 months range ending in baseDate.
factory
FitbitActivityTimeseriesAPIURL.weekWithResource({required FitbitCredentials fitbitCredentials, required DateTime baseDate, required Resource resource})
Generates a FitbitActivityTimeseriesAPIURL to get FitbitActivityTimeseriesData of a specific week ending in baseDate.
factory
FitbitActivityTimeseriesAPIURL.yearWithResource({required FitbitCredentials fitbitCredentials, required DateTime baseDate, required Resource resource})
Generates a FitbitActivityTimeseriesAPIURL to get FitbitActivityTimeseriesData of a specific year ending in baseDate.
factory

Properties

fitbitCredentials FitbitCredentials?
The FitbitCredentials of the user requesting for the data.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
resourceString String
The type of the activity timeseries.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url String
The string representation of the url.
getter/setter pairinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited