public class

YtUserProfileStatistics

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

Class Overview

A tag containing statistics about the user

Summary

Fields
private DateTime lastWebAccess
private long subscriberCount
private long totalUploadViews
private long videoWatchCount
private long viewCount How many time the users profile has been viewed? On the web site this field is called "channel views".
[Expand]
Inherited Fields
From class com.google.gdata.data.AbstractExtension
Public Constructors
YtUserProfileStatistics()
Public Methods
DateTime getLastWebAccess()
long getSubscriberCount()
long getTotalUploadViews()
long getVideoWatchCount()
long getViewCount()
Returns how many times this channel/profile has been viewed.
void setLastWebAccess(DateTime lastWebAccess)
void setSubscriberCount(long sc)
void setTotalUploadViews(long totalUploadViews)
void setVideoWatchCount(long vwc)
void setViewCount(long viewCount)
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 DateTime lastWebAccess

private long subscriberCount

private long totalUploadViews

private long videoWatchCount

private long viewCount

How many time the users profile has been viewed? On the web site this field is called "channel views".

Public Constructors

public YtUserProfileStatistics ()

Public Methods

public DateTime getLastWebAccess ()

public long getSubscriberCount ()

public long getTotalUploadViews ()

public long getVideoWatchCount ()

public long getViewCount ()

Returns how many times this channel/profile has been viewed.

Returns
  • number of views

public void setLastWebAccess (DateTime lastWebAccess)

Parameters
lastWebAccess

public void setSubscriberCount (long sc)

Parameters
sc

public void setTotalUploadViews (long totalUploadViews)

Parameters
totalUploadViews

public void setVideoWatchCount (long vwc)

Parameters
vwc

public void setViewCount (long viewCount)

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