FitbitSleepAPIURL class
FitbitSleepAPIURL is a class that expresses multiple factory constructors to be used to generate Fitbit Web APIs urls to fetch FitbitSleepData.
- Inheritance
-
- Object
- FitbitAPIURL
- FitbitSleepAPIURL
Constructors
- FitbitSleepAPIURL({required FitbitCredentials? fitbitCredentials, required String url})
- Default FitbitSleepAPIURL constructor.
- FitbitSleepAPIURL.dateRange({required FitbitCredentials fitbitCredentials, required DateTime startDate, required DateTime endDate})
-
Generates a FitbitSleepAPIURL to get FitbitSleepData of a specific date range
between
startDate
andendDate
.factory - FitbitSleepAPIURL.day({required FitbitCredentials fitbitCredentials, required DateTime date})
-
Generates a FitbitSleepAPIURL to get FitbitSleepData of a specific day
date
.factory - FitbitSleepAPIURL.listAndAfterDate({required FitbitCredentials fitbitCredentials, required DateTime afterDate, int? limit})
-
Generates a FitbitSleepAPIURL to get the FitbitSleepData list.
after a given day
afterDate
. Maximumlimit
sleep logs are returned. The resulting entries are ordered ascending.factory - FitbitSleepAPIURL.listAndBeforeDate({required FitbitCredentials fitbitCredentials, required DateTime beforeDate, int? limit})
-
Generates a FitbitSleepAPIURL to get the FitbitSleepData list.
before a given day
beforeDate
. Maximumlimit
sleep logs are returned. The resulting entries are ordered descending.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
- 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