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 => ::P0_a_e_a_b_a9},
  VALUE => {:type => ::Thrift::Types::STRING, :name => 'value'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



4084
4085
4086
4087
4088
# File 'lib/linerb/gen-rb/talk_service.rb', line 4084

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