1 package com.zone.weixin4j.message.event;
2
3 import javax.xml.bind.annotation.XmlElement;
4 import java.io.Serializable;
5
6
7
8
9
10
11
12
13
14
15
16
17
18 public class MenuScanEventMessage extends MenuEventMessage {
19
20 private static final long serialVersionUID = 3142350663022709730L;
21
22
23
24
25 @XmlElement(name = "ScanCodeInfo")
26 private ScanInfo scanInfo;
27
28 public ScanInfo getScanInfo() {
29 return scanInfo;
30 }
31
32
33
34
35
36
37
38
39
40
41 public static class ScanInfo implements Serializable {
42
43 private static final long serialVersionUID = 2237570238164900421L;
44
45
46
47 @XmlElement(name = "ScanType")
48 private String type;
49
50
51
52 @XmlElement(name = "ScanResult")
53 private String result;
54
55 public String getType() {
56 return type;
57 }
58
59 public String getResult() {
60 return result;
61 }
62
63 @Override
64 public String toString() {
65 return "ScanInfo [type=" + type + ", result=" + result + "]";
66 }
67 }
68
69 @Override
70 public String toString() {
71 return "MenuScanEventMessage [scanInfo=" + scanInfo + ", "
72 + super.toString() + "]";
73 }
74 }