1 package com.zone.weixin4j.message;
2
3 import com.zone.weixin4j.request.WeixinMessage;
4 import com.zone.weixin4j.type.MessageType;
5
6 import javax.xml.bind.annotation.XmlElement;
7
8
9
10
11
12
13
14
15
16
17
18
19
20 public class ImageMessage extends WeixinMessage {
21
22 private static final long serialVersionUID = 8430800898756567016L;
23
24 public ImageMessage() {
25 super(MessageType.image.name());
26 }
27
28
29
30
31 @XmlElement(name = "PicUrl")
32 private String picUrl;
33
34
35
36 @XmlElement(name = "MediaId")
37 private String mediaId;
38
39 public String getPicUrl() {
40 return picUrl;
41 }
42
43 public String getMediaId() {
44 return mediaId;
45 }
46
47 @Override
48 public String toString() {
49 return "ImageMessage [picUrl=" + picUrl + ", mediaId=" + mediaId + ", "
50 + super.toString() + "]";
51 }
52 }