The post query parameters.
Inheritance: ComplexQuery
Example #1
0
 /// <summary>
 /// Makes a request to API method /questions/{ids}
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/questions-by-ids</para>
 /// </summary>
 /// <param name="id">The single question in {ids}.</param>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the set of question identified by <paramref name="id"/>.</returns>
 public override IBridgeResponseItem<Question> GetQuestion(long id, PostsQuery parameters = null)
 {
     return GetQuestions(new[] { id }, parameters).Single();
 }
Example #2
0
 /// <summary>
 /// Makes a request to API method /posts
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/posts</para>
 /// </summary>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns all the posts (questions and answers) in the system.</returns>
 public override IBridgeResponseCollection<Post> GetPosts(PostsQuery parameters = null)
 {
     return GetApiResultCollection<Post, PostsQuery>(ApiMethodEnum.Posts, parameters);
 }
Example #3
0
 /// <summary>
 /// Makes a request to API method /posts/{ids}
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/posts-by-ids</para>
 /// </summary>
 /// <param name="ids">The posts {ids} vector.</param>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the set of posts (questions and answers) identified by <paramref name="ids"/>.</returns>
 public override IBridgeResponseCollection<Post> GetPosts(long[] ids, PostsQuery parameters = null)
 {
     return GetApiResultCollection<Post, PostsQuery>(ApiMethodEnum.PostsByIds, CreateIdsVector(ids), parameters);
 }
Example #4
0
 /// <summary>
 /// Makes a request to API method /users/{ids}/tags/{tags}/top-questions
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/top-user-questions-in-tags</para>
 /// </summary>
 /// /// <param name="id">The single user {id}.</param>
 /// <param name="tags">The {tags} vector.</param>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the top questions the users identified by <paramref name="id"/> has asked with the given <paramref name="tags"/>.</returns>
 public override IBridgeResponseCollection<Question> GetUserTopQuestions(long id, string[] tags, PostsQuery parameters = null)
 {
     IRequestVector[] vectors = new[] { CreateIdVector(id), CreateTagsVector(tags) };
     return GetApiResultCollection<Question, PostsQuery>(ApiMethodEnum.TopUserQuestionsInTags, vectors, parameters);
 }
Example #5
0
 /// <summary>
 /// Makes a request to API method /answers
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/answers</para>
 /// </summary>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns all the undeleted answers in the system.</returns>
 public override IBridgeResponseCollection<Answer> GetAnswers(PostsQuery parameters = null)
 {
     return GetApiResultCollection<Answer, PostsQuery>(ApiMethodEnum.Answers, parameters);
 }
Example #6
0
 /// <summary>
 /// Makes a request to API method /questions/no-answers
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/no-answer-questions</para>
 /// </summary>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns questions which have received no answers.</returns>
 public override IBridgeResponseCollection<Question> GetQuestionsWithNoAnswers(PostsQuery parameters = null)
 {
     return GetApiResultCollection<Question, PostsQuery>(ApiMethodEnum.NoAnswerQuestions, parameters);
 }
Example #7
0
 /// <summary>
 /// Makes a request to API method /me/questions/unanswered
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/me-unanswered-questions</para>
 /// </summary>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the questions the authenticated user asked, which the site consideres unanswered, while still having at least one answer posted.</returns>
 public IBridgeResponseCollection <Question> GetMyQuestionsConsideredUnanswered(PostsQuery parameters = null)
 {
     return(GetApiResultCollection <Question, PostsQuery>(ApiMethodEnum.MyUnansweredQuestions, parameters));
 }
Example #8
0
 /// <summary>
 /// Makes a request to API method /users/{ids}/questions/unanswered
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/unanswered-questions-on-users</para>
 /// </summary>
 /// <param name="id">The single user in {ids}.</param>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the questions the user identified by <paramref name="id"/> asked, which the site consideres unanswered, while still having at least one answer posted.</returns>
 public override IBridgeResponseCollection<Question> GetUserQuestionsConsideredUnanswered(long id, PostsQuery parameters = null)
 {
     return GetUsersQuestionsConsideredUnanswered(new[] { id }, parameters);
 }
