Closes #184
This commit is contained in:
parent
75c3a48766
commit
a565b5fdd5
@ -16,19 +16,19 @@ public class Location implements BotApiObject {
|
||||
private static final String LATITUDE_FIELD = "latitude";
|
||||
|
||||
@JsonProperty(LONGITUDE_FIELD)
|
||||
private Double longitude; ///< Longitude as defined by sender
|
||||
private Float longitude; ///< Longitude as defined by sender
|
||||
@JsonProperty(LATITUDE_FIELD)
|
||||
private Double latitude; ///< Latitude as defined by sender
|
||||
private Float latitude; ///< Latitude as defined by sender
|
||||
|
||||
public Location() {
|
||||
super();
|
||||
}
|
||||
|
||||
public Double getLongitude() {
|
||||
public Float getLongitude() {
|
||||
return longitude;
|
||||
}
|
||||
|
||||
public Double getLatitude() {
|
||||
public Float getLatitude() {
|
||||
return latitude;
|
||||
}
|
||||
|
||||
|
@ -172,8 +172,8 @@ public class TestDeserialization {
|
||||
Assert.assertEquals("offset", inlineQuery.getOffset());
|
||||
assertFromUser(inlineQuery.getFrom());
|
||||
Assert.assertNotNull(inlineQuery.getLocation());
|
||||
Assert.assertEquals(Double.valueOf("0.234242534"), inlineQuery.getLocation().getLatitude());
|
||||
Assert.assertEquals(Double.valueOf("0.234242534"), inlineQuery.getLocation().getLongitude());
|
||||
Assert.assertEquals(Float.valueOf("0.234242534"), inlineQuery.getLocation().getLatitude());
|
||||
Assert.assertEquals(Float.valueOf("0.234242534"), inlineQuery.getLocation().getLongitude());
|
||||
}
|
||||
|
||||
private void assertCallbackQuery(CallbackQuery callbackQuery) {
|
||||
|
Loading…
Reference in New Issue
Block a user