Class: Service::Profile::Thrift::RemoteBackendProfileService::Client

Inherits:
Object
  • Object
show all
Includes:
Thrift::Client
Defined in:
lib/remote_backend_profile_service.rb

Instance Method Summary collapse

Instance Method Details

#banLogin(uid, startBanDate, endBanDate) ⇒ Object



107
108
109
110
# File 'lib/remote_backend_profile_service.rb', line 107

def banLogin(uid, startBanDate, endBanDate)
  send_banLogin(uid, startBanDate, endBanDate)
  return recv_banLogin()
end

#batchChangeRobotFlag(uids, isRobot) ⇒ Object



77
78
79
80
# File 'lib/remote_backend_profile_service.rb', line 77

def batchChangeRobotFlag(uids, isRobot)
  send_batchChangeRobotFlag(uids, isRobot)
  return recv_batchChangeRobotFlag()
end

#batchRevokeVerified(uids) ⇒ Object



47
48
49
50
# File 'lib/remote_backend_profile_service.rb', line 47

def batchRevokeVerified(uids)
  send_batchRevokeVerified(uids)
  return recv_batchRevokeVerified()
end

#changeRobotFlag(uid, isRobot) ⇒ Object



62
63
64
65
# File 'lib/remote_backend_profile_service.rb', line 62

def changeRobotFlag(uid, isRobot)
  send_changeRobotFlag(uid, isRobot)
  return recv_changeRobotFlag()
end

#changeUserVCategoryId(uid, categoryId) ⇒ Object



92
93
94
95
# File 'lib/remote_backend_profile_service.rb', line 92

def changeUserVCategoryId(uid, categoryId)
  send_changeUserVCategoryId(uid, categoryId)
  return recv_changeUserVCategoryId()
end

#recv_banLoginObject

Raises:

  • (::Thrift::ApplicationException)


116
117
118
119
120
# File 'lib/remote_backend_profile_service.rb', line 116

def recv_banLogin()
  result = receive_message(BanLogin_result)
  return result.success unless result.success.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'banLogin failed: unknown result')
end

#recv_batchChangeRobotFlagObject

Raises:

  • (::Thrift::ApplicationException)


86
87
88
89
90
# File 'lib/remote_backend_profile_service.rb', line 86

def recv_batchChangeRobotFlag()
  result = receive_message(BatchChangeRobotFlag_result)
  return result.success unless result.success.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'batchChangeRobotFlag failed: unknown result')
end

#recv_batchRevokeVerifiedObject

Raises:

  • (::Thrift::ApplicationException)


56
57
58
59
60
# File 'lib/remote_backend_profile_service.rb', line 56

def recv_batchRevokeVerified()
  result = receive_message(BatchRevokeVerified_result)
  return result.success unless result.success.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'batchRevokeVerified failed: unknown result')
end

#recv_changeRobotFlagObject

Raises:

  • (::Thrift::ApplicationException)


71
72
73
74
75
# File 'lib/remote_backend_profile_service.rb', line 71

def recv_changeRobotFlag()
  result = receive_message(ChangeRobotFlag_result)
  return result.success unless result.success.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'changeRobotFlag failed: unknown result')
end

#recv_changeUserVCategoryIdObject

Raises:

  • (::Thrift::ApplicationException)


101
102
103
104
105
# File 'lib/remote_backend_profile_service.rb', line 101

def recv_changeUserVCategoryId()
  result = receive_message(ChangeUserVCategoryId_result)
  return result.success unless result.success.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'changeUserVCategoryId failed: unknown result')
end

#recv_revokeVerifiedObject

Raises:

  • (::Thrift::ApplicationException)


41
42
43
44
45
# File 'lib/remote_backend_profile_service.rb', line 41

def recv_revokeVerified()
  result = receive_message(RevokeVerified_result)
  return result.success unless result.success.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'revokeVerified failed: unknown result')
end

#recv_unbannedLoginObject

Raises:

  • (::Thrift::ApplicationException)


131
132
133
134
135
# File 'lib/remote_backend_profile_service.rb', line 131

