ChangeLogsResponse
class ChangeLogsResponse : Parcelable
kotlin.Any | |
↳ | android.health.connect.changelog.ChangeLogsResponse |
Response class for HealthConnectManager.getChangeLogs
This is the response to clients fetching changes.
Summary
Nested classes | |
---|---|
A change log holds the |
|
A change log holds the |
Inherited constants | |
---|---|
Public methods | |
---|---|
Int | |
Boolean | |
MutableList<ChangeLogsResponse.DeletedLog!> |
Returns delete logs for records that have been deleted post the time when the token was retrieved. |
MutableList<ChangeLogsResponse.DeletedMedicalResource!> |
Returns delete logs for medical resources that have been deleted post the time when the token was retrieved. |
String |
Returns token for future reads using |
MutableList<MedicalResource!> |
Returns medical resources that have been updated or inserted post the time when the given token was generated. |
MutableList<Record!> |
Returns records that have been updated or inserted post the time when the given token was generated. |
Boolean |
Returns whether there are more pages available for read. |
Int |
hashCode() |
Unit |
writeToParcel(dest: Parcel, flags: Int) Flatten this object in to a Parcel. |
Properties | |
---|---|
static Parcelable.Creator<ChangeLogsResponse!> |
Public methods
describeContents
fun describeContents(): Int
Return | |
---|---|
Int |
a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR |
equals
fun equals(other: Any?): Boolean
Parameters | |
---|---|
obj |
the reference object with which to compare. |
Return | |
---|---|
Boolean |
true if this object is the same as the obj argument; false otherwise. |
getDeletedLogs
fun getDeletedLogs(): MutableList<ChangeLogsResponse.DeletedLog!>
Returns delete logs for records that have been deleted post the time when the token was retrieved.
This contains record ids of deleted records and the timestamps when the records were deleted.
Return | |
---|---|
MutableList<ChangeLogsResponse.DeletedLog!> |
This value cannot be null . |
getDeletedMedicalResources
fun getDeletedMedicalResources(): MutableList<ChangeLogsResponse.DeletedMedicalResource!>
Returns delete logs for medical resources that have been deleted post the time when the token was retrieved.
This contains ids of deleted medical resources and the timestamps when the resources were deleted.
Return | |
---|---|
MutableList<ChangeLogsResponse.DeletedMedicalResource!> |
This value cannot be null . |
getNextChangesToken
fun getNextChangesToken(): String
Returns token for future reads using HealthConnectManager.getChangeLogs
.
Return | |
---|---|
String |
This value cannot be null . |
getUpsertedMedicalResources
fun getUpsertedMedicalResources(): MutableList<MedicalResource!>
Returns medical resources that have been updated or inserted post the time when the given token was generated.
Return | |
---|---|
MutableList<MedicalResource!> |
This value cannot be null . |
getUpsertedRecords
fun getUpsertedRecords(): MutableList<Record!>
Returns records that have been updated or inserted post the time when the given token was generated.
Clients can use the last modified time of the record to check when the record was modified.
Return | |
---|---|
MutableList<Record!> |
This value cannot be null . |
hasMorePages
fun hasMorePages(): Boolean
Returns whether there are more pages available for read.
writeToParcel
fun writeToParcel(
dest: Parcel,
flags: Int
): Unit
Flatten this object in to a Parcel.
Parameters | |
---|---|
dest |
Parcel: This value cannot be null . |
flags |
Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE . Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE , and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES |