Package ca.cdr.api.model.json
Class PrivacyNoticeAcceptanceJson
java.lang.Object
ca.cdr.api.model.json.PrivacyNoticeAcceptanceJson
- All Implemented Interfaces:
IModelJson
Response model for privacy notice acceptance confirmation.
Contains the success status and acceptance timestamp.
-
Field Summary
Fields inherited from interface ca.uhn.fhir.model.api.IModelJson
SENSITIVE_DATA_FILTER_NAME -
Constructor Summary
ConstructorsConstructorDescriptionPrivacyNoticeAcceptanceJson(boolean theSuccess, String theAcceptedDate) Constructor with success status and accepted date. -
Method Summary
Modifier and TypeMethodDescriptionGet the acceptance date.booleanGet the success status.voidsetAcceptedDate(String theAcceptedDate) Set the acceptance date.voidsetSuccess(boolean theSuccess) Set the success status.
-
Constructor Details
-
PrivacyNoticeAcceptanceJson
public PrivacyNoticeAcceptanceJson() -
PrivacyNoticeAcceptanceJson
Constructor with success status and accepted date.- Parameters:
theSuccess- the success status of the acceptance operationtheAcceptedDate- the ISO timestamp when the notice was accepted
-
-
Method Details
-
getSuccess
Get the success status.- Returns:
- true if the acceptance was successful
-
setSuccess
Set the success status.- Parameters:
theSuccess- the success status to set
-
getAcceptedDate
Get the acceptance date.- Returns:
- the ISO timestamp when the notice was accepted
-
setAcceptedDate
Set the acceptance date.- Parameters:
theAcceptedDate- the acceptance date to set (ISO timestamp)
-