mobile_version_thrift_client 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 49034f545c67e2f89e88a93001362f60a66b7c75
4
- data.tar.gz: 7f9a358430483db1f2ef1079094f291eda568f3e
3
+ metadata.gz: 2d0f1c9dcf38e53fadd7ac225d805d86cca7a071
4
+ data.tar.gz: 7647608fb2c45e594ca4a557c4ba2c8d9ad6e979
5
5
  SHA512:
6
- metadata.gz: 67a0b127cc06f339b6703a48565a886848f5c9bff8b8128736cc7a0575e5ea948ba8c723b077deea5300de555b846370346a76835d51dee9983d2319102f823b
7
- data.tar.gz: ac892b080c2f6ca08e3c667677c37605b8be1eef702430287b6228c99ec3c8f8e7f35e7b6296386978943013eb981878ca8d4a3e0b76cc4bcc7609a19f897ce6
6
+ metadata.gz: 334e036e19297b9a4a82ce432a3d0894b212eed6f42ab6507b06cee5b4a28a4831678f4a7811a7d3ae824bfe0a2209df35fed2b7802b45f8357d6f91b2d3bd3b
7
+ data.tar.gz: feb2484ca27cdd34d0574b7a29b963c92a7db0df2991446ce779b9889d271a45791bedad9b99c95ae888644de7c892d1f8ad63b6e3837d970e70263ca689ff76
@@ -80,6 +80,9 @@ module Mobile
80
80
  return @thrift_client.queryDeterminedAppProduct(app_definition_struct)
81
81
  end
82
82
 
83
+ def isSpecialVersionOfProductExist(product_id, version)
84
+ return @thrift_client.isSpecialVersionOfProductExist(product_id, version)
85
+ end
83
86
  end
84
87
 
85
88
  end
@@ -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.3
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-04-23 00:00:00.000000000 Z
11
+ date: 2014-07-07 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: