public static void NotificationMessage(int push_id, string message, DateTime dst_date, NotificationRepeatInterval repeatInterval) { if (repeatInterval == NotificationRepeatInterval.None && dst_date <= DateTime.get_Now()) { return; } long timeInSecond = LocalForAndroidManager.GetTimeInSecond(dst_date); if (repeatInterval == NotificationRepeatInterval.None) { LocalForAndroidManager.SendNotification(push_id, timeInSecond, message, true, true, true, "app_icon", LocalForAndroidManager.NotificationExecuteMode.Inexact); } else if (repeatInterval == NotificationRepeatInterval.Day) { LocalForAndroidManager.SendRepeatingNotification(push_id, timeInSecond, 86400L, message, true, true, true, "app_icon"); } else if (repeatInterval == NotificationRepeatInterval.Week) { LocalForAndroidManager.SendRepeatingNotification(push_id, timeInSecond, 604800L, message, true, true, true, "app_icon"); } else if (repeatInterval == NotificationRepeatInterval.ForTest) { LocalForAndroidManager.SendRepeatingNotification(push_id, timeInSecond, 5L, message, true, true, true, "app_icon"); } else if (repeatInterval == NotificationRepeatInterval.ForTest2) { LocalForAndroidManager.SendRepeatingNotification(push_id, timeInSecond, 60L, message, true, true, true, "app_icon"); } }
public static void NotificationMessage(int push_id, string message, DateTime newDate, NotificationRepeatInterval repeatInterval) { NativeCallManager.SavePushIDs(push_id); LocalForAndroidManager.NotificationMessage(push_id, message, newDate, repeatInterval); }
public static void NotificationMessage(int push_id, string message, int hour, int minute, NotificationRepeatInterval repeatInterval) { int year = DateTime.get_Now().get_Year(); int month = DateTime.get_Now().get_Month(); int day = DateTime.get_Now().get_Day(); DateTime dst_date = new DateTime(year, month, day, hour, minute, 0); LocalForAndroidManager.NotificationMessage(push_id, message, dst_date, repeatInterval); }