The badge query parameters.
Inheritance: ComplexQuery
Exemplo n.º 1
0
 /// <summary>
 /// Makes a request to API method /users/{ids}/badges
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/badges-on-users</para>
 /// </summary>
 /// <param name="id">The single user in {ids}.</param>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the badges the user identified by <paramref name="id"/> earned.</returns>
 public override IBridgeResponseCollection<Badge> GetUserBadges(long id, BadgesOnUserQuery parameters = null)
 {
     return GetUsersBadges(new[] { id }, parameters);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Makes a request to API method /me/badges
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/me-badges</para>
 /// </summary>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the badges the authenticated user earned.</returns>
 public IBridgeResponseCollection<Badge> GetMyBadges(BadgesOnUserQuery parameters = null)
 {
     return GetApiResultCollection<Badge, BadgesOnUserQuery>(ApiMethodEnum.MyBadges, parameters);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Makes a request to API method /users/{ids}/badges
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/badges-on-users</para>
 /// </summary>
 /// <param name="ids">The user {ids} vector.</param>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the badges the users identified by <paramref name="ids"/> earned.</returns>
 public override IBridgeResponseCollection<Badge> GetUsersBadges(long[] ids, BadgesOnUserQuery parameters = null)
 {
     return GetApiResultCollection<Badge, BadgesOnUserQuery>(ApiMethodEnum.BadgesOnUsers, CreateIdsVector(ids), parameters);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Makes a request to API method /me/badges
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/me-badges</para>
 /// </summary>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the badges the authenticated user earned.</returns>
 public IBridgeResponseCollection <Badge> GetMyBadges(BadgesOnUserQuery parameters = null)
 {
     return(GetApiResultCollection <Badge, BadgesOnUserQuery>(ApiMethodEnum.MyBadges, parameters));
 }