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



118
119
120
121
122
123
# File 'lib/remote_version_manage_service.rb', line 118

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



111
112
113
114
115
116
# File 'lib/remote_version_manage_service.rb', line 111

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



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

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

#process_getSecurityToken(seqid, iprot, oprot) ⇒ Object



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

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

#process_queryDeterminedAppProduct(seqid, iprot, oprot) ⇒ Object



125
126
127
128
129
130
# File 'lib/remote_version_manage_service.rb', line 125

def process_queryDeterminedAppProduct(seqid, iprot, oprot)
  args = read_args(iprot, QueryDeterminedAppProduct_args)
  result = QueryDeterminedAppProduct_result.new()
  result.success = @handler.queryDeterminedAppProduct(args.app)
  write_result(result, oprot, 'queryDeterminedAppProduct', seqid)
end