首页>代码>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;
	}
}
最近下载更多
qiang123  LV8 2023年10月13日
Tayirjan  LV11 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日
最近浏览更多
156260641401  LV1 4月9日
zhujunnan  LV12 3月8日
miaoshi  LV16 2023年9月5日
zhos0212  LV19 2023年7月27日
wuying8208  LV15 2023年7月27日
微信网友_6561552570798080  LV1 2023年7月14日
lyt888 2023年7月6日
暂无贡献等级
jerryPang  LV1 2023年6月28日
index1132 2023年6月6日
暂无贡献等级
libo1212  LV8 2023年6月1日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友