Class: SecondaryQrcodeLoginService::Client

Inherits:
Object
  • Object
show all
Includes:
Thrift::Client
Defined in:
lib/linerb/gen-rb/secondary_qrcode_login_service.rb

Instance Method Summary collapse

Instance Method Details

#createPinCode(request) ⇒ Object



46
47
48
49
# File 'lib/linerb/gen-rb/secondary_qrcode_login_service.rb', line 46

def createPinCode(request)
  send_createPinCode(request)
  return recv_createPinCode()
end

#createQrCode(request) ⇒ Object



30
31
32
33
# File 'lib/linerb/gen-rb/secondary_qrcode_login_service.rb', line 30

def createQrCode(request)
  send_createQrCode(request)
  return recv_createQrCode()
end

#createSession(request) ⇒ Object



14
15
16
17
# File 'lib/linerb/gen-rb/secondary_qrcode_login_service.rb', line 14

def createSession(request)
  send_createSession(request)
  return recv_createSession()
end

#qrCodeLogin(request) ⇒ Object



62
63
64
65
# File 'lib/linerb/gen-rb/secondary_qrcode_login_service.rb', line 62

def qrCodeLogin(request)
  send_qrCodeLogin(request)
  return recv_qrCodeLogin()
end

#recv_createPinCodeObject

Raises:

  • (::Thrift::ApplicationException)


55
56
57
58
59
60
# File 'lib/linerb/gen-rb/secondary_qrcode_login_service.rb', line 55

def recv_createPinCode()
  result = receive_message(CreatePinCode_result)
  return result.success unless result.success.nil?
  raise result.e unless result.e.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'createPinCode failed: unknown result')
end

#recv_createQrCodeObject

Raises:

  • (::Thrift::ApplicationException)


39
40
41
42
43
44
# File 'lib/linerb/gen-rb/secondary_qrcode_login_service.rb', line 39

def recv_createQrCode()
  result = receive_message(CreateQrCode_result)
  return result.success unless result.success.nil?
  raise result.e unless result.e.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'createQrCode failed: unknown result')
end

#recv_createSessionObject

Raises:

  • (::Thrift::ApplicationException)


23
24
25
26
27
28
# File 'lib/linerb/gen-rb/secondary_qrcode_login_service.rb', line 23

def recv_createSession()
  result = receive_message(CreateSession_result)
  return result.success unless result.success.nil?
  raise result.e unless result.e.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'createSession failed: unknown result')
end

#recv_qrCodeLoginObject

Raises:

  • (::Thrift::ApplicationException)


71
72
73
74
75
76
# File 'lib/linerb/gen-rb/secondary_qrcode_login_service.rb', line 71

def recv_qrCodeLogin()
  result = receive_message(QrCodeLogin_result)
  return result.success unless result.success.nil?
  raise result.e unless result.e.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'qrCodeLogin failed: unknown result')
end

#recv_verifyCertificateObject



87
88
89
90
91
# File 'lib/linerb/gen-rb/secondary_qrcode_login_service.rb', line 87

def recv_verifyCertificate()
  result = receive_message(VerifyCertificate_result)
  raise result.e unless result.e.nil?
  return
end

#send_createPinCode(request) ⇒ Object



51
52
53
# File 'lib/linerb/gen-rb/secondary_qrcode_login_service.rb', line 51

def send_createPinCode(request)
  send_message('createPinCode', CreatePinCode_args, :request => request)
end

#send_createQrCode(request) ⇒ Object



35
36
37
# File 'lib/linerb/gen-rb/secondary_qrcode_login_service.rb', line 35

def send_createQrCode(request)
  send_message('createQrCode', CreateQrCode_args, :request => request)
end

#send_createSession(request) ⇒ Object



19
20
21
# File 'lib/linerb/gen-rb/secondary_qrcode_login_service.rb', line 19

def send_createSession(request)
  send_message('createSession', CreateSession_args, :request => request)
end

#send_qrCodeLogin(request) ⇒ Object



67
68
69
# File 'lib/linerb/gen-rb/secondary_qrcode_login_service.rb', line 67

def send_qrCodeLogin(request)
  send_message('qrCodeLogin', QrCodeLogin_args, :request => request)
end

#send_verifyCertificate(request) ⇒ Object



83
84
85
# File 'lib/linerb/gen-rb/secondary_qrcode_login_service.rb', line 83

def send_verifyCertificate(request)
  send_message('verifyCertificate', VerifyCertificate_args, :request => request)
end

#verifyCertificate(request) ⇒ Object



78
79
80
81
# File 'lib/linerb/gen-rb/secondary_qrcode_login_service.rb', line 78

def verifyCertificate(request)
  send_verifyCertificate(request)
  recv_verifyCertificate()
end