Class: PrimaryAccountInitService::SendPinCodeForPhone_args

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

Constant Summary collapse

AUTHSESSIONID =
1
DEVICE =
2
USERPHONENUMBER =
3
VERIFMETHOD =
4
FIELDS =
{
  AUTHSESSIONID => {:type => ::Thrift::Types::STRING, :name => 'authSessionId'},
  DEVICE => {:type => ::Thrift::Types::STRUCT, :name => 'device', :class => ::Device},
  USERPHONENUMBER => {:type => ::Thrift::Types::STRUCT, :name => 'userPhoneNumber', :class => ::UserPhoneNumber},
  VERIFMETHOD => {:type => ::Thrift::Types::I32, :name => 'verifMethod', :enum_class => ::G_a_b_z0_a_b_t}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



1006
# File 'lib/linerb/gen-rb/primary_account_init_service.rb', line 1006

def struct_fields; FIELDS; end

#validateObject



1008
1009
1010
1011
1012
# File 'lib/linerb/gen-rb/primary_account_init_service.rb', line 1008

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