/// <summary> /// Set a suggested sort for a link asynchronously. /// Suggested sorts are useful to display comments in a certain preferred way for posts. /// For example, casual conversation may be better sorted by new by default, or AMAs may be sorted by Q&A. /// A sort of an empty string clears the default sort. /// </summary> /// <param name="linksAndCommentsSuggestedSortInput">A valid LinksAndCommentsSuggestedSortInput instance</param> /// <returns>A generic response object indicating any errors.</returns> public async Task <GenericContainer> SetSuggestedSortAsync(LinksAndCommentsSuggestedSortInput linksAndCommentsSuggestedSortInput) { return(await SendRequestAsync <GenericContainer>("api/set_suggested_sort", linksAndCommentsSuggestedSortInput, Method.POST)); }
/// <summary> /// Set a suggested sort for a link. /// Suggested sorts are useful to display comments in a certain preferred way for posts. /// For example, casual conversation may be better sorted by new by default, or AMAs may be sorted by Q&A. /// A sort of an empty string clears the default sort. /// </summary> /// <param name="linksAndCommentsSuggestedSortInput">A valid LinksAndCommentsSuggestedSortInput instance</param> /// <returns>A generic response object indicating any errors.</returns> public GenericContainer SetSuggestedSort(LinksAndCommentsSuggestedSortInput linksAndCommentsSuggestedSortInput) { return(SendRequest <GenericContainer>("api/set_suggested_sort", linksAndCommentsSuggestedSortInput, Method.POST)); }