Add Contact getters

This commit is contained in:
kit 2016-05-02 12:21:41 +06:00
parent 0d86836e14
commit 7f9e4494e7

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