diff --git a/.classpath b/.classpath index 4482efd..d2c0172 100644 --- a/.classpath +++ b/.classpath @@ -13,12 +13,6 @@ - - - - - - diff --git a/src/main/java/envoy/schema/UserStatus.java b/src/main/java/envoy/schema/UserStatus.java new file mode 100644 index 0000000..f87d576 --- /dev/null +++ b/src/main/java/envoy/schema/UserStatus.java @@ -0,0 +1,22 @@ +package envoy.schema; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlType; + +/** + * Project: envoy-common
+ * File: UserStatus.java
+ * Created: 27 Oct 2019
+ * + * @author Maximilian Käfer + */ +@XmlType(name = "") +@XmlEnum +public enum UserStatus { + + Online, DoNotDisturb, AFK, Offline; + + public String value() { return name(); } + + public static UserStatus fromValue(String v) { return valueOf(v); } +} diff --git a/src/main/resources/message_schema.xsd b/src/main/resources/sync_schema.xsd similarity index 55% rename from src/main/resources/message_schema.xsd rename to src/main/resources/sync_schema.xsd index 0b27158..7b20b87 100644 --- a/src/main/resources/message_schema.xsd +++ b/src/main/resources/sync_schema.xsd @@ -1,48 +1,70 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/user_schema.xsd b/src/main/resources/user_schema.xsd deleted file mode 100644 index 93c18f9..0000000 --- a/src/main/resources/user_schema.xsd +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/main/xjb/bindings.xml b/src/main/xjb/bindings.xml index 66ef12c..4dc2c23 100644 --- a/src/main/xjb/bindings.xml +++ b/src/main/xjb/bindings.xml @@ -1,3 +1,5 @@ + + - + + + + + + + + + + + + + + + \ No newline at end of file