修复protobuf转换问题

This commit is contained in:
董宏宇
2020-01-07 20:08:55 +08:00
parent 75d699ed9a
commit 0dc62ca86f
4 changed files with 9 additions and 9 deletions

View File

@@ -41,7 +41,7 @@ public class MarkerServiceHandler {
@Override
public void onMsgReceived(MarkerResponse obj) {
Logger.e("",obj.toString());
Logger.e("donghongyu", "===" + obj);
}
});

View File

@@ -11,9 +11,9 @@ public class MarkerLocation {
@SerializedName("angle")
private String mAngle;
@SerializedName("lat")
private String mLat;
private double mLat;
@SerializedName("lon")
private String mLon;
private double mLon;
public String getAddress() {
return mAddress;
@@ -31,19 +31,19 @@ public class MarkerLocation {
mAngle = angle;
}
public String getLat() {
public double getLat() {
return mLat;
}
public void setLat(String lat) {
public void setLat(double lat) {
mLat = lat;
}
public String getLon() {
public double getLon() {
return mLon;
}
public void setLon(String lon) {
public void setLon(double lon) {
mLon = lon;
}