The user query parameters.
Inheritance: ComplexQuery
Esempio n. 1
0
 /// <summary>
 /// Makes a request to API method /users/{ids}
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/users-by-ids</para>
 /// </summary>
 /// <param name="id">The single user in {ids}.</param>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the user identified by <paramref name="id"/>.</returns>
 public override IBridgeResponseItem<User> GetUser(long id, UsersQuery parameters = null)
 {
     return GetUsers(new[] { id }, parameters).Single();
 }
Esempio n. 2
0
 /// <summary>
 /// Makes a request to API method /users/moderators/elected
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/elected-moderators</para>
 /// </summary>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns those users on a site who both have moderator powers, and were actually elected.</returns>
 public override IBridgeResponseCollection<User> GetModeratorsElected(UsersQuery parameters = null)
 {
     return GetApiResultCollection<User, UsersQuery>(ApiMethodEnum.ElectedModerators, parameters);
 }
 /// <summary>
 /// Makes a request to API method /me
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/me</para>
 /// </summary>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the authenticated user.</returns>
 public IBridgeResponseItem<User> GetMyUser(UsersQuery parameters = null)
 {
     return GetApiResultItem<User, UsersQuery>(ApiMethodEnum.Me, parameters);
 }
Esempio n. 4
0
 /// <summary>
 /// Makes a request to API method /users/{ids}
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/users-by-ids</para>
 /// </summary>
 /// <param name="ids">The user {ids} vector.</param>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the set of users identified by <paramref name="ids"/>.</returns>
 public override IBridgeResponseCollection<User> GetUsers(long[] ids, UsersQuery parameters = null)
 {
     return GetApiResultCollection<User, UsersQuery>(ApiMethodEnum.UsersByIds, CreateIdsVector(ids), parameters);
 }
Esempio n. 5
0
 /// <summary>
 /// Makes a request to API method /me
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/me</para>
 /// </summary>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the authenticated user.</returns>
 public IBridgeResponseItem <User> GetMyUser(UsersQuery parameters = null)
 {
     return(GetApiResultItem <User, UsersQuery>(ApiMethodEnum.Me, parameters));
 }