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

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

Gets the moderation log of the current subreddit filtered by the action taken
public GetModerationLog ( ModActionType action ) : Listing
action ModActionType ModActionType of action performed
Результат Listing
        public Listing<ModAction> GetModerationLog(ModActionType action)
        {
            return new Listing<ModAction>(Reddit, string.Format(ModLogUrl + "?type={1}", Name, ModActionTypeConverter.GetRedditParamName(action)), WebAgent);
        }
        /// <summary>

Same methods

Subreddit::GetModerationLog ( ) : Listing
Subreddit::GetModerationLog ( ModActionType action, string mods ) : Listing
Subreddit::GetModerationLog ( 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());
        }