# ChangesTokenRequest

Artifact: [androidx.health.connect:connect-client](https://developer.android.com/jetpack/androidx/releases/health-connect) [View Source](https://cs.android.com/search?q=file:androidx/health/connect/client/request/ChangesTokenRequest.kt+class:androidx.health.connect.client.request.ChangesTokenRequest) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

*** ** * ** ***


```
public final class ChangesTokenRequest
```

<br />

*** ** * ** ***

Request object to fetch Changes-Token for given `https://developer.android.com/reference/androidx/health/connect/client/request/ChangesTokenRequest#(kotlin.collections.Set,kotlin.collections.Set)` in Health Connect.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/health/connect/client/request/ChangesTokenRequest#ChangesTokenRequest(kotlin.collections.Set,kotlin.collections.Set)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Set.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.reflect/-k-class/index.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/records/Record>> recordTypes, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Set.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/records/metadata/DataOrigin> dataOriginFilters )` |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/health/connect/client/request/ChangesTokenRequest#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `int` | `https://developer.android.com/reference/androidx/health/connect/client/request/ChangesTokenRequest#hashCode()()` |

## Public constructors

### ChangesTokenRequest

```
public ChangesTokenRequest(
    @NonNull Set<@NonNull KClass<@NonNull Record>> recordTypes,
    @NonNull Set<@NonNull DataOrigin> dataOriginFilters
)
```

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Set.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.reflect/-k-class/index.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/records/Record>> recordTypes` | Set of `https://developer.android.com/reference/androidx/health/connect/client/records/Record` types the token will observe change for. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Set.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/records/metadata/DataOrigin> dataOriginFilters` | Optional set of `https://developer.android.com/reference/androidx/health/connect/client/records/metadata/DataOrigin` filters, default is empty set for no filter. |

## Public methods

### equals

```
public boolean equals(Object other)
```

### hashCode

```
public int hashCode()
```