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
public void serialize(JsonGenerator gen, SerializerProvider serializers) throws IOException {
gen.writeStartObject();

View File

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