public enum MsgType {
REQ_MESSAGE_TYPE_TEXT("text","文字"),
RESP_MESSAGE_TYPE_NEWS("news","图文"),
MESSAGE_EVENT("event","事件"),
MESSAGE_SUBSCRIBE("subscribe","订阅"),
MESSAGE_SCAN("SCAN","已关注时触发"),
MESSAGE_UNSUBSCRIBE("unsubscribe","取消关注");
private String value;
private String name;
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
MsgType(String value, String name) {
this.value = value;
this.name = name;
}
}