1 package com.foxinmy.weixin4j.message;
2
3 import javax.xml.bind.annotation.XmlElement;
4
5 import com.foxinmy.weixin4j.request.WeixinMessage;
6 import com.foxinmy.weixin4j.type.MessageType;
7
8
9
10
11
12
13
14
15
16
17
18
19
20 public class TextMessage extends WeixinMessage {
21
22 private static final long serialVersionUID = -7018053906644190260L;
23
24 public TextMessage() {
25 super(MessageType.text.name());
26 }
27
28
29
30
31 @XmlElement(name = "Content")
32 private String content;
33
34 public String getContent() {
35 return content;
36 }
37
38 @Override
39 public String toString() {
40 return "TextMessage [content=" + content + ", " + super.toString()
41 + "]";
42 }
43 }