diff options
author | Anton Tananaev <atananaev@lyft.com> | 2020-12-30 10:54:14 -0800 |
---|---|---|
committer | Anton Tananaev <atananaev@lyft.com> | 2020-12-30 10:54:14 -0800 |
commit | b7677cbcc610c775ba57fa82486e88f42a30d5bd (patch) | |
tree | 6546ba6801d219bab6639c292b5bed07d7bd24f8 /src/main/java/org/traccar/config | |
parent | fa3d072b47be36ba011d6f48a1e3fe39bb5f2f6d (diff) | |
download | trackermap-server-b7677cbcc610c775ba57fa82486e88f42a30d5bd.tar.gz trackermap-server-b7677cbcc610c775ba57fa82486e88f42a30d5bd.tar.bz2 trackermap-server-b7677cbcc610c775ba57fa82486e88f42a30d5bd.zip |
Migrate string keys
Diffstat (limited to 'src/main/java/org/traccar/config')
-rw-r--r-- | src/main/java/org/traccar/config/Keys.java | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/config/Keys.java b/src/main/java/org/traccar/config/Keys.java index 6b779baea..52f1894cd 100644 --- a/src/main/java/org/traccar/config/Keys.java +++ b/src/main/java/org/traccar/config/Keys.java @@ -45,6 +45,13 @@ public final class Keys { Collections.singletonList(KeyType.GLOBAL)); /** + * Device password. Commonly used in some protocol for sending commands. + */ + public static final ConfigSuffix<String> PROTOCOL_DEVICE_PASSWORD = new ConfigSuffix<>( + ".devicePassword", + Collections.singletonList(KeyType.GLOBAL)); + + /** * Default protocol mask to use. Currently used only by Skypatrol protocol. */ public static final ConfigSuffix<Integer> PROTOCOL_MASK = new ConfigSuffix<>( @@ -493,6 +500,13 @@ public final class Keys { Collections.singletonList(KeyType.GLOBAL)); /** + * Path to the web app folder. + */ + public static final ConfigKey<String> WEB_PATH = new ConfigKey<>( + "web.path", + Collections.singletonList(KeyType.GLOBAL)); + + /** * WebSocket connection timeout in milliseconds. Default timeout is 10 minutes. */ public static final ConfigKey<Long> WEB_TIMEOUT = new ConfigKey<>( @@ -671,6 +685,48 @@ public final class Keys { Collections.singletonList(KeyType.GLOBAL)); /** + * Traccar notification API key. + */ + public static final ConfigKey<String> NOTIFICATOR_TRACCAR_KEY = new ConfigKey<>( + "notificator.traccar.key", + Collections.singletonList(KeyType.GLOBAL)); + + /** + * Firebase server API key for push notifications. + */ + public static final ConfigKey<String> NOTIFICATOR_FIREBASE_KEY = new ConfigKey<>( + "notificator.firebase.key", + Collections.singletonList(KeyType.GLOBAL)); + + /** + * Pushover notification user name. + */ + public static final ConfigKey<String> NOTIFICATOR_PUSHOVER_USER = new ConfigKey<>( + "notificator.pushover.user", + Collections.singletonList(KeyType.GLOBAL)); + + /** + * Pushover notification user token. + */ + public static final ConfigKey<String> NOTIFICATOR_PUSHOVER_TOKEN = new ConfigKey<>( + "notificator.pushover.token", + Collections.singletonList(KeyType.GLOBAL)); + + /** + * Telegram notification API key. + */ + public static final ConfigKey<String> NOTIFICATOR_TELEGRAM_KEY = new ConfigKey<>( + "notificator.telegram.key", + Collections.singletonList(KeyType.GLOBAL)); + + /** + * Telegram notification chat id to post messages to. + */ + public static final ConfigKey<String> NOTIFICATOR_TELEGRAM_CHAT_ID = new ConfigKey<>( + "notificator.telegram.chatId", + Collections.singletonList(KeyType.GLOBAL)); + + /** * Maximum time period for reports in seconds. Can be useful to prevent users to request unreasonably long reports. * By default there is no limit. */ |