1 package com.foxinmy.weixin4j.message.event;
2
3 import javax.xml.bind.annotation.XmlElement;
4
5 import com.foxinmy.weixin4j.type.EventType;
6
7
8
9
10
11
12
13
14
15
16
17
18
19 public class LocationEventMessage extends EventMessage {
20
21 private static final long serialVersionUID = -2030716800669824861L;
22
23 public LocationEventMessage() {
24 super(EventType.location.name());
25 }
26
27
28
29 @XmlElement(name="Latitude")
30 private double latitude;
31
32
33
34 @XmlElement(name="Longitude")
35 private double longitude;
36
37
38
39 @XmlElement(name="Precision")
40 private double precision;
41
42 public double getLatitude() {
43 return latitude;
44 }
45
46 public double getLongitude() {
47 return longitude;
48 }
49
50 public double getPrecision() {
51 return precision;
52 }
53
54 @Override
55 public String toString() {
56 return "LocationEventMessage [latitude=" + latitude + ", longitude="
57 + longitude + ", precision=" + precision + ", "
58 + super.toString() + "]";
59 }
60 }