Package io.github.ma1uta.matrix.event
Class Presence
- java.lang.Object
-
- io.github.ma1uta.matrix.event.Event<PresenceContent>
-
- io.github.ma1uta.matrix.event.Presence
-
public class Presence extends Event<PresenceContent>
Informs the client of a user's presence state change.
-
-
Constructor Summary
Constructors Constructor Description Presence()
-
-
-
Field Detail
-
TYPE
public static final String TYPE
Informs the client of a user's presence state change.- See Also:
- Constant Field Values
-
sender
private String sender
Required. Contains the fully-qualified ID of the user who sent this event.
-
-
Method Detail
-
getSender
public String getSender()
-
setSender
public void setSender(String sender)
-
getType
public String getType()
Description copied from class:Event
Required. The type of event. This SHOULD be namespaced similar to Java package naming conventions e.g. 'com.example.subdomain.event.type'.- Specified by:
getType
in classEvent<PresenceContent>
- Returns:
- The type of the event.
-
-