Example #9
0
 /// <summary>
 /// Makes a request to API method /users/{ids}/questions/unaccepted
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/unaccepted-questions-on-users</para>
 /// </summary>
 /// <param name="id">The single user in {ids}.</param>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the questions the user identified by <paramref name="id"/> asked, which have at least one answer, but no accepted answer.</returns>
 public override IBridgeResponseCollection<Question> GetUserQuestionsWithNoAcceptedAnswer(long id, PostsQuery parameters = null)
 {
     return GetUsersQuestionsWithNoAcceptedAnswer(new[] { id }, parameters);
 }
 /// <summary>
 /// Makes a request to API method /me/questions/unaccepted
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/me-unaccepted-questions</para>
 /// </summary>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the questions the authenticated user asked, which have at least one answer, but no accepted answer.</returns>
 public IBridgeResponseCollection<Question> GetMyQuestionsWithNoAcceptedAnswer(PostsQuery parameters = null)
 {
     return GetApiResultCollection<Question, PostsQuery>(ApiMethodEnum.MyUnacceptedQuestions, parameters);
 }
 /// <summary>
 /// Makes a request to API method /me/tags/{tags}/top-questions
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/me-tags-top-questions</para>
 /// </summary>
 /// <param name="tags">The {tags} vector.</param>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the top questions the authenticated user has asked with the given <paramref name="tags"/>.</returns>
 public IBridgeResponseCollection<Question> GetMyTopQuestions(string[] tags, PostsQuery parameters = null)
 {
     return GetApiResultCollection<Question, PostsQuery>(ApiMethodEnum.MyTopQuestionsInTags, CreateTagsVector(tags), parameters);
 }
 /// <summary>
 /// Makes a request to API method /me/questions
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/me-questions</para>
 /// </summary>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the questions the authenticated user asked.</returns>
 public IBridgeResponseCollection<Question> GetMyQuestions(PostsQuery parameters = null)
 {
     return GetApiResultCollection<Question, PostsQuery>(ApiMethodEnum.MyQuestions, parameters);
 }
Example #13
0
 /// <summary>
 /// Makes a request to API method /me/answers
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/me-answers</para>
 /// </summary>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the answers the authenticated user posted.</returns>
 public IBridgeResponseCollection <Answer> GetMyAnswers(PostsQuery parameters = null)
 {
     return(GetApiResultCollection <Answer, PostsQuery>(ApiMethodEnum.MyAnswers, parameters));
 }
Example #14
0
 /// <summary>
 /// Makes a request to API method /me/tags/{tags}/top-questions
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/me-tags-top-questions</para>
 /// </summary>
 /// <param name="tags">The {tags} vector.</param>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the top questions the authenticated user has asked with the given <paramref name="tags"/>.</returns>
 public IBridgeResponseCollection <Question> GetMyTopQuestions(string[] tags, PostsQuery parameters = null)
 {
     return(GetApiResultCollection <Question, PostsQuery>(ApiMethodEnum.MyTopQuestionsInTags, CreateTagsVector(tags), parameters));
 }
Example #15
0
 /// <summary>
 /// Makes a request to API method /questions/{ids}/answers
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/answers-on-questions</para>
 /// </summary>
 /// <param name="ids">The question {ids} vector.</param>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the answers on the questions identified by <paramref name="ids"/>.</returns>
 public override IBridgeResponseCollection<Answer> GetQuestionsAnswers(long[] ids, PostsQuery parameters = null)
 {
     return GetApiResultCollection<Answer, PostsQuery>(ApiMethodEnum.AnswersOnQuestions, CreateIdsVector(ids), parameters);
 }
Example #16
0
 /// <summary>
 /// Makes a request to API method /answers/{ids}
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/answers-by-ids</para>
 /// </summary>
 /// <param name="id">The single answer in {ids}.</param>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the answer identified by <paramref name="id"/>.</returns>
 public override IBridgeResponseItem<Answer> GetAnswer(long id, PostsQuery parameters = null)
 {
     return GetAnswers(new[] { id }, parameters).Single();
 }
Example #17
0
 /// <summary>
 /// Makes a request to API method /questions/unanswered
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/unanswered-questions</para>
 /// </summary>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns questions the site considers to be unanswered.</returns>
 public override IBridgeResponseCollection<Question> GetQuestionsConsideredUnanswered(PostsQuery parameters = null)
 {
     return GetApiResultCollection<Question, PostsQuery>(ApiMethodEnum.UnansweredQuestions, parameters);
 }
Example #18
0
 /// <summary>
 /// Makes a request to API method /users/{ids}/questions/no-answers
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/no-answer-questions-on-users</para>
 /// </summary>
 /// <param name="ids">The user {ids} vector.</param>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the questions the users identified by <paramref name="ids"/> asked, which have no answers.</returns>
 public override IBridgeResponseCollection<Question> GetUsersQuestionsWithNoAnswers(long[] ids, PostsQuery parameters = null)
 {
     return GetApiResultCollection<Question, PostsQuery>(ApiMethodEnum.NoAnswerQuestionsOnUsers, CreateIdsVector(ids), parameters);
 }
Example #19
0
 /// <summary>
 /// Makes a request to API method /users/{ids}/answers
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/answers-on-users</para>
 /// </summary>
 /// <param name="id">The single user in {ids}.</param>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the answers the user identified by <paramref name="id"/> posted.</returns>
 public override IBridgeResponseCollection<Answer> GetUserAnswers(long id, PostsQuery parameters = null)
 {
     return GetUsersAnswers(new[] { id }, parameters);
 }
Example #20
0
 /// <summary>
 /// Makes a request to API method /me/questions/unaccepted
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/me-unaccepted-questions</para>
 /// </summary>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the questions the authenticated user asked, which have at least one answer, but no accepted answer.</returns>
 public IBridgeResponseCollection <Question> GetMyQuestionsWithNoAcceptedAnswer(PostsQuery parameters = null)
 {
     return(GetApiResultCollection <Question, PostsQuery>(ApiMethodEnum.MyUnacceptedQuestions, parameters));
 }