public async UniTask <AsyncResponseData <GuildResp> > ReadGuildAsync(ReadGuildReq request)
        {
            var resp = await Client.SendRequestAsync <ReadGuildReq, GuildResp>(DatabaseRequestTypes.RequestReadGuild, request);

            if (!resp.IsSuccess)
            {
                Logging.LogError(nameof(DatabaseNetworkManager), $"Cannot {nameof(ReadGuildAsync)} status: {resp.ResponseCode}");
            }
            return(resp);
        }
示例#2
0
        public async UniTask <GuildResp> ReadGuildAsync(ReadGuildReq request)
        {
            var result = await Client.SendRequestAsync <ReadGuildReq, GuildResp>(DatabaseRequestTypes.RequestReadGuild, request);

            if (result.ResponseCode != AckResponseCode.Success)
            {
                return(new GuildResp());
            }
            return(result.Response);
        }