ReadMedicalResourcesResponse


class ReadMedicalResourcesResponse : Parcelable
kotlin.Any
   ↳ android.health.connect.ReadMedicalResourcesResponse

A read response for android.health.connect.HealthConnectManager#readMedicalResources.

Summary

Inherited constants
Public constructors
ReadMedicalResourcesResponse(medicalResources: MutableList<MedicalResource!>, nextPageToken: String?, remainingCount: Int)

Constructs a new ReadMedicalResourcesResponse instance.

Public methods
Int

Boolean
equals(other: Any?)

MutableList<MedicalResource!>

Returns list of MedicalResources.

String?

Returns a page token to read the next page of the result.

Int

Returns the count of medical resources still remaining which were not returned due to pagination.

Int

String

Unit
writeToParcel(dest: Parcel, flags: Int)

Flatten this object in to a Parcel.

Properties
static Parcelable.Creator<ReadMedicalResourcesResponse!>

Public constructors

ReadMedicalResourcesResponse

ReadMedicalResourcesResponse(
    medicalResources: MutableList<MedicalResource!>,
    nextPageToken: String?,
    remainingCount: Int)

Constructs a new ReadMedicalResourcesResponse instance.

Parameters
medicalResources MutableList<MedicalResource!>: List of MedicalResources. This value cannot be null.
nextPageToken String?: The token value of the read result which can be used as input token for next read request. null if there are no more pages available.
remainingCount Int: the total number of medical resources remaining, excluding the ones in this response

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.

getMedicalResources

fun getMedicalResources(): MutableList<MedicalResource!>

Returns list of MedicalResources.

Return
MutableList<MedicalResource!> This value cannot be null.

getNextPageToken

fun getNextPageToken(): String?

Returns a page token to read the next page of the result. null if there are no more pages available.

getRemainingCount

fun getRemainingCount(): Int

Returns the count of medical resources still remaining which were not returned due to pagination.

For a response with a null next page token, this will be 0. This result is accurate at the time the request was made, and with the permissions when the request was made. However, the actual results may change if permissions change or resources are inserted or deleted.

hashCode

fun hashCode(): Int
Return
Int a hash code value for this object.

toString

fun toString(): String
Return
String a string representation of the object.

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

Properties

CREATOR

static val CREATOR: Parcelable.Creator<ReadMedicalResourcesResponse!>