class Google::Apis::YoutubeV3::LiveChatBanSnippet

Attributes

ban_duration_seconds[RW]

The duration of a ban, only filled if the ban has type TEMPORARY. Corresponds to the JSON property `banDurationSeconds` @return [Fixnum]

banned_user_details[RW]

Corresponds to the JSON property `bannedUserDetails` @return [Google::Apis::YoutubeV3::ChannelProfileDetails]

live_chat_id[RW]

The chat this ban is pertinent to. Corresponds to the JSON property `liveChatId` @return [String]

type[RW]

The type of ban. Corresponds to the JSON property `type` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/youtube_v3/classes.rb, line 4011
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 4016
def update!(**args)
  @ban_duration_seconds = args[:ban_duration_seconds] if args.key?(:ban_duration_seconds)
  @banned_user_details = args[:banned_user_details] if args.key?(:banned_user_details)
  @live_chat_id = args[:live_chat_id] if args.key?(:live_chat_id)
  @type = args[:type] if args.key?(:type)
end