1 package com.zone.weixin4j.message.event;
2
3 import javax.xml.bind.annotation.XmlElement;
4 import javax.xml.bind.annotation.XmlElementWrapper;
5 import java.io.Serializable;
6 import java.util.List;
7
8
9
10
11
12
13
14
15
16
17
18
19
20 public class MenuPhotoEventMessage extends MenuEventMessage {
21
22 private static final long serialVersionUID = 3142350663022709730L;
23
24
25
26
27 @XmlElement(name = "SendPicsInfo")
28 private PictureInfo pictureInfo;
29
30 public PictureInfo getPictureInfo() {
31 return pictureInfo;
32 }
33
34
35
36
37
38
39
40
41
42
43 public static class PictureInfo implements Serializable {
44
45 private static final long serialVersionUID = -3361375879168233258L;
46
47
48
49
50 @XmlElement(name = "Count")
51 private int count;
52
53
54
55 @XmlElementWrapper(name = "PicList")
56 @XmlElement(name = "item")
57 private List<PictureItem> items;
58
59 public int getCount() {
60 return count;
61 }
62
63 public List<PictureItem> getItems() {
64 return items;
65 }
66
67 @Override
68 public String toString() {
69 return "PictureInfo [count=" + count + ", items=" + items + "]";
70 }
71 }
72
73
74
75
76
77
78
79
80
81
82 public static class PictureItem implements Serializable {
83
84 private static final long serialVersionUID = -7636697449096645590L;
85
86
87
88
89 @XmlElement(name = "PicMd5Sum")
90 private String md5;
91
92 public String getMd5() {
93 return md5;
94 }
95
96 @Override
97 public String toString() {
98 return "PictureItem [md5=" + md5 + "]";
99 }
100 }
101
102 @Override
103 public String toString() {
104 return "MenuPhotoEventMessage [pictureInfo=" + pictureInfo + ", "
105 + super.toString() + "]";
106 }
107 }