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