![JAR search and dependency download from the Maven repository](/logo.png)
com.foxinmy.weixin4j.message.event.EventMessage Maven / Gradle / Ivy
The newest version!
package com.foxinmy.weixin4j.message.event;
import javax.xml.bind.annotation.XmlElement;
import com.foxinmy.weixin4j.request.WeixinMessage;
import com.foxinmy.weixin4j.type.MessageType;
/**
* 事件消息基类
*
* @className EventMessage
* @author jinyu([email protected])
* @date 2014年4月6日
* @since JDK 1.6
* @see 订阅号、服务号的事件推送
* @see 企业号的事件消息
*/
public class EventMessage extends WeixinMessage {
private static final long serialVersionUID = 7703667223814088865L;
protected EventMessage() {
// jaxb requried
}
public EventMessage(String eventType) {
super(MessageType.event.name());
this.eventType = eventType;
}
/**
* 事件类型
*
* @see com.foxinmy.weixin4j.type.EventType
*/
@XmlElement(name = "Event")
private String eventType;
public String getEventType() {
return eventType;
}
@Override
public String toString() {
return "eventType=" + eventType + ", " + super.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy