Show / Hide Table of Contents

Class CommentSnippet

Basic details about a comment, such as its author and text.

Inheritance
System.Object
CommentSnippet
Implements
IDirectResponseSchema
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.YouTube.v3.Data
Assembly: Google.Apis.YouTube.v3.dll
Syntax
public class CommentSnippet : IDirectResponseSchema

Properties

AuthorChannelId

Declaration
[JsonProperty("authorChannelId")]
public virtual CommentSnippetAuthorChannelId AuthorChannelId { get; set; }
Property Value
Type Description
CommentSnippetAuthorChannelId

AuthorChannelUrl

Link to the author's YouTube channel, if any.

Declaration
[JsonProperty("authorChannelUrl")]
public virtual string AuthorChannelUrl { get; set; }
Property Value
Type Description
System.String

AuthorDisplayName

The name of the user who posted the comment.

Declaration
[JsonProperty("authorDisplayName")]
public virtual string AuthorDisplayName { get; set; }
Property Value
Type Description
System.String

AuthorProfileImageUrl

The URL for the avatar of the user who posted the comment.

Declaration
[JsonProperty("authorProfileImageUrl")]
public virtual string AuthorProfileImageUrl { get; set; }
Property Value
Type Description
System.String

CanRate

Whether the current viewer can rate this comment.

Declaration
[JsonProperty("canRate")]
public virtual bool? CanRate { get; set; }
Property Value
Type Description
System.Nullable<System.Boolean>

ChannelId

The id of the corresponding YouTube channel. In case of a channel comment this is the channel the comment refers to. In case of a video comment it's the video's channel.

Declaration
[JsonProperty("channelId")]
public virtual string ChannelId { get; set; }
Property Value
Type Description
System.String

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
System.String

LikeCount

The total number of likes this comment has received.

Declaration
[JsonProperty("likeCount")]
public virtual long? LikeCount { get; set; }
Property Value
Type Description
System.Nullable<System.Int64>

ModerationStatus

The comment's moderation status. Will not be set if the comments were requested through the id filter.

Declaration
[JsonProperty("moderationStatus")]
public virtual string ModerationStatus { get; set; }
Property Value
Type Description
System.String

ParentId

The unique id of the parent comment, only set for replies.

Declaration
[JsonProperty("parentId")]
public virtual string ParentId { get; set; }
Property Value
Type Description
System.String

PublishedAt

The date and time when the comment was orignally published. The value is specified in ISO 8601 format.

Declaration
[JsonProperty("publishedAt")]
public virtual string PublishedAt { get; set; }
Property Value
Type Description
System.String

TextDisplay

The comment's text. The format is either plain text or HTML dependent on what has been requested. Even the plain text representation may differ from the text originally posted in that it may replace video links with video titles etc.

Declaration
[JsonProperty("textDisplay")]
public virtual string TextDisplay { get; set; }
Property Value
Type Description
System.String

TextOriginal

The comment's original raw text as initially posted or last updated. The original text will only be returned if it is accessible to the viewer, which is only guaranteed if the viewer is the comment's author.

Declaration
[JsonProperty("textOriginal")]
public virtual string TextOriginal { get; set; }
Property Value
Type Description
System.String

UpdatedAt

The date and time when was last updated . The value is specified in ISO 8601 format.

Declaration
[JsonProperty("updatedAt")]
public virtual string UpdatedAt { get; set; }
Property Value
Type Description
System.String

VideoId

The ID of the video the comment refers to, if any.

Declaration
[JsonProperty("videoId")]
public virtual string VideoId { get; set; }
Property Value
Type Description
System.String

ViewerRating

The rating the viewer has given to this comment. For the time being this will never return RATE_TYPE_DISLIKE and instead return RATE_TYPE_NONE. This may change in the future.

Declaration
[JsonProperty("viewerRating")]
public virtual string ViewerRating { get; set; }
Property Value
Type Description
System.String

Implements

IDirectResponseSchema
Back to top