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