OSDN Git Service

Pushbulletを利用したスマホへのプッシュ通知を実装する
[kancollesniffer/KancolleSniffer.git] / KancolleSniffer / Config.cs
index bb215e8..469f9ea 100644 (file)
@@ -73,6 +73,12 @@ namespace KancolleSniffer
         public string Token { get; set; } = "";\r
     }\r
 \r
+    public class PushbulletConfig\r
+    {\r
+        public bool On { get; set; }\r
+        public string Token { get; set; } = "";\r
+    }\r
+\r
     public class SoundConfig\r
     {\r
         public int Volume { get; set; } = 100;\r
@@ -103,7 +109,8 @@ namespace KancolleSniffer
         FlashWindow = 1,\r
         ShowBaloonTip = 1 << 1,\r
         PlaySound = 1 << 2,\r
-        All = (1 << 3) - 1\r
+        Pushbullet = 1 << 3,\r
+        All = (1 << 3) - 1 // Pushbullet以外\r
     }\r
 \r
     public class NotificationConfig\r
@@ -144,6 +151,7 @@ namespace KancolleSniffer
         public ShipListConfig ShipList { get; set; } = new ShipListConfig();\r
         public LogConfig Log { get; set; } = new LogConfig();\r
         public KancolleDbConfig KancolleDb { get; set; } = new KancolleDbConfig();\r
+        public PushbulletConfig Pushbullet { get; set; } = new PushbulletConfig();\r
 \r
         public static readonly string[] NotificationNames =\r
         {\r