Show / Hide Table of Contents

Class CommentSnippet

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

Inheritance
object
CommentSnippet
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
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
string

AuthorDisplayName

The name of the user who posted the comment.

Declaration
[JsonProperty("authorDisplayName")]
public virtual string AuthorDisplayName { get; set; }
Property Value
Type Description
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
string

CanRate

Whether the current viewer can rate this comment.

Declaration
[JsonProperty("canRate")]
public virtual bool? CanRate { get; set; }
Property Value
Type Description
bool?

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
string

ETag

The ETag of the item.

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

LikeCount

The total number of likes this comment has received.

Declaration
[JsonProperty("likeCount")]
public virtual long? LikeCount { get; set; }
Property Value
Type Description
long?

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
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
string

PublishedAt

DateTime representation of PublishedAtRaw.

Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use PublishedAtDateTimeOffset instead.")]
public virtual DateTime? PublishedAt { get; set; }
Property Value
Type Description
DateTime?

PublishedAtDateTimeOffset

DateTimeOffset representation of PublishedAtRaw.

Declaration
[JsonIgnore]
public virtual DateTimeOffset? PublishedAtDateTimeOffset { get; set; }
Property Value
Type Description
DateTimeOffset?

PublishedAtRaw

The date and time when the comment was originally published.

Declaration
[JsonProperty("publishedAt")]
public virtual string PublishedAtRaw { get; set; }
Property Value
Type Description
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
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
string

UpdatedAt

DateTime representation of UpdatedAtRaw.

Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use UpdatedAtDateTimeOffset instead.")]
public virtual DateTime? UpdatedAt { get; set; }
Property Value
Type Description
DateTime?

UpdatedAtDateTimeOffset

DateTimeOffset representation of UpdatedAtRaw.

Declaration
[JsonIgnore]
public virtual DateTimeOffset? UpdatedAtDateTimeOffset { get; set; }
Property Value
Type Description
DateTimeOffset?

UpdatedAtRaw

The date and time when the comment was last updated.

Declaration
[JsonProperty("updatedAt")]
public virtual string UpdatedAtRaw { get; set; }
Property Value
Type Description
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
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
string

Implements

IDirectResponseSchema
In This Article
Back to top Generated by DocFX