class Evernote::EDAM::NoteStore::SyncState

This structure encapsulates the information about the state of the
user's account for the purpose of "state based" synchronization.

<dl>

<dt>currentTime</dt>
  <dd>
  The server's current date and time.
  </dd>

<dt>fullSyncBefore</dt>
  <dd>
  The cutoff date and time for client caches to be
  updated via incremental synchronization.  Any clients that were last
  synched with the server before this date/time must do a full resync of all
  objects.  This cutoff point will change over time as archival data is
  deleted or special circumstances on the service require resynchronization.
  </dd>

<dt>updateCount</dt>
  <dd>
  Indicates the total number of transactions that have
  been committed within the account.  This reflects (for example) the
  number of discrete additions or modifications that have been made to
  the data in this account (tags, notes, resources, etc.).
  This number is the "high water mark" for Update Sequence Numbers (USN)
  within the account.
  </dd>

<dt>uploaded</dt>
  <dd>
  The total number of bytes that have been uploaded to
  this account in the current monthly period.  This can be compared against
  Accounting.uploadLimit (from the UserStore) to determine how close the user
  is to their monthly upload limit.
  </dd>
</dl>

Constants

CURRENTTIME
FIELDS
FULLSYNCBEFORE
UPDATECOUNT
UPLOADED

Public Instance Methods

struct_fields() click to toggle source
# File build/evernote-mode-6YHuyP/evernote-mode-0.41/ruby/Evernote/EDAM/note_store_types.rb, line 65
def struct_fields; FIELDS; end
validate() click to toggle source
# File build/evernote-mode-6YHuyP/evernote-mode-0.41/ruby/Evernote/EDAM/note_store_types.rb, line 67
def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field currentTime is unset!') unless @currentTime
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field fullSyncBefore is unset!') unless @fullSyncBefore
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field updateCount is unset!') unless @updateCount
end