예제 #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));
 }
예제 #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()));
 }
예제 #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()));
 }