getMemberInfo method

Future<CrMemberInfo> getMemberInfo(
  1. String userID
)

Implementation

Future<CrMemberInfo> getMemberInfo(String userID) async {
  String result = await CrImpl.instance.getMemberInfo(userID);
  Map map = json.decode(result);
  int _videoStatus = map["videoStatus"];
  int _audioStatus = map["audioStatus"];
  CR_VSTATUS videoStatus = CR_VSTATUS.values[_videoStatus];
  CR_ASTATUS audioStatus = CR_ASTATUS.values[_audioStatus];
  CrMemberInfo _memberInfo = CrMemberInfo(
    userId: userID,
    nickName: map["nickName"],
    videoStatus: videoStatus,
    audioStatus: audioStatus,
  );
  return _memberInfo;
}