/// <summary> /// Report this comment to the subreddit moderators asynchronously. The comment then becomes implicitly hidden, as well. /// </summary> /// <param name="linksAndCommentsReportInput">A valid LinksAndCommentsReportInput instance</param> public async Task ReportAsync(LinksAndCommentsReportInput linksAndCommentsReportInput) { Validate(await Dispatch.LinksAndComments.ReportAsync(linksAndCommentsReportInput)); }
/// <summary> /// Report a link, comment or message asynchronously. /// Reporting a thing brings it to the attention of the subreddit's moderators. /// Reporting a message sends it to a system for admin review. /// For links and comments, the thing is implicitly hidden as well (see /api/hide for details). /// </summary> /// <param name="linksAndCommentsReportInput">A valid LinksAndCommentsReportInput instance</param> /// <returns>A return object indicating success.</returns> public async Task <JQueryReturn> ReportAsync(LinksAndCommentsReportInput linksAndCommentsReportInput) { return(await SendRequestAsync <JQueryReturn>("api/report", linksAndCommentsReportInput, Method.POST)); }
/// <summary> /// Report this comment to the subreddit moderators. The comment then becomes implicitly hidden, as well. /// </summary> /// <param name="linksAndCommentsReportInput">A valid LinksAndCommentsReportInput instance</param> public void Report(LinksAndCommentsReportInput linksAndCommentsReportInput) { Validate(Dispatch.LinksAndComments.Report(linksAndCommentsReportInput)); }
/// <summary> /// Report a link, comment or message. /// Reporting a thing brings it to the attention of the subreddit's moderators. /// Reporting a message sends it to a system for admin review. /// For links and comments, the thing is implicitly hidden as well (see /api/hide for details). /// </summary> /// <param name="linksAndCommentsReportInput">A valid LinksAndCommentsReportInput instance</param> /// <returns>A return object indicating success.</returns> public JQueryReturn Report(LinksAndCommentsReportInput linksAndCommentsReportInput) { return(SendRequest <JQueryReturn>("api/report", linksAndCommentsReportInput, Method.POST)); }