Class PrivacyNoticeAcceptanceJson

java.lang.Object
ca.cdr.api.model.json.PrivacyNoticeAcceptanceJson
All Implemented Interfaces:
IModelJson

public class PrivacyNoticeAcceptanceJson extends Object implements IModelJson
Response model for privacy notice acceptance confirmation. Contains the success status and acceptance timestamp.
  • Constructor Details

    • PrivacyNoticeAcceptanceJson

    • PrivacyNoticeAcceptanceJson

      public PrivacyNoticeAcceptanceJson(boolean theSuccess, String theAcceptedDate)
      Constructor with success status and accepted date.
      Parameters:
      theSuccess - the success status of the acceptance operation
      theAcceptedDate - the ISO timestamp when the notice was accepted
  • Method Details

    • getSuccess

      public boolean getSuccess()
      Get the success status.
      Returns:
      true if the acceptance was successful
    • setSuccess

      public void setSuccess(boolean theSuccess)
      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

      public void setAcceptedDate(String theAcceptedDate)
      Set the acceptance date.
      Parameters:
      theAcceptedDate - the acceptance date to set (ISO timestamp)