private void OnRefuseFriend() { //正式请求 CSRepulse cSRepulse = new CSRepulse() { OperationUid = scOtherStruct.Uid }; ProtocalManager.Instance().SendCSRepulse(cSRepulse, (serverRes) => { StaticData.playerInfoData.listApplyInfo.RemoveAt(itemIndex); Destroy(gameObject); }, (error) => { }); }
public void SendCSRepulse(CSRepulse csrepulse, Action <SCEmptyRepluse> ResponseSCEmptyRepluseCallBack, Action <ErrorInfo> errorCallBack, bool isShowDefaultTip = true) { OpCodeType opCodeType = ListOPRelation.GetOpCodeTypeByRequest <CSRepulse> (); ProtoSendMethod.BusinessRequest <SCEmptyRepluse>(csrepulse, opCodeType, ResponseSCEmptyRepluseCallBack, errorCallBack, isShowDefaultTip); }