Class: Google::Apis::YoutubeV3::LiveChatMessage

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/youtube_v3/classes.rb,
lib/google/apis/youtube_v3/representations.rb,
lib/google/apis/youtube_v3/representations.rb

Overview

A liveChatMessage resource represents a chat message in a YouTube Live Chat.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LiveChatMessage

Returns a new instance of LiveChatMessage.



4341
4342
4343
# File 'lib/google/apis/youtube_v3/classes.rb', line 4341

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#author_detailsGoogle::Apis::YoutubeV3::LiveChatMessageAuthorDetails

The authorDetails object contains basic details about the user that posted this message. Corresponds to the JSON property authorDetails



4318
4319
4320
# File 'lib/google/apis/youtube_v3/classes.rb', line 4318

def author_details
  @author_details
end

#etagString

Etag of this resource. Corresponds to the JSON property etag

Returns:

  • (String)


4323
4324
4325
# File 'lib/google/apis/youtube_v3/classes.rb', line 4323

def etag
  @etag
end

#idString

The ID that YouTube assigns to uniquely identify the message. Corresponds to the JSON property id

Returns:

  • (String)


4328
4329
4330
# File 'lib/google/apis/youtube_v3/classes.rb', line 4328

def id
  @id
end

#kindString

Identifies what kind of resource this is. Value: the fixed string "youtube# liveChatMessage". Corresponds to the JSON property kind

Returns:

  • (String)


4334
4335
4336
# File 'lib/google/apis/youtube_v3/classes.rb', line 4334

def kind
  @kind
end

#snippetGoogle::Apis::YoutubeV3::LiveChatMessageSnippet

Next ID: 34 Corresponds to the JSON property snippet



4339
4340
4341
# File 'lib/google/apis/youtube_v3/classes.rb', line 4339

def snippet
  @snippet
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4346
4347
4348
4349
4350
4351
4352
# File 'lib/google/apis/youtube_v3/classes.rb', line 4346

def update!(**args)
  @author_details = args[:author_details] if args.key?(:author_details)
  @etag = args[:etag] if args.key?(:etag)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @snippet = args[:snippet] if args.key?(:snippet)
end