Closes #361
This commit is contained in:
parent
7a83b45a91
commit
b057a98ada
@ -38,7 +38,7 @@ public class ResponseParameters implements BotApiObject {
|
|||||||
* so a signed 64 bit integer or double-precision float type are safe for storing this identifier.
|
* so a signed 64 bit integer or double-precision float type are safe for storing this identifier.
|
||||||
*/
|
*/
|
||||||
@JsonProperty(MIGRATETOCHATID_FIELD)
|
@JsonProperty(MIGRATETOCHATID_FIELD)
|
||||||
private Integer migrateToChatId;
|
private Long migrateToChatId;
|
||||||
/**
|
/**
|
||||||
* Optional. In case of exceeding flood control a number of seconds to
|
* Optional. In case of exceeding flood control a number of seconds to
|
||||||
* wait before the request can be repeated
|
* wait before the request can be repeated
|
||||||
@ -50,7 +50,7 @@ public class ResponseParameters implements BotApiObject {
|
|||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
||||||
public Integer getMigrateToChatId() {
|
public Long getMigrateToChatId() {
|
||||||
return migrateToChatId;
|
return migrateToChatId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -59,7 +59,7 @@ public class TestDeserialization {
|
|||||||
Assert.assertEquals(Integer.valueOf(400), result.getErrorCode());
|
Assert.assertEquals(Integer.valueOf(400), result.getErrorCode());
|
||||||
Assert.assertEquals("Error descriptions", result.getErrorDescription());
|
Assert.assertEquals("Error descriptions", result.getErrorDescription());
|
||||||
Assert.assertNotNull(result.getParameters());
|
Assert.assertNotNull(result.getParameters());
|
||||||
Assert.assertEquals(Integer.valueOf(12345), result.getParameters().getMigrateToChatId());
|
Assert.assertEquals(Long.valueOf(12345), result.getParameters().getMigrateToChatId());
|
||||||
Assert.assertEquals(Integer.valueOf(12), result.getParameters().getRetryAfter());
|
Assert.assertEquals(Integer.valueOf(12), result.getParameters().getRetryAfter());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user