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 MedicalResourceIdof the deleted medical resource. This value cannot benull. | 
| deletedTime | Instant: the Instantwhen the medical resource was deleted. This value cannot benull. | 
| Exceptions | |
|---|---|
| java.lang.NullPointerException | if deletedMedicalResourceIdordeletedTimeis null. | 
Public methods
equals
fun equals(other: Any?): Boolean
| Parameters | |
|---|---|
| obj | the reference object with which to compare. | 
| Return | |
|---|---|
| Boolean | trueif this object is the same as the obj argument;falseotherwise. | 
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. | 
