The badge query parameters.
Inheritance: ComplexQuery
Esempio n. 1
0
 /// <summary>
 /// Makes a request to API method /badges/{ids}
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/badges-by-ids</para>
 /// </summary>
 /// <param name="ids">The badge {ids} vector.</param>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the set of badges identified by <paramref name="ids"/>.</returns>
 public override IBridgeResponseCollection<Badge> GetBadges(long[] ids, BadgesQuery parameters = null)
 {
     return GetApiResultCollection<Badge, BadgesQuery>(ApiMethodEnum.BadgesByIds, CreateIdsVector(ids), parameters);
 }
Esempio n. 2
0
 /// <summary>
 /// Makes a request to API method /badges/{ids}
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/badges-by-ids</para>
 /// </summary>
 /// <param name="id">The single badge in {ids}.</param>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the badge identified by <paramref name="id"/>.</returns>
 public override IBridgeResponseItem<Badge> GetBadge(long id, BadgesQuery parameters = null)
 {
     return GetBadges(new[] { id }, parameters).Single();
 }