Index: src/org/adblockplus/android/BridgeCommand.java |
diff --git a/src/org/adblockplus/android/Subscription.java b/src/org/adblockplus/android/BridgeCommand.java |
old mode 100755 |
new mode 100644 |
similarity index 69% |
copy from src/org/adblockplus/android/Subscription.java |
copy to src/org/adblockplus/android/BridgeCommand.java |
index de67f9bba5871ec5d3c2e27f93842bd17ac28bed..2c32cb5f22a6db79709698ebed94baf49e0fa5f7 |
--- a/src/org/adblockplus/android/Subscription.java |
+++ b/src/org/adblockplus/android/BridgeCommand.java |
@@ -17,12 +17,21 @@ |
package org.adblockplus.android; |
-public class Subscription |
+public enum BridgeCommand |
{ |
- public String title; |
- public String specialization; |
- public String url; |
- public String homepage; |
- public String[] prefixes; |
- public String author; |
+ /** Used for e.g. no-traffic check, rebuilds/redisplays notification. */ |
+ STATE_CHANGED, |
+ UNKNOWN; |
+ |
+ public static BridgeCommand fromString(final String str) |
+ { |
+ try |
+ { |
+ return BridgeCommand.valueOf(str); |
+ } |
+ catch (final Throwable t) |
+ { |
+ return UNKNOWN; |
+ } |
+ } |
} |