/// <summary>
 /// Lists the user subscriptions.
 /// </summary>
 /// <param name="userId">The user id.</param>
 /// <param name="query">The query.</param>
 public Task<QueryResult<Subscription>> ListUserSubscriptionsAsync(string userId, Query query)
 {
     var queryString = string.Format(CultureInfo.InvariantCulture, QueryStrings.UserSubscriptionQueryFormat, userId, query.GetQueryString());
     return this.GetAsync<QueryResult<Subscription>>(this.CreateRequestUri(RelativePaths.Subscriptions, queryString));
 }
 /// <summary>
 /// Lists the users.
 /// </summary>
 /// <param name="query">The query.</param>
 public Task<QueryResult<User>> ListUsersAsync(Query query)
 {
     return this.GetAsync<QueryResult<User>>(this.CreateRequestUri(RelativePaths.Users, query.GetQueryString()));
 }
 /// <summary>
 /// List subscriptions matching the given query
 /// </summary>
 public Task<QueryResult<Subscription>> ListSubscriptionsAsync(Query query)
 {
     return this.GetAsync<QueryResult<Subscription>>(this.CreateRequestUri(RelativePaths.Subscriptions, query.GetQueryString()));
 }