youtube
v3
|
#include <playlist_item.h>
Public Member Functions | |
PlaylistItem (const Json::Value &storage) | |
PlaylistItem (Json::Value *storage) | |
virtual | ~PlaylistItem () |
const StringPiece | GetTypeName () const |
bool | has_content_details () const |
void | clear_content_details () |
const PlaylistItemContentDetails | get_content_details () const |
PlaylistItemContentDetails | 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 PlaylistItemSnippet | get_snippet () const |
PlaylistItemSnippet | mutable_snippet () |
bool | has_status () const |
void | clear_status () |
const PlaylistItemStatus | get_status () const |
PlaylistItemStatus | mutable_status () |
Static Public Member Functions | |
static PlaylistItem * | New () |
A playlistItem resource identifies another resource, such as a video, that is included in a playlist. In addition, the playlistItem resource contains details about the included resource that pertain specifically to how that resource is used in that playlist.
YouTube uses playlists to identify special collections of videos for a channel, such as:
You can retrieve the playlist IDs for each of these lists from the channel resource for a given channel. You can then use the playlistItems.list method to retrieve any of those lists. You can also add or remove items from those lists by calling the playlistItems.insert and playlistItems.delete methods. For example, if a user gives a positive rating to a video, you would insert that video into the liked videos playlist for that user's channel.
|
explicit |
Standard constructor for an immutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
explicit |
Standard constructor for a mutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
virtual |
Standard destructor.
|
inline |
Clears the 'contentDetails
' attribute.
|
inline |
Clears the 'etag
' attribute.
|
inline |
Clears the 'id
' attribute.
|
inline |
Clears the 'kind
' attribute.
|
inline |
Clears the 'snippet
' attribute.
|
inline |
Clears the 'status
' attribute.
const PlaylistItemContentDetails google_youtube_api::PlaylistItem::get_content_details | ( | ) | const |
Get a reference to the value of the 'contentDetails
' attribute.
|
inline |
Get the value of the 'etag
' attribute.
|
inline |
Get the value of the 'id
' attribute.
|
inline |
Get the value of the 'kind
' attribute.
const PlaylistItemSnippet google_youtube_api::PlaylistItem::get_snippet | ( | ) | const |
Get a reference to the value of the 'snippet
' attribute.
const PlaylistItemStatus google_youtube_api::PlaylistItem::get_status | ( | ) | const |
Get a reference to the value of the 'status
' attribute.
|
inline |
Returns a string denoting the type of this data object.
|
inline |
Determine if the 'contentDetails
' attribute was set.
contentDetails
' attribute was set.
|
inline |
Determine if the 'etag
' attribute was set.
etag
' attribute was set.
|
inline |
Determine if the 'id
' attribute was set.
id
' attribute was set.
|
inline |
Determine if the 'kind
' attribute was set.
kind
' attribute was set.
|
inline |
Determine if the 'snippet
' attribute was set.
snippet
' attribute was set.
|
inline |
Determine if the 'status
' attribute was set.
status
' attribute was set. PlaylistItemContentDetails google_youtube_api::PlaylistItem::mutable_contentDetails | ( | ) |
Gets a reference to a mutable value of the 'contentDetails
' property.
The contentDetails object is included in the resource if the included item is a YouTube video. The object contains additional information about the video.
PlaylistItemSnippet google_youtube_api::PlaylistItem::mutable_snippet | ( | ) |
Gets a reference to a mutable value of the 'snippet
' property.
The snippet object contains basic details about the playlist item, such as its title and position in the playlist.
PlaylistItemStatus google_youtube_api::PlaylistItem::mutable_status | ( | ) |
Gets a reference to a mutable value of the 'status
' property.
The status object contains information about the playlist item's privacy status.
|
static |
Creates a new default instance.
|
inline |
Change the 'etag
' attribute.
Etag of this resource.
[in] | value | The new value. |
|
inline |
Change the 'id
' attribute.
The ID that YouTube uses to uniquely identify the playlist item.
[in] | value | The new value. |
|
inline |
Change the 'kind
' attribute.
Identifies what kind of resource this is. Value: the fixed string "youtube#playlistItem".
[in] | value | The new value. |