Class: BuddyOnAir

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/linerb/gen-rb/takagi_chan_types.rb,
lib/linerb/gen-rb/takagi_chan_types.rb

Constant Summary collapse

MID =
1
FRESHNESSLIFETIME =
3
ONAIRID =
4
ONAIR =
5
TEXT =
11
VIEWERCOUNT =
12
TARGETCOUNT =
13
LIVEPLAYTIME =
14
SCREENASPECTRATE =
15
ONAIRTYPE =
31
ONAIRURLS =
32
ASPECTRATIOOFSOURCE =
33
USEFADINGOUT =
41
FADINGOUTIN =
42
URLAFTERFADINGOUT =
43
LABELAFTERFADINGOUT =
44
USELOWERBANNER =
51
LOWERBANNERURL =
52
LOWERBANNERLABEL =
53
FIELDS =
{
  MID => {:type => ::Thrift::Types::STRING, :name => 'mid'},
  FRESHNESSLIFETIME => {:type => ::Thrift::Types::I64, :name => 'freshnessLifetime'},
  ONAIRID => {:type => ::Thrift::Types::STRING, :name => 'onAirId'},
  ONAIR => {:type => ::Thrift::Types::BOOL, :name => 'onAir'},
  TEXT => {:type => ::Thrift::Types::STRING, :name => 'text'},
  VIEWERCOUNT => {:type => ::Thrift::Types::I64, :name => 'viewerCount'},
  TARGETCOUNT => {:type => ::Thrift::Types::I64, :name => 'targetCount'},
  LIVEPLAYTIME => {:type => ::Thrift::Types::I64, :name => 'livePlayTime'},
  SCREENASPECTRATE => {:type => ::Thrift::Types::STRING, :name => 'screenAspectRate'},
  ONAIRTYPE => {:type => ::Thrift::Types::I32, :name => 'onAirType', :enum_class => ::P0_a_e_a_b_c2},
  ONAIRURLS => {:type => ::Thrift::Types::STRUCT, :name => 'onAirUrls', :class => ::BuddyOnAirUrls},
  ASPECTRATIOOFSOURCE => {:type => ::Thrift::Types::STRING, :name => 'aspectRatioOfSource'},
  USEFADINGOUT => {:type => ::Thrift::Types::BOOL, :name => 'useFadingOut'},
  FADINGOUTIN => {:type => ::Thrift::Types::I64, :name => 'fadingOutIn', :optional => true},
  URLAFTERFADINGOUT => {:type => ::Thrift::Types::STRING, :name => 'urlAfterFadingOut', :optional => true},
  LABELAFTERFADINGOUT => {:type => ::Thrift::Types::STRING, :name => 'labelAfterFadingOut', :optional => true},
  USELOWERBANNER => {:type => ::Thrift::Types::BOOL, :name => 'useLowerBanner', :optional => true},
  LOWERBANNERURL => {:type => ::Thrift::Types::STRING, :name => 'lowerBannerUrl', :optional => true},
  LOWERBANNERLABEL => {:type => ::Thrift::Types::STRING, :name => 'lowerBannerLabel', :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



17510
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 17510

def struct_fields; FIELDS; end

#validateObject



17512
17513
17514
17515
17516
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 17512

def validate
  unless @onAirType.nil? || ::P0_a_e_a_b_c2::VALID_VALUES.include?(@onAirType)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field onAirType!')
  end
end