Fix CallbackQuery bug

This commit is contained in:
Rubenlagus 2016-04-21 21:29:17 +02:00
parent aeed4ef639
commit a601e983ec

View File

@ -51,22 +51,6 @@ public class CallbackQuery implements IBotApiObject {
super(); super();
} }
public String getId() {
return this.id;
}
public User getFrom() {
return this.from;
}
public Message getMessage() {
return this.getMessage();
}
public String getInlineMessageId() {
return this.inlineMessageId;
}
public CallbackQuery(JSONObject jsonObject) { public CallbackQuery(JSONObject jsonObject) {
super(); super();
this.id = jsonObject.getString(ID_FIELD); this.id = jsonObject.getString(ID_FIELD);
@ -80,6 +64,26 @@ public class CallbackQuery implements IBotApiObject {
data = jsonObject.getString(DATA_FIELD); data = jsonObject.getString(DATA_FIELD);
} }
public String getId() {
return this.id;
}
public User getFrom() {
return this.from;
}
public Message getMessage() {
return this.message;
}
public String getInlineMessageId() {
return this.inlineMessageId;
}
public String getData() {
return data;
}
@Override @Override
public void serialize(JsonGenerator gen, SerializerProvider serializers) throws IOException { public void serialize(JsonGenerator gen, SerializerProvider serializers) throws IOException {
gen.writeStartObject(); gen.writeStartObject();