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:
commit
d186633a29
|
@ -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