profile_thrift_client 0.0.2 → 0.0.3

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: f1baf0a97b41814f1c5e45d6b16157ef9f054ab4
4
- data.tar.gz: 7f5ff381e9aef174174954964eb1b0ec3a99e2a8
3
+ metadata.gz: 6ccbb3045e3546d3c514f889407f9a32c2269e2b
4
+ data.tar.gz: 4055f0d5ba97b9c7b5459018c4569b7507a110a9
5
5
  SHA512:
6
- metadata.gz: 8cf5f7d6365bd6f9cceb12e257fc83cc48d07b6c0f8d6dc8801b3c2641dcac6228384c772d864cb58f575377741424917103e90696660711de2564b80ecabbdb
7
- data.tar.gz: 0fa96b8c7a2bd9440486e53718eae5adafca1bceeaa5dc8de57fc35c6dbe89b56a86fd9b350e5036cc1d76bfd3c69d88c38cc689c8ac1cbb6a1a3d37c3c54803
6
+ metadata.gz: a278d5c1f6d6a867fb22626d4b7c31ab6673df0aebcd2b74512539db2901b40031b5eb9886371f021f5d39b336ad8f56478b291f43ff8686b9f24bcc65001e7d
7
+ data.tar.gz: 1520bedbeeb851b5d242d95118efcfe4e02366c725c3eadb0065af15e91d9af799627049e750ed78ce9f1a380bcb9e8234c9cd9b44b1cb3f209cbb570b4db5c1
@@ -180,6 +180,13 @@ module Profile
180
180
  @thriftClient.modifyNicknameByUid(uid, nickname, statistic_parameters_hash.nil? ? nil : StatisticParameters.new(statistic_parameters_hash))
181
181
  end
182
182
 
183
+ def modifyPersonalSignatrue(uid, personal_signature, statistic_parameters_hash=nil)
184
+ if uid.nil? || personal_signature.nil?
185
+ raise "parameter error,uid and nickname can not be null"
186
+ end
187
+ @thriftClient.modifyPersonalSignatrue(uid, personal_signature, statistic_parameters_hash.nil? ? nil : StatisticParameters.new(statistic_parameters_hash))
188
+ end
189
+
183
190
  def updatePrifileLogo(uid, logo_pic, statistic_parameters_hash=nil)
184
191
  if uid.nil? || logo_pic.nil?
185
192
  raise "parameter error,uid and logo_pic can not be null"
@@ -295,6 +295,21 @@ module Profile
295
295
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'modifyNicknameByUid failed: unknown result')
296
296
  end
297
297
 
298
+ def modifyPersonalSignatrue(uid, personalSignature, staticticParameter)
299
+ send_modifyPersonalSignatrue(uid, personalSignature, staticticParameter)
300
+ return recv_modifyPersonalSignatrue()
301
+ end
302
+
303
+ def send_modifyPersonalSignatrue(uid, personalSignature, staticticParameter)
304
+ send_message('modifyPersonalSignatrue', ModifyPersonalSignatrue_args, :uid => uid, :personalSignature => personalSignature, :staticticParameter => staticticParameter)
305
+ end
306
+
307
+ def recv_modifyPersonalSignatrue()
308
+ result = receive_message(ModifyPersonalSignatrue_result)
309
+ return result.success unless result.success.nil?
310
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'modifyPersonalSignatrue failed: unknown result')
311
+ end
312
+
298
313
  end
299
314
 
300
315
  class Processor
@@ -433,6 +448,13 @@ module Profile
433
448
  write_result(result, oprot, 'modifyNicknameByUid', seqid)
434
449
  end
435
450
 
451
+ def process_modifyPersonalSignatrue(seqid, iprot, oprot)
452
+ args = read_args(iprot, ModifyPersonalSignatrue_args)
453
+ result = ModifyPersonalSignatrue_result.new()
454
+ result.success = @handler.modifyPersonalSignatrue(args.uid, args.personalSignature, args.staticticParameter)
455
+ write_result(result, oprot, 'modifyPersonalSignatrue', seqid)
456
+ end
457
+
436
458
  end
437
459
 
438
460
  # HELPER FUNCTIONS AND STRUCTURES
@@ -1074,6 +1096,42 @@ module Profile
1074
1096
  ::Thrift::Struct.generate_accessors self
1075
1097
  end
1076
1098
 
1099
+ class ModifyPersonalSignatrue_args
1100
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1101
+ UID = 1
1102
+ PERSONALSIGNATURE = 2
1103
+ STATICTICPARAMETER = 3
1104
+
1105
+ FIELDS = {
1106
+ UID => {:type => ::Thrift::Types::I64, :name => 'uid'},
1107
+ PERSONALSIGNATURE => {:type => ::Thrift::Types::STRING, :name => 'personalSignature'},
1108
+ STATICTICPARAMETER => {:type => ::Thrift::Types::STRUCT, :name => 'staticticParameter', :class => ::Profile::Thrift::StatisticParameters}
1109
+ }
1110
+
1111
+ def struct_fields; FIELDS; end
1112
+
1113
+ def validate
1114
+ end
1115
+
1116
+ ::Thrift::Struct.generate_accessors self
1117
+ end
1118
+
1119
+ class ModifyPersonalSignatrue_result
1120
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1121
+ SUCCESS = 0
1122
+
1123
+ FIELDS = {
1124
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Profile::Thrift::ThriftCommonResponse}
1125
+ }
1126
+
1127
+ def struct_fields; FIELDS; end
1128
+
1129
+ def validate
1130
+ end
1131
+
1132
+ ::Thrift::Struct.generate_accessors self
1133
+ end
1134
+
1077
1135
  end
1078
1136
 
1079
1137
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: profile_thrift_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - rick