
net.sf.weixinmp.inbound.plain.InboundMapLocationMessage Maven / Gradle / Ivy
The newest version!
package net.sf.weixinmp.inbound.plain;
import net.sf.weixinmp.inbound.InboundMessage;
/**
* 地理位置消息,用户在qq地图上操作时发出
123456789
23.137466
113.352425
119.385040
参数 描述
ToUserName 开发者微信号
FromUserName 发送方帐号(一个OpenID)
CreateTime 消息创建时间 (整型)
MsgType location
Location_X 地理位置维度
Location_Y 地理位置经度
Scale 地图缩放大小
Label 地理位置信息
MsgId 消息id,64位整型
* @author Alex
*
*/
public class InboundMapLocationMessage extends InboundMessage{
/**
*
*/
private static final long serialVersionUID = 1L;
private float locationX;
private float locationY;
private String label;
private int scale;
public float getLocationX() {
return locationX;
}
public String getLabel() {
return label;
}
public void setLabel(String label) {
this.label = label;
}
public int getScale() {
return scale;
}
public void setScale(int scale) {
this.scale = scale;
}
public void setLocationX(float locationX) {
this.locationX = locationX;
}
public float getLocationY() {
return locationY;
}
public void setLocationY(float locationY) {
this.locationY = locationY;
}
@Override
public String toString() {
return "LocationMessage [locationX=" + locationX + ", locationY="
+ locationY + ", label=" + label + ", scale=" + scale
+ ", " + super.toString() + "]";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy