* Replacing the message_schema.xsd and the user_schema.xsd with
sync_schema.xsd. * Added UserStatus * Changed bindings.xml to support the UserStatus Enum properly.
This commit is contained in:
22
src/main/java/envoy/schema/UserStatus.java
Normal file
22
src/main/java/envoy/schema/UserStatus.java
Normal file
@ -0,0 +1,22 @@
|
||||
package envoy.schema;
|
||||
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
|
||||
/**
|
||||
* Project: <strong>envoy-common</strong><br>
|
||||
* File: <strong>UserStatus.java</strong><br>
|
||||
* Created: <strong>27 Nov 2019</strong><br>
|
||||
*
|
||||
* @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); }
|
||||
}
|
Reference in New Issue
Block a user