The simple query parameters class.
Inheritance: SiteQuery, IPagedQuery
示例#1
0
 /// <summary>
 /// Makes a request to API method /tags/{tags}/faq
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/faqs-by-tags</para>
 /// </summary>
 /// <param name="tag">The single tag in {tags}.</param>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the frequently asked questions for the tag identified by <paramref name="tag"/>.</returns>
 public override IBridgeResponseCollection<Question> GetTagFrequentlyAskedQuestions(string tag, SimpleQuery parameters = null)
 {
     return GetTagsFrequentlyAskedQuestions(new[] { tag }, parameters);
 }
示例#2
0
 /// <summary>
 /// Makes a request to API method /sites
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/sites</para>
 /// </summary>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns all sites in the network.</returns>
 public override IBridgeResponseCollection<NetworkSite> GetNetworkSites(SimpleQuery parameters = null)
 {
     return GetApiResultCollection<NetworkSite, SimpleQuery>(ApiMethodEnum.Sites, parameters);
 }
示例#3
0
 /// <summary>
 /// Makes a request to API method /privileges
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/privileges</para>
 /// </summary>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the privileges that can be earned on a site.</returns>
 public override IBridgeResponseCollection<Privilege> GetPrivileges(SimpleQuery parameters = null)
 {
     return GetApiResultCollection<Privilege, SimpleQuery>(ApiMethodEnum.Privileges, parameters);
 }
示例#4
0
 /// <summary>
 /// Makes a request to API method /users/{ids}/top-question-tags
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/top-question-tags-on-users</para>
 /// </summary>
 /// <param name="id">The single user {id}.</param>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns a single user's top 30 tags by question score.</returns>
 public override IBridgeResponseCollection<TagTop> GetUserTopQuestionTags(long id, SimpleQuery parameters = null)
 {
     return GetApiResultCollection<TagTop, SimpleQuery>(ApiMethodEnum.TopQuestionTagsOnUsers, CreateIdVector(id), parameters);
 }
示例#5
0
 /// <summary>
 /// Makes a request to API method /errors
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/errors</para>
 /// </summary>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the various error codes that can be produced by the API.</returns>
 public override IBridgeResponseCollection<ApiException> GetErrors(SimpleQuery parameters = null)
 {
     return GetApiResultCollection<ApiException, SimpleQuery>(ApiMethodEnum.Errors, parameters);
 }
示例#6
0
 /// <summary>
 /// Makes a request to API method /tags/{tags}/wikis
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/wikis-by-tags</para>
 /// </summary>
 /// <param name="tag">The single tag in {tags}.</param>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the tags wiki for the tag identified by <paramref name="tag"/>.</returns>
 public override IBridgeResponseItem<TagWiki> GetTagWiki(string tag, SimpleQuery parameters = null)
 {
     return GetTagsWikis(new[] { tag }, parameters).Single();
 }
示例#7
0
 /// <summary>
 /// Makes a request to API method /me/top-question-tags
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/me-top-question-tags</para>
 /// </summary>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the authenticated user's top 30 tags by question score.</returns>
 public IBridgeResponseCollection <TagTop> GetMyTopQuestionTags(SimpleQuery parameters = null)
 {
     return(GetApiResultCollection <TagTop, SimpleQuery>(ApiMethodEnum.MyTopQuestionTags, parameters));
 }
 /// <summary>
 /// Makes a request to API method /users/{id}/inbox
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/user-inbox</para>
 /// </summary>
 /// <param name="id">The single user {id}.</param>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns all items in a user's inbox.</returns>
 public IBridgeResponseCollection<InboxItem> GetUserInbox(long id, SimpleQuery parameters = null)
 {
     return GetApiResultCollection<InboxItem, SimpleQuery>(ApiMethodEnum.UserInbox, CreateIdVector(id), parameters);
 }
 /// <summary>
 /// Makes a request to API method /me/associated
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/me-associated-users</para>
 /// </summary>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns all of a user's associated accounts for a set of authenticated user.</returns>
 public IBridgeResponseCollection<NetworkUser> GetMyAssociatedAccounts(SimpleQuery parameters = null)
 {
     return GetApiResultCollection<NetworkUser, SimpleQuery>(ApiMethodEnum.MyAssociatedUsers, parameters);
 }
 /// <summary>
 /// Makes a request to API method /me/top-question-tags
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/me-top-question-tags</para>
 /// </summary>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the authenticated user's top 30 tags by question score.</returns>
 public IBridgeResponseCollection<TagTop> GetMyTopQuestionTags(SimpleQuery parameters = null)
 {
     return GetApiResultCollection<TagTop, SimpleQuery>(ApiMethodEnum.MyTopQuestionTags, parameters);
 }
 /// <summary>
 /// Makes a request to API method /inbox
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/inbox</para>
 /// </summary>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns all items in a user's inbox.</returns>
 public IBridgeResponseCollection<InboxItem> GetNetworkInbox(SimpleQuery parameters = null)
 {
     return GetApiResultCollection<InboxItem, SimpleQuery>(ApiMethodEnum.Inbox, parameters);
 }
