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