/** * @return the location of the album this entry represents. */ public String getLocation() { return getSimpleValue(GphotoLocation.class); }
/** * Set the number of photos remaining in the album this entry represents. * * @param photosLeft the number of photos left. */ public void setPhotosLeft(Integer photosLeft) { if (photosLeft != null) { setExtension(new GphotoPhotosLeft(photosLeft)); } else { removeExtension(GphotoPhotosLeft.class); } }
/** * @return the access of the album this entry represents. */ public String getAccess() { GphotoAccess access = getExtension(GphotoAccess.class); return access == null ? null : access.getValue().toLowerCase(); }
/** * Constructs a new album feed from a shallow copy of the data in the source * feed. This is used to get the correct entry type based on the category of * the entry. */ public AlbumFeed(BaseFeed<?, ?> sourceFeed) { super(sourceFeed); getCategories().add(AlbumData.ALBUM_CATEGORY); this.delegate = new AlbumDataImpl(this); }
@Override @SuppressWarnings("deprecation") public void declareExtensions(ExtensionProfile extProfile) { super.declareExtensions(extProfile); declare(extProfile, PheedThumbnail.getDefaultDescription()); declare(extProfile, PheedImageUrl.getDefaultDescription()); declare(extProfile, GphotoName.getDefaultDescription(false, false)); declare(extProfile, GphotoLocation.getDefaultDescription(false, false)); declare(extProfile, GphotoTimestamp.getDefaultDescription(false, false)); declare(extProfile, GphotoAccess.getDefaultDescription(false, false)); declare(extProfile, GphotoPhotosUsed.getDefaultDescription(false, false)); declare(extProfile, GphotoPhotosLeft.getDefaultDescription(false, false)); declare(extProfile, GphotoBytesUsed.getDefaultDescription(false, false)); declare(extProfile, GphotoUsername.getDefaultDescription(false, false)); declare(extProfile, GphotoNickname.getDefaultDescription(false, false)); declare(extProfile, GphotoCommentsEnabled.getDefaultDescription(false, false)); declare(extProfile, GphotoCommentCount.getDefaultDescription(false, false)); pointData.declareExtensions(extProfile); boundingBoxData.declareExtensions(extProfile); mediaData.declareExtensions(extProfile); }
/** * @return the number of photos used in the album this entry represents. */ public Integer getPhotosUsed() { GphotoPhotosUsed photosUsed = getExtension(GphotoPhotosUsed.class); return photosUsed == null ? null : photosUsed.getValue(); }
/** * Constructs a new empty album feed. */ public AlbumFeed() { super(); getCategories().add(AlbumData.ALBUM_CATEGORY); this.delegate = new AlbumDataImpl(this); }
@Override @SuppressWarnings("deprecation") public void declareExtensions(ExtensionProfile extProfile) { super.declareExtensions(extProfile); declare(extProfile, PheedThumbnail.getDefaultDescription()); declare(extProfile, PheedImageUrl.getDefaultDescription()); declare(extProfile, GphotoName.getDefaultDescription(false, false)); declare(extProfile, GphotoLocation.getDefaultDescription(false, false)); declare(extProfile, GphotoTimestamp.getDefaultDescription(false, false)); declare(extProfile, GphotoAccess.getDefaultDescription(false, false)); declare(extProfile, GphotoPhotosUsed.getDefaultDescription(false, false)); declare(extProfile, GphotoPhotosLeft.getDefaultDescription(false, false)); declare(extProfile, GphotoBytesUsed.getDefaultDescription(false, false)); declare(extProfile, GphotoUsername.getDefaultDescription(false, false)); declare(extProfile, GphotoNickname.getDefaultDescription(false, false)); declare(extProfile, GphotoCommentsEnabled.getDefaultDescription(false, false)); declare(extProfile, GphotoCommentCount.getDefaultDescription(false, false)); pointData.declareExtensions(extProfile); boundingBoxData.declareExtensions(extProfile); mediaData.declareExtensions(extProfile); }
/** * Set the username for the owner of the album this entry represents. * * @param username the username of the owner. */ public void setUsername(String username) { if (username != null) { setExtension(new GphotoUsername(username)); } else { removeExtension(GphotoUsername.class); } }
/** * @return the number of photos used in the album this entry represents. */ public Integer getPhotosUsed() { GphotoPhotosUsed photosUsed = getExtension(GphotoPhotosUsed.class); return photosUsed == null ? null : photosUsed.getValue(); }
/** * @return the nickname of the owner of the album this entry represents. */ public String getNickname() { return getSimpleValue(GphotoNickname.class); }
/** * Constructs a new album feed from a shallow copy of the data in the source * feed. This is used to get the correct entry type based on the category of * the entry. */ public AlbumFeed(BaseFeed<?, ?> sourceFeed) { super(sourceFeed); getCategories().add(AlbumData.ALBUM_CATEGORY); this.delegate = new AlbumDataImpl(this); }
/** * Set the access for the album this entry represents. * * @param access the access of the album. */ public void setAccess(String access) { if (access != null) { setExtension(new GphotoAccess(access)); } else { removeExtension(GphotoAccess.class); } }
/** * @return the number of bytes used in the album this entry represents. */ public Long getBytesUsed() { GphotoBytesUsed used = getExtension(GphotoBytesUsed.class); return used == null ? null : used.getValue(); }
/** * @return the username of the owner of the album this entry represents. */ public String getUsername() { return getSimpleValue(GphotoUsername.class); }
/** * Constructs a new empty album feed. */ public AlbumFeed() { super(); getCategories().add(AlbumData.ALBUM_CATEGORY); this.delegate = new AlbumDataImpl(this); }
/** * Set the number of photos used on the album this entry represents. * * @param photosUsed the number of photos used. */ public void setPhotosUsed(Integer photosUsed) { if (photosUsed != null) { setExtension(new GphotoPhotosUsed(photosUsed)); } else { removeExtension(GphotoPhotosUsed.class); } }
/** * @return the comment count on the album this entry represents. */ public Integer getCommentCount() { GphotoCommentCount left = getExtension(GphotoCommentCount.class); return left == null ? null : left.getValue(); }
/** * @return the (canonical) name of the album this entry represents. */ public String getName() { return getSimpleValue(GphotoName.class); }
/** * Set the access for the album this entry represents. * * @param access the access of the album. */ public void setAccess(String access) { if (access != null) { setExtension(new GphotoAccess(access)); } else { removeExtension(GphotoAccess.class); } }