-
Notifications
You must be signed in to change notification settings - Fork 0
/
BaseMessage.java
58 lines (50 loc) · 1.06 KB
/
BaseMessage.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
package org.panzheng.course.message.req;
/**
*
* 消息基类(普通用户->公共账号)
*
* @author PanZheng
*
*/
public class BaseMessage {
//开发者微信
private String ToUserName;
//发送方账号(一个OpenID)
private String fromUserName;
//消息创建时间(整型)
private long CreateTime;
//消息类型 (text/image/location/link)
private String MsgType;
//消息id,64位整型
private long MsgId;
public String getToUserName() {
return ToUserName;
}
public void setToUserName(String toUserName) {
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) {
CreateTime = createTime;
}
public String getMsgType() {
return MsgType;
}
public void setMsgType(String msgType) {
MsgType = msgType;
}
public long getMsgId() {
return MsgId;
}
public void setMsgId(long msgId) {
MsgId = msgId;
}
}