public async UniTask <PartyResp> UpdateCharacterPartyAsync(UpdateCharacterPartyReq request) { var result = await Client.SendRequestAsync <UpdateCharacterPartyReq, PartyResp>(DatabaseRequestTypes.RequestUpdateCharacterParty, request); if (result.ResponseCode != AckResponseCode.Success) { return(new PartyResp()); } return(result.Response); }
public async UniTask <AsyncResponseData <PartyResp> > UpdateCharacterPartyAsync(UpdateCharacterPartyReq request) { var resp = await Client.SendRequestAsync <UpdateCharacterPartyReq, PartyResp>(DatabaseRequestTypes.RequestUpdateCharacterParty, request); if (!resp.IsSuccess) { Logging.LogError(nameof(DatabaseNetworkManager), $"Cannot {nameof(UpdateCharacterPartyAsync)} status: {resp.ResponseCode}"); } return(resp); }