_notificationQueue.StopRepeat(key, fleet);\r
}\r
\r
+ public void StopRepeat(string key, string subject)\r
+ {\r
+ _notificationQueue.StopRepeat(key, subject);\r
+ }\r
+\r
+ public void StopAllRepeat()\r
+ {\r
+ _notificationQueue.StopAllRepeat();\r
+ }\r
+\r
public void SuspendRepeat(string exception = "")\r
{\r
_notificationQueue.SuspendRepeat(exception);\r
Title = "疲労が回復しました",\r
Body = "%f艦隊"\r
}\r
+ },\r
+ {\r
+ "任務達成", new Message\r
+ {\r
+ Title = "任務を達成しました",\r
+ Body = "%s"\r
+ }\r
}\r
};\r
\r
_queue.RemoveAll(n => IsMatch(n, key) && n.Fleet == fleet);\r
}\r
\r
+ public void StopRepeat(string key, string subject)\r
+ {\r
+ _queue.RemoveAll(n => IsMatch(n, key) && n.Subject == subject);\r
+ }\r
+\r
private bool IsMatch(Notification n, string key) =>\r
n.Key.Substring(0, 4) == key.Substring(0, 4) && n.Schedule != default;\r
\r
+ public void StopAllRepeat()\r
+ {\r
+ _queue.RemoveAll(n => n.Schedule != default);\r
+ }\r
+\r
public void SuspendRepeat(string exception = null)\r
{\r
_suspend = true;\r