Class Evernote::EDAM::NoteStore::SyncState
In: ruby/lib/Evernote/EDAM/note_store_types.rb
Parent: Object
 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>

Methods

Included Modules

::Thrift::Struct ::Thrift::Struct_Union

Constants

CURRENTTIME = 1
FULLSYNCBEFORE = 2
UPDATECOUNT = 3
UPLOADED = 4
FIELDS = { CURRENTTIME => {:type => ::Thrift::Types::I64, :name => 'currentTime'}, FULLSYNCBEFORE => {:type => ::Thrift::Types::I64, :name => 'fullSyncBefore'}, UPDATECOUNT => {:type => ::Thrift::Types::I32, :name => 'updateCount'}, UPLOADED => {:type => ::Thrift::Types::I64, :name => 'uploaded', :optional => true}

Public Instance methods

[Source]

    # File ruby/lib/Evernote/EDAM/note_store_types.rb, line 65
65:               def struct_fields; FIELDS; end

[Source]

    # File ruby/lib/Evernote/EDAM/note_store_types.rb, line 67
67:               def validate
68:                 raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field currentTime is unset!') unless @currentTime
69:                 raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field fullSyncBefore is unset!') unless @fullSyncBefore
70:                 raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field updateCount is unset!') unless @updateCount
71:               end

[Validate]