Class: Evernote::EDAM::NoteStore::SyncState
- Inherits:
-
Object
- Object
- Evernote::EDAM::NoteStore::SyncState
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/Evernote/EDAM/note_store_types.rb
Overview
</dl>
Constant Summary collapse
- 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} }
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
68 |
# File 'lib/Evernote/EDAM/note_store_types.rb', line 68 def struct_fields; FIELDS; end |
#validate ⇒ Object
70 71 72 73 74 |
# File 'lib/Evernote/EDAM/note_store_types.rb', line 70 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 |