public final class ChangesResponse


Response to clients fetching changes.

If changesTokenExpired is true, clients need to generate a new one. This typically happens when clients have not synced changelog for extended period of time.

See also
getChanges

Summary

Public methods

final @NonNull List<@NonNull Change>

List of observed changes from Android Health Platform.

final boolean

Whether requested Changes-Token has expired.

final @NonNull String

Changes-token to keep for future calls.

final boolean

Whether there are more changes available to be fetched again.

Public methods

getChanges

Added in 1.1.0-alpha10
public final @NonNull List<@NonNull ChangegetChanges()

List of observed changes from Android Health Platform.

getChangesTokenExpired

Added in 1.1.0-alpha10
public final boolean getChangesTokenExpired()

Whether requested Changes-Token has expired.

getNextChangesToken

Added in 1.1.0-alpha10
public final @NonNull String getNextChangesToken()

Changes-token to keep for future calls.

hasMore

Added in 1.1.0-alpha10
public final boolean hasMore()

Whether there are more changes available to be fetched again.