示例#1
0
        /// <summary>
        /// Cross-post this to another subreddit.
        /// </summary>
        /// <param name="subreddit">The name of the subreddit being xposted to</param>
        /// <returns>The resulting post data.</returns>
        public SelfPost XPostTo(string subreddit)
        {
            SelfPost res = this;

            res.Subreddit = subreddit;

            return(Validate(res.Submit()));
        }
示例#2
0
        /// <summary>
        /// Cross-post this to another subreddit.
        /// </summary>
        /// <param name="subreddit">The name of the subreddit being xposted to</param>
        /// <param name="creditOriginSub">Whether to include an attribution to the source subreddit in the title (default: true)</param>
        /// <returns>The resulting post data.</returns>
        public SelfPost XPostTo(string subreddit, bool creditOriginSub = true)
        {
            SelfPost res = this;

            res.Subreddit = subreddit;
            if (creditOriginSub)
            {
                res.Title += " • r/" + Subreddit;
            }

            return(Validate(res.Submit()));
        }