Class: LiffViewResponse

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

VIEW =
1
CONTEXTTOKEN =
2
ACCESSTOKEN =
3
FEATURETOKEN =
4
FEATURES =
5
CHANNELID =
6
IDTOKEN =
7
SCOPES =
8
LAUNCHOPTIONS =
9
PERMANENTLINKPATTERN =
10
FIELDS =
{
  VIEW => {:type => ::Thrift::Types::STRUCT, :name => 'view', :class => ::LiffView},
  CONTEXTTOKEN => {:type => ::Thrift::Types::STRING, :name => 'contextToken', :optional => true},
  ACCESSTOKEN => {:type => ::Thrift::Types::STRING, :name => 'accessToken', :optional => true},
  FEATURETOKEN => {:type => ::Thrift::Types::STRING, :name => 'featureToken', :optional => true},
  FEATURES => {:type => ::Thrift::Types::LIST, :name => 'features', :element => {:type => ::Thrift::Types::I32, :enum_class => ::G_a_h_e1_a_n}, :optional => true},
  CHANNELID => {:type => ::Thrift::Types::STRING, :name => 'channelId', :optional => true},
  IDTOKEN => {:type => ::Thrift::Types::STRING, :name => 'idToken', :optional => true},
  SCOPES => {:type => ::Thrift::Types::LIST, :name => 'scopes', :element => {:type => ::Thrift::Types::STRING}, :optional => true},
  LAUNCHOPTIONS => {:type => ::Thrift::Types::LIST, :name => 'launchOptions', :element => {:type => ::Thrift::Types::I32, :enum_class => ::G_a_h_e1_a_o}, :optional => true},
  PERMANENTLINKPATTERN => {:type => ::Thrift::Types::I32, :name => 'permanentLinkPattern', :optional => true, :enum_class => ::G_a_h_e1_a_m0}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



4448
4449
4450
4451
4452
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 4448

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