/// <summary> /// Return a list of other submissions of the same URL. /// </summary> /// <param name="listingsGetDuplicatesInput">A valid ListingsGetDuplicatesInput instance</param> /// <returns>A list of matching posts.</returns> public List <LinkPost> GetDuplicates(ListingsGetDuplicatesInput listingsGetDuplicatesInput) { Lists.GetPosts(Validate(Dispatch.Listings.GetDuplicates(Id, listingsGetDuplicatesInput)), Dispatch, out List <LinkPost> linkPosts); return(linkPosts); }
/// <summary> /// Return a list of crossposts. /// </summary> /// <param name="listingsGetDuplicatesInput">A valid ListingsGetDuplicatesInput instance</param> /// <returns>A list of matching posts.</returns> public List <LinkPost> GetCrossPosts(ListingsGetDuplicatesInput listingsGetDuplicatesInput) { listingsGetDuplicatesInput.crossposts_only = true; return(GetDuplicates(listingsGetDuplicatesInput)); }
/// <summary> /// Return a list of other submissions of the same URL /// This endpoint is a listing. /// </summary> /// <param name="article">The base 36 ID of a Link</param> /// <param name="listingsGetDuplicatesInput">A valid ListingsGetDuplicatesInput instance</param> /// <returns>A list of matching posts.</returns> public List <PostContainer> GetDuplicates(string article, ListingsGetDuplicatesInput listingsGetDuplicatesInput) { return(SendRequest <List <PostContainer> >("duplicates/" + article, listingsGetDuplicatesInput)); }