The related question query parameters.
Inheritance: ComplexQuery
コード例 #1
0
ファイル: StackClient.cs プロジェクト: bevacqua/BridgeStack
 /// <summary>
 /// Makes a request to API method /questions/{ids}/related
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/related-questions</para>
 /// </summary>
 /// <param name="ids">The question {ids} vector.</param>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns questions that the site considers related to those identified by <paramref name="ids"/>.</returns>
 public override IBridgeResponseCollection<Question> GetQuestionsRelated(long[] ids, QuestionsRelatedQuery parameters = null)
 {
     return GetApiResultCollection<Question, QuestionsRelatedQuery>(ApiMethodEnum.RelatedQuestions, CreateIdsVector(ids), parameters);
 }
コード例 #2
0
ファイル: StackClient.cs プロジェクト: bevacqua/BridgeStack
 /// <summary>
 /// Makes a request to API method /questions/{ids}/related
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/related-questions</para>
 /// </summary>
 /// <param name="id">The single question in {ids}.</param>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns questions that the site considers related to that identified by <paramref name="id"/>.</returns>
 public override IBridgeResponseCollection<Question> GetQuestionRelated(long id, QuestionsRelatedQuery parameters = null)
 {
     return GetQuestionsRelated(new[] { id }, parameters);
 }