Class PhoneNumber


  • public class PhoneNumber
    extends Object
    PhoneNumber
    • Constructor Detail

      • PhoneNumber

        public PhoneNumber()
    • Method Detail

      • getNumber

        public String getNumber()
        The full phone number, including the country code. For example, **+3112345678**.
        Returns:
        number
      • setNumber

        public void setNumber​(String number)
        The full phone number, including the country code. For example, **+3112345678**.
        Parameters:
        number -
      • getType

        public String getType()
        The type of phone number. Possible values: **mobile**, **landline**, **sip**, **fax.**
        Returns:
        type
      • setType

        public void setType​(String type)
        The type of phone number. Possible values: **mobile**, **landline**, **sip**, **fax.**
        Parameters:
        type -
      • equals

        public boolean equals​(Object o)
        Return true if this PhoneNumber object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

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

        public static PhoneNumber fromJson​(String jsonString)
                                    throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of PhoneNumber given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of PhoneNumber
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to PhoneNumber
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of PhoneNumber to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException