# 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)

*** ** * ** ***

Kotlin \|[Java](https://developer.android.com/reference/androidx/health/connect/client/request/ChangesTokenRequest "View this page in Java")


```
class ChangesTokenRequest
```

<br />

*** ** * ** ***

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

## Summary

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

| ### Public functions |
|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/health/connect/client/request/ChangesTokenRequest#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/health/connect/client/request/ChangesTokenRequest#hashCode()()` |

## Public constructors

### ChangesTokenRequest

```
ChangesTokenRequest(
    recordTypes: Set<KClass<Record>>,
    dataOriginFilters: Set<DataOrigin> = setOf()
)
```

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

## Public functions

### equals

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

```
open fun hashCode(): Int
```