Class: Registration

Inherits:
Mobio::WebServices::WsdlDriver
  • Object
show all
Defined in:
lib/rmobio/webservices/soap/registration.rb

Overview

Copyright © 2007 Mobio Networks, Inc.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <www.gnu.org/licenses/>.

Defined Under Namespace

Classes: RegisterIn

Class Method Summary collapse

Class Method Details

.create_passphraseObject



19
20
# File 'lib/rmobio/webservices/soap/registration.rb', line 19

def self.create_passphrase
end

.get_handsets(loginId, password) ⇒ Object



22
23
24
25
# File 'lib/rmobio/webservices/soap/registration.rb', line 22

def self.get_handsets(loginId, password)
  res = self.driver.getHandsets :loginId => loginId, :password => password
  res.out
end

.get_security_question(loginId) ⇒ Object



27
28
29
30
# File 'lib/rmobio/webservices/soap/registration.rb', line 27

def self.get_security_question(loginId)
  res = self.driver.getSecurityQuestion :loginId => loginId
  res.out
end

.get_user_info(loginId, password) ⇒ Object

can throw SOAP::FaultError if login / password is invalid



33
34
35
36
# File 'lib/rmobio/webservices/soap/registration.rb', line 33

def self.(loginId, password)
  res = self.driver.getUserInfo :loginId => loginId, :password => password
  res.out
end

.is_login_id_available(loginId) ⇒ Object



38
39
40
41
# File 'lib/rmobio/webservices/soap/registration.rb', line 38

def self.(loginId)
  res = self.driver.isLoginIdAvailable :loginId => loginId
  res.out
end

.list_affiliationsObject



43
44
45
46
# File 'lib/rmobio/webservices/soap/registration.rb', line 43

def self.list_affiliations
  res = self.driver.listAffiliations ""
  res.out
end

.register_handset(loginId, password, handset) ⇒ Object



48
49
50
51
# File 'lib/rmobio/webservices/soap/registration.rb', line 48

def self.register_handset(loginId,password,handset)
  res = self.driver.registerHandset :userLogin => loginId,:userPassword  => password,:handset  => handset
  true    
end

.register_user(args = {}) ⇒ Object



53
54
55
56
57
58
59
60
61
# File 'lib/rmobio/webservices/soap/registration.rb', line 53

def self.register_user(args={})
  regIn= RegisterIn.new
  args.each do |key, value|
    if regIn.respond_to?(key)
      regIn.send "#{key}=", value
    end
  end 
  res = self.driver.registerUser :registerIn => regIn
end

.unregister_handset(login, password, handsetId) ⇒ Object



63
64
65
66
# File 'lib/rmobio/webservices/soap/registration.rb', line 63

def self.unregister_handset(,password,handsetId)
  res = self.driver.unregisterHandset :userLogin => ,:userPassword=>password,:handsetId=>handsetId
  res.out
end

.update_login_info(arg) ⇒ Object



68
69
70
# File 'lib/rmobio/webservices/soap/registration.rb', line 68

def self.(arg)
  res = self.driver.updateLoginInfo :loginUpdate => arg
end

.update_user_info(user) ⇒ Object



72
73
74
75
# File 'lib/rmobio/webservices/soap/registration.rb', line 72

def self.(user)
  res = self.driver.updateUserInfo :userInfo => user
  res.out
end