class Evernote::EDAM::UserStore::UserStore::Processor
Public Instance Methods
process_authenticate(seqid, iprot, oprot)
click to toggle source
# File lib/Evernote/EDAM/user_store.rb, line 236 def process_authenticate(seqid, iprot, oprot) args = read_args(iprot, Authenticate_args) result = Authenticate_result.new() begin result.success = @handler.authenticate(args.username, args.password, args.consumerKey, args.consumerSecret, args.supportsTwoFactor) rescue ::Evernote::EDAM::Error::EDAMUserException => userException result.userException = userException rescue ::Evernote::EDAM::Error::EDAMSystemException => systemException result.systemException = systemException end write_result(result, oprot, 'authenticate', seqid) end
process_authenticateLongSession(seqid, iprot, oprot)
click to toggle source
# File lib/Evernote/EDAM/user_store.rb, line 249 def process_authenticateLongSession(seqid, iprot, oprot) args = read_args(iprot, AuthenticateLongSession_args) result = AuthenticateLongSession_result.new() begin result.success = @handler.authenticateLongSession(args.username, args.password, args.consumerKey, args.consumerSecret, args.deviceIdentifier, args.deviceDescription, args.supportsTwoFactor) rescue ::Evernote::EDAM::Error::EDAMUserException => userException result.userException = userException rescue ::Evernote::EDAM::Error::EDAMSystemException => systemException result.systemException = systemException end write_result(result, oprot, 'authenticateLongSession', seqid) end
process_authenticateToBusiness(seqid, iprot, oprot)
click to toggle source
# File lib/Evernote/EDAM/user_store.rb, line 288 def process_authenticateToBusiness(seqid, iprot, oprot) args = read_args(iprot, AuthenticateToBusiness_args) result = AuthenticateToBusiness_result.new() begin result.success = @handler.authenticateToBusiness(args.authenticationToken) rescue ::Evernote::EDAM::Error::EDAMUserException => userException result.userException = userException rescue ::Evernote::EDAM::Error::EDAMSystemException => systemException result.systemException = systemException end write_result(result, oprot, 'authenticateToBusiness', seqid) end
process_checkVersion(seqid, iprot, oprot)
click to toggle source
# File lib/Evernote/EDAM/user_store.rb, line 222 def process_checkVersion(seqid, iprot, oprot) args = read_args(iprot, CheckVersion_args) result = CheckVersion_result.new() result.success = @handler.checkVersion(args.clientName, args.edamVersionMajor, args.edamVersionMinor) write_result(result, oprot, 'checkVersion', seqid) end
process_completeTwoFactorAuthentication(seqid, iprot, oprot)
click to toggle source
# File lib/Evernote/EDAM/user_store.rb, line 262 def process_completeTwoFactorAuthentication(seqid, iprot, oprot) args = read_args(iprot, CompleteTwoFactorAuthentication_args) result = CompleteTwoFactorAuthentication_result.new() begin result.success = @handler.completeTwoFactorAuthentication(args.authenticationToken, args.oneTimeCode, args.deviceIdentifier, args.deviceDescription) rescue ::Evernote::EDAM::Error::EDAMUserException => userException result.userException = userException rescue ::Evernote::EDAM::Error::EDAMSystemException => systemException result.systemException = systemException end write_result(result, oprot, 'completeTwoFactorAuthentication', seqid) end
process_getBootstrapInfo(seqid, iprot, oprot)
click to toggle source
# File lib/Evernote/EDAM/user_store.rb, line 229 def process_getBootstrapInfo(seqid, iprot, oprot) args = read_args(iprot, GetBootstrapInfo_args) result = GetBootstrapInfo_result.new() result.success = @handler.getBootstrapInfo(args.locale) write_result(result, oprot, 'getBootstrapInfo', seqid) end
process_getNoteStoreUrl(seqid, iprot, oprot)
click to toggle source
# File lib/Evernote/EDAM/user_store.rb, line 355 def process_getNoteStoreUrl(seqid, iprot, oprot) args = read_args(iprot, GetNoteStoreUrl_args) result = GetNoteStoreUrl_result.new() begin result.success = @handler.getNoteStoreUrl(args.authenticationToken) rescue ::Evernote::EDAM::Error::EDAMUserException => userException result.userException = userException rescue ::Evernote::EDAM::Error::EDAMSystemException => systemException result.systemException = systemException end write_result(result, oprot, 'getNoteStoreUrl', seqid) end
process_getPremiumInfo(seqid, iprot, oprot)
click to toggle source
# File lib/Evernote/EDAM/user_store.rb, line 342 def process_getPremiumInfo(seqid, iprot, oprot) args = read_args(iprot, GetPremiumInfo_args) result = GetPremiumInfo_result.new() begin result.success = @handler.getPremiumInfo(args.authenticationToken) rescue ::Evernote::EDAM::Error::EDAMUserException => userException result.userException = userException rescue ::Evernote::EDAM::Error::EDAMSystemException => systemException result.systemException = systemException end write_result(result, oprot, 'getPremiumInfo', seqid) end
process_getPublicUserInfo(seqid, iprot, oprot)
click to toggle source
# File lib/Evernote/EDAM/user_store.rb, line 327 def process_getPublicUserInfo(seqid, iprot, oprot) args = read_args(iprot, GetPublicUserInfo_args) result = GetPublicUserInfo_result.new() begin result.success = @handler.getPublicUserInfo(args.username) rescue ::Evernote::EDAM::Error::EDAMNotFoundException => notFoundException result.notFoundException = notFoundException rescue ::Evernote::EDAM::Error::EDAMSystemException => systemException result.systemException = systemException rescue ::Evernote::EDAM::Error::EDAMUserException => userException result.userException = userException end write_result(result, oprot, 'getPublicUserInfo', seqid) end
process_getUser(seqid, iprot, oprot)
click to toggle source
# File lib/Evernote/EDAM/user_store.rb, line 314 def process_getUser(seqid, iprot, oprot) args = read_args(iprot, GetUser_args) result = GetUser_result.new() begin result.success = @handler.getUser(args.authenticationToken) rescue ::Evernote::EDAM::Error::EDAMUserException => userException result.userException = userException rescue ::Evernote::EDAM::Error::EDAMSystemException => systemException result.systemException = systemException end write_result(result, oprot, 'getUser', seqid) end
process_refreshAuthentication(seqid, iprot, oprot)
click to toggle source
# File lib/Evernote/EDAM/user_store.rb, line 301 def process_refreshAuthentication(seqid, iprot, oprot) args = read_args(iprot, RefreshAuthentication_args) result = RefreshAuthentication_result.new() begin result.success = @handler.refreshAuthentication(args.authenticationToken) rescue ::Evernote::EDAM::Error::EDAMUserException => userException result.userException = userException rescue ::Evernote::EDAM::Error::EDAMSystemException => systemException result.systemException = systemException end write_result(result, oprot, 'refreshAuthentication', seqid) end
process_revokeLongSession(seqid, iprot, oprot)
click to toggle source
# File lib/Evernote/EDAM/user_store.rb, line 275 def process_revokeLongSession(seqid, iprot, oprot) args = read_args(iprot, RevokeLongSession_args) result = RevokeLongSession_result.new() begin @handler.revokeLongSession(args.authenticationToken) rescue ::Evernote::EDAM::Error::EDAMUserException => userException result.userException = userException rescue ::Evernote::EDAM::Error::EDAMSystemException => systemException result.systemException = systemException end write_result(result, oprot, 'revokeLongSession', seqid) end