setSelfInfo method

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

修改个人资料

Implementation

@override
Future<V2TimCallback> setSelfInfo({
  required V2TimUserFullInfo userFullInfo,
}) async {
  return V2TimCallback.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "setSelfInfo",
        buildTimManagerParam(
          {
            "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,
          },
        ),
      ),
    ),
  );
}