Merge branch 'antonu17-contact_getters' into dev

This commit is contained in:
Rubenlagus 2016-05-05 21:22:35 +02:00
commit 0ead56bac7
2 changed files with 18 additions and 2 deletions

View File

@ -47,6 +47,22 @@ public class Contact implements IBotApiObject {
} }
} }
public String getPhoneNumber() {
return phoneNumber;
}
public String getFirstName() {
return firstName;
}
public String getLastName() {
return lastName;
}
public Integer getUserID() {
return userID;
}
@Override @Override
public void serialize(JsonGenerator gen, SerializerProvider serializers) throws IOException { public void serialize(JsonGenerator gen, SerializerProvider serializers) throws IOException {
gen.writeStartObject(); gen.writeStartObject();

View File

@ -118,10 +118,10 @@ public class InlineQueryResultCachedSticker implements InlineQueryResult {
@Override @Override
public String toString() { public String toString() {
return "InlineQueryResultCachedGif{" + return "InlineQueryResultCachedSticker{" +
"type='" + type + '\'' + "type='" + type + '\'' +
", id='" + id + '\'' + ", id='" + id + '\'' +
", gifUrl='" + stickerFileId + '\'' + ", sticker_file_id='" + stickerFileId + '\'' +
", inputMessageContent='" + inputMessageContent + '\'' + ", inputMessageContent='" + inputMessageContent + '\'' +
", replyMarkup='" + replyMarkup + '\'' + ", replyMarkup='" + replyMarkup + '\'' +
'}'; '}';