Class: Mobile::Version::Thrift::RemoteVersionManageService::Processor

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

Instance Method Summary collapse

Instance Method Details

#process_addAppHistory(seqid, iprot, oprot) ⇒ Object



103
104
105
106
107
108
# File 'lib/remote_version_manage_service.rb', line 103

def process_addAppHistory(seqid, iprot, oprot)
  args = read_args(iprot, AddAppHistory_args)
  result = AddAppHistory_result.new()
  result.success = @handler.addAppHistory(args.app, args.version, args.apiVersion, args.downloadUrl)
  write_result(result, oprot, 'addAppHistory', seqid)
end

#process_addAppProduct(seqid, iprot, oprot) ⇒ Object



96
97
98
99
100
101
# File 'lib/remote_version_manage_service.rb', line 96

def process_addAppProduct(seqid, iprot, oprot)
  args = read_args(iprot, AddAppProduct_args)
  result = AddAppProduct_result.new()
  result.success = @handler.addAppProduct(args.app)
  write_result(result, oprot, 'addAppProduct', seqid)
end

#process_checkForUpgrade(seqid, iprot, oprot) ⇒ Object



82
83
84
85
86
87
# File 'lib/remote_version_manage_service.rb', line 82

def process_checkForUpgrade(seqid, iprot, oprot)
  args = read_args(iprot, CheckForUpgrade_args)
  result = CheckForUpgrade_result.new()
  result.success = @handler.checkForUpgrade(args.app, args.version)
  write_result(result, oprot, 'checkForUpgrade', seqid)
end

#process_getSecurityToken(seqid, iprot, oprot) ⇒ Object



89
90
91
92
93
94
# File 'lib/remote_version_manage_service.rb', line 89

def process_getSecurityToken(seqid, iprot, oprot)
  args = read_args(iprot, GetSecurityToken_args)
  result = GetSecurityToken_result.new()
  result.success = @handler.getSecurityToken(args.app, args.version)
  write_result(result, oprot, 'getSecurityToken', seqid)
end