Class PresenceContent

  • All Implemented Interfaces:
    EventContent

    public class PresenceContent
    extends Object
    implements EventContent
    Informs the client of a user's presence state change.
    • Field Detail

      • avatarUrl

        private String avatarUrl
        The current avatar URL for this user, if any.
      • displayName

        private String displayName
        The current display name for this user, if any.
      • lastActiveAgo

        private Long lastActiveAgo
        The last time since this used performed some action, in milliseconds.
      • presence

        private String presence
        Required. The presence state for this user. One of: ["online", "offline", "unavailable"].
      • currentlyActive

        private Boolean currentlyActive
        Whether the user is currently active.
      • statusMsg

        private String statusMsg
        An optional description to accompany the presence.
    • Constructor Detail

      • PresenceContent

        public PresenceContent()
    • Method Detail

      • getAvatarUrl

        public String getAvatarUrl()
      • setAvatarUrl

        public void setAvatarUrl​(String avatarUrl)
      • getDisplayName

        public String getDisplayName()
      • setDisplayName

        public void setDisplayName​(String displayName)
      • getLastActiveAgo

        public Long getLastActiveAgo()
      • setLastActiveAgo

        public void setLastActiveAgo​(Long lastActiveAgo)
      • getPresence

        public String getPresence()
      • setPresence

        public void setPresence​(String presence)
      • getCurrentlyActive

        public Boolean getCurrentlyActive()
      • setCurrentlyActive

        public void setCurrentlyActive​(Boolean currentlyActive)
      • getStatusMsg

        public String getStatusMsg()
      • setStatusMsg

        public void setStatusMsg​(String statusMsg)