|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PhotoData
Base data object for photo feeds and entries, this interface contains the methods that all photo objects must provide. Note that some information may not be available based on the source of the photo data.
Field Summary | |
---|---|
static java.lang.String |
KIND
The unqualified kind for a photo. |
static Category |
PHOTO_CATEGORY
A category object for photos. |
static java.lang.String |
PHOTO_KIND
The fully qualified kind term for photos. |
Method Summary | |
---|---|
void |
addStreamId(java.lang.String streamId)
Add an individual streamId to the photo. |
java.lang.String |
getAlbumId()
The id of the album the photo is on. |
java.lang.String |
getChecksum()
The checksum on the photo. |
java.lang.String |
getClient()
The client string stored on the photo. |
java.lang.Integer |
getCommentCount()
The number of comments on this photo. |
java.lang.Boolean |
getCommentsEnabled()
Gets the status of the commenting preference on the photo. |
ExifTags |
getExifTags()
The exif information on the photo. |
java.lang.Long |
getHeight()
The height of the photo in pixels. |
java.lang.Float |
getPosition()
The position of the photo in the album. |
java.lang.Integer |
getRotation()
The rotation of the photo. |
java.lang.Long |
getSize()
The size of the photo in bytes. |
java.util.List<java.lang.String> |
getStreamIds()
Stream ids can be used to specify additional information about where a photo came from, or where it is being used. |
java.util.Date |
getTimestamp()
The time the photo was taken. |
java.lang.Long |
getVersion()
The version of the image. |
java.lang.String |
getVideoStatus()
The video status in case the photo entry is a video. |
java.lang.Long |
getWidth()
The width of the photo in pixels. |
void |
setAlbumId(java.lang.Long albumId)
Sets the id of the album the photo is in. |
void |
setAlbumId(java.lang.String albumId)
Set the albumId of the photo as a string, the album the photo is in. |
void |
setChecksum(java.lang.String checksum)
Set the checksum of the photo. |
void |
setClient(java.lang.String client)
Set the client string on the photo. |
void |
setCommentCount(java.lang.Integer commentCount)
Set the number of comments on the photo. |
void |
setCommentsEnabled(java.lang.Boolean commentsEnabled)
Sets whether comments can be made on the photo. |
void |
setExifTags(ExifTags tags)
Sets the exif tags for the photo. |
void |
setHeight(java.lang.Long height)
Set the height of the photo. |
void |
setPosition(java.lang.Float position)
Set the position of the photo. |
void |
setRotation(java.lang.Integer rotation)
Set the rotation in degrees of the photo. |
void |
setSize(java.lang.Long size)
Set the size of the photo. |
void |
setTimestamp(java.util.Date timestamp)
Set the timestamp on the photo. |
void |
setVersion(java.lang.Long version)
Set the version of the photo. |
void |
setVideoStatus(java.lang.String videoStatus)
Set the video status of the photo entry. |
void |
setWidth(java.lang.Long width)
Set the width of the photo. |
Methods inherited from interface com.google.gdata.data.photos.GphotoData |
---|
getGphotoId, setGphotoId, setGphotoId |
Methods inherited from interface com.google.gdata.data.geo.PointData |
---|
clearPoint, getGeoLocation, setGeoLocation, setGeoLocation |
Methods inherited from interface com.google.gdata.data.geo.BoxData |
---|
clearGeoBoundingBox, getGeoBoundingBox, setGeoBoundingBox, setGeoBoundingBox |
Methods inherited from interface com.google.gdata.data.photos.MediaData |
---|
getMediaCategories, getMediaContents, getMediaCredits, getMediaGroup, getMediaKeywords, getMediaThumbnails, setKeywords |
Methods inherited from interface com.google.gdata.data.photos.Extensible |
---|
addExtension, addRepeatingExtension, declareExtensions, removeExtension, removeExtension, removeRepeatingExtension, setExtension |
Field Detail |
---|
static final java.lang.String KIND
static final java.lang.String PHOTO_KIND
static final Category PHOTO_CATEGORY
Method Detail |
---|
java.lang.Long getVersion() throws ServiceException
ServiceException
void setVersion(java.lang.Long version)
version
- the version of the photo.java.lang.Float getPosition() throws ServiceException
ServiceException
void setPosition(java.lang.Float position)
position
- the position of the photo in the album.java.lang.String getAlbumId()
void setAlbumId(java.lang.String albumId)
void setAlbumId(java.lang.Long albumId)
java.lang.String getVideoStatus()
void setVideoStatus(java.lang.String videoStatus)
java.lang.Long getWidth() throws ServiceException
ServiceException
void setWidth(java.lang.Long width)
width
- the width of the photo.java.lang.Long getHeight() throws ServiceException
ServiceException
void setHeight(java.lang.Long height)
height
- the height of the photo.java.lang.Integer getRotation() throws ServiceException
ServiceException
void setRotation(java.lang.Integer rotation)
rotation
- the rotation of the photo.java.lang.Long getSize() throws ServiceException
ServiceException
void setSize(java.lang.Long size)
size
- the size of the photo in bytes.java.lang.String getClient()
void setClient(java.lang.String client)
client
- the client that created the photo.java.lang.String getChecksum()
void setChecksum(java.lang.String checksum)
checksum
- the checksum on the photo, computed by a client.java.util.Date getTimestamp() throws ServiceException
ServiceException
void setTimestamp(java.util.Date timestamp)
timestamp
- the timestamp on the photo.ExifTags getExifTags()
ExifTags
for more information on available exif fields.
void setExifTags(ExifTags tags)
tags
- the exif tags for the photo, a collection of exif tags.java.lang.Boolean getCommentsEnabled() throws ServiceException
ServiceException
void setCommentsEnabled(java.lang.Boolean commentsEnabled)
commentsEnabled
- true if comments are enabled in the photo.java.lang.Integer getCommentCount() throws ServiceException
ServiceException
void setCommentCount(java.lang.Integer commentCount)
commentCount
- the number of comments on the photo.java.util.List<java.lang.String> getStreamIds()
void addStreamId(java.lang.String streamId)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |