首页>代码>java基于微信公众号接口开发的入门Demo实例>/WechatDemo/WechatDemo/src/com/eastnet/wechat/message/req/BaseMessage.java
package com.eastnet.wechat.message.req;
/**
 * 消息基类 (普通用户-公众号)
 * @author pengsong
 * @date 2015.01.19
 */
public class BaseMessage {
	
	//开发者微信号
	private String ToUserName;
	//发送方账号(一个openId)
	private String FromUserName;
	//消息创建时间(整型)
	private long CreateTime;
	//消息类型(text/image/location/link...)
	private String MsgType;
	//消息id 64位整型
	private String MsgId;
	
	public BaseMessage() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	public BaseMessage(String toUserName, String fromUserName, long createTime,
			String msgType, String msgId) {
		super();
		ToUserName = toUserName;
		FromUserName = fromUserName;
		CreateTime = createTime;
		MsgType = msgType;
		MsgId = msgId;
	}
	
	public String getToUserName() {
		return ToUserName;
	}
	
	public void setToUserName(String toUserName) {
		ToUserName = toUserName;
	}
	
	public String getFromUserName() {
		return FromUserName;
	}
	
	public void setFromUserName(String fromUserName) {
		FromUserName = fromUserName;
	}
	public long getCreateTime() {
		return CreateTime;
	}
	
	public void setCreateTime(long createTime) {
		CreateTime = createTime;
	}
	public String getMsgType() {
		return MsgType;
	}
	
	public void setMsgType(String msgType) {
		MsgType = msgType;
	}
	public String getMsgId() {
		return MsgId;
	}
	
	public void setMsgId(String msgId) {
		MsgId = msgId;
	}
}
最近下载更多
Tayirjan  LV10 2021年12月1日
yinxiu123  LV4 2021年8月6日
wyiwan  LV2 2021年3月1日
hellow1  LV3 2021年1月31日
zt3631877  LV9 2020年12月10日
liang_sen  LV6 2020年10月20日
HUANG888  LV6 2020年9月3日
lelelada  LV8 2020年8月11日
578291727  LV15 2020年7月7日
dongci777  LV6 2020年4月15日
最近浏览更多
星是河的眼  LV3 2月7日
suxin123_123  LV5 2月3日
dengjunjun  LV15 1月11日
263648  LV7 2022年12月27日
liangju666  LV6 2022年12月18日
lywang  LV7 2022年12月6日
uni-code_0123  LV1 2022年11月3日
moneyla  LV5 2022年9月23日
xxxlll  LV8 2022年9月21日
微信网友_6139616720490496  LV1 2022年9月19日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友