profile_thrift_client 0.0.2 → 0.0.3
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/profile_thrift_client.rb +7 -0
- data/lib/remote_user_profile_service.rb +58 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ccbb3045e3546d3c514f889407f9a32c2269e2b
|
4
|
+
data.tar.gz: 4055f0d5ba97b9c7b5459018c4569b7507a110a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|