From b7677cbcc610c775ba57fa82486e88f42a30d5bd Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 30 Dec 2020 10:54:14 -0800 Subject: Migrate string keys --- src/main/java/org/traccar/config/Keys.java | 56 ++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) (limited to 'src/main/java/org/traccar/config') 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 @@ -44,6 +44,13 @@ public final class Keys { ".timeout", Collections.singletonList(KeyType.GLOBAL)); + /** + * Device password. Commonly used in some protocol for sending commands. + */ + public static final ConfigSuffix PROTOCOL_DEVICE_PASSWORD = new ConfigSuffix<>( + ".devicePassword", + Collections.singletonList(KeyType.GLOBAL)); + /** * Default protocol mask to use. Currently used only by Skypatrol protocol. */ @@ -492,6 +499,13 @@ public final class Keys { "web.port", Collections.singletonList(KeyType.GLOBAL)); + /** + * Path to the web app folder. + */ + public static final ConfigKey WEB_PATH = new ConfigKey<>( + "web.path", + Collections.singletonList(KeyType.GLOBAL)); + /** * WebSocket connection timeout in milliseconds. Default timeout is 10 minutes. */ @@ -670,6 +684,48 @@ public final class Keys { "sms.http.template", Collections.singletonList(KeyType.GLOBAL)); + /** + * Traccar notification API key. + */ + public static final ConfigKey NOTIFICATOR_TRACCAR_KEY = new ConfigKey<>( + "notificator.traccar.key", + Collections.singletonList(KeyType.GLOBAL)); + + /** + * Firebase server API key for push notifications. + */ + public static final ConfigKey NOTIFICATOR_FIREBASE_KEY = new ConfigKey<>( + "notificator.firebase.key", + Collections.singletonList(KeyType.GLOBAL)); + + /** + * Pushover notification user name. + */ + public static final ConfigKey NOTIFICATOR_PUSHOVER_USER = new ConfigKey<>( + "notificator.pushover.user", + Collections.singletonList(KeyType.GLOBAL)); + + /** + * Pushover notification user token. + */ + public static final ConfigKey NOTIFICATOR_PUSHOVER_TOKEN = new ConfigKey<>( + "notificator.pushover.token", + Collections.singletonList(KeyType.GLOBAL)); + + /** + * Telegram notification API key. + */ + public static final ConfigKey NOTIFICATOR_TELEGRAM_KEY = new ConfigKey<>( + "notificator.telegram.key", + Collections.singletonList(KeyType.GLOBAL)); + + /** + * Telegram notification chat id to post messages to. + */ + public static final ConfigKey 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. -- cgit v1.2.3