Class ShowContactResponse

  • All Implemented Interfaces:
    IContact

    public final class ShowContactResponse
    extends java.lang.Object
    implements IContact
    • Method Detail

      • getType

        public java.util.Optional<java.lang.String> getType()
        Specified by:
        getType in interface IContact
        Returns:
        The type of object.
      • getId

        public java.util.Optional<java.lang.String> getId()
        Specified by:
        getId in interface IContact
        Returns:
        The unique identifier for the contact which is given by Intercom.
      • getExternalId

        public java.util.Optional<java.lang.String> getExternalId()
        Specified by:
        getExternalId in interface IContact
        Returns:
        The unique identifier for the contact which is provided by the Client.
      • getWorkspaceId

        public java.util.Optional<java.lang.String> getWorkspaceId()
        Specified by:
        getWorkspaceId in interface IContact
        Returns:
        The id of the workspace which the contact belongs to.
      • getRole

        public java.util.Optional<java.lang.String> getRole()
        Specified by:
        getRole in interface IContact
        Returns:
        The role of the contact.
      • getEmail

        public java.util.Optional<java.lang.String> getEmail()
        Specified by:
        getEmail in interface IContact
        Returns:
        The contact's email.
      • getEmailDomain

        public java.util.Optional<java.lang.String> getEmailDomain()
        Specified by:
        getEmailDomain in interface IContact
        Returns:
        The contact's email domain.
      • getPhone

        public java.util.Optional<java.lang.String> getPhone()
        Specified by:
        getPhone in interface IContact
        Returns:
        The contacts phone.
      • getFormattedPhone

        public java.util.Optional<java.lang.String> getFormattedPhone()
        Specified by:
        getFormattedPhone in interface IContact
        Returns:
        The contacts phone number normalized to the E164 format
      • getName

        public java.util.Optional<java.lang.String> getName()
        Specified by:
        getName in interface IContact
        Returns:
        The contacts name.
      • getOwnerId

        public java.util.Optional<java.lang.Integer> getOwnerId()
        Specified by:
        getOwnerId in interface IContact
        Returns:
        The id of an admin that has been assigned account ownership of the contact.
      • getHasHardBounced

        public java.util.Optional<java.lang.Boolean> getHasHardBounced()
        Specified by:
        getHasHardBounced in interface IContact
        Returns:
        Whether the contact has had an email sent to them hard bounce.
      • getMarkedEmailAsSpam

        public java.util.Optional<java.lang.Boolean> getMarkedEmailAsSpam()
        Specified by:
        getMarkedEmailAsSpam in interface IContact
        Returns:
        Whether the contact has marked an email sent to them as spam.
      • getUnsubscribedFromEmails

        public java.util.Optional<java.lang.Boolean> getUnsubscribedFromEmails()
        Specified by:
        getUnsubscribedFromEmails in interface IContact
        Returns:
        Whether the contact is unsubscribed from emails.
      • getCreatedAt

        public java.util.Optional<java.lang.Integer> getCreatedAt()
        Specified by:
        getCreatedAt in interface IContact
        Returns:
        (UNIX timestamp) The time when the contact was created.
      • getUpdatedAt

        public java.util.Optional<java.lang.Integer> getUpdatedAt()
        Specified by:
        getUpdatedAt in interface IContact
        Returns:
        (UNIX timestamp) The time when the contact was last updated.
      • getSignedUpAt

        public java.util.Optional<java.lang.Integer> getSignedUpAt()
        Specified by:
        getSignedUpAt in interface IContact
        Returns:
        (UNIX timestamp) The time specified for when a contact signed up.
      • getLastSeenAt

        public java.util.Optional<java.lang.Integer> getLastSeenAt()
        Specified by:
        getLastSeenAt in interface IContact
        Returns:
        (UNIX timestamp) The time when the contact was last seen (either where the Intercom Messenger was installed or when specified manually).
      • getLastRepliedAt

        public java.util.Optional<java.lang.Integer> getLastRepliedAt()
        Specified by:
        getLastRepliedAt in interface IContact
        Returns:
        (UNIX timestamp) The time when the contact last messaged in.
      • getLastContactedAt

        public java.util.Optional<java.lang.Integer> getLastContactedAt()
        Specified by:
        getLastContactedAt in interface IContact
        Returns:
        (UNIX timestamp) The time when the contact was last messaged.
      • getLastEmailOpenedAt

        public java.util.Optional<java.lang.Integer> getLastEmailOpenedAt()
        Specified by:
        getLastEmailOpenedAt in interface IContact
        Returns:
        (UNIX timestamp) The time when the contact last opened an email.
      • getLastEmailClickedAt

        public java.util.Optional<java.lang.Integer> getLastEmailClickedAt()
        Specified by:
        getLastEmailClickedAt in interface IContact
        Returns:
        (UNIX timestamp) The time when the contact last clicked a link in an email.
      • getLanguageOverride

        public java.util.Optional<java.lang.String> getLanguageOverride()
        Specified by:
        getLanguageOverride in interface IContact
        Returns:
        A preferred language setting for the contact, used by Intercom as the language of Fin and the Messenger even if their browser has a different setting. Supports ISO 639-1 two-letter language codes. If an unsupported code is supplied, the field will be set to null.
      • getBrowser

        public java.util.Optional<java.lang.String> getBrowser()
        Specified by:
        getBrowser in interface IContact
        Returns:
        The name of the browser which the contact is using.
      • getBrowserVersion

        public java.util.Optional<java.lang.String> getBrowserVersion()
        Specified by:
        getBrowserVersion in interface IContact
        Returns:
        The version of the browser which the contact is using.
      • getBrowserLanguage

        public java.util.Optional<java.lang.String> getBrowserLanguage()
        Specified by:
        getBrowserLanguage in interface IContact
        Returns:
        The language set by the browser which the contact is using.
      • getOs

        public java.util.Optional<java.lang.String> getOs()
        Specified by:
        getOs in interface IContact
        Returns:
        The operating system which the contact is using.
      • getAndroidAppName

        public java.util.Optional<java.lang.String> getAndroidAppName()
        Specified by:
        getAndroidAppName in interface IContact
        Returns:
        The name of the Android app which the contact is using.
      • getAndroidAppVersion

        public java.util.Optional<java.lang.String> getAndroidAppVersion()
        Specified by:
        getAndroidAppVersion in interface IContact
        Returns:
        The version of the Android app which the contact is using.
      • getAndroidDevice

        public java.util.Optional<java.lang.String> getAndroidDevice()
        Specified by:
        getAndroidDevice in interface IContact
        Returns:
        The Android device which the contact is using.
      • getAndroidOsVersion

        public java.util.Optional<java.lang.String> getAndroidOsVersion()
        Specified by:
        getAndroidOsVersion in interface IContact
        Returns:
        The version of the Android OS which the contact is using.
      • getAndroidSdkVersion

        public java.util.Optional<java.lang.String> getAndroidSdkVersion()
        Specified by:
        getAndroidSdkVersion in interface IContact
        Returns:
        The version of the Android SDK which the contact is using.
      • getAndroidLastSeenAt

        public java.util.Optional<java.lang.Integer> getAndroidLastSeenAt()
        Specified by:
        getAndroidLastSeenAt in interface IContact
        Returns:
        (UNIX timestamp) The time when the contact was last seen on an Android device.
      • getIosAppName

        public java.util.Optional<java.lang.String> getIosAppName()
        Specified by:
        getIosAppName in interface IContact
        Returns:
        The name of the iOS app which the contact is using.
      • getIosAppVersion

        public java.util.Optional<java.lang.String> getIosAppVersion()
        Specified by:
        getIosAppVersion in interface IContact
        Returns:
        The version of the iOS app which the contact is using.
      • getIosDevice

        public java.util.Optional<java.lang.String> getIosDevice()
        Specified by:
        getIosDevice in interface IContact
        Returns:
        The iOS device which the contact is using.
      • getIosOsVersion

        public java.util.Optional<java.lang.String> getIosOsVersion()
        Specified by:
        getIosOsVersion in interface IContact
        Returns:
        The version of iOS which the contact is using.
      • getIosSdkVersion

        public java.util.Optional<java.lang.String> getIosSdkVersion()
        Specified by:
        getIosSdkVersion in interface IContact
        Returns:
        The version of the iOS SDK which the contact is using.
      • getIosLastSeenAt

        public java.util.Optional<java.lang.Integer> getIosLastSeenAt()
        Specified by:
        getIosLastSeenAt in interface IContact
        Returns:
        (UNIX timestamp) The last time the contact used the iOS app.
      • getCustomAttributes

        public java.util.Optional<java.util.Map<java.lang.String,​java.lang.Object>> getCustomAttributes()
        Specified by:
        getCustomAttributes in interface IContact
        Returns:
        The custom attributes which are set for the contact.
      • getEnabledPushMessaging

        public java.util.Optional<java.lang.Boolean> getEnabledPushMessaging()
        Returns:
        If the user has enabled push messaging.
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • getAdditionalProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getAdditionalProperties()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

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