All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.foxinmy.weixin4j.message.event.LocationEventMessage Maven / Gradle / Ivy

There is a newer version: 1.10.2
Show newest version
package com.foxinmy.weixin4j.message.event;

import javax.xml.bind.annotation.XmlElement;

import com.foxinmy.weixin4j.type.EventType;

/**
 * 上报地理位置事件
 * 
 * @className LocationEventMessage
 * @author jinyu([email protected])
 * @date 2014年4月6日
 * @since JDK 1.6
 * @see 订阅号、服务号的上报地理位置事件
 * @see 企业号的上报地理位置事件
 */
public class LocationEventMessage extends EventMessage {

	private static final long serialVersionUID = -2030716800669824861L;

	public LocationEventMessage() {
		super(EventType.location.name());
	}
	/**
	 * 地理位置纬度
	 */
	@XmlElement(name="Latitude")
	private double latitude;
	/**
	 * 地理位置经度
	 */
	@XmlElement(name="Longitude")
	private double longitude;
	/**
	 * 地理位置精度
	 */
	@XmlElement(name="Precision")
	private double precision;

	public double getLatitude() {
		return latitude;
	}

	public double getLongitude() {
		return longitude;
	}

	public double getPrecision() {
		return precision;
	}

	@Override
	public String toString() {
		return "LocationEventMessage [latitude=" + latitude + ", longitude="
				+ longitude + ", precision=" + precision + ", "
				+ super.toString() + "]";
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy