class Evernote::EDAM::UserStore::UserStore::Processor

Public Instance Methods

process_authenticate(seqid, iprot, oprot) click to toggle source
# File build/evernote-mode-FpyAOB/evernote-mode-0.41/ruby/Evernote/EDAM/user_store.rb, line 113
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)
  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_checkVersion(seqid, iprot, oprot) click to toggle source
# File build/evernote-mode-FpyAOB/evernote-mode-0.41/ruby/Evernote/EDAM/user_store.rb, line 106
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_getPublicUserInfo(seqid, iprot, oprot) click to toggle source
# File build/evernote-mode-FpyAOB/evernote-mode-0.41/ruby/Evernote/EDAM/user_store.rb, line 152
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 build/evernote-mode-FpyAOB/evernote-mode-0.41/ruby/Evernote/EDAM/user_store.rb, line 139
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 build/evernote-mode-FpyAOB/evernote-mode-0.41/ruby/Evernote/EDAM/user_store.rb, line 126
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