youtube  v3
Public Member Functions | List of all members
google_youtube_api::YouTubeService::CommentsResource Class Reference

#include <you_tube_service.h>

Public Member Functions

 CommentsResource (YouTubeService *service)
 
 ~CommentsResource ()
 
CommentsResource_DeleteMethodNewDeleteMethod (client::AuthorizationCredential *_credential_, const absl::string_view &id) const
 
CommentsResource_InsertMethodNewInsertMethod (client::AuthorizationCredential *_credential_, const absl::string_view &part, const Comment &_content_) const
 
CommentsResource_ListMethodNewListMethod (client::AuthorizationCredential *_credential_, const absl::string_view &part) const
 
CommentsResource_ListMethodPager * NewListMethodPager (client::AuthorizationCredential *_credential_, const absl::string_view &part) const
 
CommentsResource_MarkAsSpamMethodNewMarkAsSpamMethod (client::AuthorizationCredential *_credential_, const absl::string_view &id) const
 
CommentsResource_SetModerationStatusMethodNewSetModerationStatusMethod (client::AuthorizationCredential *_credential_, const absl::string_view &id, const absl::string_view &moderation_status) const
 
CommentsResource_UpdateMethodNewUpdateMethod (client::AuthorizationCredential *_credential_, const absl::string_view &part, const Comment &_content_) const
 

Detailed Description

Acts as message factory for accessing data.

Constructor & Destructor Documentation

◆ CommentsResource()

google_youtube_api::YouTubeService::CommentsResource::CommentsResource ( YouTubeService service)
explicit

Standard constructor.

Parameters
[in]serviceThe service instance is used to bind to the methods created from this resource instance. This will be the service that methods are invoked on.

◆ ~CommentsResource()

google_youtube_api::YouTubeService::CommentsResource::~CommentsResource ( )
inline

Standard destructor.

Member Function Documentation

◆ NewDeleteMethod()

CommentsResource_DeleteMethod * google_youtube_api::YouTubeService::CommentsResource::NewDeleteMethod ( client::AuthorizationCredential *  _credential_,
const absl::string_view &  id 
) const

Creates a new CommentsResource_DeleteMethod instance.

Parameters
[in]<em>credential</em>Can be NULL. NULL credentials will not authorize the request.
[in]idThe id parameter specifies the comment ID for the resource that is being deleted.
Returns
The caller should Execute the method instance, then destroy it when they are finished.

◆ NewInsertMethod()

CommentsResource_InsertMethod * google_youtube_api::YouTubeService::CommentsResource::NewInsertMethod ( client::AuthorizationCredential *  _credential_,
const absl::string_view &  part,
const Comment _content_ 
) const

Creates a new CommentsResource_InsertMethod instance.

Parameters
[in]<em>credential</em>Can be NULL. NULL credentials will not authorize the request.
[in]partThe part parameter identifies the properties that the API response will include. Set the parameter value to snippet. The snippet part has a quota cost of 2 units.
[in]<em>content</em>The data object to insert.
Returns
The caller should Execute the method instance, then destroy it when they are finished.

◆ NewListMethod()

CommentsResource_ListMethod * google_youtube_api::YouTubeService::CommentsResource::NewListMethod ( client::AuthorizationCredential *  _credential_,
const absl::string_view &  part 
) const

Creates a new CommentsResource_ListMethod instance.

Parameters
[in]<em>credential</em>Can be NULL. NULL credentials will not authorize the request.
[in]partThe part parameter specifies a comma-separated list of one or more comment resource properties that the API response will include.
Returns
The caller should Execute the method instance, then destroy it when they are finished.

◆ NewListMethodPager()

CommentsResource_ListMethodPager * google_youtube_api::YouTubeService::CommentsResource::NewListMethodPager ( client::AuthorizationCredential *  _credential_,
const absl::string_view &  part 
) const

Creates a pager for iterating over incremental result pages.

Parameters
[in]<em>credential</em>NULL credentials will not authorize the request.
[in]partThe part parameter specifies a comma-separated list of one or more comment resource properties that the API response will include.
See also
googleapis::googleapis::ServiceRequestPager

◆ NewMarkAsSpamMethod()

CommentsResource_MarkAsSpamMethod * google_youtube_api::YouTubeService::CommentsResource::NewMarkAsSpamMethod ( client::AuthorizationCredential *  _credential_,
const absl::string_view &  id 
) const

Creates a new CommentsResource_MarkAsSpamMethod instance.

Parameters
[in]<em>credential</em>Can be NULL. NULL credentials will not authorize the request.
[in]idThe id parameter specifies a comma-separated list of IDs of comments that the caller believes should be classified as spam.
Returns
The caller should Execute the method instance, then destroy it when they are finished.

◆ NewSetModerationStatusMethod()

CommentsResource_SetModerationStatusMethod * google_youtube_api::YouTubeService::CommentsResource::NewSetModerationStatusMethod ( client::AuthorizationCredential *  _credential_,
const absl::string_view &  id,
const absl::string_view &  moderation_status 
) const

Creates a new CommentsResource_SetModerationStatusMethod instance.

Parameters
[in]<em>credential</em>Can be NULL. NULL credentials will not authorize the request.
[in]idThe id parameter specifies a comma-separated list of IDs that identify the comments for which you are updating the moderation status.
[in]moderation_statusIdentifies the new moderation status of the specified comments.
Returns
The caller should Execute the method instance, then destroy it when they are finished.

◆ NewUpdateMethod()

CommentsResource_UpdateMethod * google_youtube_api::YouTubeService::CommentsResource::NewUpdateMethod ( client::AuthorizationCredential *  _credential_,
const absl::string_view &  part,
const Comment _content_ 
) const

Creates a new CommentsResource_UpdateMethod instance.

Parameters
[in]<em>credential</em>Can be NULL. NULL credentials will not authorize the request.
[in]partThe part parameter identifies the properties that the API response will include. You must at least include the snippet part in the parameter value since that part contains all of the properties that the API request can update.
[in]<em>content</em>The data object to update.
Returns
The caller should Execute the method instance, then destroy it when they are finished.

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