Exemplo n.º 1
0
 /// <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));
 }
Exemplo n.º 2
0
 /// <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()));
 }
Exemplo n.º 3
0
 /// <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()));
 }