Class CommentsResource
The "comments" collection of methods.
Inherited Members
Namespace: Google.Apis.YouTube.v3
Assembly: Google.Apis.YouTube.v3.dll
Syntax
public class CommentsResource
Constructors
CommentsResource(IClientService)
Constructs a new resource.
Declaration
public CommentsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Delete(string)
Deletes a resource.
Declaration
public virtual CommentsResource.DeleteRequest Delete(string id)
Parameters
Type | Name | Description |
---|---|---|
string | id |
|
Returns
Type | Description |
---|---|
CommentsResource.DeleteRequest |
Insert(Comment, Repeatable<string>)
Inserts a new resource into this collection.
Declaration
public virtual CommentsResource.InsertRequest Insert(Comment body, Repeatable<string> part)
Parameters
Type | Name | Description |
---|---|---|
Comment | body | The body of the request. |
Repeatable<string> | part | The 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. |
Returns
Type | Description |
---|---|
CommentsResource.InsertRequest |
List(Repeatable<string>)
Retrieves a list of resources, possibly filtered.
Declaration
public virtual CommentsResource.ListRequest List(Repeatable<string> part)
Parameters
Type | Name | Description |
---|---|---|
Repeatable<string> | part | The part parameter specifies a comma-separated list of one or more comment resource properties that the API response will include. |
Returns
Type | Description |
---|---|
CommentsResource.ListRequest |
MarkAsSpam(Repeatable<string>)
Expresses the caller's opinion that one or more comments should be flagged as spam.
Declaration
public virtual CommentsResource.MarkAsSpamRequest MarkAsSpam(Repeatable<string> id)
Parameters
Type | Name | Description |
---|---|---|
Repeatable<string> | id | Flags the comments with the given IDs as spam in the caller's opinion. |
Returns
Type | Description |
---|---|
CommentsResource.MarkAsSpamRequest |
SetModerationStatus(Repeatable<string>, ModerationStatusEnum)
Sets the moderation status of one or more comments.
Declaration
public virtual CommentsResource.SetModerationStatusRequest SetModerationStatus(Repeatable<string> id, CommentsResource.SetModerationStatusRequest.ModerationStatusEnum moderationStatus)
Parameters
Type | Name | Description |
---|---|---|
Repeatable<string> | id | Modifies the moderation status of the comments with the given IDs |
CommentsResource.SetModerationStatusRequest.ModerationStatusEnum | moderationStatus | Specifies the requested moderation status. Note, comments can be in statuses, which are not available through this call. For example, this call does not allow to mark a comment as 'likely spam'. Valid values: 'heldForReview', 'published' or 'rejected'. |
Returns
Type | Description |
---|---|
CommentsResource.SetModerationStatusRequest |
Update(Comment, Repeatable<string>)
Updates an existing resource.
Declaration
public virtual CommentsResource.UpdateRequest Update(Comment body, Repeatable<string> part)
Parameters
Type | Name | Description |
---|---|---|
Comment | body | The body of the request. |
Repeatable<string> | part | The 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. |
Returns
Type | Description |
---|---|
CommentsResource.UpdateRequest |