Class CommentsResource.SetModerationStatusRequest
Sets the moderation status of one or more comments.
Inheritance
CommentsResource.SetModerationStatusRequest
Inherited Members
Namespace: Google.Apis.YouTube.v3
Assembly: Google.Apis.YouTube.v3.dll
Syntax
public class CommentsResource.SetModerationStatusRequest : YouTubeBaseServiceRequest<string>, IClientServiceRequest<string>, IClientServiceRequest
Constructors
SetModerationStatusRequest(IClientService, Repeatable<string>, ModerationStatusEnum)
Constructs a new SetModerationStatus request.
Declaration
public SetModerationStatusRequest(IClientService service, Repeatable<string> id, CommentsResource.SetModerationStatusRequest.ModerationStatusEnum moderationStatus)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
Repeatable<string> | id | |
CommentsResource.SetModerationStatusRequest.ModerationStatusEnum | moderationStatus |
Properties
BanAuthor
If set to true the author of the comment gets added to the ban list. This means all future comments of the author will autmomatically be rejected. Only valid in combination with STATUS_REJECTED.
Declaration
[RequestParameter("banAuthor", RequestParameterType.Query)]
public virtual bool? BanAuthor { get; set; }
Property Value
Type | Description |
---|---|
bool? |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Id
Modifies the moderation status of the comments with the given IDs
Declaration
[RequestParameter("id", RequestParameterType.Query)]
public virtual Repeatable<string> Id { get; }
Property Value
Type | Description |
---|---|
Repeatable<string> |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
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'.
Declaration
[RequestParameter("moderationStatus", RequestParameterType.Query)]
public virtual CommentsResource.SetModerationStatusRequest.ModerationStatusEnum ModerationStatus { get; }
Property Value
Type | Description |
---|---|
CommentsResource.SetModerationStatusRequest.ModerationStatusEnum |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
InitParameters()
Initializes SetModerationStatus parameter list.
Declaration
protected override void InitParameters()