Class: ContactRegistration
- Inherits:
-
Object
- Object
- ContactRegistration
- 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
- LUID =
10
- CONTACTTYPE =
11
- CONTACTKEY =
12
- CONTACT =
1
- FIELDS =
{ LUID => {:type => ::Thrift::Types::STRING, :name => 'luid'}, CONTACTTYPE => {:type => ::Thrift::Types::I32, :name => 'contactType', :enum_class => ::P0_a_e_a_b_c9}, CONTACTKEY => {:type => ::Thrift::Types::STRING, :name => 'contactKey'}, CONTACT => {:type => ::Thrift::Types::STRUCT, :name => 'contact', :class => ::Contact} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
13564 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 13564 def struct_fields; FIELDS; end |
#validate ⇒ Object
13566 13567 13568 13569 13570 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 13566 def validate unless @contactType.nil? || ::P0_a_e_a_b_c9::VALID_VALUES.include?(@contactType) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field contactType!') end end |