youtube  v3
Public Member Functions | Static Public Member Functions | List of all members
google_youtube_api::VideoStatistics Class Reference

#include <video_statistics.h>

Inheritance diagram for google_youtube_api::VideoStatistics:

Public Member Functions

 VideoStatistics (const Json::Value &storage)
 
 VideoStatistics (Json::Value *storage)
 
virtual ~VideoStatistics ()
 
const StringPiece GetTypeName () const
 
bool has_comment_count () const
 
void clear_comment_count ()
 
uint64 get_comment_count () const
 
void set_comment_count (uint64 value)
 
bool has_dislike_count () const
 
void clear_dislike_count ()
 
uint64 get_dislike_count () const
 
void set_dislike_count (uint64 value)
 
bool has_favorite_count () const
 
void clear_favorite_count ()
 
uint64 get_favorite_count () const
 
void set_favorite_count (uint64 value)
 
bool has_like_count () const
 
void clear_like_count ()
 
uint64 get_like_count () const
 
void set_like_count (uint64 value)
 
bool has_view_count () const
 
void clear_view_count ()
 
uint64 get_view_count () const
 
void set_view_count (uint64 value)
 

Static Public Member Functions

static VideoStatisticsNew ()
 

Detailed Description

Statistics about the video, such as the number of times the video was viewed or liked.

Constructor & Destructor Documentation

◆ VideoStatistics() [1/2]

google_youtube_api::VideoStatistics::VideoStatistics ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ VideoStatistics() [2/2]

google_youtube_api::VideoStatistics::VideoStatistics ( Json::Value *  storage)
explicit

Standard constructor for a mutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ ~VideoStatistics()

google_youtube_api::VideoStatistics::~VideoStatistics ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_comment_count()

void google_youtube_api::VideoStatistics::clear_comment_count ( )
inline

Clears the 'commentCount' attribute.

◆ clear_dislike_count()

void google_youtube_api::VideoStatistics::clear_dislike_count ( )
inline

Clears the 'dislikeCount' attribute.

◆ clear_favorite_count()

void google_youtube_api::VideoStatistics::clear_favorite_count ( )
inline

Clears the 'favoriteCount' attribute.

◆ clear_like_count()

void google_youtube_api::VideoStatistics::clear_like_count ( )
inline

Clears the 'likeCount' attribute.

◆ clear_view_count()

void google_youtube_api::VideoStatistics::clear_view_count ( )
inline

Clears the 'viewCount' attribute.

◆ get_comment_count()

uint64 google_youtube_api::VideoStatistics::get_comment_count ( ) const
inline

Get the value of the 'commentCount' attribute.

◆ get_dislike_count()

uint64 google_youtube_api::VideoStatistics::get_dislike_count ( ) const
inline

Get the value of the 'dislikeCount' attribute.

◆ get_favorite_count()

uint64 google_youtube_api::VideoStatistics::get_favorite_count ( ) const
inline

Get the value of the 'favoriteCount' attribute.

◆ get_like_count()

uint64 google_youtube_api::VideoStatistics::get_like_count ( ) const
inline

Get the value of the 'likeCount' attribute.

◆ get_view_count()

uint64 google_youtube_api::VideoStatistics::get_view_count ( ) const
inline

Get the value of the 'viewCount' attribute.

◆ GetTypeName()

const StringPiece google_youtube_api::VideoStatistics::GetTypeName ( ) const
inline

Returns a string denoting the type of this data object.

Returns
google_youtube_api::VideoStatistics

◆ has_comment_count()

bool google_youtube_api::VideoStatistics::has_comment_count ( ) const
inline

Determine if the 'commentCount' attribute was set.

Returns
true if the 'commentCount' attribute was set.

◆ has_dislike_count()

bool google_youtube_api::VideoStatistics::has_dislike_count ( ) const
inline

Determine if the 'dislikeCount' attribute was set.

Returns
true if the 'dislikeCount' attribute was set.

◆ has_favorite_count()

bool google_youtube_api::VideoStatistics::has_favorite_count ( ) const
inline

Determine if the 'favoriteCount' attribute was set.

Returns
true if the 'favoriteCount' attribute was set.

◆ has_like_count()

bool google_youtube_api::VideoStatistics::has_like_count ( ) const
inline

Determine if the 'likeCount' attribute was set.

Returns
true if the 'likeCount' attribute was set.

◆ has_view_count()

bool google_youtube_api::VideoStatistics::has_view_count ( ) const
inline

Determine if the 'viewCount' attribute was set.

Returns
true if the 'viewCount' attribute was set.

◆ New()

VideoStatistics * google_youtube_api::VideoStatistics::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_comment_count()

void google_youtube_api::VideoStatistics::set_comment_count ( uint64  value)
inline

Change the 'commentCount' attribute.

The number of comments for the video.

Parameters
[in]valueThe new value.

◆ set_dislike_count()

void google_youtube_api::VideoStatistics::set_dislike_count ( uint64  value)
inline

Change the 'dislikeCount' attribute.

The number of users who have indicated that they disliked the video by giving it a negative rating.

Parameters
[in]valueThe new value.

◆ set_favorite_count()

void google_youtube_api::VideoStatistics::set_favorite_count ( uint64  value)
inline

Change the 'favoriteCount' attribute.

The number of users who currently have the video marked as a favorite video.

Parameters
[in]valueThe new value.

◆ set_like_count()

void google_youtube_api::VideoStatistics::set_like_count ( uint64  value)
inline

Change the 'likeCount' attribute.

The number of users who have indicated that they liked the video by giving it a positive rating.

Parameters
[in]valueThe new value.

◆ set_view_count()

void google_youtube_api::VideoStatistics::set_view_count ( uint64  value)
inline

Change the 'viewCount' attribute.

The number of times the video has been viewed.

Parameters
[in]valueThe new value.

The documentation for this class was generated from the following files: