LAST

The aggregate operation to obtain the last active time goal as Duration.

This helps to create an AggregateRequest instance to get last active time goal simply and easily.

This aggregate operation allows the application to set the following:

// set a Local date range with one week ago including today
val today = LocalDate.now()
val localDateFilter = LocalDateFilter.of(today.minusDays(6), today)

val aggregateRequest = DataType.ActiveTimeGoalType.LAST.requestBuilder
    .setLocalDateFilter(localDateFilter)
    .setOrdering(Ordering.DESC)
    // set other conditions
    .build()

If the user did not set the active time goal before, a default value will be retrieved. Even if there is no set goal within the given date filter period, this aggregate operation gives the value that was last set.

Since

1.0.0

See also

Preferences Submitted

You have successfully updated your cookie preferences.