LiveChatMessage class

A liveChatMessage resource represents a chat message in a YouTube live chat. The resource can contain details about several types of messages, including a newly posted text message or fan funding event.

The live chat feature is enabled by default for live broadcasts and is available while the live event is active. (After the event ends, live chat is no longer available for that event.)

Annotations
  • @JsonSerializable()

Constructors

LiveChatMessage({required String kind, required String etag, required String id, required Snippet snippet, AuthorDetails? authorDetails})
LiveChatMessage.fromJson(Map<String, dynamic> json)
factory

Properties

authorDetails → AuthorDetails?
The authorDetails object contains additional details about the user that posted this message.
final
etag String
The Etag of this resource.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
id String
The ID that YouTube assigns to uniquely identify the message.
final
kind String
Identifies the API resource's type. The value will be youtube#searchListResponse.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
snippet → Snippet
The snippet object contains core details about the chat message.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited