public final class AggregateRequest


Request object to read aggregations for given AggregateMetrics in Android Health Platform.

See also
aggregate

Summary

Public constructors

AggregateRequest(
    @NonNull Set<@NonNull AggregateMetric<@NonNull ?>> metrics,
    @NonNull TimeRangeFilter timeRangeFilter,
    @NonNull Set<@NonNull DataOrigin> dataOriginFilter
)

Public methods

boolean
equals(Object other)
int

Public constructors

AggregateRequest

public AggregateRequest(
    @NonNull Set<@NonNull AggregateMetric<@NonNull ?>> metrics,
    @NonNull TimeRangeFilter timeRangeFilter,
    @NonNull Set<@NonNull DataOrigin> dataOriginFilter
)
Parameters
@NonNull Set<@NonNull AggregateMetric<@NonNull ?>> metrics

Set of AggregateMetrics to aggregate.

@NonNull TimeRangeFilter timeRangeFilter

The TimeRangeFilter to read from.

@NonNull Set<@NonNull DataOrigin> dataOriginFilter

Set of DataOrigins to read from, or empty for no filter.

Public methods

equals

public boolean equals(Object other)

hashCode

public int hashCode()