Merge pull request #42 from rubenlagus/dev

Fix CallbackQuery bug
This commit is contained in:
Ruben Bermudez 2016-04-21 21:30:04 +02:00
commit 98acc55e3c

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();