/// <summary> /// Makes a request to API method /suggested-edits/{ids} /// <para>Documentation can be found following the link below:</para> /// <para>https://api.stackexchange.com/docs/suggested-edits-by-ids</para> /// </summary> /// <param name="ids">The suggested edit {ids} vector.</param> /// <param name="parameters">The request parameters.</param> /// <returns>Returns the set of suggested edits identified by <paramref name="ids"/>.</returns> public override IBridgeResponseCollection<SuggestedEdit> GetSuggestedEdits(long[] ids, SuggestedEditsQuery parameters = null) { return GetApiResultCollection<SuggestedEdit, SuggestedEditsQuery>(ApiMethodEnum.SuggestedEditsByIds, CreateIdsVector(ids), parameters); }
/// <summary> /// Makes a request to API method /suggested-edits /// <para>Documentation can be found following the link below:</para> /// <para>https://api.stackexchange.com/docs/suggested-edits</para> /// </summary> /// <param name="parameters">The request parameters.</param> /// <returns>Returns all the suggested edits in the system.</returns> public override IBridgeResponseCollection<SuggestedEdit> GetSuggestedEdits(SuggestedEditsQuery parameters = null) { return GetApiResultCollection<SuggestedEdit, SuggestedEditsQuery>(ApiMethodEnum.SuggestedEdits, parameters); }
/// <summary> /// Makes a request to API method /posts/{ids}/suggested-edits /// <para>Documentation can be found following the link below:</para> /// <para>https://api.stackexchange.com/docs/posts-on-suggested-edits</para> /// </summary> /// <param name="id">The single post in {ids}.</param> /// <param name="parameters">The request parameters.</param> /// <returns>Returns the suggested edits on the post identified by <paramref name="id"/>.</returns> public override IBridgeResponseCollection<SuggestedEdit> GetPostSuggestedEdits(long id, SuggestedEditsQuery parameters = null) { return GetPostsSuggestedEdits(new[] { id }, parameters); }
/// <summary> /// Makes a request to API method /suggested-edits/{ids} /// <para>Documentation can be found following the link below:</para> /// <para>https://api.stackexchange.com/docs/suggested-edits-by-ids</para> /// </summary> /// <param name="id">The single suggested edit in {ids}.</param> /// <param name="parameters">The request parameters.</param> /// <returns>Returns the suggested edis identified by <paramref name="id"/>.</returns> public override IBridgeResponseItem<SuggestedEdit> GetSuggestedEdit(long id, SuggestedEditsQuery parameters = null) { return GetSuggestedEdits(new[] { id }, parameters).Single(); }
/// <summary> /// Makes a request to API method /me/suggested-edits /// <para>Documentation can be found following the link below:</para> /// <para>https://api.stackexchange.com/docs/me-suggested-edits</para> /// </summary> /// <param name="parameters">The request parameters.</param> /// <returns>Returns the suggested edits the authenticated user submitted.</returns> public IBridgeResponseCollection <SuggestedEdit> GetMySuggestedEdits(SuggestedEditsQuery parameters = null) { return(GetApiResultCollection <SuggestedEdit, SuggestedEditsQuery>(ApiMethodEnum.MySuggestedEdits, parameters)); }