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 String
avatarUrl
The current avatar URL for this user, if any.private Boolean
currentlyActive
Whether the user is currently active.private String
displayName
The current display name for this user, if any.private Long
lastActiveAgo
The last time since this used performed some action, in milliseconds.private String
presence
Required.private String
statusMsg
An optional description to accompany the presence.
-
Constructor Summary
Constructors Constructor Description PresenceContent()
-
Method Summary
Modifier and Type Method Description String
getAvatarUrl()
Boolean
getCurrentlyActive()
String
getDisplayName()
Long
getLastActiveAgo()
String
getPresence()
String
getStatusMsg()
void
setAvatarUrl(String avatarUrl)
void
setCurrentlyActive(Boolean currentlyActive)
void
setDisplayName(String displayName)
void
setLastActiveAgo(Long lastActiveAgo)
void
setPresence(String presence)
void
setStatusMsg(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)
-
-