/// <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); }
/// <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); }
/// <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); }
/// <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); }
/// <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); }
/// <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(); }
/// <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); }
/// <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 /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)); }
/// <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 /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); }
/// <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); }
/// <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); }
/// <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); }
/// <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); }
/// <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)); }