コード例 #1
0
ファイル: AuditLog.cs プロジェクト: neoKushan/CleanModQueue
        public AuditRecord Add(string action, string itemId, Dino.Reddit.Data.OneItemData post)
        {
            var r = new AuditRecord(action, itemId, post);

            this.Records.Add(r);
            return(r);
        }
コード例 #2
0
ファイル: AuditLog.cs プロジェクト: neoKushan/CleanModQueue
 public AuditRecord(string action, string reason, Dino.Reddit.Data.OneItemData post)
 {
     this.Action = action;
     this.Reason = reason;
     this.ItemId = post.name;
     this.Reddit = post.subreddit;
     this.PostId = post.link_id;
     this.Author = post.author;
     this.Title  = post.title;
     this.Url    = post.url;
     this.Time   = System.DateTime.Now.ToString("yyyy MMM dd HH:mm:ss");
 }