
cn.zkdcloud.component.message.Message Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of weChat Show documentation
Show all versions of weChat Show documentation
we can use it easy to build weChat
The newest version!
package cn.zkdcloud.component.message;
import com.thoughtworks.xstream.annotations.XStreamAlias;
/**
* Created by zk on 2016/10/30.
*/
public abstract class Message {
/**
* 开发者微信号
*/
@XStreamAlias("ToUserName")
protected String toUserName;
/**
* 发送方帐号(一个OpenID)
*/
@XStreamAlias("FromUserName")
protected String fromUserName;
/**
* 消息创建时间 (整型)
*/
@XStreamAlias("CreateTime")
protected long createTime;
/**
* 消息类型
*/
@XStreamAlias("MsgType")
protected MsgType msgType;
public String getToUserName() {
return toUserName;
}
public void setToUserName(String toUserName) {
this.toUserName = toUserName;
}
public String getFromUserName() {
return fromUserName;
}
public void setFromUserName(String fromUserName) {
this.fromUserName = fromUserName;
}
public long getCreateTime() {
return createTime;
}
public void setCreateTime(long createTime) {
this.createTime = createTime;
}
public MsgType getMsgType() {
return msgType;
}
public void setMsgType(MsgType msgType) {
this.msgType = msgType;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy