private GameLocalNotification DoCreateNotificationGeneralPush1210() { GameLocalNotification notification = new GameLocalNotification("12:10", "I miss you"); DateTime dateTime = DateTime.Now.AddDays(1); DateTime fireTime = new DateTime(dateTime.Year, dateTime.Month, dateTime.Day, 12, 10, 0); notification.SetFireDate(fireTime); notification.SetRepeatInterval(GameCalendarUnit.Day); return(notification); }
private GameLocalNotification DoCreateNotificationTwoTasks() { GameLocalNotification notification = new GameLocalNotification("20:00 two tasks", "I miss you"); DateTime dateTime = DateTime.Now.AddDays(0); DateTime fireTime = new DateTime(dateTime.Year, dateTime.Month, dateTime.Day, 20, 0, 0); notification.SetFireDate(fireTime); notification.SetRepeatInterval(GameCalendarUnit.Day); return(notification); }
private GameLocalNotification DoCreateNotification3Days() { GameLocalNotification notification = new GameLocalNotification("3 days", "I miss you"); DateTime dateTime = DateTime.Now.AddDays(3); DateTime fireTime = new DateTime(dateTime.Year, dateTime.Month, dateTime.Day, 21, 0, 0); notification.SetFireDate(fireTime); notification.SetRepeatInterval(GameCalendarUnit.Week); return(notification); }