def recv_unbannedLogin()
  result = receive_message(UnbannedLogin_result)
  return result.success unless result.success.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'unbannedLogin failed: unknown result')
end

#recv_verifyObject

Raises:

  • (::Thrift::ApplicationException)


26
27
28
29
30
# File 'lib/remote_backend_profile_service.rb', line 26

def recv_verify()
  result = receive_message(Verify_result)
  return result.success unless result.success.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'verify failed: unknown result')
end

#revokeVerified(uid) ⇒ Object



32
33
34
35
# File 'lib/remote_backend_profile_service.rb', line 32

def revokeVerified(uid)
  send_revokeVerified(uid)
  return recv_revokeVerified()
end

#send_banLogin(uid, startBanDate, endBanDate) ⇒ Object



112
113
114
# File 'lib/remote_backend_profile_service.rb', line 112

def send_banLogin(uid, startBanDate, endBanDate)
  send_message('banLogin', BanLogin_args, :uid => uid, :startBanDate => startBanDate, :endBanDate => endBanDate)
end

#send_batchChangeRobotFlag(uids, isRobot) ⇒ Object



82
83
84
# File 'lib/remote_backend_profile_service.rb', line 82

def send_batchChangeRobotFlag(uids, isRobot)
  send_message('batchChangeRobotFlag', BatchChangeRobotFlag_args, :uids => uids, :isRobot => isRobot)
end

#send_batchRevokeVerified(uids) ⇒ Object



52
53
54
# File 'lib/remote_backend_profile_service.rb', line 52

def send_batchRevokeVerified(uids)
  send_message('batchRevokeVerified', BatchRevokeVerified_args, :uids => uids)
end

#send_changeRobotFlag(uid, isRobot) ⇒ Object



67
68
69
# File 'lib/remote_backend_profile_service.rb', line 67

def send_changeRobotFlag(uid, isRobot)
  send_message('changeRobotFlag', ChangeRobotFlag_args, :uid => uid, :isRobot => isRobot)
end

#send_changeUserVCategoryId(uid, categoryId) ⇒ Object



97
98
99
# File 'lib/remote_backend_profile_service.rb', line 97

def send_changeUserVCategoryId(uid, categoryId)
  send_message('changeUserVCategoryId', ChangeUserVCategoryId_args, :uid => uid, :categoryId => categoryId)
end

#send_revokeVerified(uid) ⇒ Object



37
38
39
# File 'lib/remote_backend_profile_service.rb', line 37

def send_revokeVerified(uid)
  send_message('revokeVerified', RevokeVerified_args, :uid => uid)
end

#send_unbannedLogin(uid) ⇒ Object



127
128
129
# File 'lib/remote_backend_profile_service.rb', line 127

def send_unbannedLogin(uid)
  send_message('unbannedLogin', UnbannedLogin_args, :uid => uid)
end

#send_verify(uid, ptitle, vCompany, vTags, vCategoryId, personDescribe) ⇒ Object



22
23
24
# File 'lib/remote_backend_profile_service.rb', line 22

def send_verify(uid, ptitle, vCompany, vTags, vCategoryId, personDescribe)
  send_message('verify', Verify_args, :uid => uid, :ptitle => ptitle, :vCompany => vCompany, :vTags => vTags, :vCategoryId => vCategoryId, :personDescribe => personDescribe)
end

#unbannedLogin(uid) ⇒ Object



122
123
124
125
# File 'lib/remote_backend_profile_service.rb', line 122

def unbannedLogin(uid)
  send_unbannedLogin(uid)
  return recv_unbannedLogin()
end

#verify(uid, ptitle, vCompany, vTags, vCategoryId, personDescribe) ⇒ Object



17
18
19
20
# File 'lib/remote_backend_profile_service.rb', line 17

def verify(uid, ptitle, vCompany, vTags, vCategoryId, personDescribe)
  send_verify(uid, ptitle, vCompany, vTags, vCategoryId, personDescribe)
  return recv_verify()
end