getAllMembers method
Implementation
Future<List<CrMemberInfo>> getAllMembers() async {
final String result = await CrImpl.instance.getAllMembers();
List items = json.decode(result);
List<CrMemberInfo> members = items.map((data) {
int _videoStatus = data["videoStatus"];
int _audioStatus = data["audioStatus"];
CR_VSTATUS videoStatus = CR_VSTATUS.values[_videoStatus];
CR_ASTATUS audioStatus = CR_ASTATUS.values[_audioStatus];
return CrMemberInfo(
nickName: data["nickName"],
userId: data["userId"],
videoStatus: videoStatus,
audioStatus: audioStatus);
}).toList();
return members;
}