public override void Cancel <T>() { NotifierUWP notifier = new NotifierUWP(); foreach (T item in manager.GetNotiList <T>()) { notifier.Cancel(item.NotiId.ToString()); } }
public override void Schedule <T>() { NotifierUWP notifier = new NotifierUWP(); DateTime now = DateTime.Now; foreach (T item in manager.GetNotiList <T>()) { if (item.NotiTime > now) { Notification notification = new Notification { Title = item.GetNotiTitle(), Text = item.GetNotiText(), Id = item.NotiId, NotifyTime = item.NotiTime }; notification.SetType <T>(); notifier.Notify(notification); } } }
public override void CancelAll() { NotifierUWP notifier = new NotifierUWP(); notifier.CancelAll(); }