1 package com.foxinmy.weixin4j.tuple;
2
3 import com.alibaba.fastjson.annotation.JSONCreator;
4 import com.alibaba.fastjson.annotation.JSONField;
5
6
7
8
9
10
11
12
13
14
15
16
17
18 public class Text implements MassTuple, NotifyTuple, ChatTuple {
19
20 private static final long serialVersionUID = 520050144519064503L;
21
22 @Override
23 public String getMessageType() {
24 return "text";
25 }
26
27
28
29
30 private String content;
31
32 @JSONCreator
33 public Text(@JSONField(name = "content") String content) {
34 this.content = content;
35 }
36
37 public String getContent() {
38 return content;
39 }
40
41 @Override
42 public String toString() {
43 return "Text [content=" + content + "]";
44 }
45 }