Class PresenceStatus
- java.lang.Object
-
- io.github.ma1uta.matrix.client.model.presence.PresenceStatus
-
public class PresenceStatus extends Object
JSON body request for presence api.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PresenceStatus.PresenceType
PresenceContent types.
-
Field Summary
Fields Modifier and Type Field Description private Boolean
currentlyActive
Whether the user is currently active.private Long
lastActiveAgo
The length of time in milliseconds since an action was performed by this user.private String
presence
Required.private String
statusMsg
The status message to attach to this state.
-
Constructor Summary
Constructors Constructor Description PresenceStatus()
-
Method Summary
Modifier and Type Method Description Boolean
getCurrentlyActive()
Long
getLastActiveAgo()
String
getPresence()
String
getStatusMsg()
void
setCurrentlyActive(Boolean currentlyActive)
void
setLastActiveAgo(Long lastActiveAgo)
void
setPresence(String presence)
void
setStatusMsg(String statusMsg)
-
-
-
Field Detail
-
presence
private String presence
Required. The new presence state. One of: ["online", "offline", "unavailable"].
-
statusMsg
private String statusMsg
The status message to attach to this state.
-
lastActiveAgo
private Long lastActiveAgo
The length of time in milliseconds since an action was performed by this user.
-
currentlyActive
private Boolean currentlyActive
Whether the user is currently active.
-
-
Method Detail
-
getPresence
public String getPresence()
-
setPresence
public void setPresence(String presence)
-
getStatusMsg
public String getStatusMsg()
-
setStatusMsg
public void setStatusMsg(String statusMsg)
-
getLastActiveAgo
public Long getLastActiveAgo()
-
setLastActiveAgo
public void setLastActiveAgo(Long lastActiveAgo)
-
getCurrentlyActive
public Boolean getCurrentlyActive()
-
setCurrentlyActive
public void setCurrentlyActive(Boolean currentlyActive)
-
-