public class

YtStatistics

extends AbstractExtension
java.lang.Object
   ↳ com.google.gdata.data.AbstractExtension
     ↳ com.google.gdata.data.youtube.YtStatistics

Class Overview

A tag containing statistics about the entry it's in.

Summary

Fields
private long favoriteCount
private long viewCount
[Expand]
Inherited Fields
From class com.google.gdata.data.AbstractExtension
Public Constructors
YtStatistics()
Public Methods
long getFavoriteCount()
Gets favorite count, 0 by default.
long getViewCount()
Gets view count, 0 by default.
void setFavoriteCount(long favoriteCount)
Sets favorite count.
void setViewCount(long viewCount)
Sets view count.
Protected Methods
void consumeAttributes(AttributeHelper helper)
Consumes attributes from the attribute helper.
void putAttributes(AttributeGenerator generator)
Puts attributes into the attribute generator.
[Expand]
Inherited Methods
From class com.google.gdata.data.AbstractExtension
From class java.lang.Object
From interface com.google.gdata.data.Extension

Fields

private long favoriteCount

private long viewCount

Public Constructors

public YtStatistics ()

Public Methods

public long getFavoriteCount ()

Gets favorite count, 0 by default.

public long getViewCount ()

Gets view count, 0 by default.

public void setFavoriteCount (long favoriteCount)

Sets favorite count.

Parameters
favoriteCount

public void setViewCount (long viewCount)

Sets view count.

Parameters
viewCount

Protected Methods

protected void consumeAttributes (AttributeHelper helper)

Consumes attributes from the attribute helper. May also use consumeContent(boolean) to consume the element's text content. Called from getHandler(ExtensionProfile, String, String, Attributes). Default implementation does nothing, though generally this is discouraged unless there really are no attributes.

Parameters
helper Attribute helper

protected void putAttributes (AttributeGenerator generator)

Puts attributes into the attribute generator. Called from generate(XmlWriter, ExtensionProfile). Default implementation does nothing, though generally this is discouraged unless there really are no attributes.

Parameters
generator Attribute generator