class Evernote::EDAM::UserStore::PublicUserInfo

This structure is used to provide publicly-available user information
about a particular account.

<dl>

<dt>userId:</dt>
  <dd>
  The unique numeric user identifier for the user account.
  </dd>
<dt>shardId:</dt>
  <dd>
  The name of the virtual server that manages the state of
  this user. This value is used internally to determine which system should
  service requests about this user's data.  It is also used to construct
  the appropriate URL to make requests from the NoteStore.
  </dd>
<dt>privilege:</dt>
  <dd>
  The privilege level of the account, to determine whether
  this is a Premium or Free account.
  </dd>
</dl>

Constants

FIELDS
PRIVILEGE
SHARDID
USERID
USERNAME

Public Instance Methods

struct_fields() click to toggle source
# File build/evernote-mode-24BFFK/evernote-mode-0.41/ruby/Evernote/EDAM/user_store_types.rb, line 48
def struct_fields; FIELDS; end
validate() click to toggle source
# File build/evernote-mode-24BFFK/evernote-mode-0.41/ruby/Evernote/EDAM/user_store_types.rb, line 50
def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field userId is unset!') unless @userId
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field shardId is unset!') unless @shardId
  unless @privilege.nil? || Evernote::EDAM::Type::PrivilegeLevel::VALID_VALUES.include?(@privilege)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field privilege!')
  end
end