GetRoomEventsResponse class

A list of messages with a new token to request more.

Annotations
  • @_NameSource('generated')

Constructors

GetRoomEventsResponse({required List<MatrixEvent> chunk, String? end, required String start, List<MatrixEvent>? state})
GetRoomEventsResponse.fromJson(Map<String, Object?> json)

Properties

chunk List<MatrixEvent>
A list of room events. The order depends on the dir parameter. For dir=b events will be in reverse-chronological order, for dir=f in chronological order. (The exact definition of chronological is dependent on the server implementation.)
getter/setter pair
end String?
A token corresponding to the end of chunk. This token can be passed back to this endpoint to request further events.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
start String
A token corresponding to the start of chunk. This will be the same as the value given in from.
getter/setter pair
state List<MatrixEvent>?
A list of state events relevant to showing the chunk. For example, if lazy_load_members is enabled in the filter then this may contain the membership events for the senders of events in the chunk.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object?>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited