All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sf.weixinmp.inbound.InboundMessage Maven / Gradle / Ivy

The newest version!
package net.sf.weixinmp.inbound;

/**
 * 所有消息的公共属性
 * @author Alex
 *
 */
public abstract class InboundMessage implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String toUserName;//有的没有!!
	private String fromUserName;
	private long createTime;//1970 的秒而非毫秒数
	private String msgType;
	private long msgId;//有的没有!!
	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;
	}
	/**
	 * 
	 * @param createTime
	 */
	public void setCreateTime(long createTime) {
		this.createTime = createTime*1000;
	}
	public String getMsgType() {
		return msgType;
	}
	public void setMsgType(String msgType) {
		this.msgType = msgType;
	}
	public long getMsgId() {
		return msgId;
	}
	public void setMsgId(long msgId) {
		this.msgId = msgId;
	}
	public String toString() {
		return "toUserName=" + toUserName + ", fromUserName="
				+ fromUserName + ", createTime=" + createTime + ", msgType="
				+ msgType + ", msgId=" + msgId;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy