public class

UserEventEntry

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.UserEventEntry

Class Overview

An atom entry containing a user event.

Summary

Nested Classes
enum UserEventEntry.Type User event types. 
Fields
public static final String[] CATEGORIES Nonstandard categories that might be found in this entry.
[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
UserEventEntry()
Public Methods
void declareExtensions(ExtensionProfile extProfile)
Declares the ExtensionDescription of each Extension expected by the implementing ExtensionPoint in the target profile.
Rating getRating()
Gets the gd:rating tag.
UserEventEntry.Type getUserEventType()
Returns the type of the user event, if it is of a known type.
String getUsername()
Get the value of the optional username
String getVideoId()
Gets the YouTube ID of the video.
void setEventType(UserEventEntry.Type type)
Sets the type category of this entry.
void setRating(Rating rating)
Sets the gd:rating tag.
void setUsername(String username)
Set the optional username.
void setVideoId(String videoId)
Sets the YouTube video ID of the video.
[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

Fields

public static final String[] CATEGORIES

Nonstandard categories that might be found in this entry.

Public Constructors

public UserEventEntry ()

Public Methods

public void declareExtensions (ExtensionProfile extProfile)

Declares the ExtensionDescription of each Extension expected by the implementing ExtensionPoint in the target profile.

Parameters
extProfile The ExtensionProfile to initialize.

public Rating getRating ()

Gets the gd:rating tag.

public UserEventEntry.Type getUserEventType ()

Returns the type of the user event, if it is of a known type.

Returns
  • user event type or null if it is of an unknown type

public String getUsername ()

Get the value of the optional username

Returns
  • the username

public String getVideoId ()

Gets the YouTube ID of the video.

public void setEventType (UserEventEntry.Type type)

Sets the type category of this entry. If a type category already exists, it will be removed.

Parameters
type New user event type or null

public void setRating (Rating rating)

Sets the gd:rating tag.

Parameters
rating

public void setUsername (String username)

Set the optional username.

Parameters
username Content of the yt:username tag

public void setVideoId (String videoId)

Sets the YouTube video ID of the video.

Parameters
videoId