A simple query that can be constrained to a window in time.
Inheritance: SimpleQuery, IRangedQuery
Exemplo n.º 1
0
 /// <summary>
 /// Makes a request to API method /revisions/{ids}
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/revisions-by-guids</para>
 /// </summary>
 /// <param name="guids">The revision {ids} vector.</param>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns edit revisions identified by <paramref name="guids"/>.</returns>
 public override IBridgeResponseCollection<Revision> GetRevisions(Guid[] guids, RangedQuery parameters = null)
 {
     return GetApiResultCollection<Revision, RangedQuery>(ApiMethodEnum.RevisionsByGuids, CreateIdsVector(guids), parameters);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Makes a request to API method /questions/{ids}/timeline
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/questions-timeline</para>
 /// </summary>
 /// <param name="id">The single question in {ids}.</param>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the timeline for the question identified by <paramref name="id"/>.</returns>
 public override IBridgeResponseCollection<QuestionTimeline> GetQuestionTimeline(long id, RangedQuery parameters = null)
 {
     return GetQuestionsTimeline(new[] { id }, parameters);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Makes a request to API method /revisions/{ids}
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/revisions-by-guids</para>
 /// </summary>
 /// <param name="guid">The single revision in {ids}.</param>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the edit revision identified by <paramref name="guid"/>.</returns>
 public override IBridgeResponseItem<Revision> GetRevision(Guid guid, RangedQuery parameters = null)
 {
     return GetRevisions(new[] { guid }, parameters).Single();
 }
Exemplo n.º 4
0
 /// <summary>
 /// Makes a request to API method /posts/{ids}/revisions
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/revisions-by-ids</para>
 /// </summary>
 /// <param name="id">The single post in {ids}.</param>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the edit revisions on the post identified by <paramref name="id"/>.</returns>
 public override IBridgeResponseCollection<Revision> GetPostRevisions(long id, RangedQuery parameters = null)
 {
     return GetPostsRevisions(new[] { id }, parameters);
 }
Exemplo n.º 5
0
 /// <summary>
 /// Makes a request to API method /questions/{ids}/timeline
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/questions-timeline</para>
 /// </summary>
 /// <param name="ids">The question {ids} vector.</param>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the timeline for questions identified by <paramref name="ids"/>.</returns>
 public override IBridgeResponseCollection<QuestionTimeline> GetQuestionsTimeline(long[] ids, RangedQuery parameters = null)
 {
     return GetApiResultCollection<QuestionTimeline, RangedQuery>(ApiMethodEnum.QuestionsTimeline, CreateIdsVector(ids), parameters);
 }
Exemplo n.º 6
0
 /// <summary>
 /// Makes a request to API method /badges/recipients
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/badge-recipients</para>
 /// </summary>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns recently awarded badges in the system.</returns>
 public override IBridgeResponseCollection<Badge> GetBadgesRecipients(RangedQuery parameters = null)
 {
     return GetApiResultCollection<Badge, RangedQuery>(ApiMethodEnum.BadgeRecipients, parameters);
 }
Exemplo n.º 7
0
 /// <summary>
 /// Makes a request to API method /badges/{ids}/recipients
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/badge-recipients-by-ids</para>
 /// </summary>
 /// <param name="ids">The badge {ids} vector.</param>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns recently awarded badges in the system, constrained to a certain set of badges identified by <paramref name="ids"/>.</returns>
 public override IBridgeResponseCollection<Badge> GetBadgesRecipients(long[] ids, RangedQuery parameters = null)
 {
     return GetApiResultCollection<Badge, RangedQuery>(ApiMethodEnum.BadgeRecipientsByIds, CreateIdsVector(ids), parameters);
 }
Exemplo n.º 8
0
 /// <summary>
 /// Makes a request to API method /users/{ids}/reputation
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/reputation-on-users</para>
 /// </summary>
 /// <param name="ids">The user {ids} vector.</param>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the reputation changes for the users identified by <paramref name="ids"/>.</returns>
 public override IBridgeResponseCollection<Reputation> GetUsersReputationChanges(long[] ids, RangedQuery parameters = null)
 {
     return GetApiResultCollection<Reputation, RangedQuery>(ApiMethodEnum.ReputationOnUsers, CreateIdsVector(ids), parameters);
 }
Exemplo n.º 9
0
 /// <summary>
 /// Makes a request to API method /badges/{ids}/recipients
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/badge-recipients-by-ids</para>
 /// </summary>
 /// <param name="id">The single badge in {ids}.</param>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns recently awarded badges in the system, constrained to a badge identified by <paramref name="id"/>.</returns>
 public override IBridgeResponseCollection<Badge> GetBadgeRecipients(long id, RangedQuery parameters = null)
 {
     return GetBadgesRecipients(new[] { id }, parameters);
 }
Exemplo n.º 10
0
 /// <summary>
 /// Makes a request to API method /users/{ids}/reputation
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/reputation-on-users</para>
 /// </summary>
 /// <param name="id">The single user in {ids}.</param>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the reputation changes for the user identified by <paramref name="id"/>.</returns>
 public override IBridgeResponseCollection<Reputation> GetUserReputationChanges(long id, RangedQuery parameters = null)
 {
     return GetUsersReputationChanges(new[] { id }, parameters);
 }
Exemplo n.º 11
0
 /// <summary>
 /// Makes a request to API method /me/timeline
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/me-timeline</para>
 /// </summary>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns a subset of actions the authenticated user have taken on the system.</returns>
 public IBridgeResponseCollection<UserTimeline> GetMyTimeline(RangedQuery parameters = null)
 {
     return GetApiResultCollection<UserTimeline, RangedQuery>(ApiMethodEnum.MyTimeline, parameters);
 }
Exemplo n.º 12
0
 /// <summary>
 /// Makes a request to API method /me/reputation
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/me-reputation</para>
 /// </summary>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the reputation changes for the authenticated user.</returns>
 public IBridgeResponseCollection<Reputation> GetMyReputationChanges(RangedQuery parameters = null)
 {
     return GetApiResultCollection<Reputation, RangedQuery>(ApiMethodEnum.MyReputation, parameters);
 }
Exemplo n.º 13
0
 /// <summary>
 /// Makes a request to API method /me/timeline
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/me-timeline</para>
 /// </summary>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns a subset of actions the authenticated user have taken on the system.</returns>
 public IBridgeResponseCollection <UserTimeline> GetMyTimeline(RangedQuery parameters = null)
 {
     return(GetApiResultCollection <UserTimeline, RangedQuery>(ApiMethodEnum.MyTimeline, parameters));
 }
Exemplo n.º 14
0
 /// <summary>
 /// Makes a request to API method /me/reputation
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/me-reputation</para>
 /// </summary>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the reputation changes for the authenticated user.</returns>
 public IBridgeResponseCollection <Reputation> GetMyReputationChanges(RangedQuery parameters = null)
 {
     return(GetApiResultCollection <Reputation, RangedQuery>(ApiMethodEnum.MyReputation, parameters));
 }