[Client] Add testing setter for rooms

This commit is contained in:
Christian Pauly 2020-01-04 13:51:00 +00:00
parent ae1c757e4e
commit 348d9f8552
1 changed files with 6 additions and 0 deletions

View File

@ -113,6 +113,12 @@ class Client {
List<Room> get rooms => _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.
Map<String, AccountData> accountData = {};