mobile_version_thrift_client 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/mobile_version_thrift_client.rb +3 -0
- data/lib/remote_version_manage_service.rb +56 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d0f1c9dcf38e53fadd7ac225d805d86cca7a071
|
4
|
+
data.tar.gz: 7647608fb2c45e594ca4a557c4ba2c8d9ad6e979
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 334e036e19297b9a4a82ce432a3d0894b212eed6f42ab6507b06cee5b4a28a4831678f4a7811a7d3ae824bfe0a2209df35fed2b7802b45f8357d6f91b2d3bd3b
|
7
|
+
data.tar.gz: feb2484ca27cdd34d0574b7a29b963c92a7db0df2991446ce779b9889d271a45791bedad9b99c95ae888644de7c892d1f8ad63b6e3837d970e70263ca689ff76
|
@@ -89,6 +89,21 @@ module Mobile
|
|
89
89
|
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'queryDeterminedAppProduct failed: unknown result')
|
90
90
|
end
|
91
91
|
|
92
|
+
def isSpecialVersionOfProductExist(productId, version)
|
93
|
+
send_isSpecialVersionOfProductExist(productId, version)
|
94
|
+
return recv_isSpecialVersionOfProductExist()
|
95
|
+
end
|
96
|
+
|
97
|
+
def send_isSpecialVersionOfProductExist(productId, version)
|
98
|
+
send_message('isSpecialVersionOfProductExist', IsSpecialVersionOfProductExist_args, :productId => productId, :version => version)
|
99
|
+
end
|
100
|
+
|
101
|
+
def recv_isSpecialVersionOfProductExist()
|
102
|
+
result = receive_message(IsSpecialVersionOfProductExist_result)
|
103
|
+
return result.success unless result.success.nil?
|
104
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'isSpecialVersionOfProductExist failed: unknown result')
|
105
|
+
end
|
106
|
+
|
92
107
|
end
|
93
108
|
|
94
109
|
class Processor
|
@@ -129,6 +144,13 @@ module Mobile
|
|
129
144
|
write_result(result, oprot, 'queryDeterminedAppProduct', seqid)
|
130
145
|
end
|
131
146
|
|
147
|
+
def process_isSpecialVersionOfProductExist(seqid, iprot, oprot)
|
148
|
+
args = read_args(iprot, IsSpecialVersionOfProductExist_args)
|
149
|
+
result = IsSpecialVersionOfProductExist_result.new()
|
150
|
+
result.success = @handler.isSpecialVersionOfProductExist(args.productId, args.version)
|
151
|
+
write_result(result, oprot, 'isSpecialVersionOfProductExist', seqid)
|
152
|
+
end
|
153
|
+
|
132
154
|
end
|
133
155
|
|
134
156
|
# HELPER FUNCTIONS AND STRUCTURES
|
@@ -305,6 +327,40 @@ module Mobile
|
|
305
327
|
::Thrift::Struct.generate_accessors self
|
306
328
|
end
|
307
329
|
|
330
|
+
class IsSpecialVersionOfProductExist_args
|
331
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
332
|
+
PRODUCTID = 1
|
333
|
+
VERSION = 2
|
334
|
+
|
335
|
+
FIELDS = {
|
336
|
+
PRODUCTID => {:type => ::Thrift::Types::I64, :name => 'productId'},
|
337
|
+
VERSION => {:type => ::Thrift::Types::STRING, :name => 'version'}
|
338
|
+
}
|
339
|
+
|
340
|
+
def struct_fields; FIELDS; end
|
341
|
+
|
342
|
+
def validate
|
343
|
+
end
|
344
|
+
|
345
|
+
::Thrift::Struct.generate_accessors self
|
346
|
+
end
|
347
|
+
|
348
|
+
class IsSpecialVersionOfProductExist_result
|
349
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
350
|
+
SUCCESS = 0
|
351
|
+
|
352
|
+
FIELDS = {
|
353
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Mobile::Version::Thrift::TransferData}
|
354
|
+
}
|
355
|
+
|
356
|
+
def struct_fields; FIELDS; end
|
357
|
+
|
358
|
+
def validate
|
359
|
+
end
|
360
|
+
|
361
|
+
::Thrift::Struct.generate_accessors self
|
362
|
+
end
|
363
|
+
|
308
364
|
end
|
309
365
|
|
310
366
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mobile_version_thrift_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- rick
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|