public BaseNote(long id, string title, ScheduledNotification scheduledNotification) : base(id) { this.Id = id; this.title = title; this.ScheduledNotification = scheduledNotification; }
public ScheduledNotification GetNotificationByNoteId(long noteId) { ISQLiteStatement statement = dbConn.Prepare(SELECT_NOTIFICATION_BY_NOTE_ID); statement.Bind(1, noteId); ScheduledNotification notification = null; while (statement.Step() == SQLiteResult.ROW) { notification = new ScheduledNotification((long)statement[0], (string)statement[1], DateTimeOffset.Parse((string)statement[2])); } return notification; }
public static ScheduledNotification GetNotificationById(long notificationId) { ISQLiteStatement statement = dbConn.Prepare(SELECT_SIMPLE_NOTE_NOTIFICATION); statement.Bind(1, notificationId); ScheduledNotification notification = null; while (statement.Step() == SQLiteResult.ROW) { string dateTime = (String)statement[2]; Debug.WriteLine("Getting notification from database.."); Debug.WriteLine("Data before parsing " + dateTime); Debug.WriteLine("Data parsed " + DateTimeOffset.Parse(dateTime)); notification = new ScheduledNotification((long)statement[0], (String)statement[1], DateTimeOffset.Parse(dateTime)); } if (notification == null) { Debug.WriteLine("notificaiton not found"); } return notification; }
public TodoNote(long id, string title, ScheduledNotification notificationDateTime, ObservableCollection<TodoEntry> toDoEntries) : base(id, title, notificationDateTime) { this.todoEntries = toDoEntries; }
protected BaseNote() : base() { this.ScheduledNotification = null; }
public TodoNote(long id, string title, ScheduledNotification notificationDateTime, ObservableCollection <TodoEntry> toDoEntries) : base(id, title, notificationDateTime) { this.todoEntries = toDoEntries; }
public SimpleNote(long id, string title, ScheduledNotification schedule, string content) : base(id, title, schedule) { this.Content = content; }
public PhotoNote(long id, string title, ScheduledNotification schedule, string content, string photoPath) : base(id, title, schedule) { this.Content = content; this.PhotoPath = photoPath; }