[Client] Add testing setter for rooms
This commit is contained in:
parent
ae1c757e4e
commit
348d9f8552
|
@ -113,6 +113,12 @@ class Client {
|
||||||
List<Room> get rooms => _rooms;
|
List<Room> get rooms => _rooms;
|
||||||
List<Room> _rooms = [];
|
List<Room> _rooms = [];
|
||||||
|
|
||||||
|
/// Warning! This endpoint is for testing only!
|
||||||
|
set rooms(List<Room> newList) {
|
||||||
|
print("Warning! This endpoint is for testing only!");
|
||||||
|
_rooms = newList;
|
||||||
|
}
|
||||||
|
|
||||||
/// Key/Value store of account data.
|
/// Key/Value store of account data.
|
||||||
Map<String, AccountData> accountData = {};
|
Map<String, AccountData> accountData = {};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue