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

#include <activity.h>

Inheritance diagram for google_youtube_api::Activity:

Public Member Functions

 Activity (const Json::Value &storage)
 
 Activity (Json::Value *storage)
 
virtual ~Activity ()
 
const StringPiece GetTypeName () const
 
bool has_content_details () const
 
void clear_content_details ()
 
const ActivityContentDetails get_content_details () const
 
ActivityContentDetails mutable_contentDetails ()
 
bool has_etag () const
 
void clear_etag ()
 
const StringPiece get_etag () const
 
void set_etag (const StringPiece &value)
 
bool has_id () const
 
void clear_id ()
 
const StringPiece get_id () const
 
void set_id (const StringPiece &value)
 
bool has_kind () const
 
void clear_kind ()
 
const StringPiece get_kind () const
 
void set_kind (const StringPiece &value)
 
bool has_snippet () const
 
void clear_snippet ()
 
const ActivitySnippet get_snippet () const
 
ActivitySnippet mutable_snippet ()
 

Static Public Member Functions

static ActivityNew ()
 

Detailed Description

An activity resource contains information about an action that a particular channel, or user, has taken on YouTube.The actions reported in activity feeds include rating a video, sharing a video, marking a video as a favorite, commenting on a video, uploading a video, and so forth. Each activity resource identifies the type of action, the channel associated with the action, and the resource(s) associated with the action, such as the video that was rated or uploaded.

Constructor & Destructor Documentation

◆ Activity() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ Activity() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~Activity()

google_youtube_api::Activity::~Activity ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_content_details()

void google_youtube_api::Activity::clear_content_details ( )
inline

Clears the 'contentDetails' attribute.

◆ clear_etag()

void google_youtube_api::Activity::clear_etag ( )
inline

Clears the 'etag' attribute.

◆ clear_id()

void google_youtube_api::Activity::clear_id ( )
inline

Clears the 'id' attribute.

◆ clear_kind()

void google_youtube_api::Activity::clear_kind ( )
inline

Clears the 'kind' attribute.

◆ clear_snippet()

void google_youtube_api::Activity::clear_snippet ( )
inline

Clears the 'snippet' attribute.

◆ get_content_details()

const ActivityContentDetails google_youtube_api::Activity::get_content_details ( ) const

Get a reference to the value of the 'contentDetails' attribute.

◆ get_etag()

const StringPiece google_youtube_api::Activity::get_etag ( ) const
inline

Get the value of the 'etag' attribute.

◆ get_id()

const StringPiece google_youtube_api::Activity::get_id ( ) const
inline

Get the value of the 'id' attribute.

◆ get_kind()

const StringPiece google_youtube_api::Activity::get_kind ( ) const
inline

Get the value of the 'kind' attribute.

◆ get_snippet()

const ActivitySnippet google_youtube_api::Activity::get_snippet ( ) const

Get a reference to the value of the 'snippet' attribute.

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_youtube_api::Activity

◆ has_content_details()

bool google_youtube_api::Activity::has_content_details ( ) const
inline

Determine if the 'contentDetails' attribute was set.

Returns
true if the 'contentDetails' attribute was set.

◆ has_etag()

bool google_youtube_api::Activity::has_etag ( ) const
inline

Determine if the 'etag' attribute was set.

Returns
true if the 'etag' attribute was set.

◆ has_id()

bool google_youtube_api::Activity::has_id ( ) const
inline

Determine if the 'id' attribute was set.

Returns
true if the 'id' attribute was set.

◆ has_kind()

bool google_youtube_api::Activity::has_kind ( ) const
inline

Determine if the 'kind' attribute was set.

Returns
true if the 'kind' attribute was set.

◆ has_snippet()

bool google_youtube_api::Activity::has_snippet ( ) const
inline

Determine if the 'snippet' attribute was set.

Returns
true if the 'snippet' attribute was set.

◆ mutable_contentDetails()

ActivityContentDetails google_youtube_api::Activity::mutable_contentDetails ( )

Gets a reference to a mutable value of the 'contentDetails' property.

The contentDetails object contains information about the content associated with the activity. For example, if the snippet.type value is videoRated, then the contentDetails object's content identifies the rated video.

Returns
The result can be modified to change the attribute value.

◆ mutable_snippet()

ActivitySnippet google_youtube_api::Activity::mutable_snippet ( )

Gets a reference to a mutable value of the 'snippet' property.

The snippet object contains basic details about the activity, including the activity's type and group ID.

Returns
The result can be modified to change the attribute value.

◆ New()

Activity * google_youtube_api::Activity::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_etag()

void google_youtube_api::Activity::set_etag ( const StringPiece &  value)
inline

Change the 'etag' attribute.

Etag of this resource.

Parameters
[in]valueThe new value.

◆ set_id()

void google_youtube_api::Activity::set_id ( const StringPiece &  value)
inline

Change the 'id' attribute.

The ID that YouTube uses to uniquely identify the activity.

Parameters
[in]valueThe new value.

◆ set_kind()

void google_youtube_api::Activity::set_kind ( const StringPiece &  value)
inline

Change the 'kind' attribute.

Identifies what kind of resource this is. Value: the fixed string "youtube#activity".

Parameters
[in]valueThe new value.

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