Ejemplo n.º 1
0
		public Task<Wallet[]> GetAllWalletsAsync(Guid userId, Page page)
		{
			if (userId == Guid.Empty)
				throw new ArgumentException("userId");
			if (page == null)
				throw new ArgumentNullException("page");

			var request = new GetAllWalletsMessageBuilder(userId, page);
			return SendAsync(request).ReadAsAsync<Wallet[]>();
		}
Ejemplo n.º 2
0
        public Task <Wallet[]> GetAllWalletsAsync(Guid userId, Page page)
        {
            if (userId == Guid.Empty)
            {
                throw new ArgumentException("userId");
            }
            if (page == null)
            {
                throw new ArgumentNullException("page");
            }

            var request = new GetAllWalletsMessageBuilder(userId, page);

            return(SendAsync(request).ReadAsAsync <Wallet[]>());
        }