Uses of Class
co.tryterra.terraclient.models.v2.sleep.Sleep
-
Packages that use Sleep Package Description co.tryterra.terraclient.api This package contains all the interfaces used by this library. -
-
Uses of Sleep in co.tryterra.terraclient.api
Methods in co.tryterra.terraclient.api that return types with arguments of type Sleep Modifier and Type Method Description Optional<List<Sleep>>
TerraWebhookPayload. asSleepV2()
Attempt to parse the raw payload as anSleep
object (API version 2).Future<TerraApiResponse<Sleep>>
TerraClientV2. getSleepForUser(PartialUser user, Instant startTime, @Nullable Instant endTime)
Asynchronously makes a request to the/sleep
endpoint to fetch the sleep data for the given user.Future<TerraApiResponse<Sleep>>
TerraClientV2. getSleepForUser(PartialUser user, Instant startTime, @Nullable Instant endTime, RequestConfig requestConfig)
Asynchronously makes a request to the/sleep
endpoint to fetch the sleep data for the given user.
-