Class EventContextResponse
- java.lang.Object
-
- io.github.ma1uta.matrix.client.model.eventcontext.EventContextResponse
-
public class EventContextResponse extends Object
Events that happened just before and after the specified event.
-
-
Field Summary
Fields Modifier and Type Field Description private String
end
A token that can be used to paginate forwards with.private Event
event
Details of the requested event.private List<Event>
eventsAfter
A list of room events that happened just after the requested event, in chronological order.private List<Event>
eventsBefore
A list of room events that happened just before the requested event, in reverse-chronological order.private String
start
A token that can be used to paginate backwards with.private Event
state
The state of the room at the last event returned.
-
Constructor Summary
Constructors Constructor Description EventContextResponse()
-
Method Summary
Modifier and Type Method Description String
getEnd()
Event
getEvent()
List<Event>
getEventsAfter()
List<Event>
getEventsBefore()
String
getStart()
Event
getState()
void
setEnd(String end)
void
setEvent(Event event)
void
setEventsAfter(List<Event> eventsAfter)
void
setEventsBefore(List<Event> eventsBefore)
void
setStart(String start)
void
setState(Event state)
-
-
-
Field Detail
-
start
private String start
A token that can be used to paginate backwards with.
-
end
private String end
A token that can be used to paginate forwards with.
-
eventsBefore
private List<Event> eventsBefore
A list of room events that happened just before the requested event, in reverse-chronological order.
-
event
private Event event
Details of the requested event.
-
eventsAfter
private List<Event> eventsAfter
A list of room events that happened just after the requested event, in chronological order.
-
state
private Event state
The state of the room at the last event returned.
-
-
Method Detail
-
getStart
public String getStart()
-
setStart
public void setStart(String start)
-
getEnd
public String getEnd()
-
setEnd
public void setEnd(String end)
-
getEvent
public Event getEvent()
-
setEvent
public void setEvent(Event event)
-
getState
public Event getState()
-
setState
public void setState(Event state)
-
-