Class Visitor


  • public final class Visitor
    extends java.lang.Object
    • Method Detail

      • getType

        public java.util.Optional<java.lang.String> getType()
        Returns:
        Value is 'visitor'
      • getId

        public java.util.Optional<java.lang.String> getId()
        Returns:
        The Intercom defined id representing the Visitor.
      • getUserId

        public java.util.Optional<java.lang.String> getUserId()
        Returns:
        Automatically generated identifier for the Visitor.
      • getAnonymous

        public java.util.Optional<java.lang.Boolean> getAnonymous()
        Returns:
        Identifies if this visitor is anonymous.
      • getEmail

        public java.util.Optional<java.lang.String> getEmail()
        Returns:
        The email of the visitor.
      • getPhone

        public java.util.Optional<java.lang.String> getPhone()
        Returns:
        The phone number of the visitor.
      • getName

        public java.util.Optional<java.lang.String> getName()
        Returns:
        The name of the visitor.
      • getPseudonym

        public java.util.Optional<java.lang.String> getPseudonym()
        Returns:
        The pseudonym of the visitor.
      • getAppId

        public java.util.Optional<java.lang.String> getAppId()
        Returns:
        The id of the app the visitor is associated with.
      • getLasRequestAt

        public java.util.Optional<java.lang.Integer> getLasRequestAt()
        Returns:
        The time the Lead last recorded making a request.
      • getCreatedAt

        public java.util.Optional<java.lang.Integer> getCreatedAt()
        Returns:
        The time the Visitor was added to Intercom.
      • getRemoteCreatedAt

        public java.util.Optional<java.lang.Integer> getRemoteCreatedAt()
        Returns:
        The time the Visitor was added to Intercom.
      • getSignedUpAt

        public java.util.Optional<java.lang.Integer> getSignedUpAt()
        Returns:
        The time the Visitor signed up for your product.
      • getUpdatedAt

        public java.util.Optional<java.lang.Integer> getUpdatedAt()
        Returns:
        The last time the Visitor was updated.
      • getSessionCount

        public java.util.Optional<java.lang.Integer> getSessionCount()
        Returns:
        The number of sessions the Visitor has had.
      • getOwnerId

        public java.util.Optional<java.lang.String> getOwnerId()
        Returns:
        The id of the admin that owns the Visitor.
      • getUnsubscribedFromEmails

        public java.util.Optional<java.lang.Boolean> getUnsubscribedFromEmails()
        Returns:
        Whether the Visitor is unsubscribed from emails.
      • getMarkedEmailAsSpam

        public java.util.Optional<java.lang.Boolean> getMarkedEmailAsSpam()
        Returns:
        Identifies if this visitor has marked an email as spam.
      • getHasHardBounced

        public java.util.Optional<java.lang.Boolean> getHasHardBounced()
        Returns:
        Identifies if this visitor has had a hard bounce.
      • getTags

        public java.util.Optional<Visitor.Tags> getTags()
      • getCustomAttributes

        public java.util.Optional<java.util.Map<java.lang.String,​java.lang.Object>> getCustomAttributes()
        Returns:
        The custom attributes you have set on the Visitor.
      • getReferrer

        public java.util.Optional<java.lang.String> getReferrer()
        Returns:
        The referer of the visitor.
      • getUtmCampaign

        public java.util.Optional<java.lang.String> getUtmCampaign()
        Returns:
        The utm_campaign of the visitor.
      • getUtmContent

        public java.util.Optional<java.lang.String> getUtmContent()
        Returns:
        The utm_content of the visitor.
      • getUtmMedium

        public java.util.Optional<java.lang.String> getUtmMedium()
        Returns:
        The utm_medium of the visitor.
      • getUtmSource

        public java.util.Optional<java.lang.String> getUtmSource()
        Returns:
        The utm_source of the visitor.
      • getUtmTerm

        public java.util.Optional<java.lang.String> getUtmTerm()
        Returns:
        The utm_term of the visitor.
      • getDoNotTrack

        public java.util.Optional<java.lang.Boolean> getDoNotTrack()
        Returns:
        Identifies if this visitor has do not track enabled.
      • 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