public Note(string title = "", string text = "", NoteColor color = null) : base() { this.Title = title; this.Text = text; this.Color = color; this.IsChecklist = false; }
public Note(string title, Checklist checklist, NoteColor color = null) : base() { this.Title = title; this.Text = ""; this.Color = color; this.IsChecklist = true; this.Checklist = checklist; }
internal Note(string id, string title, string text, Checklist checklist, NoteColor color, DateTime?createdAt, DateTime?updatedAt) : this() { this.id = id; this.title = title; this.text = text; this.checklist = checklist; this.color = color is NoteColor ? color : NoteColor.DEFAULT; this.createdAt = createdAt; this.updatedAt = updatedAt; this.isChecklist = checklist != null; }