Class ContactType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ContactType>

    public class ContactType
    extends java.lang.Object
    implements java.io.Serializable, java.lang.Comparable<ContactType>
    Represents a method of contacting a user. By default the system knows about three contact types: phone, sms, and email. Modules may add other contact types by registering them with the UserSourceManager in the Gateway.
    See Also:
    Serialized Form
    • Constructor Detail

      • ContactType

        public ContactType​(java.lang.String contactType,
                           LocalizedString displayName)
        Create a new ContactType.
        Parameters:
        contactType - The type code for this contact type. Do not use "phone", "sms", or "email". These are reserved.
        displayName - A human-readable display name for the contact type.
    • Method Detail

      • getContactType

        public java.lang.String getContactType()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • compareTo

        public int compareTo​(ContactType o)
        Specified by:
        compareTo in interface java.lang.Comparable<ContactType>