Exemple #1
0
        /// <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);
        }
Exemple #2
0
        /// <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));
        }
Exemple #3
0
 /// <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));
 }