class Google::Apis::YoutubeV3::LiveChatMessageSnippet

Next ID: 31

Attributes

author_channel_id[RW]

The ID of the user that authored this message, this field is not always filled. textMessageEvent - the user that wrote the message fanFundingEvent - the user that funded the broadcast newSponsorEvent - the user that just became a sponsor memberMilestoneChatEvent - the member that sent the message messageDeletedEvent - the moderator that took the action messageRetractedEvent

  • the author that retracted their message userBannedEvent - the moderator that

took the action superChatEvent - the user that made the purchase superStickerEvent - the user that made the purchase Corresponds to the JSON property `authorChannelId` @return [String]

display_message[RW]

Contains a string that can be displayed to the user. If this field is not present the message is silent, at the moment only messages of type TOMBSTONE and CHAT_ENDED_EVENT are silent. Corresponds to the JSON property `displayMessage` @return [String]

fan_funding_event_details[RW]

Details about the funding event, this is only set if the type is ' fanFundingEvent'. Corresponds to the JSON property `fanFundingEventDetails` @return [Google::Apis::YoutubeV3::LiveChatFanFundingEventDetails]

has_display_content[RW]

Whether the message has display content that should be displayed to users. Corresponds to the JSON property `hasDisplayContent` @return [Boolean]

has_display_content?[RW]

Whether the message has display content that should be displayed to users. Corresponds to the JSON property `hasDisplayContent` @return [Boolean]

live_chat_id[RW]

Corresponds to the JSON property `liveChatId` @return [String]

member_milestone_chat_details[RW]

Details about the Member Milestone Chat event, this is only set if the type is 'memberMilestoneChatEvent'. Corresponds to the JSON property `memberMilestoneChatDetails` @return [Google::Apis::YoutubeV3::LiveChatMemberMilestoneChatDetails]

message_deleted_details[RW]

Corresponds to the JSON property `messageDeletedDetails` @return [Google::Apis::YoutubeV3::LiveChatMessageDeletedDetails]

message_retracted_details[RW]

Corresponds to the JSON property `messageRetractedDetails` @return [Google::Apis::YoutubeV3::LiveChatMessageRetractedDetails]

new_sponsor_details[RW]

Details about the New Member Announcement event, this is only set if the type is 'newSponsorEvent'. Please note that “member” is the new term for “sponsor”. Corresponds to the JSON property `newSponsorDetails` @return [Google::Apis::YoutubeV3::LiveChatNewSponsorDetails]

published_at[RW]

The date and time when the message was orignally published. Corresponds to the JSON property `publishedAt` @return [DateTime]

super_chat_details[RW]

Details about the Super Chat event, this is only set if the type is ' superChatEvent'. Corresponds to the JSON property `superChatDetails` @return [Google::Apis::YoutubeV3::LiveChatSuperChatDetails]

super_sticker_details[RW]

Details about the Super Sticker event, this is only set if the type is ' superStickerEvent'. Corresponds to the JSON property `superStickerDetails` @return [Google::Apis::YoutubeV3::LiveChatSuperStickerDetails]

text_message_details[RW]

Details about the text message, this is only set if the type is ' textMessageEvent'. Corresponds to the JSON property `textMessageDetails` @return [Google::Apis::YoutubeV3::LiveChatTextMessageDetails]

type[RW]

The type of message, this will always be present, it determines the contents of the message as well as which fields will be present. Corresponds to the JSON property `type` @return [String]

user_banned_details[RW]

Corresponds to the JSON property `userBannedDetails` @return [Google::Apis::YoutubeV3::LiveChatUserBannedMessageDetails]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/youtube_v3/classes.rb, line 4416
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/youtube_v3/classes.rb, line 4421
def update!(**args)
  @author_channel_id = args[:author_channel_id] if args.key?(:author_channel_id)
  @display_message = args[:display_message] if args.key?(:display_message)
  @fan_funding_event_details = args[:fan_funding_event_details] if args.key?(:fan_funding_event_details)
  @has_display_content = args[:has_display_content] if args.key?(:has_display_content)
  @live_chat_id = args[:live_chat_id] if args.key?(:live_chat_id)
  @member_milestone_chat_details = args[:member_milestone_chat_details] if args.key?(:member_milestone_chat_details)
  @message_deleted_details = args[:message_deleted_details] if args.key?(:message_deleted_details)
  @message_retracted_details = args[:message_retracted_details] if args.key?(:message_retracted_details)
  @new_sponsor_details = args[:new_sponsor_details] if args.key?(:new_sponsor_details)
  @published_at = args[:published_at] if args.key?(:published_at)
  @super_chat_details = args[:super_chat_details] if args.key?(:super_chat_details)
  @super_sticker_details = args[:super_sticker_details] if args.key?(:super_sticker_details)
  @text_message_details = args[:text_message_details] if args.key?(:text_message_details)
  @type = args[:type] if args.key?(:type)
  @user_banned_details = args[:user_banned_details] if args.key?(:user_banned_details)
end