Class: WiMP::Gen::ClientApiLoginService::Processor

Inherits:
Object
  • Object
show all
Includes:
Thrift::Processor
Defined in:
lib/gen/client_api_login_service.rb

Instance Method Summary collapse

Instance Method Details

#process_getClientConfig(seqid, iprot, oprot) ⇒ Object



81
82
83
84
85
86
# File 'lib/gen/client_api_login_service.rb', line 81

def process_getClientConfig(seqid, iprot, oprot)
  args = read_args(iprot, GetClientConfig_args)
  result = GetClientConfig_result.new()
  result.success = @handler.getClientConfig(args.partnerUsername, args.partnerPassword, args.clientName)
  write_result(result, oprot, 'getClientConfig', seqid)
end

#process_loginWithToken(seqid, iprot, oprot) ⇒ Object



102
103
104
105
106
107
# File 'lib/gen/client_api_login_service.rb', line 102

def process_loginWithToken(seqid, iprot, oprot)
  args = read_args(iprot, LoginWithToken_args)
  result = LoginWithToken_result.new()
  result.success = @handler.loginWithToken(args.userName, args.password, args.partnerUsername, args.partnerPassword, args.clientName)
  write_result(result, oprot, 'loginWithToken', seqid)
end

#process_recoverPassword(seqid, iprot, oprot) ⇒ Object



95
96
97
98
99
100
# File 'lib/gen/client_api_login_service.rb', line 95

def process_recoverPassword(seqid, iprot, oprot)
  args = read_args(iprot, RecoverPassword_args)
  result = RecoverPassword_result.new()
  result.success = @handler.recoverPassword(args.userName, args.partnerUsername, args.partnerPassword)
  write_result(result, oprot, 'recoverPassword', seqid)
end

#process_simpleLogin(seqid, iprot, oprot) ⇒ Object



88
89
90
91
92
93
# File 'lib/gen/client_api_login_service.rb', line 88

def process_simpleLogin(seqid, iprot, oprot)
  args = read_args(iprot, SimpleLogin_args)
  result = SimpleLogin_result.new()
  result.success = @handler.simpleLogin(args.userName, args.password, args.partnerUsername, args.partnerPassword, args.clientName, args.clientUniqueKey)
  write_result(result, oprot, 'simpleLogin', seqid)
end