示例#12
0
 /// <summary>
 /// Makes a request to API method /users/{id}/inbox
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/user-inbox</para>
 /// </summary>
 /// <param name="id">The single user {id}.</param>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns all items in a user's inbox.</returns>
 public IBridgeResponseCollection <InboxItem> GetUserInbox(long id, SimpleQuery parameters = null)
 {
     return(GetApiResultCollection <InboxItem, SimpleQuery>(ApiMethodEnum.UserInbox, CreateIdVector(id), parameters));
 }
示例#13
0
 /// <summary>
 /// Makes a request to API method /inbox
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/inbox</para>
 /// </summary>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns all items in a user's inbox.</returns>
 public IBridgeResponseCollection <InboxItem> GetNetworkInbox(SimpleQuery parameters = null)
 {
     return(GetApiResultCollection <InboxItem, SimpleQuery>(ApiMethodEnum.Inbox, parameters));
 }
示例#14
0
 /// <summary>
 /// Makes a request to API method /me/associated
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/me-associated-users</para>
 /// </summary>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns all of a user's associated accounts for a set of authenticated user.</returns>
 public IBridgeResponseCollection <NetworkUser> GetMyAssociatedAccounts(SimpleQuery parameters = null)
 {
     return(GetApiResultCollection <NetworkUser, SimpleQuery>(ApiMethodEnum.MyAssociatedUsers, parameters));
 }
示例#15
0
 /// <summary>
 /// Makes a request to API method /tags/{tags}/faq
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/faqs-by-tags</para>
 /// </summary>
 /// <param name="tags">The {tags} vector.</param>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the frequently asked questions for the given set of tags in <paramref name="tags"/>.</returns>
 public override IBridgeResponseCollection<Question> GetTagsFrequentlyAskedQuestions(string[] tags, SimpleQuery parameters = null)
 {
     return GetApiResultCollection<Question, SimpleQuery>(ApiMethodEnum.FAQ, CreateTagsVector(tags), parameters);
 }
示例#16
0
 /// <summary>
 /// Makes a request to API method /users/{id}/privileges
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/privileges-on-users</para>
 /// </summary>
 /// <param name="id">The single user {id}.</param>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the privileges the user identified by <paramref name="id"/> has.</returns>
 public override IBridgeResponseCollection<Privilege> GetUserPrivileges(long id, SimpleQuery parameters = null)
 {
     return GetApiResultCollection<Privilege, SimpleQuery>(ApiMethodEnum.PrivilegesOnUsers, CreateIdVector(id), parameters);
 }
示例#17
0
 /// <summary>
 /// Makes a request to API method /tags/{tags}/wikis
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/wikis-by-tags</para>
 /// </summary>
 /// <param name="tags">The {tags} vector.</param>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the wikis that go with the given set of tags in {tags}.</returns>
 public override IBridgeResponseCollection<TagWiki> GetTagsWikis(string[] tags, SimpleQuery parameters = null)
 {
     return GetApiResultCollection<TagWiki, SimpleQuery>(ApiMethodEnum.WikisByTags, CreateTagsVector(tags), parameters);
 }
示例#18
0
 /// <summary>
 /// Makes a request to API method /users/{ids}/associated
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/associated-users</para>
 /// </summary>
 /// <param name="ids">The user {ids} vector.</param>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns all of a user's associated accounts for a set of users identified by <paramref name="ids"/>.</returns>
 public override IBridgeResponseCollection<NetworkUser> GetUsersAssociatedAccounts(long[] ids, SimpleQuery parameters = null)
 {
     return GetApiResultCollection<NetworkUser, SimpleQuery>(ApiMethodEnum.AssociatedUsers, CreateIdsVector(ids), parameters);
 }
示例#19
0
 /// <summary>
 /// Makes a request to API method /users/{ids}/associated
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/associated-users</para>
 /// </summary>
 /// <param name="id">The single user in {ids}.</param>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns all of a user's associated accounts for a set of user identified by <paramref name="id"/>.</returns>
 public override IBridgeResponseCollection<NetworkUser> GetUserAssociatedAccounts(long id, SimpleQuery parameters = null)
 {
     return GetUsersAssociatedAccounts(new[] { id }, parameters);
 }
示例#20
0
 /// <summary>
 /// Makes a request to API method /me/privileges
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/me-privileges</para>
 /// </summary>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the privileges the authenticated user has.</returns>
 public IBridgeResponseCollection <Privilege> GetMyPrivileges(SimpleQuery parameters = null)
 {
     return(GetApiResultCollection <Privilege, SimpleQuery>(ApiMethodEnum.MyPrivileges, parameters));
 }