ReadMedicalResourcesResponse
class ReadMedicalResourcesResponse : Parcelable
A read response for android.health.connect.HealthConnectManager#readMedicalResources.
Summary
Inherited constants |
From class Parcelable
Int |
CONTENTS_FILE_DESCRIPTOR
Descriptor bit used with describeContents() : indicates that the Parcelable object's flattened representation includes a file descriptor.
|
Int |
PARCELABLE_WRITE_RETURN_VALUE
Flag for use with writeToParcel : the object being written is a return value, that is the result of a function such as "Parcelable someFunction() ", "void someFunction(out Parcelable) ", or "void someFunction(inout Parcelable) ". Some implementations may want to release resources at this point.
|
|
Public constructors
ReadMedicalResourcesResponse
ReadMedicalResourcesResponse(
medicalResources: MutableList<MedicalResource!>,
nextPageToken: String?,
remainingCount: Int)
Constructs a new ReadMedicalResourcesResponse
instance.
Parameters |
medicalResources |
MutableList<MedicalResource!>: List of MedicalResource s. 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
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. |
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.
Properties