public class

CommentEntry

extends BaseEntry<E extends BaseEntry>
java.lang.Object
   ↳ com.google.gdata.data.AbstractExtension
     ↳ com.google.gdata.data.ExtensionPoint
       ↳ com.google.gdata.data.BaseEntry<E extends com.google.gdata.data.BaseEntry>
         ↳ com.google.gdata.data.youtube.CommentEntry

Class Overview

An entry in the comment feed.

Summary

[Expand]
Inherited Fields
From class com.google.gdata.data.BaseEntry
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
Public Constructors
CommentEntry()
CommentEntry(BaseEntry<?> base)
Public Methods
void declareExtensions(ExtensionProfile extProfile)
Declares the set of expected Extension types for an ExtensionPoint within the target extension profile.
Integer getTotalRating()
Get the rating of the comment.
boolean hasSpamHint()
Check if the comment is marked as spam.
void setSpamHint(boolean spam)
Hint that the entry is spam.
void setTotalRating(Integer rating)
Sets the rating of the comment.
[Expand]
Inherited Methods
From class com.google.gdata.data.BaseEntry
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
From class java.lang.Object
From interface com.google.gdata.data.Extension
From interface com.google.gdata.data.IAtom
From interface com.google.gdata.data.IEntry
From interface com.google.gdata.data.Kind.Adaptable
From interface com.google.gdata.data.Kind.Adaptor

Public Constructors

public CommentEntry ()

public CommentEntry (BaseEntry<?> base)

Parameters
base

Public Methods

public void declareExtensions (ExtensionProfile extProfile)

Declares the set of expected Extension types for an ExtensionPoint within the target extension profile. The base implementation does not declare any extensions, but can be overridden by specific types of ExtensionPoints that always contain a well-defined set of extensions.

Parameters
extProfile The ExtensionProfile to initialize.

public Integer getTotalRating ()

Get the rating of the comment. Some videos don't allow comment rating.

Returns
  • the rating of the comment. May be null.

public boolean hasSpamHint ()

Check if the comment is marked as spam.

Returns
  • true if the comment is marked as spam

public void setSpamHint (boolean spam)

Hint that the entry is spam.

Parameters
spam If true the comment will be marked with the spam hint. False will remove the hint.

public void setTotalRating (Integer rating)

Sets the rating of the comment.

Parameters
rating The rating of the comment. Null will remove the rating.