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 StringendA token that can be used to paginate forwards with.private EventeventDetails of the requested event.private List<Event>eventsAfterA list of room events that happened just after the requested event, in chronological order.private List<Event>eventsBeforeA list of room events that happened just before the requested event, in reverse-chronological order.private StringstartA token that can be used to paginate backwards with.private EventstateThe state of the room at the last event returned.
-
Constructor Summary
Constructors Constructor Description EventContextResponse()
-
Method Summary
Modifier and Type Method Description StringgetEnd()EventgetEvent()List<Event>getEventsAfter()List<Event>getEventsBefore()StringgetStart()EventgetState()voidsetEnd(String end)voidsetEvent(Event event)voidsetEventsAfter(List<Event> eventsAfter)voidsetEventsBefore(List<Event> eventsBefore)voidsetStart(String start)voidsetState(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)
-
-