From e6a1cb2f87a5a564befc1da347631f5b3018ccf4 Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Fri, 3 Apr 2020 19:51:57 +0200 Subject: [PATCH] Add more constants --- .../smackx/mix/admin/MixAdminConstants.java | 12 ++++++++++++ .../smackx/mix/core/MixCoreConstants.java | 2 -- .../smackx/mix/presence/MixPresenceConstants.java | 8 ++++++++ 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 smack-experimental/src/main/java/org/jivesoftware/smackx/mix/admin/MixAdminConstants.java create mode 100644 smack-experimental/src/main/java/org/jivesoftware/smackx/mix/presence/MixPresenceConstants.java diff --git a/smack-experimental/src/main/java/org/jivesoftware/smackx/mix/admin/MixAdminConstants.java b/smack-experimental/src/main/java/org/jivesoftware/smackx/mix/admin/MixAdminConstants.java new file mode 100644 index 000000000..8f1c246af --- /dev/null +++ b/smack-experimental/src/main/java/org/jivesoftware/smackx/mix/admin/MixAdminConstants.java @@ -0,0 +1,12 @@ +package org.jivesoftware.smackx.mix.admin; + +import static org.jivesoftware.smackx.mix.core.MixCoreConstants.MIX_NODES; + +public class MixAdminConstants { + + public static final String NODE_ALLOWED = MIX_NODES + ":allowed"; + + public static final String NODE_BANNED = MIX_NODES + ":banned"; + + public static final String NODE_CONFIG = MIX_NODES + ":config"; +} diff --git a/smack-experimental/src/main/java/org/jivesoftware/smackx/mix/core/MixCoreConstants.java b/smack-experimental/src/main/java/org/jivesoftware/smackx/mix/core/MixCoreConstants.java index 762122851..395dd6eda 100644 --- a/smack-experimental/src/main/java/org/jivesoftware/smackx/mix/core/MixCoreConstants.java +++ b/smack-experimental/src/main/java/org/jivesoftware/smackx/mix/core/MixCoreConstants.java @@ -48,8 +48,6 @@ public class MixCoreConstants { */ public static final String NODE_PARTICIPANTS = MIX_NODES + ":participants"; - public static final String NODE_PRESENCE = MIX_NODES + ":presence"; - /** * For storing general channel information, such as description. */ diff --git a/smack-experimental/src/main/java/org/jivesoftware/smackx/mix/presence/MixPresenceConstants.java b/smack-experimental/src/main/java/org/jivesoftware/smackx/mix/presence/MixPresenceConstants.java new file mode 100644 index 000000000..355f534b0 --- /dev/null +++ b/smack-experimental/src/main/java/org/jivesoftware/smackx/mix/presence/MixPresenceConstants.java @@ -0,0 +1,8 @@ +package org.jivesoftware.smackx.mix.presence; + +import static org.jivesoftware.smackx.mix.core.MixCoreConstants.MIX_NODES; + +public class MixPresenceConstants { + + public static final String NODE_PRESENCE = MIX_NODES + ":presence"; +}