Exemplo n.º 1
0
 public BaseNote(long id, string title, ScheduledNotification scheduledNotification)
     : base(id)
 {
     this.Id    = id;
     this.title = title;
     this.ScheduledNotification = scheduledNotification;
 }
Exemplo n.º 2
0
 public BaseNote(long id, string title, ScheduledNotification scheduledNotification)
     : base(id)
 {
     this.Id = id;
     this.title = title;
     this.ScheduledNotification = scheduledNotification;
 }
Exemplo n.º 3
0
 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;
 }
Exemplo n.º 4
0
 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;
 }
Exemplo n.º 5
0
 public TodoNote(long id, string title, ScheduledNotification notificationDateTime, ObservableCollection<TodoEntry> toDoEntries)
     : base(id, title, notificationDateTime)
 {
     this.todoEntries = toDoEntries;
 }
Exemplo n.º 6
0
 protected BaseNote() : base()
 {
     this.ScheduledNotification = null;
 }
Exemplo n.º 7
0
 public TodoNote(long id, string title, ScheduledNotification notificationDateTime, ObservableCollection <TodoEntry> toDoEntries)
     : base(id, title, notificationDateTime)
 {
     this.todoEntries = toDoEntries;
 }
Exemplo n.º 8
0
 public SimpleNote(long id, string title, ScheduledNotification schedule, string content)
     : base(id, title, schedule)
 {
     this.Content = content;
 }
Exemplo n.º 9
0
 public PhotoNote(long id, string title, ScheduledNotification schedule, string content, string photoPath)
     : base(id, title, schedule)
 {
     this.Content   = content;
     this.PhotoPath = photoPath;
 }
Exemplo n.º 10
0
 public SimpleNote(long id, string title, ScheduledNotification schedule, string content)
     : base(id, title, schedule)
 {
     this.Content = content;
 }
Exemplo n.º 11
0
 public PhotoNote(long id, string title, ScheduledNotification schedule, string content, string photoPath)
     : base(id, title, schedule)
 {
     this.Content = content;
     this.PhotoPath = photoPath;
 }