evernote 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,14 @@
1
+ #
2
+ # Autogenerated by Thrift
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+ require 'note_store_types'
8
+
9
+ module Evernote
10
+ module EDAM
11
+ module NoteStore
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,571 @@
1
+ #
2
+ # Autogenerated by Thrift
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+ require 'user_store_types'
8
+ require 'types_types'
9
+ require 'errors_types'
10
+ require 'limits_types'
11
+
12
+
13
+ module Evernote
14
+ module EDAM
15
+ module NoteStore
16
+ # This structure encapsulates the information about the state of the
17
+ # user's account for the purpose of "state based" synchronization.
18
+ # <dl>
19
+ # <dt>currentTime</dt>
20
+ # <dd>
21
+ # The server's current date and time.
22
+ # </dd>
23
+ #
24
+ # <dt>fullSyncBefore</dt>
25
+ # <dd>
26
+ # The cutoff date and time for client caches to be
27
+ # updated via incremental synchronization. Any clients that were last
28
+ # synched with the server before this date/time must do a full resync of all
29
+ # objects. This cutoff point will change over time as archival data is
30
+ # deleted or special circumstances on the service require resynchronization.
31
+ # </dd>
32
+ #
33
+ # <dt>updateCount</dt>
34
+ # <dd>
35
+ # Indicates the total number of transactions that have
36
+ # been committed within the account. This reflects (for example) the
37
+ # number of discrete additions or modifications that have been made to
38
+ # the data in this account (tags, notes, resources, etc.).
39
+ # This number is the "high water mark" for Update Sequence Numbers (USN)
40
+ # within the account.
41
+ # </dd>
42
+ #
43
+ # <dt>uploaded</dt>
44
+ # <dd>
45
+ # The total number of bytes that have been uploaded to
46
+ # this account in the current monthly period. This can be compared against
47
+ # Accounting.uploadLimit (from the UserStore) to determine how close the user
48
+ # is to their monthly upload limit.
49
+ # </dd>
50
+ # </dl>
51
+ class SyncState
52
+ include ::Thrift::Struct
53
+ CURRENTTIME = 1
54
+ FULLSYNCBEFORE = 2
55
+ UPDATECOUNT = 3
56
+ UPLOADED = 4
57
+
58
+ ::Thrift::Struct.field_accessor self, :currentTime, :fullSyncBefore, :updateCount, :uploaded
59
+ FIELDS = {
60
+ CURRENTTIME => {:type => ::Thrift::Types::I64, :name => 'currentTime'},
61
+ FULLSYNCBEFORE => {:type => ::Thrift::Types::I64, :name => 'fullSyncBefore'},
62
+ UPDATECOUNT => {:type => ::Thrift::Types::I32, :name => 'updateCount'},
63
+ UPLOADED => {:type => ::Thrift::Types::I64, :name => 'uploaded', :optional => true}
64
+ }
65
+
66
+ def struct_fields; FIELDS; end
67
+
68
+ def validate
69
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field currentTime is unset!') unless @currentTime
70
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field fullSyncBefore is unset!') unless @fullSyncBefore
71
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field updateCount is unset!') unless @updateCount
72
+ end
73
+
74
+ end
75
+
76
+ # This structure is given out by the NoteStore when a client asks to
77
+ # receive the current state of an account. The client asks for the server's
78
+ # state one chunk at a time in order to allow clients to retrieve the state
79
+ # of a large account without needing to transfer the entire account in
80
+ # a single message.
81
+ #
82
+ # The server always gives SyncChunks using an ascending series of Update
83
+ # Sequence Numbers (USNs).
84
+ #
85
+ # <dl>
86
+ # <dt>currentTime</dt>
87
+ # <dd>
88
+ # The server's current date and time.
89
+ # </dd>
90
+ #
91
+ # <dt>chunkHighUSN</dt>
92
+ # <dd>
93
+ # The highest USN for any of the data objects represented
94
+ # in this sync chunk. If there are no objects in the chunk, this will not be
95
+ # set.
96
+ # </dd>
97
+ #
98
+ # <dt>updateCount</dt>
99
+ # <dd>
100
+ # The total number of updates that have been performed in
101
+ # the service for this account. This is equal to the highest USN within the
102
+ # account at the point that this SyncChunk was generated. If updateCount
103
+ # and chunkHighUSN are identical, that means that this is the last chunk
104
+ # in the account ... there is no more recent information.
105
+ # </dd>
106
+ #
107
+ # <dt>notes</dt>
108
+ # <dd>
109
+ # If present, this is a list of non-expunged notes that
110
+ # have a USN in this chunk. This will include notes that are "deleted"
111
+ # but not expunged (i.e. in the trash). The notes will include their list
112
+ # of tags and resources, but the resource content and recognition data
113
+ # will not be supplied.
114
+ # </dd>
115
+ #
116
+ # <dt>notebooks</dt>
117
+ # <dd>
118
+ # If present, this is a list of non-expunged notebooks that
119
+ # have a USN in this chunk. This will include notebooks that are "deleted"
120
+ # but not expunged (i.e. in the trash).
121
+ # </dd>
122
+ #
123
+ # <dt>tags</dt>
124
+ # <dd>
125
+ # If present, this is a list of the non-expunged tags that have a
126
+ # USN in this chunk.
127
+ # </dd>
128
+ #
129
+ # <dt>searches</dt>
130
+ # <dd>
131
+ # If present, this is a list of non-expunged searches that
132
+ # have a USN in this chunk.
133
+ # </dd>
134
+ #
135
+ # <dt>resources</dt>
136
+ # <dd>
137
+ # If present, this is a list of the non-expunged resources
138
+ # that have a USN in this chunk. This will include the metadata for each
139
+ # resource, but not its binary contents or recognition data, which must be
140
+ # retrieved separately.
141
+ # </dd>
142
+ #
143
+ # <dt>expungedNotes</dt>
144
+ # <dd>
145
+ # If present, the GUIDs of all of the notes that were
146
+ # permanently expunged in this chunk.
147
+ # </dd>
148
+ #
149
+ # <dt>expungedNotebooks</dt>
150
+ # <dd>
151
+ # If present, the GUIDs of all of the notebooks that
152
+ # were permanently expunged in this chunk. When a notebook is expunged,
153
+ # this implies that all of its child notes (and their resources) were
154
+ # also expunged.
155
+ # </dd>
156
+ #
157
+ # <dt>expungedTags</dt>
158
+ # <dd>
159
+ # If present, the GUIDs of all of the tags that were
160
+ # permanently expunged in this chunk.
161
+ # </dd>
162
+ #
163
+ # <dt>expungedSearches</dt>
164
+ # <dd>
165
+ # If present, the GUIDs of all of the saved searches
166
+ # that were permanently expunged in this chunk.
167
+ # </dd>
168
+ # </dl>
169
+ class SyncChunk
170
+ include ::Thrift::Struct
171
+ CURRENTTIME = 1
172
+ CHUNKHIGHUSN = 2
173
+ UPDATECOUNT = 3
174
+ NOTES = 4
175
+ NOTEBOOKS = 5
176
+ TAGS = 6
177
+ SEARCHES = 7
178
+ RESOURCES = 8
179
+ EXPUNGEDNOTES = 9
180
+ EXPUNGEDNOTEBOOKS = 10
181
+ EXPUNGEDTAGS = 11
182
+ EXPUNGEDSEARCHES = 12
183
+
184
+ ::Thrift::Struct.field_accessor self, :currentTime, :chunkHighUSN, :updateCount, :notes, :notebooks, :tags, :searches, :resources, :expungedNotes, :expungedNotebooks, :expungedTags, :expungedSearches
185
+ FIELDS = {
186
+ CURRENTTIME => {:type => ::Thrift::Types::I64, :name => 'currentTime'},
187
+ CHUNKHIGHUSN => {:type => ::Thrift::Types::I32, :name => 'chunkHighUSN', :optional => true},
188
+ UPDATECOUNT => {:type => ::Thrift::Types::I32, :name => 'updateCount'},
189
+ NOTES => {:type => ::Thrift::Types::LIST, :name => 'notes', :element => {:type => ::Thrift::Types::STRUCT, :class => Evernote::EDAM::Type::Note}, :optional => true},
190
+ NOTEBOOKS => {:type => ::Thrift::Types::LIST, :name => 'notebooks', :element => {:type => ::Thrift::Types::STRUCT, :class => Evernote::EDAM::Type::Notebook}, :optional => true},
191
+ TAGS => {:type => ::Thrift::Types::LIST, :name => 'tags', :element => {:type => ::Thrift::Types::STRUCT, :class => Evernote::EDAM::Type::Tag}, :optional => true},
192
+ SEARCHES => {:type => ::Thrift::Types::LIST, :name => 'searches', :element => {:type => ::Thrift::Types::STRUCT, :class => Evernote::EDAM::Type::SavedSearch}, :optional => true},
193
+ RESOURCES => {:type => ::Thrift::Types::LIST, :name => 'resources', :element => {:type => ::Thrift::Types::STRUCT, :class => Evernote::EDAM::Type::Resource}, :optional => true},
194
+ EXPUNGEDNOTES => {:type => ::Thrift::Types::LIST, :name => 'expungedNotes', :element => {:type => ::Thrift::Types::STRING}, :optional => true},
195
+ EXPUNGEDNOTEBOOKS => {:type => ::Thrift::Types::LIST, :name => 'expungedNotebooks', :element => {:type => ::Thrift::Types::STRING}, :optional => true},
196
+ EXPUNGEDTAGS => {:type => ::Thrift::Types::LIST, :name => 'expungedTags', :element => {:type => ::Thrift::Types::STRING}, :optional => true},
197
+ EXPUNGEDSEARCHES => {:type => ::Thrift::Types::LIST, :name => 'expungedSearches', :element => {:type => ::Thrift::Types::STRING}, :optional => true}
198
+ }
199
+
200
+ def struct_fields; FIELDS; end
201
+
202
+ def validate
203
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field currentTime is unset!') unless @currentTime
204
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field updateCount is unset!') unless @updateCount
205
+ end
206
+
207
+ end
208
+
209
+ # A list of criteria that are used to indicate which notes are desired from
210
+ # the account. This is used in queries to the NoteStore to determine
211
+ # which notes should be retrieved.
212
+ #
213
+ # <dl>
214
+ # <dt>order</dt>
215
+ # <dd>
216
+ # The NoteSortOrder value indicating what criterion should be
217
+ # used to sort the results of the filter.
218
+ # </dd>
219
+ #
220
+ # <dt>ascending</dt>
221
+ # <dd>
222
+ # If true, the results will be ascending in the requested
223
+ # sort order. If false, the results will be descending.
224
+ # </dd>
225
+ #
226
+ # <dt>words</dt>
227
+ # <dd>
228
+ # The string query containing keywords to match, if present.
229
+ # </dd>
230
+ #
231
+ # <dt>notebookGuid</dt>
232
+ # <dd>
233
+ # If present, the Guid of the notebook that must contain
234
+ # the notes.
235
+ # </dd>
236
+ #
237
+ # <dt>tagGuids</dt>
238
+ # <dd>
239
+ # If present, the list of tags (by GUID) that must be present
240
+ # on the notes.
241
+ # </dd>
242
+ #
243
+ # <dt>timeZone</dt>
244
+ # <dd>
245
+ # The zone ID for the user, which will be used to interpret
246
+ # any dates or times in the queries that do not include their desired zone
247
+ # information.
248
+ # For example, if a query requests notes created "yesterday", this
249
+ # will be evaluated from the provided time zone, if provided.
250
+ # The format must be encoded as a standard zone ID such as
251
+ # "America/Los_Angeles".
252
+ # </dd>
253
+ #
254
+ # <dt>inactive</dt>
255
+ # <dd>
256
+ # If true, then only notes that are not active (i.e. notes in
257
+ # the Trash) will be returned. Otherwise, only active notes will be returned.
258
+ # There is no way to find both active and inactive notes in a single query.
259
+ # </dd>
260
+ # </dl>
261
+ class NoteFilter
262
+ include ::Thrift::Struct
263
+ ORDER = 1
264
+ ASCENDING = 2
265
+ WORDS = 3
266
+ NOTEBOOKGUID = 4
267
+ TAGGUIDS = 5
268
+ TIMEZONE = 6
269
+ INACTIVE = 7
270
+
271
+ ::Thrift::Struct.field_accessor self, :order, :ascending, :words, :notebookGuid, :tagGuids, :timeZone, :inactive
272
+ FIELDS = {
273
+ ORDER => {:type => ::Thrift::Types::I32, :name => 'order', :optional => true},
274
+ ASCENDING => {:type => ::Thrift::Types::BOOL, :name => 'ascending', :optional => true},
275
+ WORDS => {:type => ::Thrift::Types::STRING, :name => 'words', :optional => true},
276
+ NOTEBOOKGUID => {:type => ::Thrift::Types::STRING, :name => 'notebookGuid', :optional => true},
277
+ TAGGUIDS => {:type => ::Thrift::Types::LIST, :name => 'tagGuids', :element => {:type => ::Thrift::Types::STRING}, :optional => true},
278
+ TIMEZONE => {:type => ::Thrift::Types::STRING, :name => 'timeZone', :optional => true},
279
+ INACTIVE => {:type => ::Thrift::Types::BOOL, :name => 'inactive', :optional => true}
280
+ }
281
+
282
+ def struct_fields; FIELDS; end
283
+
284
+ def validate
285
+ end
286
+
287
+ end
288
+
289
+ # A small structure for returning a list of notes out of a larger set.
290
+ #
291
+ # <dl>
292
+ # <dt>startIndex</dt>
293
+ # <dd>
294
+ # The starting index within the overall set of notes. This
295
+ # is also the number of notes that are "before" this list in the set.
296
+ # </dd>
297
+ #
298
+ # <dt>totalNotes</dt>
299
+ # <dd>
300
+ # The number of notes in the larger set. This can be used
301
+ # to calculate how many notes are "after" this note in the set.
302
+ # (I.e. remaining = totalNotes - (startIndex + notes.length) )
303
+ # </dd>
304
+ #
305
+ # <dt>notes</dt>
306
+ # <dd>
307
+ # The list of notes from this range. The Notes will include all
308
+ # metadata (attributes, resources, etc.), but will not include the ENML
309
+ # content of the note or the binary contents of any resources.
310
+ # </dd>
311
+ #
312
+ # <dt>stoppedWords</dt>
313
+ # <dd>
314
+ # If the NoteList was produced using a text based search
315
+ # query that included words that are not indexed or searched by the service,
316
+ # this will include a list of those ignored words.
317
+ # </dd>
318
+ #
319
+ # <dt>searchedWords</dt>
320
+ # <dd>
321
+ # If the NoteList was produced using a text based search
322
+ # query that included viable search words or quoted expressions, this will
323
+ # include a list of those words. Any stopped words will not be included
324
+ # in this list.
325
+ # </dd>
326
+ # </dl>
327
+ class NoteList
328
+ include ::Thrift::Struct
329
+ STARTINDEX = 1
330
+ TOTALNOTES = 2
331
+ NOTES = 3
332
+ STOPPEDWORDS = 4
333
+ SEARCHEDWORDS = 5
334
+
335
+ ::Thrift::Struct.field_accessor self, :startIndex, :totalNotes, :notes, :stoppedWords, :searchedWords
336
+ FIELDS = {
337
+ STARTINDEX => {:type => ::Thrift::Types::I32, :name => 'startIndex'},
338
+ TOTALNOTES => {:type => ::Thrift::Types::I32, :name => 'totalNotes'},
339
+ NOTES => {:type => ::Thrift::Types::LIST, :name => 'notes', :element => {:type => ::Thrift::Types::STRUCT, :class => Evernote::EDAM::Type::Note}},
340
+ STOPPEDWORDS => {:type => ::Thrift::Types::LIST, :name => 'stoppedWords', :element => {:type => ::Thrift::Types::STRING}, :optional => true},
341
+ SEARCHEDWORDS => {:type => ::Thrift::Types::LIST, :name => 'searchedWords', :element => {:type => ::Thrift::Types::STRING}, :optional => true}
342
+ }
343
+
344
+ def struct_fields; FIELDS; end
345
+
346
+ def validate
347
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field startIndex is unset!') unless @startIndex
348
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field totalNotes is unset!') unless @totalNotes
349
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field notes is unset!') unless @notes
350
+ end
351
+
352
+ end
353
+
354
+ # A data structure representing the number of notes for each notebook
355
+ # and tag with a non-zero set of applicable notes.
356
+ #
357
+ # <dl>
358
+ # <dt>notebookCounts</dt>
359
+ # <dd>
360
+ # A mapping from the Notebook GUID to the number of
361
+ # notes (from some selection) that are in the corresponding notebook.
362
+ # </dd>
363
+ #
364
+ # <dt>tagCounts</dt>
365
+ # <dd>
366
+ # A mapping from the Tag GUID to the number of notes (from some
367
+ # selection) that have the corresponding tag.
368
+ # </dd>
369
+ #
370
+ # <dt>trashCount</dt>
371
+ # <dd>
372
+ # If this is set, then this is the number of notes that are in the trash.
373
+ # If this is not set, then the number of notes in the trash hasn't been
374
+ # reported. (I.e. if there are no notes in the trash, this will be set
375
+ # to 0.)
376
+ # </dd>
377
+ # </dl>
378
+ class NoteCollectionCounts
379
+ include ::Thrift::Struct
380
+ NOTEBOOKCOUNTS = 1
381
+ TAGCOUNTS = 2
382
+ TRASHCOUNT = 3
383
+
384
+ ::Thrift::Struct.field_accessor self, :notebookCounts, :tagCounts, :trashCount
385
+ FIELDS = {
386
+ NOTEBOOKCOUNTS => {:type => ::Thrift::Types::MAP, :name => 'notebookCounts', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::I32}, :optional => true},
387
+ TAGCOUNTS => {:type => ::Thrift::Types::MAP, :name => 'tagCounts', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::I32}, :optional => true},
388
+ TRASHCOUNT => {:type => ::Thrift::Types::I32, :name => 'trashCount', :optional => true}
389
+ }
390
+
391
+ def struct_fields; FIELDS; end
392
+
393
+ def validate
394
+ end
395
+
396
+ end
397
+
398
+ # Information for tracking the display of a particular ad by a client.
399
+ #
400
+ # <dl>
401
+ # <dt>adId</dt>
402
+ # <dd>
403
+ # The identifier for this ad, from a previous Ad.id given to the client
404
+ # </dd>
405
+ #
406
+ # <dt>impressionCount</dt>
407
+ # <dd>
408
+ # The number of times this ad was displayed since the last successful
409
+ # ad retrieval. The client should only report times the ad was selected
410
+ # when the client was visible.
411
+ # </dd>
412
+ #
413
+ # <dt>impressionTime</dt>
414
+ # <dd>
415
+ # The number of seconds that the client displayed the advertisement since
416
+ # the last successful ad retrieval. This corresponds to the seconds that
417
+ # the client application was visible.
418
+ # </dd>
419
+ # </dl>
420
+ class AdImpressions
421
+ include ::Thrift::Struct
422
+ ADID = 1
423
+ IMPRESSIONCOUNT = 2
424
+ IMPRESSIONTIME = 3
425
+
426
+ ::Thrift::Struct.field_accessor self, :adId, :impressionCount, :impressionTime
427
+ FIELDS = {
428
+ ADID => {:type => ::Thrift::Types::I32, :name => 'adId'},
429
+ IMPRESSIONCOUNT => {:type => ::Thrift::Types::I32, :name => 'impressionCount'},
430
+ IMPRESSIONTIME => {:type => ::Thrift::Types::I32, :name => 'impressionTime'}
431
+ }
432
+
433
+ def struct_fields; FIELDS; end
434
+
435
+ def validate
436
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field adId is unset!') unless @adId
437
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field impressionCount is unset!') unless @impressionCount
438
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field impressionTime is unset!') unless @impressionTime
439
+ end
440
+
441
+ end
442
+
443
+ # Parameters that will be given by a client to the service when it requests
444
+ # a set of advertisements to display. If any of these values are omitted,
445
+ # the service will use default values.
446
+ #
447
+ # <dl>
448
+ # <dt>clientLanguage</dt>
449
+ # <dd>
450
+ # The ISO 639-1 language code for the primary language for the client.
451
+ # If omitted, English will be assumed ('en').
452
+ # </dd>
453
+ #
454
+ # <dt>impressions</dt>
455
+ # <dd>
456
+ # A list of the impression counts and total display time for the ads
457
+ # that were displayed in the last day.
458
+ # </dd>
459
+ #
460
+ # <dt>supportHtml</dt>
461
+ # <dd>
462
+ # If true, the client requesting the ads supports ads specified via
463
+ # general HTML (with rich media, Javascript, etc.).
464
+ # </dd>
465
+ #
466
+ # <dt>clientProperties</dt>
467
+ # <dd>
468
+ # If provided, this may contain a set of key/value pairs that identify
469
+ # the characteristics of a particular client that may be used to help
470
+ # determine appropriate ads for that client. These tuples may be used
471
+ # either to reduce or increase the likelihood that each ad will be
472
+ # returned.
473
+ # </dd>
474
+ # </dl>
475
+ class AdParameters
476
+ include ::Thrift::Struct
477
+ CLIENTLANGUAGE = 2
478
+ IMPRESSIONS = 4
479
+ SUPPORTHTML = 5
480
+ CLIENTPROPERTIES = 6
481
+
482
+ ::Thrift::Struct.field_accessor self, :clientLanguage, :impressions, :supportHtml, :clientProperties
483
+ FIELDS = {
484
+ CLIENTLANGUAGE => {:type => ::Thrift::Types::STRING, :name => 'clientLanguage', :optional => true},
485
+ IMPRESSIONS => {:type => ::Thrift::Types::LIST, :name => 'impressions', :element => {:type => ::Thrift::Types::STRUCT, :class => Evernote::EDAM::NoteStore::AdImpressions}, :optional => true},
486
+ SUPPORTHTML => {:type => ::Thrift::Types::BOOL, :name => 'supportHtml', :optional => true},
487
+ CLIENTPROPERTIES => {:type => ::Thrift::Types::MAP, :name => 'clientProperties', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}, :optional => true}
488
+ }
489
+
490
+ def struct_fields; FIELDS; end
491
+
492
+ def validate
493
+ end
494
+
495
+ end
496
+
497
+ # Parameters that must be given to the NoteStore emailNote call. These allow
498
+ # the caller to specify the note to send, the recipient addresses, etc.
499
+ #
500
+ # <dl>
501
+ # <dt>guid</dt>
502
+ # <dd>
503
+ # If set, this must be the GUID of a note within the user's account that
504
+ # should be retrieved from the service and sent as email. If not set,
505
+ # the 'note' field must be provided instead.
506
+ # </dd>
507
+ #
508
+ # <dt>note</dt>
509
+ # <dd>
510
+ # If the 'guid' field is not set, this field must be provided, including
511
+ # the full contents of the note note (and all of its Resources) to send.
512
+ # This can be used for a Note that as not been created in the service,
513
+ # for example by a local client with local notes.
514
+ # </dd>
515
+ #
516
+ # <dt>toAddresses</dt>
517
+ # <dd>
518
+ # If provided, this should contain a list of the SMTP email addresses
519
+ # that should be included in the "To:" line of the email.
520
+ # Callers must specify at least one "to" or "cc" email address.
521
+ # </dd>
522
+ #
523
+ # <dt>ccAddresses</dt>
524
+ # <dd>
525
+ # If provided, this should contain a list of the SMTP email addresses
526
+ # that should be included in the "Cc:" line of the email.
527
+ # Callers must specify at least one "to" or "cc" email address.
528
+ # </dd>
529
+ #
530
+ # <dt>subject</dt>
531
+ # <dd>
532
+ # If provided, this should contain the subject line of the email that
533
+ # will be sent. If not provided, the title of the note will be used
534
+ # as the subject of the email.
535
+ # </dd>
536
+ #
537
+ # <dt>message</dt>
538
+ # <dd>
539
+ # If provided, this is additional personal text that should be included
540
+ # into the email as a message from the owner to the recipient(s).
541
+ # </dd>
542
+ # </dl>
543
+ class NoteEmailParameters
544
+ include ::Thrift::Struct
545
+ GUID = 1
546
+ NOTE = 2
547
+ TOADDRESSES = 3
548
+ CCADDRESSES = 4
549
+ SUBJECT = 5
550
+ MESSAGE = 6
551
+
552
+ ::Thrift::Struct.field_accessor self, :guid, :note, :toAddresses, :ccAddresses, :subject, :message
553
+ FIELDS = {
554
+ GUID => {:type => ::Thrift::Types::STRING, :name => 'guid', :optional => true},
555
+ NOTE => {:type => ::Thrift::Types::STRUCT, :name => 'note', :class => Evernote::EDAM::Type::Note, :optional => true},
556
+ TOADDRESSES => {:type => ::Thrift::Types::LIST, :name => 'toAddresses', :element => {:type => ::Thrift::Types::STRING}, :optional => true},
557
+ CCADDRESSES => {:type => ::Thrift::Types::LIST, :name => 'ccAddresses', :element => {:type => ::Thrift::Types::STRING}, :optional => true},
558
+ SUBJECT => {:type => ::Thrift::Types::STRING, :name => 'subject', :optional => true},
559
+ MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message', :optional => true}
560
+ }
561
+
562
+ def struct_fields; FIELDS; end
563
+
564
+ def validate
565
+ end
566
+
567
+ end
568
+
569
+ end
570
+ end
571
+ end