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