public Note(string title, Checklist checklist, NoteColor color = null) : this() { this.title = title; this.text = ""; this.color = color is NoteColor ? color : NoteColor.DEFAULT; this.isChecklist = true; this.checklist = checklist; }
internal Note(string id, string title, string text, Checklist checklist, NoteImages images, NoteColor color, DateTime?createdAt, DateTime?updatedAt, DateTime?archivedAt) : this() { this.isChecklist = checklist != null && checklist.Count > 0; this.id = id; this.title = title; this.text = this.isChecklist ? "" : text; this.checklist = checklist; this.images = images; this.color = color is NoteColor ? color : NoteColor.DEFAULT; this.createdAt = createdAt; this.updatedAt = updatedAt; this.archivedAt = archivedAt; }
public Note(string title, string text = "", NoteColor color = null) : this() { this.title = title; this.text = text; this.color = color is NoteColor ? color : NoteColor.DEFAULT; }