Class: LIFFMenuColor

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

ICONCOLOR =
1
STATUSBARCOLOR =
2
FIELDS =
{
  ICONCOLOR => {:type => ::Thrift::Types::I32, :name => 'iconColor', :optional => true},
  STATUSBARCOLOR => {:type => ::Thrift::Types::I32, :name => 'statusBarColor', :optional => true, :enum_class => ::G_a_h_e1_a_a}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



4336
4337
4338
4339
4340
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 4336

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