The question favorites query parameters.
상속: ComplexQuery
예제 #1
0
 /// <summary>
 /// Makes a request to API method /users/{ids}/favorites
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/favorites-on-users</para>
 /// </summary>
 /// <param name="ids">The user {ids} vector.</param>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the questions the users identified by <paramref name="ids"/> favorited.</returns>
 public override IBridgeResponseCollection<Question> GetUsersQuestionFavorites(long[] ids, QuestionFavoritesQuery parameters = null)
 {
     return GetApiResultCollection<Question, QuestionFavoritesQuery>(ApiMethodEnum.FavoritesOnUsers, CreateIdsVector(ids), parameters);
 }
예제 #2
0
 /// <summary>
 /// Makes a request to API method /me/favorites
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/me-favorites</para>
 /// </summary>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the questions the authenticated user favorited.</returns>
 public IBridgeResponseCollection<Question> GetMyQuestionFavorites(QuestionFavoritesQuery parameters = null)
 {
     return GetApiResultCollection<Question, QuestionFavoritesQuery>(ApiMethodEnum.MyFavorites, parameters);
 }
예제 #3
0
 /// <summary>
 /// Makes a request to API method /users/{ids}/favorites
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/favorites-on-users</para>
 /// </summary>
 /// <param name="id">The single user in {ids}.</param>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the questions the user identified by <paramref name="id"/> favorited.</returns>
 public override IBridgeResponseCollection<Question> GetUserQuestionFavorites(long id, QuestionFavoritesQuery parameters = null)
 {
     return GetUsersQuestionFavorites(new[] { id }, parameters);
 }
예제 #4
0
 /// <summary>
 /// Makes a request to API method /me/favorites
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/me-favorites</para>
 /// </summary>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns the questions the authenticated user favorited.</returns>
 public IBridgeResponseCollection <Question> GetMyQuestionFavorites(QuestionFavoritesQuery parameters = null)
 {
     return(GetApiResultCollection <Question, QuestionFavoritesQuery>(ApiMethodEnum.MyFavorites, parameters));
 }