[Room] Add documentations.
This commit is contained in:
parent
96bc9b6aca
commit
602a5d79cd
|
@ -330,6 +330,7 @@ class Room {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Sets this room as a direct chat for this user.
|
||||||
Future<dynamic> addToDirectChat(String userID) async {
|
Future<dynamic> addToDirectChat(String userID) async {
|
||||||
Map<String, List<String>> directChats =
|
Map<String, List<String>> directChats =
|
||||||
await client.store.getAccountDataDirectChats();
|
await client.store.getAccountDataDirectChats();
|
||||||
|
@ -347,6 +348,7 @@ class Room {
|
||||||
return resp;
|
return resp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Sends *m.fully_read* and *m.read* for the given event ID.
|
||||||
Future<dynamic> sendReadReceipt(String eventID) async {
|
Future<dynamic> sendReadReceipt(String eventID) async {
|
||||||
final dynamic resp = client.connection.jsonRequest(
|
final dynamic resp = client.connection.jsonRequest(
|
||||||
type: "POST",
|
type: "POST",
|
||||||
|
@ -419,6 +421,7 @@ class Room {
|
||||||
return room;
|
return room;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Creates a timeline from the store. Returns a [Timeline] object.
|
||||||
Future<Timeline> getTimeline(
|
Future<Timeline> getTimeline(
|
||||||
{onTimelineUpdateCallback onUpdate,
|
{onTimelineUpdateCallback onUpdate,
|
||||||
onTimelineInsertCallback onInsert}) async {
|
onTimelineInsertCallback onInsert}) async {
|
||||||
|
|
Loading…
Reference in a new issue