Class: Passport::Thrift::RemotePassportService::Processor
- Inherits:
-
Object
- Object
- Passport::Thrift::RemotePassportService::Processor
- Includes:
- Thrift::Processor
- Defined in:
- lib/remote_passport_service.rb
Instance Method Summary collapse
- #process_getMultiNickNameByUids(seqid, iprot, oprot) ⇒ Object
- #process_getMultiPassportByMobiles(seqid, iprot, oprot) ⇒ Object
- #process_getNickNameByUid(seqid, iprot, oprot) ⇒ Object
- #process_getPassportByLoginName(seqid, iprot, oprot) ⇒ Object
- #process_modifyPasswordDirectly(seqid, iprot, oprot) ⇒ Object
- #process_queryByMobile(seqid, iprot, oprot) ⇒ Object
- #process_queryNewRegistUsers(seqid, iprot, oprot) ⇒ Object
- #process_queryPassportByEmail(seqid, iprot, oprot) ⇒ Object
- #process_queryPassportByUid(seqid, iprot, oprot) ⇒ Object
- #process_queryPassportUidMap(seqid, iprot, oprot) ⇒ Object
- #process_validatePassword(seqid, iprot, oprot) ⇒ Object
Instance Method Details
#process_getMultiNickNameByUids(seqid, iprot, oprot) ⇒ Object
214 215 216 217 218 219 |
# File 'lib/remote_passport_service.rb', line 214 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_getMultiPassportByMobiles(seqid, iprot, oprot) ⇒ Object
260 261 262 263 264 265 |
# File 'lib/remote_passport_service.rb', line 260 def process_getMultiPassportByMobiles(seqid, iprot, oprot) args = read_args(iprot, GetMultiPassportByMobiles_args) result = GetMultiPassportByMobiles_result.new() result.success = @handler.getMultiPassportByMobiles(args.mobiles) write_result(result, oprot, 'getMultiPassportByMobiles', seqid) end |
#process_getNickNameByUid(seqid, iprot, oprot) ⇒ Object
207 208 209 210 211 212 |
# File 'lib/remote_passport_service.rb', line 207 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_getPassportByLoginName(seqid, iprot, oprot) ⇒ Object
228 229 230 231 232 233 |
# File 'lib/remote_passport_service.rb', line 228 def process_getPassportByLoginName(seqid, iprot, oprot) args = read_args(iprot, GetPassportByLoginName_args) result = GetPassportByLoginName_result.new() result.success = @handler.getPassportByLoginName(args.loginName) write_result(result, oprot, 'getPassportByLoginName', seqid) end |
#process_modifyPasswordDirectly(seqid, iprot, oprot) ⇒ Object
235 236 237 238 239 240 241 242 243 244 |
# File 'lib/remote_passport_service.rb', line 235 def process_modifyPasswordDirectly(seqid, iprot, oprot) args = read_args(iprot, ModifyPasswordDirectly_args) result = ModifyPasswordDirectly_result.new() begin @handler.modifyPasswordDirectly(args.uid, args.password) rescue ::Passport::Thrift::PassportException => ex result.ex = ex end write_result(result, oprot, 'modifyPasswordDirectly', seqid) end |
#process_queryByMobile(seqid, iprot, oprot) ⇒ Object
253 254 255 256 257 258 |
# File 'lib/remote_passport_service.rb', line 253 def process_queryByMobile(seqid, iprot, oprot) args = read_args(iprot, QueryByMobile_args) result = QueryByMobile_result.new() result.success = @handler.queryByMobile(args.mobile) write_result(result, oprot, 'queryByMobile', seqid) end |
#process_queryNewRegistUsers(seqid, iprot, oprot) ⇒ Object
246 247 248 249 250 251 |
# File 'lib/remote_passport_service.rb', line 246 def process_queryNewRegistUsers(seqid, iprot, oprot) args = read_args(iprot, QueryNewRegistUsers_args) result = QueryNewRegistUsers_result.new() result.success = @handler.queryNewRegistUsers(args.endTime, args.usersCount) write_result(result, oprot, 'queryNewRegistUsers', seqid) end |
#process_queryPassportByEmail(seqid, iprot, oprot) ⇒ Object
186 187 188 189 190 191 |
# File 'lib/remote_passport_service.rb', line 186 def process_queryPassportByEmail(seqid, iprot, oprot) args = read_args(iprot, QueryPassportByEmail_args) result = QueryPassportByEmail_result.new() result.success = @handler.queryPassportByEmail(args.email) write_result(result, oprot, 'queryPassportByEmail', seqid) end |
#process_queryPassportByUid(seqid, iprot, oprot) ⇒ Object
193 194 195 196 197 198 |
# File 'lib/remote_passport_service.rb', line 193 def process_queryPassportByUid(seqid, iprot, oprot) args = read_args(iprot, QueryPassportByUid_args) result = QueryPassportByUid_result.new() result.success = @handler.queryPassportByUid(args.uid) write_result(result, oprot, 'queryPassportByUid', seqid) end |
#process_queryPassportUidMap(seqid, iprot, oprot) ⇒ Object
221 222 223 224 225 226 |
# File 'lib/remote_passport_service.rb', line 221 def process_queryPassportUidMap(seqid, iprot, oprot) args = read_args(iprot, QueryPassportUidMap_args) result = QueryPassportUidMap_result.new() result.success = @handler.queryPassportUidMap(args.uidList) write_result(result, oprot, 'queryPassportUidMap', seqid) end |
#process_validatePassword(seqid, iprot, oprot) ⇒ Object
200 201 202 203 204 205 |
# File 'lib/remote_passport_service.rb', line 200 def process_validatePassword(seqid, iprot, oprot) args = read_args(iprot, ValidatePassword_args) result = ValidatePassword_result.new() result.success = @handler.validatePassword(args.uid, args.password) write_result(result, oprot, 'validatePassword', seqid) end |