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 => ::J0_a_e_a_b_b9}, 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
12897 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 12897 def struct_fields; FIELDS; end |
#validate ⇒ Object
12899 12900 12901 12902 12903 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 12899 def validate unless @contactType.nil? || ::J0_a_e_a_b_b9::VALID_VALUES.include?(@contactType) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field contactType!') end end |