|
7 | 7 | import com.google.gson.annotations.SerializedName; |
8 | 8 | import com.thoughtworks.xstream.annotations.XStreamAlias; |
9 | 9 | import com.thoughtworks.xstream.annotations.XStreamConverter; |
| 10 | +import lombok.Data; |
10 | 11 | import me.chanjar.weixin.common.util.ToStringUtils; |
11 | 12 | import me.chanjar.weixin.common.util.xml.XStreamCDataConverter; |
12 | 13 | import org.apache.commons.io.IOUtils; |
|
20 | 21 | * @author <a href="https://github.com/binarywang">Binary Wang</a> |
21 | 22 | */ |
22 | 23 | @XStreamAlias("xml") |
| 24 | +@Data |
23 | 25 | public class WxMaMessage implements Serializable { |
24 | 26 | private static final long serialVersionUID = -3586245291677274914L; |
25 | 27 |
|
@@ -146,91 +148,4 @@ public String toJson() { |
146 | 148 | return WxMaGsonBuilder.create().toJson(this); |
147 | 149 | } |
148 | 150 |
|
149 | | - public String getToUser() { |
150 | | - return toUser; |
151 | | - } |
152 | | - |
153 | | - public void setToUser(String toUser) { |
154 | | - this.toUser = toUser; |
155 | | - } |
156 | | - |
157 | | - public String getFromUser() { |
158 | | - return fromUser; |
159 | | - } |
160 | | - |
161 | | - public void setFromUser(String fromUser) { |
162 | | - this.fromUser = fromUser; |
163 | | - } |
164 | | - |
165 | | - public Integer getCreateTime() { |
166 | | - return createTime; |
167 | | - } |
168 | | - |
169 | | - public void setCreateTime(Integer createTime) { |
170 | | - this.createTime = createTime; |
171 | | - } |
172 | | - |
173 | | - public String getMsgType() { |
174 | | - return msgType; |
175 | | - } |
176 | | - |
177 | | - public void setMsgType(String msgType) { |
178 | | - this.msgType = msgType; |
179 | | - } |
180 | | - |
181 | | - public String getContent() { |
182 | | - return content; |
183 | | - } |
184 | | - |
185 | | - public void setContent(String content) { |
186 | | - this.content = content; |
187 | | - } |
188 | | - |
189 | | - public Long getMsgId() { |
190 | | - return msgId; |
191 | | - } |
192 | | - |
193 | | - public void setMsgId(Long msgId) { |
194 | | - this.msgId = msgId; |
195 | | - } |
196 | | - |
197 | | - public String getPicUrl() { |
198 | | - return picUrl; |
199 | | - } |
200 | | - |
201 | | - public void setPicUrl(String picUrl) { |
202 | | - this.picUrl = picUrl; |
203 | | - } |
204 | | - |
205 | | - public String getMediaId() { |
206 | | - return mediaId; |
207 | | - } |
208 | | - |
209 | | - public void setMediaId(String mediaId) { |
210 | | - this.mediaId = mediaId; |
211 | | - } |
212 | | - |
213 | | - public String getEvent() { |
214 | | - return event; |
215 | | - } |
216 | | - |
217 | | - public void setEvent(String event) { |
218 | | - this.event = event; |
219 | | - } |
220 | | - |
221 | | - public String getSessionFrom() { |
222 | | - return sessionFrom; |
223 | | - } |
224 | | - |
225 | | - public void setSessionFrom(String sessionFrom) { |
226 | | - this.sessionFrom = sessionFrom; |
227 | | - } |
228 | | - |
229 | | - public String getEncrypt() { |
230 | | - return encrypt; |
231 | | - } |
232 | | - |
233 | | - public void setEncrypt(String encrypt) { |
234 | | - this.encrypt = encrypt; |
235 | | - } |
236 | 151 | } |
0 commit comments