Class: PhoneVerificationResult
- Inherits:
-
Object
- Object
- PhoneVerificationResult
- 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
- VERIFICATIONRESULT =
1
- ACCOUNTMIGRATIONCHECKTYPE =
2
- RECOMMENDADDFRIENDS =
3
- FIELDS =
{ VERIFICATIONRESULT => {:type => ::Thrift::Types::I32, :name => 'verificationResult', :enum_class => ::P0_a_e_a_b_qt}, ACCOUNTMIGRATIONCHECKTYPE => {:type => ::Thrift::Types::I32, :name => 'accountMigrationCheckType', :enum_class => ::P0_a_e_a_b_g}, RECOMMENDADDFRIENDS => {:type => ::Thrift::Types::BOOL, :name => 'recommendAddFriends'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
16876 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 16876 def struct_fields; FIELDS; end |
#validate ⇒ Object
16878 16879 16880 16881 16882 16883 16884 16885 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 16878 def validate unless @verificationResult.nil? || ::P0_a_e_a_b_qt::VALID_VALUES.include?(@verificationResult) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field verificationResult!') end unless @accountMigrationCheckType.nil? || ::P0_a_e_a_b_g::VALID_VALUES.include?(@accountMigrationCheckType) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field accountMigrationCheckType!') end end |