Class: Evernote::EDAM::NoteStore::NoteVersionId
- Inherits:
-
Object
- Object
- Evernote::EDAM::NoteStore::NoteVersionId
- 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.
- updateSequenceNum
- 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.
- updated
- 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.)
- saved
- A timestamp that holds the date and time when this version of the note was backed up by Evernote's servers. This
- title
- The title of the note when this particular version was saved. (The current title of the note may differ from this value.)
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_fields ⇒ Object
876 |
# File 'lib/Evernote/EDAM/note_store_types.rb', line 876 def struct_fields; FIELDS; end |
#validate ⇒ Object
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 |