/** * Default mutable constructor. */ public UserEntry() { super(); getCategories().add(CATEGORY); }
/** * Returns the currently used quota of the user account. * * @return currently used quota of the user account */ public GphotoQuotaUsed getQuotaUsedExt() { return getExtension(GphotoQuotaUsed.class); }
/** * Retrieve the user feed and associated entries. The kinds parameter is a * list of the associated entries to return. For example * <code>UserFeed userAndPhotos = userEntry.getFeed(PhotoData.KIND, * TagData.KIND);</code> If no kind parameters are passed, the default of * {@link AlbumData#KIND} will be used. * * @see AlbumData#KIND * @see PhotoData#KIND * @see TagData#KIND * @param kinds the kinds of entries to retrieve, or empty to use the default. * @return a feed of the album and the requested kinds. */ public UserFeed getFeed(String... kinds) throws IOException, ServiceException { return getFeed(UserFeed.class, kinds); }
/** * Declare the extensions of the feeds for the Picasa Web Albums Data API. */ private void declareExtensions() { extProfile.setAutoExtending(true); new AlbumEntry().declareExtensions(extProfile); new AlbumFeed().declareExtensions(extProfile); new CommentEntry().declareExtensions(extProfile); new PhotoEntry().declareExtensions(extProfile); new PhotoFeed().declareExtensions(extProfile); new TagEntry().declareExtensions(extProfile); new UserEntry().declareExtensions(extProfile); new UserFeed().declareExtensions(extProfile); }
public Integer getMaxPhotos() { GphotoMaxPhotos ext = getMaxPhotosExt(); return ext == null ? null : ext.getValue(); }
public Long getQuotaLimit() { GphotoQuotaLimit ext = getQuotaLimitExt(); return ext == null ? null : ext.getValue(); }
public Long getQuotaUsed() { GphotoQuotaUsed ext = getQuotaUsedExt(); return ext == null ? null : ext.getValue(); }
public String getNickname() { GphotoNickname ext = getNicknameExt(); return ext == null ? null : ext.getValue(); }
public String getThumbnail() { GphotoThumbnail ext = getThumbnailExt(); return ext == null ? null : ext.getValue(); }
/** * Declare the extensions of the feeds for the Picasa Web Albums Data API. */ private void declareExtensions() { extProfile.setAutoExtending(true); new AlbumEntry().declareExtensions(extProfile); new AlbumFeed().declareExtensions(extProfile); new CommentEntry().declareExtensions(extProfile); new PhotoEntry().declareExtensions(extProfile); new PhotoFeed().declareExtensions(extProfile); new TagEntry().declareExtensions(extProfile); new UserEntry().declareExtensions(extProfile); new UserFeed().declareExtensions(extProfile); }
public Integer getMaxPhotos() { GphotoMaxPhotos ext = getMaxPhotosExt(); return ext == null ? null : ext.getValue(); }
public Long getQuotaLimit() { GphotoQuotaLimit ext = getQuotaLimitExt(); return ext == null ? null : ext.getValue(); }
public Long getQuotaUsed() { GphotoQuotaUsed ext = getQuotaUsedExt(); return ext == null ? null : ext.getValue(); }
public String getNickname() { GphotoNickname ext = getNicknameExt(); return ext == null ? null : ext.getValue(); }
public String getThumbnail() { GphotoThumbnail ext = getThumbnailExt(); return ext == null ? null : ext.getValue(); }
/** * Returns the user portrait thumbnail. * * @return user portrait thumbnail */ public GphotoThumbnail getThumbnailExt() { return getExtension(GphotoThumbnail.class); }
/** * Default mutable constructor. */ public UserEntry() { super(); getCategories().add(CATEGORY); }
/** * Retrieve the user feed and associated entries. The kinds parameter is a * list of the associated entries to return. For example * <code>UserFeed userAndPhotos = userEntry.getFeed(PhotoData.KIND, * TagData.KIND);</code> If no kind parameters are passed, the default of * {@link AlbumData#KIND} will be used. * * @see AlbumData#KIND * @see PhotoData#KIND * @see TagData#KIND * @param kinds the kinds of entries to retrieve, or empty to use the default. * @return a feed of the album and the requested kinds. */ public UserFeed getFeed(String... kinds) throws IOException, ServiceException { return getFeed(UserFeed.class, kinds); }
/** * Returns the display nickname of the user. * * @return display nickname of the user */ public GphotoNickname getNicknameExt() { return getExtension(GphotoNickname.class); }
/** * Returns the username or currently selected persona. * * @return username or currently selected persona */ public GphotoUsername getUsernameExt() { return getExtension(GphotoUsername.class); }