public interface

CommentData

implements GphotoData
com.google.gdata.data.photos.CommentData
Known Indirect Subclasses

Class Overview

Shared comment data object, this contains all setters/getters of fields that are specific to a comment. Currently comments must have both an albumid and a photoid when created, as we don't yet allow comments on an album by itself. The actual content of the comment should be set using the setContent(TextConstruct) method.

Summary

Constants
String COMMENT_KIND The fully qualified kind term for comments.
String KIND The unqualified kind for a comment.
Fields
public static final Category COMMENT_CATEGORY A category object for comments.
Public Methods
abstract String getAlbumId()
Gets the albumid of the album the comment is contained in.
abstract String getPhotoId()
Gets the id of the photo this comment is about.
abstract void setAlbumId(String albumId)
Set the albumId by string for the album the comment is on.
abstract void setAlbumId(Long albumId)
Set the albumId of the album this comment is contained in.
abstract void setPhotoId(Long photoId)
Set the photoId for the photo this comment is on.
abstract void setPhotoId(String photoId)
Set the photoId as a string for the photo this comment is on.
[Expand]
Inherited Methods
From interface com.google.gdata.data.photos.Extensible
From interface com.google.gdata.data.photos.GphotoData

Constants

public static final String COMMENT_KIND

The fully qualified kind term for comments.

Constant Value: "http://schemas.google.com/photos/2007#comment"

public static final String KIND

The unqualified kind for a comment.

Constant Value: "comment"

Fields

public static final Category COMMENT_CATEGORY

A category object for comments. All comments will have this set.

Public Methods

public abstract String getAlbumId ()

Gets the albumid of the album the comment is contained in.

Returns
  • the albumId of the album this comment is on.

public abstract String getPhotoId ()

Gets the id of the photo this comment is about.

Returns
  • the photoId of the photo this comment is on.

public abstract void setAlbumId (String albumId)

Set the albumId by string for the album the comment is on.

Parameters
albumId The albumId of the comment.

public abstract void setAlbumId (Long albumId)

Set the albumId of the album this comment is contained in.

Parameters
albumId The albumId of the comment.

public abstract void setPhotoId (Long photoId)

Set the photoId for the photo this comment is on.

Parameters
photoId The photoId of the comment.

public abstract void setPhotoId (String photoId)

Set the photoId as a string for the photo this comment is on.

Parameters
photoId The photoId of the comment.