File tree Expand file tree Collapse file tree 2 files changed +35
-0
lines changed
src/main/java/com/pengrad/telegrambot Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ package com .pengrad .telegrambot .model ;
2+
3+ /**
4+ * Stas Parshin
5+ * 03 October 2016
6+ */
7+ public class ResponseParameters {
8+
9+ private Long migrate_to_chat_id ;
10+ private Integer retry_after ;
11+
12+ public Long migrateToChatId () {
13+ return migrate_to_chat_id ;
14+ }
15+
16+ public Integer retryAfter () {
17+ return retry_after ;
18+ }
19+
20+ @ Override
21+ public String toString () {
22+ return "ResponseParameters{" +
23+ "migrate_to_chat_id=" + migrate_to_chat_id +
24+ ", retry_after=" + retry_after +
25+ '}' ;
26+ }
27+ }
Original file line number Diff line number Diff line change 11package com .pengrad .telegrambot .response ;
22
3+ import com .pengrad .telegrambot .model .ResponseParameters ;
4+
35/**
46 * stas
57 * 1/13/16.
@@ -9,6 +11,7 @@ public class BaseResponse {
911 private boolean ok ;
1012 private int error_code ;
1113 private String description ;
14+ private ResponseParameters parameters ;
1215
1316 BaseResponse () {
1417 }
@@ -25,12 +28,17 @@ public String description() {
2528 return description ;
2629 }
2730
31+ public ResponseParameters parameters () {
32+ return parameters ;
33+ }
34+
2835 @ Override
2936 public String toString () {
3037 return "BaseResponse{" +
3138 "ok=" + ok +
3239 ", error_code=" + error_code +
3340 ", description='" + description + '\'' +
41+ ", parameters=" + parameters +
3442 '}' ;
3543 }
3644}
You can’t perform that action at this time.
0 commit comments