Class PresenceContent
- java.lang.Object
-
- io.github.ma1uta.matrix.event.content.PresenceContent
-
- All Implemented Interfaces:
EventContent
public class PresenceContent extends Object implements EventContent
Informs the client of a user's presence state change.
-
-
Field Summary
Fields Modifier and Type Field Description private StringavatarUrlThe current avatar URL for this user, if any.private BooleancurrentlyActiveWhether the user is currently active.private StringdisplayNameThe current display name for this user, if any.private LonglastActiveAgoThe last time since this used performed some action, in milliseconds.private StringpresenceRequired.private StringstatusMsgAn optional description to accompany the presence.
-
Constructor Summary
Constructors Constructor Description PresenceContent()
-
Method Summary
Modifier and Type Method Description StringgetAvatarUrl()BooleangetCurrentlyActive()StringgetDisplayName()LonggetLastActiveAgo()StringgetPresence()StringgetStatusMsg()voidsetAvatarUrl(String avatarUrl)voidsetCurrentlyActive(Boolean currentlyActive)voidsetDisplayName(String displayName)voidsetLastActiveAgo(Long lastActiveAgo)voidsetPresence(String presence)voidsetStatusMsg(String statusMsg)
-
-
-
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.
-
-
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)
-
-