DeletedMedicalResource
class DeletedMedicalResource
| kotlin.Any | |
| ↳ | android.health.connect.changelog.ChangeLogsResponse.DeletedMedicalResource |
A change log holds the MedicalResourceId of a deleted medical resource. For privacy, only unique identifiers of deleted medical resources are returned.
Clients holding copies of data from Health Connect should keep a copy of these unique identifiers along with their contents. When receiving a DeletedMedicalResource in ChangeLogsResponse, use the identifiers to delete copy of the data.
Summary
| Public constructors | |
|---|---|
DeletedMedicalResource(deletedMedicalResourceId: MedicalResourceId, deletedTime: Instant)Creates a |
|
| Public methods | |
|---|---|
| Boolean | |
| String |
Returns data source id of the deleted resource. |
| MedicalResourceId |
Returns |
| Instant |
Returns timestamp when the medical resource was deleted. |
| Int |
hashCode() |
Public constructors
DeletedMedicalResource
DeletedMedicalResource(
deletedMedicalResourceId: MedicalResourceId,
deletedTime: Instant)
Creates a DeletedMedicalResource.
| Parameters | |
|---|---|
deletedMedicalResourceId |
MedicalResourceId: the MedicalResourceId of the deleted medical resource. This value cannot be null. |
deletedTime |
Instant: the Instant when the medical resource was deleted. This value cannot be null. |
| Exceptions | |
|---|---|
java.lang.NullPointerException |
if deletedMedicalResourceId or deletedTime is null. |
Public methods
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. |
getDataSourceId
fun getDataSourceId(): String
Returns data source id of the deleted resource.
| Return | |
|---|---|
String |
This value cannot be null. |
getDeletedMedicalResourceId
fun getDeletedMedicalResourceId(): MedicalResourceId
Returns MedicalResourceId of the deleted resource.
| Return | |
|---|---|
MedicalResourceId |
This value cannot be null. |
getDeletedTime
fun getDeletedTime(): Instant
Returns timestamp when the medical resource was deleted.
| Return | |
|---|---|
Instant |
This value cannot be null. |