/// <inheritdoc cref="IUserService.GetUser"/>
        public async Task <Profile> GetUser(string walletAddress)
        {
            Guard.NotWhitespace(walletAddress, nameof(walletAddress));
            var url = new StringBuilder(ServicesExtensions.KittyApiRootUrl).Append(MethodUrl).Append(walletAddress);

            return(await _requestFactory.ServiceGet <Profile>(url.ToString()));
        }
 // <inheritdoc cref="IAuctionService.GetAuctions"/>
 public async Task <AuctionQueryResponseMessage> GetAuctions(AuctionQueryRequestMessage request)
 {
     return(await _requestFactory.ServiceGet <AuctionQueryResponseMessage>(ServicesExtensions.KittyApiRootUrl + MethodUrl, request));
 }
Esempio n. 3
0
 /// <inheritdoc cref="ICattributeService.GetCattributes"/>
 public async Task <IEnumerable <CattributeInfo> > GetCattributes(CattributeQueryRequestMessage request)
 {
     return(await _requestFactory.ServiceGet <CattributeInfo[]>(ServicesExtensions.KittyApiRootUrl + MethodUrl, request));
 }
Esempio n. 4
0
 public async Task <KittyQueryResponseMessage> GetKitties(KittyQueryRequestMessage request)
 {
     return(await _requestFactory.ServiceGet <KittyQueryResponseMessage>(ServicesExtensions.KittyApiRootUrl + QueryMethodUrl, request));
 }