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); }
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"); }