Class: Passport::Thrift::RemoteUserProfileService::Processor
- Inherits:
-
Object
- Object
- Passport::Thrift::RemoteUserProfileService::Processor
- Includes:
- Thrift::Processor
- Defined in:
- lib/remote_user_profile_service.rb
Instance Method Summary collapse
- #process_checkNickname(seqid, iprot, oprot) ⇒ Object
- #process_checkNicknameDuplicate(seqid, iprot, oprot) ⇒ Object
- #process_checkNicknameFormat(seqid, iprot, oprot) ⇒ Object
- #process_getMultiNickNameByUids(seqid, iprot, oprot) ⇒ Object
- #process_getMultiUserBasicInfos(seqid, iprot, oprot) ⇒ Object
- #process_getNicknameByUid(seqid, iprot, oprot) ⇒ Object
- #process_getProfielByEmail(seqid, iprot, oprot) ⇒ Object
- #process_getProfileByNickname(seqid, iprot, oprot) ⇒ Object
- #process_getProfileByUid(seqid, iprot, oprot) ⇒ Object
- #process_getProfileByUids(seqid, iprot, oprot) ⇒ Object
- #process_getVerifiedUid(seqid, iprot, oprot) ⇒ Object
- #process_modifyPassword(seqid, iprot, oprot) ⇒ Object
- #process_queryUserBasicInfo(seqid, iprot, oprot) ⇒ Object
- #process_save(seqid, iprot, oprot) ⇒ Object
- #process_setPassword(seqid, iprot, oprot) ⇒ Object
Instance Method Details
#process_checkNickname(seqid, iprot, oprot) ⇒ Object
328 329 330 331 332 333 334 335 336 337 |
# File 'lib/remote_user_profile_service.rb', line 328 def process_checkNickname(seqid, iprot, oprot) args = read_args(iprot, CheckNickname_args) result = CheckNickname_result.new() begin @handler.checkNickname(args.oldNickname, args.nickname) rescue ::Passport::Thrift::ProfileException => ex result.ex = ex end write_result(result, oprot, 'checkNickname', seqid) end |
#process_checkNicknameDuplicate(seqid, iprot, oprot) ⇒ Object
350 351 352 353 354 355 356 357 358 359 |
# File 'lib/remote_user_profile_service.rb', line 350 def process_checkNicknameDuplicate(seqid, iprot, oprot) args = read_args(iprot, CheckNicknameDuplicate_args) result = CheckNicknameDuplicate_result.new() begin @handler.checkNicknameDuplicate(args.oldNickname, args.nickname) rescue ::Passport::Thrift::ProfileException => ex result.ex = ex end write_result(result, oprot, 'checkNicknameDuplicate', seqid) end |
#process_checkNicknameFormat(seqid, iprot, oprot) ⇒ Object
339 340 341 342 343 344 345 346 347 348 |
# File 'lib/remote_user_profile_service.rb', line 339 def process_checkNicknameFormat(seqid, iprot, oprot) args = read_args(iprot, CheckNicknameFormat_args) result = CheckNicknameFormat_result.new() begin @handler.checkNicknameFormat(args.nickname) rescue ::Passport::Thrift::ProfileException => ex result.ex = ex end write_result(result, oprot, 'checkNicknameFormat', seqid) end |
#process_getMultiNickNameByUids(seqid, iprot, oprot) ⇒ Object
300 301 302 303 304 305 |
# File 'lib/remote_user_profile_service.rb', line 300 def process_getMultiNickNameByUids(seqid, iprot, oprot) args = read_args(iprot, GetMultiNickNameByUids_args) result = GetMultiNickNameByUids_result.new() result.success = @handler.getMultiNickNameByUids(args.uidList) write_result(result, oprot, 'getMultiNickNameByUids', seqid) end |
#process_getMultiUserBasicInfos(seqid, iprot, oprot) ⇒ Object
314 315 316 317 318 319 |
# File 'lib/remote_user_profile_service.rb', line 314 def process_getMultiUserBasicInfos(seqid, iprot, oprot) args = read_args(iprot, GetMultiUserBasicInfos_args) result = GetMultiUserBasicInfos_result.new() result.success = @handler.getMultiUserBasicInfos(args.uids) write_result(result, oprot, 'getMultiUserBasicInfos', seqid) end |
#process_getNicknameByUid(seqid, iprot, oprot) ⇒ Object
293 294 295 296 297 298 |
# File 'lib/remote_user_profile_service.rb', line 293 def process_getNicknameByUid(seqid, iprot, oprot) args = read_args(iprot, GetNicknameByUid_args) result = GetNicknameByUid_result.new() result.success = @handler.getNicknameByUid(args.uid) write_result(result, oprot, 'getNicknameByUid', seqid) end |
#process_getProfielByEmail(seqid, iprot, oprot) ⇒ Object
361 362 363 364 365 366 |
# File 'lib/remote_user_profile_service.rb', line 361 def process_getProfielByEmail(seqid, iprot, oprot) args = read_args(iprot, GetProfielByEmail_args) result = GetProfielByEmail_result.new() result.success = @handler.getProfielByEmail(args.email) write_result(result, oprot, 'getProfielByEmail', seqid) end |
#process_getProfileByNickname(seqid, iprot, oprot) ⇒ Object
321 322 323 324 325 326 |
# File 'lib/remote_user_profile_service.rb', line 321 def process_getProfileByNickname(seqid, iprot, oprot) args = read_args(iprot, GetProfileByNickname_args) result = GetProfileByNickname_result.new() result.success = @handler.getProfileByNickname(args.nickname) write_result(result, oprot, 'getProfileByNickname', seqid) end |
#process_getProfileByUid(seqid, iprot, oprot) ⇒ Object
279 280 281 282 283 284 |
# File 'lib/remote_user_profile_service.rb', line 279 def process_getProfileByUid(seqid, iprot, oprot) args = read_args(iprot, GetProfileByUid_args) result = GetProfileByUid_result.new() result.success = @handler.getProfileByUid(args.uid) write_result(result, oprot, 'getProfileByUid', seqid) end |
#process_getProfileByUids(seqid, iprot, oprot) ⇒ Object
286 287 288 289 290 291 |
# File 'lib/remote_user_profile_service.rb', line 286 def process_getProfileByUids(seqid, iprot, oprot) args = read_args(iprot, GetProfileByUids_args) result = GetProfileByUids_result.new() result.success = @handler.getProfileByUids(args.uids) write_result(result, oprot, 'getProfileByUids', seqid) end |
#process_getVerifiedUid(seqid, iprot, oprot) ⇒ Object
368 369 370 371 372 373 |
# File 'lib/remote_user_profile_service.rb', line 368 def process_getVerifiedUid(seqid, iprot, oprot) args = read_args(iprot, GetVerifiedUid_args) result = GetVerifiedUid_result.new() result.success = @handler.getVerifiedUid(args.pageId, args.pageSize) write_result(result, oprot, 'getVerifiedUid', seqid) end |
#process_modifyPassword(seqid, iprot, oprot) ⇒ Object
257 258 259 260 261 262 263 264 265 266 |
# File 'lib/remote_user_profile_service.rb', line 257 def process_modifyPassword(seqid, iprot, oprot) args = read_args(iprot, ModifyPassword_args) result = ModifyPassword_result.new() begin @handler.modifyPassword(args.uid, args.oldPwd, args.newPwd, args.confirmPwd) rescue ::Passport::Thrift::ProfileException => ex result.ex = ex end write_result(result, oprot, 'modifyPassword', seqid) end |
#process_queryUserBasicInfo(seqid, iprot, oprot) ⇒ Object
307 308 309 310 311 312 |
# File 'lib/remote_user_profile_service.rb', line 307 def process_queryUserBasicInfo(seqid, iprot, oprot) args = read_args(iprot, QueryUserBasicInfo_args) result = QueryUserBasicInfo_result.new() result.success = @handler.queryUserBasicInfo(args.uid) write_result(result, oprot, 'queryUserBasicInfo', seqid) end |
#process_save(seqid, iprot, oprot) ⇒ Object
246 247 248 249 250 251 252 253 254 255 |
# File 'lib/remote_user_profile_service.rb', line 246 def process_save(seqid, iprot, oprot) args = read_args(iprot, Save_args) result = Save_result.new() begin @handler.save(args.profile) rescue ::Passport::Thrift::ProfileException => ex result.ex = ex end write_result(result, oprot, 'save', seqid) end |
#process_setPassword(seqid, iprot, oprot) ⇒ Object
268 269 270 271 272 273 274 275 276 277 |
# File 'lib/remote_user_profile_service.rb', line 268 def process_setPassword(seqid, iprot, oprot) args = read_args(iprot, SetPassword_args) result = SetPassword_result.new() begin @handler.setPassword(args.uid, args.newPwd, args.confirmPwd) rescue ::Passport::Thrift::ProfileException => ex result.ex = ex end write_result(result, oprot, 'setPassword', seqid) end |