Class: Evernote::EDAM::NoteStore::NoteVersionId

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/Evernote/EDAM/note_store_types.rb

Overview

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 version was saved.  (The
  current title of the note may differ from this value.)
</dd>

</dl>

Constant Summary collapse

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'}
}

Constants included from Thrift::Struct_Union

Thrift::Struct_Union::CONTAINER_TYPES

Instance Method Summary collapse

Methods included from Thrift::Struct

#<=>, #==, #differences, #eql?, field_accessor, #fields_with_default_values, generate_accessors, #hash, #initialize, #inspect, qmark_isset_method, #read, #write

Methods included from Thrift::Struct_Union

#each_field, #field_info, #inspect_collection, #inspect_field, #is_container?, #name_to_id, #read_field, #sorted_field_ids, #write_container, #write_data

Instance Method Details

#struct_fieldsObject



876
# File 'lib/Evernote/EDAM/note_store_types.rb', line 876

def struct_fields; FIELDS; end

#validateObject



878
879
880
881
882
883
# File 'lib/Evernote/EDAM/note_store_types.rb', line 878

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field updateSequenceNum is unset!') unless @updateSequenceNum
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field updated is unset!') unless @updated
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field saved is unset!') unless @saved
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field title is unset!') unless @title
end