/** * @return the thumbnail for the user this item represents. */ public String getThumbnail() { return getSimpleValue(GphotoThumbnail.class); }
/** * Set the nickname of the user this item represents. * * @param nickname the nickname of the user. */ public void setNickname(String nickname) { if (nickname != null) { setExtension(new GphotoNickname(nickname)); } else { removeExtension(GphotoNickname.class); } }
/** * @return the quota limit for the user in bytes. */ public Long getQuotaLimit() { GphotoQuotaLimit ext = getExtension(GphotoQuotaLimit.class); return ext == null ? null : ext.getValue(); }
/** * Constructs a new user 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 UserFeed(BaseFeed<?, ?> sourceFeed) { super(sourceFeed); getCategories().add(UserData.USER_CATEGORY); this.delegate = new UserDataImpl(this); }
@Override public void declareExtensions(ExtensionProfile extProfile) { super.declareExtensions(extProfile); declare(extProfile, GphotoUsername.getDefaultDescription(false, false)); declare(extProfile, GphotoNickname.getDefaultDescription(false, false)); declare(extProfile, GphotoThumbnail.getDefaultDescription(false, false)); declare(extProfile, GphotoQuotaUsed.getDefaultDescription(false, false)); declare(extProfile, GphotoQuotaLimit.getDefaultDescription(false, false)); declare(extProfile, GphotoMaxPhotos.getDefaultDescription(false, false)); }
/** * @return the quota used up for this user. */ public Long getQuotaUsed() { GphotoQuotaUsed ext = getExtension(GphotoQuotaUsed.class); return ext == null ? null : ext.getValue(); }
/** * Constructs a new empty user feed. */ public UserFeed() { super(); getCategories().add(UserData.USER_CATEGORY); this.delegate = new UserDataImpl(this); }
@Override public void declareExtensions(ExtensionProfile extProfile) { super.declareExtensions(extProfile); declare(extProfile, GphotoUsername.getDefaultDescription(false, false)); declare(extProfile, GphotoNickname.getDefaultDescription(false, false)); declare(extProfile, GphotoThumbnail.getDefaultDescription(false, false)); declare(extProfile, GphotoQuotaUsed.getDefaultDescription(false, false)); declare(extProfile, GphotoQuotaLimit.getDefaultDescription(false, false)); declare(extProfile, GphotoMaxPhotos.getDefaultDescription(false, false)); }
/** * Set the quota limit for the user this item represents. * * @param quota the quota in bytes for the user. */ public void setQuotaLimit(Long quota) { if (quota != null) { setExtension(new GphotoQuotaLimit(quota)); } else { removeExtension(GphotoQuotaLimit.class); } }
/** * @return the maximum number of photos the user can have in an album. */ public Integer getMaxPhotos() { GphotoMaxPhotos ext = getExtension(GphotoMaxPhotos.class); return ext == null ? null : ext.getValue(); }
/** * @return the username of the user this item represents. */ public String getUsername() { return getSimpleValue(GphotoUsername.class); }
/** * Constructs a new user 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 UserFeed(BaseFeed<?, ?> sourceFeed) { super(sourceFeed); getCategories().add(UserData.USER_CATEGORY); this.delegate = new UserDataImpl(this); }
/** * Set the used quota for the user. * * @param quota the quota usage in bytes for this user. */ public void setQuotaUsed(Long quota) { if (quota != null) { setExtension(new GphotoQuotaUsed(quota)); } else { removeExtension(GphotoQuotaUsed.class); } }
/** * @return the quota used up for this user. */ public Long getQuotaUsed() { GphotoQuotaUsed ext = getExtension(GphotoQuotaUsed.class); return ext == null ? null : ext.getValue(); }
/** * @return the nickname of the user this item represents. */ public String getNickname() { return getSimpleValue(GphotoNickname.class); }
/** * Constructs a new empty user feed. */ public UserFeed() { super(); getCategories().add(UserData.USER_CATEGORY); this.delegate = new UserDataImpl(this); }
/** * Set the nickname of the user this item represents. * * @param nickname the nickname of the user. */ public void setNickname(String nickname) { if (nickname != null) { setExtension(new GphotoNickname(nickname)); } else { removeExtension(GphotoNickname.class); } }
/** * @return the quota limit for the user in bytes. */ public Long getQuotaLimit() { GphotoQuotaLimit ext = getExtension(GphotoQuotaLimit.class); return ext == null ? null : ext.getValue(); }
/** * @return the username of the user this item represents. */ public String getUsername() { return getSimpleValue(GphotoUsername.class); }
/** * Set the quota limit for the user this item represents. * * @param quota the quota in bytes for the user. */ public void setQuotaLimit(Long quota) { if (quota != null) { setExtension(new GphotoQuotaLimit(quota)); } else { removeExtension(GphotoQuotaLimit.class); } }