public class

SubscriptionEntry

extends FeedLinkEntry<T 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.FeedLinkEntry<T extends com.google.gdata.data.BaseEntry>
           ↳ com.google.gdata.data.youtube.SubscriptionEntry

Class Overview

Entries that appear on the publisher playlist feed. This entry does not contain a playlist, but a link to a playlist. See PlaylistFeed and PlaylistEntry for the playlist feed objects.

Summary

Nested Classes
enum SubscriptionEntry.Type Subscription 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
SubscriptionEntry()
SubscriptionEntry(BaseEntry<?> base)
Public Methods
void addSubscriptionType(SubscriptionEntry.Type type)
Adds a type category to this entry.
void declareExtensions(ExtensionProfile extProfile)
Declares the set of expected Extension types for an ExtensionPoint within the target extension profile.
String getPlaylistId()
Get the id of the playlist subscribed to.
String getPlaylistTitle()
Get the title of the playlist subscribed to.
String getQueryString()
Get the query string of the subscription.
SubscriptionEntry.Type getSubscriptionType()
Gets the type of the subscription, if it is of a known type.
String getUsername()
Get the value of the optional username
void setPlaylistId(String playlistId)
Set the optional id of the playlist subscribed to.
void setPlaylistTitle(String playlistTitle)
Set the title of the playlist subscribed to.
void setQueryString(String query)
Set the optional query string of a subscription with the type query.
void setSubscriptionType(SubscriptionEntry.Type type)
Sets the type category of this entry.
void setUsername(String username)
Set the optional username.
[Expand]
Inherited Methods
From class com.google.gdata.data.youtube.FeedLinkEntry
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 SubscriptionEntry ()

public SubscriptionEntry (BaseEntry<?> base)

Parameters
base

Public Methods

public void addSubscriptionType (SubscriptionEntry.Type type)

Adds a type category to this entry.

Parameters
type Subscription types

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 String getPlaylistId ()

Get the id of the playlist subscribed to.

Returns
  • the playlist id

public String getPlaylistTitle ()

Get the title of the playlist subscribed to.

Returns
  • the playlist title

public String getQueryString ()

Get the query string of the subscription.

Returns
  • the query string

public SubscriptionEntry.Type getSubscriptionType ()

Gets the type of the subscription, if it is of a known type.

Returns
  • subscription type or null if it is of an unknown type

public String getUsername ()

Get the value of the optional username

Returns
  • the username

public void setPlaylistId (String playlistId)

Set the optional id of the playlist subscribed to.

Parameters
playlistId The id of the playlist

public void setPlaylistTitle (String playlistTitle)

Set the title of the playlist subscribed to.

Parameters
playlistTitle The playlistTitle

public void setQueryString (String query)

Set the optional query string of a subscription with the type query.

Parameters
query The query string

public void setSubscriptionType (SubscriptionEntry.Type type)

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

Parameters
type New subscription type or null

public void setUsername (String username)

Set the optional username.

Parameters
username Content of the yt:username tag