Class: Evernote::EDAM::Type::ResourceAttributes
- Inherits:
-
Object
- Object
- Evernote::EDAM::Type::ResourceAttributes
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/Evernote/EDAM/types_types.rb
Overview
- sourceURL
- the original location where the resource was hosted
Length: EDAM_ATTRIBUTE_LEN_MIN - EDAM_ATTRIBUTE_LEN_MAX - timestamp
- the date and time that is associated with this resource (e.g. the time embedded in an image from a digital camera with a clock)
- latitude
- the latitude where the resource was captured
- longitude
- the longitude where the resource was captured
- altitude
- the altitude where the resource was captured
- cameraMake
- information about an image's camera, e.g. as embedded in
the image's EXIF data
Length: EDAM_ATTRIBUTE_LEN_MIN - EDAM_ATTRIBUTE_LEN_MAX - cameraModel
- information about an image's camera, e.g. as embedded
in the image's EXIF data
Length: EDAM_ATTRIBUTE_LEN_MIN - EDAM_ATTRIBUTE_LEN_MAX - clientWillIndex
- if true, then the original client that submitted the resource plans to submit the recognition index for this resource at a later time.
- recoType
- DEPRECATED - this field is no longer set by the service, so should be ignored.
- fileName
- if the resource came from a source that provided an explicit file name, the original name will be stored here. Many resources come from unnamed sources, so this will not always be set.
- attachment
- this will be true if the resource should be displayed as an attachment, or false if the resource should be displayed inline (if possible).
- applicationData
- Provides a location for applications to store a relatively small
(4kb) blob of data associated with a Resource that is not visible to the user
and that is opaque to the Evernote service. A single application may use at most
one entry in this map, using its API consumer key as the map key. See the
documentation for LazyMap for a description of when the actual map values
are returned by the service.
To safely add or modify your application's entry in the map, use NoteStore.setResourceApplicationDataEntry. To safely remove your application's entry from the map, use NoteStore.unsetResourceApplicationDataEntry.
Minimum length of a name (key): EDAM_APPLICATIONDATA_NAME_LEN_MIN
Sum max size of key and value: EDAM_APPLICATIONDATA_ENTRY_LEN_MAX
Syntax regex for name (key): EDAM_APPLICATIONDATA_NAME_REGEX
Constant Summary collapse
- SOURCEURL =
1- TIMESTAMP =
2- LATITUDE =
3- LONGITUDE =
4- ALTITUDE =
5- CAMERAMAKE =
6- CAMERAMODEL =
7- CLIENTWILLINDEX =
8- RECOTYPE =
9- FILENAME =
10- ATTACHMENT =
11- APPLICATIONDATA =
12- FIELDS =
{ SOURCEURL => {:type => ::Thrift::Types::STRING, :name => 'sourceURL', :optional => true}, TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp', :optional => true}, LATITUDE => {:type => ::Thrift::Types::DOUBLE, :name => 'latitude', :optional => true}, LONGITUDE => {:type => ::Thrift::Types::DOUBLE, :name => 'longitude', :optional => true}, ALTITUDE => {:type => ::Thrift::Types::DOUBLE, :name => 'altitude', :optional => true}, CAMERAMAKE => {:type => ::Thrift::Types::STRING, :name => 'cameraMake', :optional => true}, CAMERAMODEL => {:type => ::Thrift::Types::STRING, :name => 'cameraModel', :optional => true}, CLIENTWILLINDEX => {:type => ::Thrift::Types::BOOL, :name => 'clientWillIndex', :optional => true}, RECOTYPE => {:type => ::Thrift::Types::STRING, :name => 'recoType', :optional => true}, FILENAME => {:type => ::Thrift::Types::STRING, :name => 'fileName', :optional => true}, ATTACHMENT => {:type => ::Thrift::Types::BOOL, :name => 'attachment', :optional => true}, APPLICATIONDATA => {:type => ::Thrift::Types::STRUCT, :name => 'applicationData', :class => ::Evernote::EDAM::Type::LazyMap, :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
1055 |
# File 'lib/Evernote/EDAM/types_types.rb', line 1055 def struct_fields; FIELDS; end |
#validate ⇒ Object
1057 1058 |
# File 'lib/Evernote/EDAM/types_types.rb', line 1057 def validate end |