Merge branch 'client-enhance-add-test-setter' into 'master'

[Client] Add testing setter for rooms

See merge request famedly/famedlysdk!149
This commit is contained in:
Christian Pauly 2020-01-04 13:54:40 +00:00
commit d186633a29

View file

@ -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 = {};