Class: TalkService::UpdateContactSetting_args

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

Constant Summary collapse

REQSEQ =
1
MID =
2
FLAG =
3
VALUE =
4
FIELDS =
{
  REQSEQ => {:type => ::Thrift::Types::I32, :name => 'reqSeq'},
  MID => {:type => ::Thrift::Types::STRING, :name => 'mid'},
  FLAG => {:type => ::Thrift::Types::I32, :name => 'flag', :enum_class => ::J0_a_e_a_b_z8},
  VALUE => {:type => ::Thrift::Types::STRING, :name => 'value'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



3995
# File 'lib/linerb/gen-rb/talk_service.rb', line 3995

def struct_fields; FIELDS; end

#validateObject



3997
3998
3999
4000
4001
# File 'lib/linerb/gen-rb/talk_service.rb', line 3997

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