Class AcceptTermsOfServiceRequest


  • public class AcceptTermsOfServiceRequest
    extends Object
    AcceptTermsOfServiceRequest
    • Constructor Detail

      • AcceptTermsOfServiceRequest

        public AcceptTermsOfServiceRequest()
    • Method Detail

      • getAcceptedBy

        public String getAcceptedBy()
        The unique identifier of the user accepting the Terms of Service.
        Returns:
        acceptedBy
      • setAcceptedBy

        public void setAcceptedBy​(String acceptedBy)
      • getIpAddress

        public String getIpAddress()
        The IP address of the user accepting the Terms of Service.
        Returns:
        ipAddress
      • setIpAddress

        public void setIpAddress​(String ipAddress)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonObject

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        Throws:
        IOException - if the JSON Object is invalid with respect to AcceptTermsOfServiceRequest
      • fromJson

        public static AcceptTermsOfServiceRequest fromJson​(String jsonString)
                                                    throws IOException
        Create an instance of AcceptTermsOfServiceRequest given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of AcceptTermsOfServiceRequest
        Throws:
        IOException - if the JSON string is invalid with respect to AcceptTermsOfServiceRequest
      • toJson

        public String toJson()
        Convert an instance of AcceptTermsOfServiceRequest to an JSON string
        Returns:
        JSON string