Class: ChannelInfo

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

CHANNELID =
1
NAME =
3
ENTRYPAGEURL =
4
DESCRIPTIONTEXT =
5
PROVIDER =
6
PUBLICTYPE =
7
ICONIMAGE =
8
PERMISSIONS =
9
ICONTHUMBNAILIMAGE =
11
CHANNELCONFIGURATIONS =
12
LCSALLAPIUSABLE =
13
ALLOWEDPERMISSIONS =
14
CHANNELDOMAINS =
15
UPDATEDTIMESTAMP =
16
FEATURELICENSES =
17
FIELDS =
{
  CHANNELID => {:type => ::Thrift::Types::STRING, :name => 'channelId'},
  NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
  ENTRYPAGEURL => {:type => ::Thrift::Types::STRING, :name => 'entryPageUrl'},
  DESCRIPTIONTEXT => {:type => ::Thrift::Types::STRING, :name => 'descriptionText'},
  PROVIDER => {:type => ::Thrift::Types::STRUCT, :name => 'provider', :class => ::ChannelProvider},
  PUBLICTYPE => {:type => ::Thrift::Types::I32, :name => 'publicType', :enum_class => ::P0_a_e_a_b_ff},
  ICONIMAGE => {:type => ::Thrift::Types::STRING, :name => 'iconImage'},
  PERMISSIONS => {:type => ::Thrift::Types::LIST, :name => 'permissions', :element => {:type => ::Thrift::Types::STRING}},
  ICONTHUMBNAILIMAGE => {:type => ::Thrift::Types::STRING, :name => 'iconThumbnailImage'},
  CHANNELCONFIGURATIONS => {:type => ::Thrift::Types::LIST, :name => 'channelConfigurations', :element => {:type => ::Thrift::Types::I32, :enum_class => ::P0_a_e_a_b_m5}},
  LCSALLAPIUSABLE => {:type => ::Thrift::Types::BOOL, :name => 'lcsAllApiUsable'},
  ALLOWEDPERMISSIONS => {:type => ::Thrift::Types::SET, :name => 'allowedPermissions', :element => {:type => ::Thrift::Types::I32, :enum_class => ::P0_a_e_a_b_v5}},
  CHANNELDOMAINS => {:type => ::Thrift::Types::LIST, :name => 'channelDomains', :element => {:type => ::Thrift::Types::STRUCT, :class => ::ChannelDomain}},
  UPDATEDTIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'updatedTimestamp'},
  FEATURELICENSES => {:type => ::Thrift::Types::SET, :name => 'featureLicenses', :element => {:type => ::Thrift::Types::I32, :enum_class => ::P0_a_e_a_b_r5}}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



13720
13721
13722
13723
13724
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 13720

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