Class Evernote::EDAM::NoteStore::NoteVersionId
In: ruby/lib/Evernote/EDAM/note_store_types.rb
Parent: Object

Identfying information about previous versions of a note that are backed up within Evernote‘s servers. Used in the return value of the listNoteVersions call.

<dl>

 <dt>updateSequenceNum</dt>
 <dd>
   The update sequence number for the Note when it last had this content.
   This serves to uniquely identify each version of the note, since USN
   values are unique within an account for each update.
 </dd>
 <dt>updated</dt>
 <dd>
   The 'updated' time that was set on the Note when it had this version
   of the content.  This is the user-modifiable modification time on the
   note, so it's not reliable for guaranteeing the order of various
   versions.  (E.g. if someone modifies the note, then changes this time
   manually into the past and then updates the note again.)
 </dd>
 <dt>saved</dt>
 <dd>
   A timestamp that holds the date and time when this version of the note
   was backed up by Evernote's servers.  This
 </dd>
 <dt>title</dt>
 <dd>
   The title of the note when this particular verison was saved.  (The
   current title of the note may differ from this value.)
 </dd>

</dl>

Methods

Included Modules

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

Constants

UPDATESEQUENCENUM = 1
UPDATED = 2
SAVED = 3
TITLE = 4
FIELDS = { UPDATESEQUENCENUM => {:type => ::Thrift::Types::I32, :name => 'updateSequenceNum'}, UPDATED => {:type => ::Thrift::Types::I64, :name => 'updated'}, SAVED => {:type => ::Thrift::Types::I64, :name => 'saved'}, TITLE => {:type => ::Thrift::Types::STRING, :name => 'title'}

Public Instance methods

[Source]

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

[Source]

     # File ruby/lib/Evernote/EDAM/note_store_types.rb, line 615
615:               def validate
616:                 raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field updateSequenceNum is unset!') unless @updateSequenceNum
617:                 raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field updated is unset!') unless @updated
618:                 raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field saved is unset!') unless @saved
619:                 raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field title is unset!') unless @title
620:               end

[Validate]