private void OnApplyFriend() { // 正式请求 StaticData.DebugGreen($"申请添加好友~~~:{scOtherStruct.Uid}"); CSApply csApply = new CSApply() { OperationUid = scOtherStruct.Uid }; ProtocalManager.Instance().SendCSApply(csApply, (serverRes) => { SetFriendship(Friendship.IsApply); string tips = LocalizationDefineHelper.GetStringNameById(120147); StaticData.CreateToastTips(tips); }, (error) => { }); }
public void SendCSApply(CSApply csapply, Action <SCEmptyApply> ResponseSCEmptyApplyCallBack, Action <ErrorInfo> errorCallBack, bool isShowDefaultTip = true) { OpCodeType opCodeType = ListOPRelation.GetOpCodeTypeByRequest <CSApply> (); ProtoSendMethod.BusinessRequest <SCEmptyApply>(csapply, opCodeType, ResponseSCEmptyApplyCallBack, errorCallBack, isShowDefaultTip); }