Class Notification
- java.lang.Object
-
- io.github.ma1uta.matrix.client.model.push.Notification
-
public class Notification extends Object
Notification.
-
-
Constructor Summary
Constructors Constructor Description Notification()
-
Method Summary
Modifier and Type Method Description List<Object>
getActions()
Event
getEvent()
String
getProfileTag()
Boolean
getRead()
String
getRoomId()
Long
getTs()
void
setActions(List<Object> actions)
void
setEvent(Event event)
void
setProfileTag(String profileTag)
void
setRead(Boolean read)
void
setRoomId(String roomId)
void
setTs(Long ts)
-
-
-
Field Detail
-
actions
private List<Object> actions
Required. The action(s) to perform when the conditions for this rule are met. See Push Rules: API.
-
event
private Event event
Required. The Event object for the event that triggered the notification.
-
profileTag
private String profileTag
The profile tag of the rule that matched this event.
-
read
private Boolean read
Required. Indicates whether the user has sent a read receipt indicating that they have read this message.
-
roomId
private String roomId
Required. The ID of the room in which the event was posted.
-
ts
private Long ts
Required. The unix timestamp at which the event notification was sent, in milliseconds.
-
-
Method Detail
-
getEvent
public Event getEvent()
-
setEvent
public void setEvent(Event event)
-
getProfileTag
public String getProfileTag()
-
setProfileTag
public void setProfileTag(String profileTag)
-
getRead
public Boolean getRead()
-
setRead
public void setRead(Boolean read)
-
getRoomId
public String getRoomId()
-
setRoomId
public void setRoomId(String roomId)
-
getTs
public Long getTs()
-
setTs
public void setTs(Long ts)
-
-