The post comments query parameters.
Inheritance: ComplexQuery
Beispiel #1
0
 /// <summary>
 /// Makes a request to API method /questions/{ids}/comments
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/comments-on-questions</para>
 /// </summary>
 /// <param name="id">The single question in {ids}.</param>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the comments on the question identified by <paramref name="id"/>.</returns>
 public override IBridgeResponseCollection<Comment> GetQuestionComments(long id, CommentsQuery parameters = null)
 {
     return GetQuestionsComments(new[] { id }, parameters);
 }
Beispiel #2
0
 /// <summary>
 /// Makes a request to API method /questions/{ids}/comments
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/comments-on-questions</para>
 /// </summary>
 /// <param name="ids">The question {ids} vector.</param>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the comments on the questions identified by <paramref name="ids"/>.</returns>
 public override IBridgeResponseCollection<Comment> GetQuestionsComments(long[] ids, CommentsQuery parameters = null)
 {
     return GetApiResultCollection<Comment, CommentsQuery>(ApiMethodEnum.CommentsOnQuestions, CreateIdsVector(ids), parameters);
 }
Beispiel #3
0
 /// <summary>
 /// Makes a request to API method /comments
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/comments</para>
 /// </summary>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns all the comments on the site.</returns>
 public override IBridgeResponseCollection<Comment> GetComments(CommentsQuery parameters = null)
 {
     return GetApiResultCollection<Comment, CommentsQuery>(ApiMethodEnum.Comments, parameters);
 }
Beispiel #4
0
 /// <summary>
 /// Makes a request to API method /comments/{ids}
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/comments-by-ids</para>
 /// </summary>
 /// <param name="id">The single comment in {ids}.</param>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the comment identified by <paramref name="id"/>.</returns>
 public override IBridgeResponseItem<Comment> GetComment(long id, CommentsQuery parameters = null)
 {
     return GetComments(new[] { id }, parameters).Single();
 }
Beispiel #5
0
 /// <summary>
 /// Makes a request to API method /users/{ids}/comments/{toid}
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/comments-by-users-to-user</para>
 /// </summary>
 /// <param name="ids">The user {ids} vector.</param>
 /// <param name="toId">The user who's mentioned (being replied to). {toid} parameter.</param>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the comments the users identified by <paramref name="ids"/> posted in reply to  the single user identified by <paramref name="toId"/>.</returns>
 public override IBridgeResponseCollection<Comment> GetUsersCommentsInReplyTo(long[] ids, long toId, CommentsQuery parameters = null)
 {
     IRequestVector[] vectors = new[] { CreateIdsVector(ids), CreateNamedVector("{toid}", new[] { toId }) };
     return GetApiResultCollection<Comment, CommentsQuery>(ApiMethodEnum.CommentsByUsersToUser, vectors, parameters);
 }
Beispiel #6
0
 /// <summary>
 /// Makes a request to API method /users/{ids}/comments/{toid}
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/comments-by-users-to-user</para>
 /// </summary>
 /// <param name="id">The single user in {ids}.</param>
 /// <param name="toId">The user who's mentioned (being replied to). {toid} parameter.</param>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the comments the user identified by <paramref name="id"/> posted in reply to  the single user identified by <paramref name="toId"/>.</returns>
 public override IBridgeResponseCollection<Comment> GetUserCommentsInReplyTo(long id, long toId, CommentsQuery parameters = null)
 {
     return GetUsersCommentsInReplyTo(new[] { id }, toId, parameters);
 }
 /// <summary>
 /// Makes a request to API method /me/comments/{toid}
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/me-comments-to</para>
 /// </summary>
 /// <param name="toId">The user who's mentioned (being replied to). {toid} parameter.</param>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the comments the authenticated user posted in reply to  the single user identified by <paramref name="toId"/>.</returns>
 public IBridgeResponseCollection<Comment> GetMyCommentsInReplyTo(long toId, CommentsQuery parameters = null)
 {
     return GetApiResultCollection<Comment, CommentsQuery>(ApiMethodEnum.MyCommentsTo, CreateNamedVector("{toid}", new[] { toId }), parameters);
 }