setSelfInfo method

  1. @override
Future<V2TimCallback> setSelfInfo({
  1. required V2TimUserFullInfo userFullInfo,
})
override

修改个人资料

Implementation

@override
Future<V2TimCallback> setSelfInfo({
  required V2TimUserFullInfo userFullInfo,
}) async {
  Map<String, dynamic> param = {
    "nickName": userFullInfo.nickName,
    "faceUrl": userFullInfo.faceUrl,
    "selfSignature": userFullInfo.selfSignature,
    "birthday": userFullInfo.birthday,
    "gender": userFullInfo.gender,
    "allowType": userFullInfo.allowType,
    "customInfo": userFullInfo.customInfo,
    "level": userFullInfo.level,
    "role": userFullInfo.role,
  };
  var resp = V2TimCallback.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "setSelfInfo",
        buildTimManagerParam(
          param,
        ),
      ),
    ),
  );
  log("setSelfInfo", param, resp.toLogString());
  return resp;
}