1 package com.foxinmy.weixin4j.message.event;
2
3 import java.io.Serializable;
4
5 import javax.xml.bind.annotation.XmlElement;
6
7 import com.foxinmy.weixin4j.type.EventType;
8
9
10
11
12
13
14
15
16
17
18
19
20
21 public class MenuLocationEventMessage extends MenuEventMessage {
22
23 private static final long serialVersionUID = 145223888272819563L;
24
25 public MenuLocationEventMessage() {
26 super(EventType.location_select);
27 }
28
29
30
31
32 @XmlElement(name = "SendLocationInfo")
33 private LocationInfo locationInfo;
34
35 public LocationInfo getLocationInfo() {
36 return locationInfo;
37 }
38
39
40
41
42
43
44
45
46
47
48 public static class LocationInfo implements Serializable {
49
50 private static final long serialVersionUID = 4904181780216819965L;
51
52
53
54
55 @XmlElement(name = "Location_X")
56 private double x;
57
58
59
60 @XmlElement(name = "Location_Y")
61 private double y;
62
63
64
65 @XmlElement(name = "Scale")
66 private double scale;
67
68
69
70 @XmlElement(name = "Label")
71 private String label;
72
73
74
75 @XmlElement(name = "Poiname")
76 private String poiname;
77
78 public double getX() {
79 return x;
80 }
81
82 public double getY() {
83 return y;
84 }
85
86 public double getScale() {
87 return scale;
88 }
89
90 public String getLabel() {
91 return label;
92 }
93
94 public String getPoiname() {
95 return poiname;
96 }
97
98 @Override
99 public String toString() {
100 return "LocationInfo [x=" + x + ", y=" + y + ", scale=" + scale
101 + ", label=" + label + ", poiname=" + poiname + "]";
102 }
103 }
104
105 @Override
106 public String toString() {
107 return "MenuLocationEventMessage [locationInfo=" + locationInfo + ", "
108 + super.toString() + "]";
109 }
110 }