/// <summary> /// Inserts Advanced reminder properties into the database, with a link to the reminder by it's ID /// </summary> /// <param name="avr"></param> /// <returns>The id of the newly inserted row. -1 if something went wrong</returns> public static long InsertAVRProperties(AdvancedReminderProperties avr) { //First check if the reminder exists if (DLReminders.GetReminderById(avr.Remid) == null) { return(-1); } return(DLLocalDatabase.AVRProperty.InsertAVRProperties(avr)); }
/// <summary> /// Get the advanced Reminder files/folders /// </summary> /// <param name="remId">The id of the reminder</param> /// <returns></returns> public static List <AdvancedReminderFilesFolders> GetAVRFilesFolders(long remId) { //First check if the reminder exists if (DLReminders.GetReminderById(remId) == null) { return(null); } return(DLLocalDatabase.AVRProperty.GetAVRFilesFolders(remId)); }
/// <summary> /// Inserts file/folder actions into the database, with a link to the reminder by it's ID /// </summary> /// <param name="avr"></param> /// <returns>The id of the newly inserted row. -1 if something went wrong</returns> public static long InsertAVRFilesFolders(AdvancedReminderFilesFolders avr) { //First check if the reminder exists if (DLReminders.GetReminderById(avr.Remid) == null) { return(-1); } return(DLAVRProperties.InsertAVRFilesFolders(avr)); }
/// <summary> /// Get the advanced Reminder properties for a reminder /// </summary> /// <param name="remId">The id of the reminder</param> /// <returns></returns> public static AdvancedReminderProperties GetAVRProperties(long remId) { //First check if the reminder exists if (DLReminders.GetReminderById(remId) == null) { return(null); } return(DLAVRProperties.GetAVRProperties(remId)); }
/// <summary> /// Gets an reminder with the matching unique id. /// </summary> /// <param name="id">The unique id</param> /// <returns>Reminder that matches the given id. null if no reminder was found</returns> public static Reminder GetReminderById(long id) { if (id != -1) { return(DLReminders.GetReminderById(id)); } else { return(null); } }
/// <summary> /// Gets an reminder with the matching unique id. /// </summary> /// <param name="id">The unique id</param> /// <returns>Reminder that matches the given id. null if no reminder was found</returns> public static Reminder GetReminderById(long id) { BLIO.Log("BLReminder.GetReminderById(" + id + ")"); if (id != -1) { return(DLReminders.GetReminderById(id)); } else { return(null); } }
/// <summary> /// Gets an reminder with the matching unique id. /// </summary> /// <param name="id">The unique id</param> /// <returns>Reminder that matches the given id. null if no reminder was found</returns> public static Reminder GetReminderById(long id) { BLIO.Log("BLReminder.GetReminderById(" + id + ")"); if (id != -1) { Reminder reminder = DLReminders.GetReminderById(id); GC.Collect(); return(reminder); } else { return(null); } }