ReadMedicalResourcesResponse


@ExperimentalPersonalHealthRecordApi
class ReadMedicalResourcesResponse


A class to hold responses for requests made with HealthConnectClient.readMedicalResources.

This feature is dependent on the version of HealthConnect installed on the device. To check if it's available call HealthConnectFeatures.getFeatureStatus and pass FEATURE_PERSONAL_HEALTH_RECORD as an argument. An UnsupportedOperationException would be thrown if the feature is not available.

Summary

Public constructors

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

Public functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

List<MedicalResource>

A list of MedicalResources.

String?

A token which can be used with ReadMedicalResourcesPageRequest to read the next page.

Int

The total number of MedicalResources remaining, excluding the ones in this response.

Public constructors

ReadMedicalResourcesResponse

Added in 1.1.0-beta02
ReadMedicalResourcesResponse(
    medicalResources: List<MedicalResource>,
    nextPageToken: String?,
    remainingCount: Int
)

Public functions

equals

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

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

medicalResources

Added in 1.1.0-beta02
val medicalResourcesList<MedicalResource>

A list of MedicalResources.

nextPageToken

Added in 1.1.0-beta02
val nextPageTokenString?

A token which can be used with ReadMedicalResourcesPageRequest to read the next page. null if there are no more pages available.

remainingCount

Added in 1.1.0-beta02
val remainingCountInt

The total number of MedicalResources remaining, excluding the ones in this response.