RedditSharp.Things.Subreddit.GetModerationLog C# (CSharp) Метод

GetModerationLog() публичный Метод

Gets the moderation log of the current subreddit filtered by moderator(s) who performed the action
public GetModerationLog ( string mods ) : Listing
mods string String array of mods to filter by
Результат Listing
        public Listing<ModAction> GetModerationLog(string[] mods)
        {
            return new Listing<ModAction>(Reddit, string.Format(ModLogUrl + "?mod={1}", Name, string.Join(",", mods)), WebAgent);
        }
        /// <summary>

Same methods

Subreddit::GetModerationLog ( ) : Listing
Subreddit::GetModerationLog ( ModActionType action ) : Listing
Subreddit::GetModerationLog ( ModActionType action, string mods ) : Listing

Usage Example

Пример #1
0
        public void Run(IWebAgent agent, string subreddit, Tweeter tweeter)
        {
            sub        = RedditSharp.Things.Subreddit.GetByNameAsync(agent, subreddit).Result;
            subTweeter = tweeter;
            var stream = sub.GetModerationLog().Stream();

            stream.Subscribe(this);
            stream.Enumerate(new System.Threading.CancellationToken());
        }