コード例 #1
0
ファイル: CommentFilter.cs プロジェクト: alexhebert90/ItsBot
        private bool NotRecentlyProcessed(CommentChildData comment)
        {
            if (comment == null)
            {
                throw new ArgumentNullException(nameof(comment));
            }

            return(!RecentCommentsIds.Contains(comment.Id));
        }
コード例 #2
0
ファイル: CommentFilter.cs プロジェクト: alexhebert90/ItsBot
        private void ProcessComment(CommentChildData comment)
        {
            // TEMPORARY MEASURE!! REMOVE IN FINAL!!!
            Console.WriteLine($"{comment.Author} : {comment.Id}");
            Console.WriteLine();


            RecentCommentsIds.Enqueue(comment.Id);
        }