public async UniTask <EmptyMessage> CreateUserLoginAsync(CreateUserLoginReq request) { var result = await Client.SendRequestAsync <CreateUserLoginReq, EmptyMessage>(DatabaseRequestTypes.RequestCreateUserLogin, request); if (result.ResponseCode != AckResponseCode.Success) { return(EmptyMessage.Value); } return(result.Response); }
public async UniTask <AsyncResponseData <EmptyMessage> > CreateUserLoginAsync(CreateUserLoginReq request) { var resp = await Client.SendRequestAsync <CreateUserLoginReq, EmptyMessage>(DatabaseRequestTypes.RequestCreateUserLogin, request); if (!resp.IsSuccess) { Logging.LogError(nameof(DatabaseNetworkManager), $"Cannot {nameof(CreateUserLoginAsync)} status: {resp.ResponseCode}"); } return(resp); }