Class: LiffView

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

TYPE =
1
URL =
2
TRUSTEDDOMAIN =
11
TITLEICONURL =
6
TITLETEXTCOLOR =
4
TITLESUBTEXTCOLOR =
7
TITLEBUTTONCOLOR =
8
TITLEBACKGROUNDCOLOR =
5
PROGRESSBARCOLOR =
9
PROGRESSBACKGROUNDCOLOR =
10
SUSPENDABLE =
12
SUSPENDABLEV2 =
16
MAXBRIGHTNESS =
13
TITLEBUTTONAREABACKGROUNDCOLOR =
14
TITLEBUTTONAREABORDERCOLOR =
15
17
MODULEMODE =
18
PINTOHOMESERVICEID =
19
20
SHOWPININDUCTION =
21
FIELDS =
{
  TYPE => {:type => ::Thrift::Types::STRING, :name => 'type'},
  URL => {:type => ::Thrift::Types::STRING, :name => 'url'},
  TRUSTEDDOMAIN => {:type => ::Thrift::Types::BOOL, :name => 'trustedDomain'},
  TITLEICONURL => {:type => ::Thrift::Types::STRING, :name => 'titleIconUrl', :optional => true},
  TITLETEXTCOLOR => {:type => ::Thrift::Types::I32, :name => 'titleTextColor', :optional => true},
  TITLESUBTEXTCOLOR => {:type => ::Thrift::Types::I32, :name => 'titleSubtextColor', :optional => true},
  TITLEBUTTONCOLOR => {:type => ::Thrift::Types::I32, :name => 'titleButtonColor', :optional => true},
  TITLEBACKGROUNDCOLOR => {:type => ::Thrift::Types::I32, :name => 'titleBackgroundColor', :optional => true},
  PROGRESSBARCOLOR => {:type => ::Thrift::Types::I32, :name => 'progressBarColor', :optional => true},
  PROGRESSBACKGROUNDCOLOR => {:type => ::Thrift::Types::I32, :name => 'progressBackgroundColor', :optional => true},
  SUSPENDABLE => {:type => ::Thrift::Types::BOOL, :name => 'suspendable', :optional => true},
  SUSPENDABLEV2 => {:type => ::Thrift::Types::BOOL, :name => 'suspendableV2', :optional => true},
  MAXBRIGHTNESS => {:type => ::Thrift::Types::BOOL, :name => 'maxBrightness', :optional => true},
  TITLEBUTTONAREABACKGROUNDCOLOR => {:type => ::Thrift::Types::I32, :name => 'titleButtonAreaBackgroundColor', :optional => true},
  TITLEBUTTONAREABORDERCOLOR => {:type => ::Thrift::Types::I32, :name => 'titleButtonAreaBorderColor', :optional => true},
  MENUSTYLE => {:type => ::Thrift::Types::I32, :name => 'menuStyle', :optional => true, :enum_class => ::G_a_h_e1_a_p},
  MODULEMODE => {:type => ::Thrift::Types::BOOL, :name => 'moduleMode', :optional => true},
  PINTOHOMESERVICEID => {:type => ::Thrift::Types::I32, :name => 'pinToHomeServiceId', :optional => true},
  MENUCOLORSETTING => {:type => ::Thrift::Types::STRUCT, :name => 'menuColorSetting', :class => ::LIFFMenuColorSetting, :optional => true},
  SHOWPININDUCTION => {:type => ::Thrift::Types::BOOL, :name => 'showPinInduction', :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



4411
4412
4413
4414
4415
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 4411

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