ReadMedicalResourcesResponse


@ExperimentalPersonalHealthRecordApi
public final 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(
    @NonNull List<@NonNull MedicalResource> medicalResources,
    String nextPageToken,
    int remainingCount
)

Public methods

boolean
equals(Object other)
final @NonNull List<@NonNull MedicalResource>

A list of MedicalResources.

final String

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

final int

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

int
@NonNull String

Public constructors

ReadMedicalResourcesResponse

Added in 1.1.0-beta02
public ReadMedicalResourcesResponse(
    @NonNull List<@NonNull MedicalResource> medicalResources,
    String nextPageToken,
    int remainingCount
)

Public methods

equals

public boolean equals(Object other)

getMedicalResources

Added in 1.1.0-beta02
public final @NonNull List<@NonNull MedicalResourcegetMedicalResources()

A list of MedicalResources.

getNextPageToken

Added in 1.1.0-beta02
public final String getNextPageToken()

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

getRemainingCount

Added in 1.1.0-beta02
public final int getRemainingCount()

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

hashCode

public int hashCode()

toString

public @NonNull String toString()