diff --git a/Flickr4Java/src/main/java/com/flickr4java/flickr/people/PeopleInterface.java b/Flickr4Java/src/main/java/com/flickr4java/flickr/people/PeopleInterface.java index c6e0e1e8..ae7205ca 100644 --- a/Flickr4Java/src/main/java/com/flickr4java/flickr/people/PeopleInterface.java +++ b/Flickr4Java/src/main/java/com/flickr4java/flickr/people/PeopleInterface.java @@ -157,6 +157,11 @@ public User getInfo(String userId) throws FlickrException { user.setPathAlias(lPathAlias == null || "".equals(lPathAlias) ? null : lPathAlias); user.setUsername(XMLUtilities.getChildValue(userElement, "username")); user.setDescription(XMLUtilities.getChildValue(userElement, "description")); + user.setGender(XMLUtilities.getChildValue(userElement, "gender")); + user.setIgnored("1".equals(XMLUtilities.getChildValue(userElement, "ignored"))); + user.setContact("1".equals(XMLUtilities.getChildValue(userElement, "contact"))); + user.setFriend("1".equals(XMLUtilities.getChildValue(userElement, "friend"))); + user.setFamily("1".equals(XMLUtilities.getChildValue(userElement, "family"))); user.setRealName(XMLUtilities.getChildValue(userElement, "realname")); user.setLocation(XMLUtilities.getChildValue(userElement, "location")); user.setMbox_sha1sum(XMLUtilities.getChildValue(userElement, "mbox_sha1sum")); diff --git a/Flickr4Java/src/main/java/com/flickr4java/flickr/people/User.java b/Flickr4Java/src/main/java/com/flickr4java/flickr/people/User.java index f7bc72c0..762e4cf4 100644 --- a/Flickr4Java/src/main/java/com/flickr4java/flickr/people/User.java +++ b/Flickr4Java/src/main/java/com/flickr4java/flickr/people/User.java @@ -33,6 +33,16 @@ protected synchronized SimpleDateFormat initialValue() { private String description; + private String gender; + + private boolean ignored; + + private boolean contact; + + private boolean friend; + + private boolean family; + private boolean admin; private boolean pro; @@ -124,12 +134,53 @@ public String getDescription() { } /** - * @param description the description to set + * @param description + * the description to set */ public void setDescription(String description) { this.description = description; } + public String getGender() { + return gender; + } + + public void setGender(String gender) { + this.gender = gender; + } + + public boolean isIgnored() { + return ignored; + } + + public void setIgnored(boolean ignored) { + this.ignored = ignored; + } + + public boolean isContact() { + return contact; + } + + public void setContact(boolean contact) { + this.contact = contact; + } + + public boolean isFriend() { + return friend; + } + + public void setFriend(boolean friend) { + this.friend = friend; + } + + public boolean isFamily() { + return family; + } + + public void setFamily(boolean family) { + this.family = family; + } + public boolean isAdmin() { return admin; }