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,13 @@
1
+ #
2
+ # Autogenerated by Thrift
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+
8
+ module Evernote
9
+ module EDAM
10
+ module Limits
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,3834 @@
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 'thrift'
8
+ require 'note_store_types'
9
+
10
+ module Evernote
11
+ module EDAM
12
+ module NoteStore
13
+ module NoteStore
14
+ class Client
15
+ include ::Thrift::Client
16
+
17
+ def getSyncState(authenticationToken)
18
+ send_getSyncState(authenticationToken)
19
+ return recv_getSyncState()
20
+ end
21
+
22
+ def send_getSyncState(authenticationToken)
23
+ send_message('getSyncState', GetSyncState_args, :authenticationToken => authenticationToken)
24
+ end
25
+
26
+ def recv_getSyncState()
27
+ result = receive_message(GetSyncState_result)
28
+ return result.success unless result.success.nil?
29
+ raise result.userException unless result.userException.nil?
30
+ raise result.systemException unless result.systemException.nil?
31
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getSyncState failed: unknown result')
32
+ end
33
+
34
+ def getSyncChunk(authenticationToken, afterUSN, maxEntries, fullSyncOnly)
35
+ send_getSyncChunk(authenticationToken, afterUSN, maxEntries, fullSyncOnly)
36
+ return recv_getSyncChunk()
37
+ end
38
+
39
+ def send_getSyncChunk(authenticationToken, afterUSN, maxEntries, fullSyncOnly)
40
+ send_message('getSyncChunk', GetSyncChunk_args, :authenticationToken => authenticationToken, :afterUSN => afterUSN, :maxEntries => maxEntries, :fullSyncOnly => fullSyncOnly)
41
+ end
42
+
43
+ def recv_getSyncChunk()
44
+ result = receive_message(GetSyncChunk_result)
45
+ return result.success unless result.success.nil?
46
+ raise result.userException unless result.userException.nil?
47
+ raise result.systemException unless result.systemException.nil?
48
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getSyncChunk failed: unknown result')
49
+ end
50
+
51
+ def listNotebooks(authenticationToken)
52
+ send_listNotebooks(authenticationToken)
53
+ return recv_listNotebooks()
54
+ end
55
+
56
+ def send_listNotebooks(authenticationToken)
57
+ send_message('listNotebooks', ListNotebooks_args, :authenticationToken => authenticationToken)
58
+ end
59
+
60
+ def recv_listNotebooks()
61
+ result = receive_message(ListNotebooks_result)
62
+ return result.success unless result.success.nil?
63
+ raise result.userException unless result.userException.nil?
64
+ raise result.systemException unless result.systemException.nil?
65
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'listNotebooks failed: unknown result')
66
+ end
67
+
68
+ def getNotebook(authenticationToken, guid)
69
+ send_getNotebook(authenticationToken, guid)
70
+ return recv_getNotebook()
71
+ end
72
+
73
+ def send_getNotebook(authenticationToken, guid)
74
+ send_message('getNotebook', GetNotebook_args, :authenticationToken => authenticationToken, :guid => guid)
75
+ end
76
+
77
+ def recv_getNotebook()
78
+ result = receive_message(GetNotebook_result)
79
+ return result.success unless result.success.nil?
80
+ raise result.userException unless result.userException.nil?
81
+ raise result.systemException unless result.systemException.nil?
82
+ raise result.notFoundException unless result.notFoundException.nil?
83
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getNotebook failed: unknown result')
84
+ end
85
+
86
+ def getDefaultNotebook(authenticationToken)
87
+ send_getDefaultNotebook(authenticationToken)
88
+ return recv_getDefaultNotebook()
89
+ end
90
+
91
+ def send_getDefaultNotebook(authenticationToken)
92
+ send_message('getDefaultNotebook', GetDefaultNotebook_args, :authenticationToken => authenticationToken)
93
+ end
94
+
95
+ def recv_getDefaultNotebook()
96
+ result = receive_message(GetDefaultNotebook_result)
97
+ return result.success unless result.success.nil?
98
+ raise result.userException unless result.userException.nil?
99
+ raise result.systemException unless result.systemException.nil?
100
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getDefaultNotebook failed: unknown result')
101
+ end
102
+
103
+ def createNotebook(authenticationToken, notebook)
104
+ send_createNotebook(authenticationToken, notebook)
105
+ return recv_createNotebook()
106
+ end
107
+
108
+ def send_createNotebook(authenticationToken, notebook)
109
+ send_message('createNotebook', CreateNotebook_args, :authenticationToken => authenticationToken, :notebook => notebook)
110
+ end
111
+
112
+ def recv_createNotebook()
113
+ result = receive_message(CreateNotebook_result)
114
+ return result.success unless result.success.nil?
115
+ raise result.userException unless result.userException.nil?
116
+ raise result.systemException unless result.systemException.nil?
117
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'createNotebook failed: unknown result')
118
+ end
119
+
120
+ def updateNotebook(authenticationToken, notebook)
121
+ send_updateNotebook(authenticationToken, notebook)
122
+ return recv_updateNotebook()
123
+ end
124
+
125
+ def send_updateNotebook(authenticationToken, notebook)
126
+ send_message('updateNotebook', UpdateNotebook_args, :authenticationToken => authenticationToken, :notebook => notebook)
127
+ end
128
+
129
+ def recv_updateNotebook()
130
+ result = receive_message(UpdateNotebook_result)
131
+ return result.success unless result.success.nil?
132
+ raise result.userException unless result.userException.nil?
133
+ raise result.systemException unless result.systemException.nil?
134
+ raise result.notFoundException unless result.notFoundException.nil?
135
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'updateNotebook failed: unknown result')
136
+ end
137
+
138
+ def expungeNotebook(authenticationToken, guid)
139
+ send_expungeNotebook(authenticationToken, guid)
140
+ return recv_expungeNotebook()
141
+ end
142
+
143
+ def send_expungeNotebook(authenticationToken, guid)
144
+ send_message('expungeNotebook', ExpungeNotebook_args, :authenticationToken => authenticationToken, :guid => guid)
145
+ end
146
+
147
+ def recv_expungeNotebook()
148
+ result = receive_message(ExpungeNotebook_result)
149
+ return result.success unless result.success.nil?
150
+ raise result.userException unless result.userException.nil?
151
+ raise result.systemException unless result.systemException.nil?
152
+ raise result.notFoundException unless result.notFoundException.nil?
153
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'expungeNotebook failed: unknown result')
154
+ end
155
+
156
+ def listTags(authenticationToken)
157
+ send_listTags(authenticationToken)
158
+ return recv_listTags()
159
+ end
160
+
161
+ def send_listTags(authenticationToken)
162
+ send_message('listTags', ListTags_args, :authenticationToken => authenticationToken)
163
+ end
164
+
165
+ def recv_listTags()
166
+ result = receive_message(ListTags_result)
167
+ return result.success unless result.success.nil?
168
+ raise result.userException unless result.userException.nil?
169
+ raise result.systemException unless result.systemException.nil?
170
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'listTags failed: unknown result')
171
+ end
172
+
173
+ def listTagsByNotebook(authenticationToken, notebookGuid)
174
+ send_listTagsByNotebook(authenticationToken, notebookGuid)
175
+ return recv_listTagsByNotebook()
176
+ end
177
+
178
+ def send_listTagsByNotebook(authenticationToken, notebookGuid)
179
+ send_message('listTagsByNotebook', ListTagsByNotebook_args, :authenticationToken => authenticationToken, :notebookGuid => notebookGuid)
180
+ end
181
+
182
+ def recv_listTagsByNotebook()
183
+ result = receive_message(ListTagsByNotebook_result)
184
+ return result.success unless result.success.nil?
185
+ raise result.userException unless result.userException.nil?
186
+ raise result.systemException unless result.systemException.nil?
187
+ raise result.notFoundException unless result.notFoundException.nil?
188
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'listTagsByNotebook failed: unknown result')
189
+ end
190
+
191
+ def getTag(authenticationToken, guid)
192
+ send_getTag(authenticationToken, guid)
193
+ return recv_getTag()
194
+ end
195
+
196
+ def send_getTag(authenticationToken, guid)
197
+ send_message('getTag', GetTag_args, :authenticationToken => authenticationToken, :guid => guid)
198
+ end
199
+
200
+ def recv_getTag()
201
+ result = receive_message(GetTag_result)
202
+ return result.success unless result.success.nil?
203
+ raise result.userException unless result.userException.nil?
204
+ raise result.systemException unless result.systemException.nil?
205
+ raise result.notFoundException unless result.notFoundException.nil?
206
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getTag failed: unknown result')
207
+ end
208
+
209
+ def createTag(authenticationToken, tag)
210
+ send_createTag(authenticationToken, tag)
211
+ return recv_createTag()
212
+ end
213
+
214
+ def send_createTag(authenticationToken, tag)
215
+ send_message('createTag', CreateTag_args, :authenticationToken => authenticationToken, :tag => tag)
216
+ end
217
+
218
+ def recv_createTag()
219
+ result = receive_message(CreateTag_result)
220
+ return result.success unless result.success.nil?
221
+ raise result.userException unless result.userException.nil?
222
+ raise result.systemException unless result.systemException.nil?
223
+ raise result.notFoundException unless result.notFoundException.nil?
224
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'createTag failed: unknown result')
225
+ end
226
+
227
+ def updateTag(authenticationToken, tag)
228
+ send_updateTag(authenticationToken, tag)
229
+ return recv_updateTag()
230
+ end
231
+
232
+ def send_updateTag(authenticationToken, tag)
233
+ send_message('updateTag', UpdateTag_args, :authenticationToken => authenticationToken, :tag => tag)
234
+ end
235
+
236
+ def recv_updateTag()
237
+ result = receive_message(UpdateTag_result)
238
+ return result.success unless result.success.nil?
239
+ raise result.userException unless result.userException.nil?
240
+ raise result.systemException unless result.systemException.nil?
241
+ raise result.notFoundException unless result.notFoundException.nil?
242
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'updateTag failed: unknown result')
243
+ end
244
+
245
+ def untagAll(authenticationToken, guid)
246
+ send_untagAll(authenticationToken, guid)
247
+ recv_untagAll()
248
+ end
249
+
250
+ def send_untagAll(authenticationToken, guid)
251
+ send_message('untagAll', UntagAll_args, :authenticationToken => authenticationToken, :guid => guid)
252
+ end
253
+
254
+ def recv_untagAll()
255
+ result = receive_message(UntagAll_result)
256
+ raise result.userException unless result.userException.nil?
257
+ raise result.systemException unless result.systemException.nil?
258
+ raise result.notFoundException unless result.notFoundException.nil?
259
+ return
260
+ end
261
+
262
+ def expungeTag(authenticationToken, guid)
263
+ send_expungeTag(authenticationToken, guid)
264
+ return recv_expungeTag()
265
+ end
266
+
267
+ def send_expungeTag(authenticationToken, guid)
268
+ send_message('expungeTag', ExpungeTag_args, :authenticationToken => authenticationToken, :guid => guid)
269
+ end
270
+
271
+ def recv_expungeTag()
272
+ result = receive_message(ExpungeTag_result)
273
+ return result.success unless result.success.nil?
274
+ raise result.userException unless result.userException.nil?
275
+ raise result.systemException unless result.systemException.nil?
276
+ raise result.notFoundException unless result.notFoundException.nil?
277
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'expungeTag failed: unknown result')
278
+ end
279
+
280
+ def listSearches(authenticationToken)
281
+ send_listSearches(authenticationToken)
282
+ return recv_listSearches()
283
+ end
284
+
285
+ def send_listSearches(authenticationToken)
286
+ send_message('listSearches', ListSearches_args, :authenticationToken => authenticationToken)
287
+ end
288
+
289
+ def recv_listSearches()
290
+ result = receive_message(ListSearches_result)
291
+ return result.success unless result.success.nil?
292
+ raise result.userException unless result.userException.nil?
293
+ raise result.systemException unless result.systemException.nil?
294
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'listSearches failed: unknown result')
295
+ end
296
+
297
+ def getSearch(authenticationToken, guid)
298
+ send_getSearch(authenticationToken, guid)
299
+ return recv_getSearch()
300
+ end
301
+
302
+ def send_getSearch(authenticationToken, guid)
303
+ send_message('getSearch', GetSearch_args, :authenticationToken => authenticationToken, :guid => guid)
304
+ end
305
+
306
+ def recv_getSearch()
307
+ result = receive_message(GetSearch_result)
308
+ return result.success unless result.success.nil?
309
+ raise result.userException unless result.userException.nil?
310
+ raise result.systemException unless result.systemException.nil?
311
+ raise result.notFoundException unless result.notFoundException.nil?
312
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getSearch failed: unknown result')
313
+ end
314
+
315
+ def createSearch(authenticationToken, search)
316
+ send_createSearch(authenticationToken, search)
317
+ return recv_createSearch()
318
+ end
319
+
320
+ def send_createSearch(authenticationToken, search)
321
+ send_message('createSearch', CreateSearch_args, :authenticationToken => authenticationToken, :search => search)
322
+ end
323
+
324
+ def recv_createSearch()
325
+ result = receive_message(CreateSearch_result)
326
+ return result.success unless result.success.nil?
327
+ raise result.userException unless result.userException.nil?
328
+ raise result.systemException unless result.systemException.nil?
329
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'createSearch failed: unknown result')
330
+ end
331
+
332
+ def updateSearch(authenticationToken, search)
333
+ send_updateSearch(authenticationToken, search)
334
+ return recv_updateSearch()
335
+ end
336
+
337
+ def send_updateSearch(authenticationToken, search)
338
+ send_message('updateSearch', UpdateSearch_args, :authenticationToken => authenticationToken, :search => search)
339
+ end
340
+
341
+ def recv_updateSearch()
342
+ result = receive_message(UpdateSearch_result)
343
+ return result.success unless result.success.nil?
344
+ raise result.userException unless result.userException.nil?
345
+ raise result.systemException unless result.systemException.nil?
346
+ raise result.notFoundException unless result.notFoundException.nil?
347
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'updateSearch failed: unknown result')
348
+ end
349
+
350
+ def expungeSearch(authenticationToken, guid)
351
+ send_expungeSearch(authenticationToken, guid)
352
+ return recv_expungeSearch()
353
+ end
354
+
355
+ def send_expungeSearch(authenticationToken, guid)
356
+ send_message('expungeSearch', ExpungeSearch_args, :authenticationToken => authenticationToken, :guid => guid)
357
+ end
358
+
359
+ def recv_expungeSearch()
360
+ result = receive_message(ExpungeSearch_result)
361
+ return result.success unless result.success.nil?
362
+ raise result.userException unless result.userException.nil?
363
+ raise result.systemException unless result.systemException.nil?
364
+ raise result.notFoundException unless result.notFoundException.nil?
365
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'expungeSearch failed: unknown result')
366
+ end
367
+
368
+ def findNotes(authenticationToken, filter, offset, maxNotes)
369
+ send_findNotes(authenticationToken, filter, offset, maxNotes)
370
+ return recv_findNotes()
371
+ end
372
+
373
+ def send_findNotes(authenticationToken, filter, offset, maxNotes)
374
+ send_message('findNotes', FindNotes_args, :authenticationToken => authenticationToken, :filter => filter, :offset => offset, :maxNotes => maxNotes)
375
+ end
376
+
377
+ def recv_findNotes()
378
+ result = receive_message(FindNotes_result)
379
+ return result.success unless result.success.nil?
380
+ raise result.userException unless result.userException.nil?
381
+ raise result.systemException unless result.systemException.nil?
382
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'findNotes failed: unknown result')
383
+ end
384
+
385
+ def findNoteCounts(authenticationToken, filter, withTrash)
386
+ send_findNoteCounts(authenticationToken, filter, withTrash)
387
+ return recv_findNoteCounts()
388
+ end
389
+
390
+ def send_findNoteCounts(authenticationToken, filter, withTrash)
391
+ send_message('findNoteCounts', FindNoteCounts_args, :authenticationToken => authenticationToken, :filter => filter, :withTrash => withTrash)
392
+ end
393
+
394
+ def recv_findNoteCounts()
395
+ result = receive_message(FindNoteCounts_result)
396
+ return result.success unless result.success.nil?
397
+ raise result.userException unless result.userException.nil?
398
+ raise result.systemException unless result.systemException.nil?
399
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'findNoteCounts failed: unknown result')
400
+ end
401
+
402
+ def getNote(authenticationToken, guid, withContent, withResourcesData, withResourcesRecognition, withResourcesAlternateData)
403
+ send_getNote(authenticationToken, guid, withContent, withResourcesData, withResourcesRecognition, withResourcesAlternateData)
404
+ return recv_getNote()
405
+ end
406
+
407
+ def send_getNote(authenticationToken, guid, withContent, withResourcesData, withResourcesRecognition, withResourcesAlternateData)
408
+ send_message('getNote', GetNote_args, :authenticationToken => authenticationToken, :guid => guid, :withContent => withContent, :withResourcesData => withResourcesData, :withResourcesRecognition => withResourcesRecognition, :withResourcesAlternateData => withResourcesAlternateData)
409
+ end
410
+
411
+ def recv_getNote()
412
+ result = receive_message(GetNote_result)
413
+ return result.success unless result.success.nil?
414
+ raise result.userException unless result.userException.nil?
415
+ raise result.systemException unless result.systemException.nil?
416
+ raise result.notFoundException unless result.notFoundException.nil?
417
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getNote failed: unknown result')
418
+ end
419
+
420
+ def getNoteContent(authenticationToken, guid)
421
+ send_getNoteContent(authenticationToken, guid)
422
+ return recv_getNoteContent()
423
+ end
424
+
425
+ def send_getNoteContent(authenticationToken, guid)
426
+ send_message('getNoteContent', GetNoteContent_args, :authenticationToken => authenticationToken, :guid => guid)
427
+ end
428
+
429
+ def recv_getNoteContent()
430
+ result = receive_message(GetNoteContent_result)
431
+ return result.success unless result.success.nil?
432
+ raise result.userException unless result.userException.nil?
433
+ raise result.systemException unless result.systemException.nil?
434
+ raise result.notFoundException unless result.notFoundException.nil?
435
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getNoteContent failed: unknown result')
436
+ end
437
+
438
+ def getNoteSearchText(authenticationToken, guid)
439
+ send_getNoteSearchText(authenticationToken, guid)
440
+ return recv_getNoteSearchText()
441
+ end
442
+
443
+ def send_getNoteSearchText(authenticationToken, guid)
444
+ send_message('getNoteSearchText', GetNoteSearchText_args, :authenticationToken => authenticationToken, :guid => guid)
445
+ end
446
+
447
+ def recv_getNoteSearchText()
448
+ result = receive_message(GetNoteSearchText_result)
449
+ return result.success unless result.success.nil?
450
+ raise result.userException unless result.userException.nil?
451
+ raise result.systemException unless result.systemException.nil?
452
+ raise result.notFoundException unless result.notFoundException.nil?
453
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getNoteSearchText failed: unknown result')
454
+ end
455
+
456
+ def getNoteTagNames(authenticationToken, guid)
457
+ send_getNoteTagNames(authenticationToken, guid)
458
+ return recv_getNoteTagNames()
459
+ end
460
+
461
+ def send_getNoteTagNames(authenticationToken, guid)
462
+ send_message('getNoteTagNames', GetNoteTagNames_args, :authenticationToken => authenticationToken, :guid => guid)
463
+ end
464
+
465
+ def recv_getNoteTagNames()
466
+ result = receive_message(GetNoteTagNames_result)
467
+ return result.success unless result.success.nil?
468
+ raise result.userException unless result.userException.nil?
469
+ raise result.systemException unless result.systemException.nil?
470
+ raise result.notFoundException unless result.notFoundException.nil?
471
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getNoteTagNames failed: unknown result')
472
+ end
473
+
474
+ def createNote(authenticationToken, note)
475
+ send_createNote(authenticationToken, note)
476
+ return recv_createNote()
477
+ end
478
+
479
+ def send_createNote(authenticationToken, note)
480
+ send_message('createNote', CreateNote_args, :authenticationToken => authenticationToken, :note => note)
481
+ end
482
+
483
+ def recv_createNote()
484
+ result = receive_message(CreateNote_result)
485
+ return result.success unless result.success.nil?
486
+ raise result.userException unless result.userException.nil?
487
+ raise result.systemException unless result.systemException.nil?
488
+ raise result.notFoundException unless result.notFoundException.nil?
489
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'createNote failed: unknown result')
490
+ end
491
+
492
+ def updateNote(authenticationToken, note)
493
+ send_updateNote(authenticationToken, note)
494
+ return recv_updateNote()
495
+ end
496
+
497
+ def send_updateNote(authenticationToken, note)
498
+ send_message('updateNote', UpdateNote_args, :authenticationToken => authenticationToken, :note => note)
499
+ end
500
+
501
+ def recv_updateNote()
502
+ result = receive_message(UpdateNote_result)
503
+ return result.success unless result.success.nil?
504
+ raise result.userException unless result.userException.nil?
505
+ raise result.systemException unless result.systemException.nil?
506
+ raise result.notFoundException unless result.notFoundException.nil?
507
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'updateNote failed: unknown result')
508
+ end
509
+
510
+ def expungeNote(authenticationToken, guid)
511
+ send_expungeNote(authenticationToken, guid)
512
+ return recv_expungeNote()
513
+ end
514
+
515
+ def send_expungeNote(authenticationToken, guid)
516
+ send_message('expungeNote', ExpungeNote_args, :authenticationToken => authenticationToken, :guid => guid)
517
+ end
518
+
519
+ def recv_expungeNote()
520
+ result = receive_message(ExpungeNote_result)
521
+ return result.success unless result.success.nil?
522
+ raise result.userException unless result.userException.nil?
523
+ raise result.systemException unless result.systemException.nil?
524
+ raise result.notFoundException unless result.notFoundException.nil?
525
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'expungeNote failed: unknown result')
526
+ end
527
+
528
+ def expungeNotes(authenticationToken, noteGuids)
529
+ send_expungeNotes(authenticationToken, noteGuids)
530
+ return recv_expungeNotes()
531
+ end
532
+
533
+ def send_expungeNotes(authenticationToken, noteGuids)
534
+ send_message('expungeNotes', ExpungeNotes_args, :authenticationToken => authenticationToken, :noteGuids => noteGuids)
535
+ end
536
+
537
+ def recv_expungeNotes()
538
+ result = receive_message(ExpungeNotes_result)
539
+ return result.success unless result.success.nil?
540
+ raise result.userException unless result.userException.nil?
541
+ raise result.systemException unless result.systemException.nil?
542
+ raise result.notFoundException unless result.notFoundException.nil?
543
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'expungeNotes failed: unknown result')
544
+ end
545
+
546
+ def expungeInactiveNotes(authenticationToken)
547
+ send_expungeInactiveNotes(authenticationToken)
548
+ return recv_expungeInactiveNotes()
549
+ end
550
+
551
+ def send_expungeInactiveNotes(authenticationToken)
552
+ send_message('expungeInactiveNotes', ExpungeInactiveNotes_args, :authenticationToken => authenticationToken)
553
+ end
554
+
555
+ def recv_expungeInactiveNotes()
556
+ result = receive_message(ExpungeInactiveNotes_result)
557
+ return result.success unless result.success.nil?
558
+ raise result.userException unless result.userException.nil?
559
+ raise result.systemException unless result.systemException.nil?
560
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'expungeInactiveNotes failed: unknown result')
561
+ end
562
+
563
+ def copyNote(authenticationToken, noteGuid, toNotebookGuid)
564
+ send_copyNote(authenticationToken, noteGuid, toNotebookGuid)
565
+ return recv_copyNote()
566
+ end
567
+
568
+ def send_copyNote(authenticationToken, noteGuid, toNotebookGuid)
569
+ send_message('copyNote', CopyNote_args, :authenticationToken => authenticationToken, :noteGuid => noteGuid, :toNotebookGuid => toNotebookGuid)
570
+ end
571
+
572
+ def recv_copyNote()
573
+ result = receive_message(CopyNote_result)
574
+ return result.success unless result.success.nil?
575
+ raise result.userException unless result.userException.nil?
576
+ raise result.systemException unless result.systemException.nil?
577
+ raise result.notFoundException unless result.notFoundException.nil?
578
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'copyNote failed: unknown result')
579
+ end
580
+
581
+ def getResource(authenticationToken, guid, withData, withRecognition, withAttributes, withAlternateData)
582
+ send_getResource(authenticationToken, guid, withData, withRecognition, withAttributes, withAlternateData)
583
+ return recv_getResource()
584
+ end
585
+
586
+ def send_getResource(authenticationToken, guid, withData, withRecognition, withAttributes, withAlternateData)
587
+ send_message('getResource', GetResource_args, :authenticationToken => authenticationToken, :guid => guid, :withData => withData, :withRecognition => withRecognition, :withAttributes => withAttributes, :withAlternateData => withAlternateData)
588
+ end
589
+
590
+ def recv_getResource()
591
+ result = receive_message(GetResource_result)
592
+ return result.success unless result.success.nil?
593
+ raise result.userException unless result.userException.nil?
594
+ raise result.systemException unless result.systemException.nil?
595
+ raise result.notFoundException unless result.notFoundException.nil?
596
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getResource failed: unknown result')
597
+ end
598
+
599
+ def updateResource(authenticationToken, resource)
600
+ send_updateResource(authenticationToken, resource)
601
+ return recv_updateResource()
602
+ end
603
+
604
+ def send_updateResource(authenticationToken, resource)
605
+ send_message('updateResource', UpdateResource_args, :authenticationToken => authenticationToken, :resource => resource)
606
+ end
607
+
608
+ def recv_updateResource()
609
+ result = receive_message(UpdateResource_result)
610
+ return result.success unless result.success.nil?
611
+ raise result.userException unless result.userException.nil?
612
+ raise result.systemException unless result.systemException.nil?
613
+ raise result.notFoundException unless result.notFoundException.nil?
614
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'updateResource failed: unknown result')
615
+ end
616
+
617
+ def getResourceData(authenticationToken, guid)
618
+ send_getResourceData(authenticationToken, guid)
619
+ return recv_getResourceData()
620
+ end
621
+
622
+ def send_getResourceData(authenticationToken, guid)
623
+ send_message('getResourceData', GetResourceData_args, :authenticationToken => authenticationToken, :guid => guid)
624
+ end
625
+
626
+ def recv_getResourceData()
627
+ result = receive_message(GetResourceData_result)
628
+ return result.success unless result.success.nil?
629
+ raise result.userException unless result.userException.nil?
630
+ raise result.systemException unless result.systemException.nil?
631
+ raise result.notFoundException unless result.notFoundException.nil?
632
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getResourceData failed: unknown result')
633
+ end
634
+
635
+ def getResourceByHash(authenticationToken, noteGuid, contentHash, withData, withRecognition, withAlternateData)
636
+ send_getResourceByHash(authenticationToken, noteGuid, contentHash, withData, withRecognition, withAlternateData)
637
+ return recv_getResourceByHash()
638
+ end
639
+
640
+ def send_getResourceByHash(authenticationToken, noteGuid, contentHash, withData, withRecognition, withAlternateData)
641
+ send_message('getResourceByHash', GetResourceByHash_args, :authenticationToken => authenticationToken, :noteGuid => noteGuid, :contentHash => contentHash, :withData => withData, :withRecognition => withRecognition, :withAlternateData => withAlternateData)
642
+ end
643
+
644
+ def recv_getResourceByHash()
645
+ result = receive_message(GetResourceByHash_result)
646
+ return result.success unless result.success.nil?
647
+ raise result.userException unless result.userException.nil?
648
+ raise result.systemException unless result.systemException.nil?
649
+ raise result.notFoundException unless result.notFoundException.nil?
650
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getResourceByHash failed: unknown result')
651
+ end
652
+
653
+ def getResourceRecognition(authenticationToken, guid)
654
+ send_getResourceRecognition(authenticationToken, guid)
655
+ return recv_getResourceRecognition()
656
+ end
657
+
658
+ def send_getResourceRecognition(authenticationToken, guid)
659
+ send_message('getResourceRecognition', GetResourceRecognition_args, :authenticationToken => authenticationToken, :guid => guid)
660
+ end
661
+
662
+ def recv_getResourceRecognition()
663
+ result = receive_message(GetResourceRecognition_result)
664
+ return result.success unless result.success.nil?
665
+ raise result.userException unless result.userException.nil?
666
+ raise result.systemException unless result.systemException.nil?
667
+ raise result.notFoundException unless result.notFoundException.nil?
668
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getResourceRecognition failed: unknown result')
669
+ end
670
+
671
+ def getResourceAlternateData(authenticationToken, guid)
672
+ send_getResourceAlternateData(authenticationToken, guid)
673
+ return recv_getResourceAlternateData()
674
+ end
675
+
676
+ def send_getResourceAlternateData(authenticationToken, guid)
677
+ send_message('getResourceAlternateData', GetResourceAlternateData_args, :authenticationToken => authenticationToken, :guid => guid)
678
+ end
679
+
680
+ def recv_getResourceAlternateData()
681
+ result = receive_message(GetResourceAlternateData_result)
682
+ return result.success unless result.success.nil?
683
+ raise result.userException unless result.userException.nil?
684
+ raise result.systemException unless result.systemException.nil?
685
+ raise result.notFoundException unless result.notFoundException.nil?
686
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getResourceAlternateData failed: unknown result')
687
+ end
688
+
689
+ def getResourceAttributes(authenticationToken, guid)
690
+ send_getResourceAttributes(authenticationToken, guid)
691
+ return recv_getResourceAttributes()
692
+ end
693
+
694
+ def send_getResourceAttributes(authenticationToken, guid)
695
+ send_message('getResourceAttributes', GetResourceAttributes_args, :authenticationToken => authenticationToken, :guid => guid)
696
+ end
697
+
698
+ def recv_getResourceAttributes()
699
+ result = receive_message(GetResourceAttributes_result)
700
+ return result.success unless result.success.nil?
701
+ raise result.userException unless result.userException.nil?
702
+ raise result.systemException unless result.systemException.nil?
703
+ raise result.notFoundException unless result.notFoundException.nil?
704
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getResourceAttributes failed: unknown result')
705
+ end
706
+
707
+ def getAccountSize(authenticationToken)
708
+ send_getAccountSize(authenticationToken)
709
+ return recv_getAccountSize()
710
+ end
711
+
712
+ def send_getAccountSize(authenticationToken)
713
+ send_message('getAccountSize', GetAccountSize_args, :authenticationToken => authenticationToken)
714
+ end
715
+
716
+ def recv_getAccountSize()
717
+ result = receive_message(GetAccountSize_result)
718
+ return result.success unless result.success.nil?
719
+ raise result.userException unless result.userException.nil?
720
+ raise result.systemException unless result.systemException.nil?
721
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getAccountSize failed: unknown result')
722
+ end
723
+
724
+ def getAds(authenticationToken, adParameters)
725
+ send_getAds(authenticationToken, adParameters)
726
+ return recv_getAds()
727
+ end
728
+
729
+ def send_getAds(authenticationToken, adParameters)
730
+ send_message('getAds', GetAds_args, :authenticationToken => authenticationToken, :adParameters => adParameters)
731
+ end
732
+
733
+ def recv_getAds()
734
+ result = receive_message(GetAds_result)
735
+ return result.success unless result.success.nil?
736
+ raise result.userException unless result.userException.nil?
737
+ raise result.systemException unless result.systemException.nil?
738
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getAds failed: unknown result')
739
+ end
740
+
741
+ def getRandomAd(authenticationToken, adParameters)
742
+ send_getRandomAd(authenticationToken, adParameters)
743
+ return recv_getRandomAd()
744
+ end
745
+
746
+ def send_getRandomAd(authenticationToken, adParameters)
747
+ send_message('getRandomAd', GetRandomAd_args, :authenticationToken => authenticationToken, :adParameters => adParameters)
748
+ end
749
+
750
+ def recv_getRandomAd()
751
+ result = receive_message(GetRandomAd_result)
752
+ return result.success unless result.success.nil?
753
+ raise result.userException unless result.userException.nil?
754
+ raise result.systemException unless result.systemException.nil?
755
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getRandomAd failed: unknown result')
756
+ end
757
+
758
+ def getPublicNotebook(userId, publicUri)
759
+ send_getPublicNotebook(userId, publicUri)
760
+ return recv_getPublicNotebook()
761
+ end
762
+
763
+ def send_getPublicNotebook(userId, publicUri)
764
+ send_message('getPublicNotebook', GetPublicNotebook_args, :userId => userId, :publicUri => publicUri)
765
+ end
766
+
767
+ def recv_getPublicNotebook()
768
+ result = receive_message(GetPublicNotebook_result)
769
+ return result.success unless result.success.nil?
770
+ raise result.systemException unless result.systemException.nil?
771
+ raise result.notFoundException unless result.notFoundException.nil?
772
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getPublicNotebook failed: unknown result')
773
+ end
774
+
775
+ def createSharedNotebook(authenticationToken, sharedNotebook)
776
+ send_createSharedNotebook(authenticationToken, sharedNotebook)
777
+ return recv_createSharedNotebook()
778
+ end
779
+
780
+ def send_createSharedNotebook(authenticationToken, sharedNotebook)
781
+ send_message('createSharedNotebook', CreateSharedNotebook_args, :authenticationToken => authenticationToken, :sharedNotebook => sharedNotebook)
782
+ end
783
+
784
+ def recv_createSharedNotebook()
785
+ result = receive_message(CreateSharedNotebook_result)
786
+ return result.success unless result.success.nil?
787
+ raise result.userException unless result.userException.nil?
788
+ raise result.notFoundException unless result.notFoundException.nil?
789
+ raise result.systemException unless result.systemException.nil?
790
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'createSharedNotebook failed: unknown result')
791
+ end
792
+
793
+ def listSharedNotebooks(authenticationToken)
794
+ send_listSharedNotebooks(authenticationToken)
795
+ return recv_listSharedNotebooks()
796
+ end
797
+
798
+ def send_listSharedNotebooks(authenticationToken)
799
+ send_message('listSharedNotebooks', ListSharedNotebooks_args, :authenticationToken => authenticationToken)
800
+ end
801
+
802
+ def recv_listSharedNotebooks()
803
+ result = receive_message(ListSharedNotebooks_result)
804
+ return result.success unless result.success.nil?
805
+ raise result.userException unless result.userException.nil?
806
+ raise result.notFoundException unless result.notFoundException.nil?
807
+ raise result.systemException unless result.systemException.nil?
808
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'listSharedNotebooks failed: unknown result')
809
+ end
810
+
811
+ def expungeSharedNotebooks(authenticationToken, sharedNotebookIds)
812
+ send_expungeSharedNotebooks(authenticationToken, sharedNotebookIds)
813
+ return recv_expungeSharedNotebooks()
814
+ end
815
+
816
+ def send_expungeSharedNotebooks(authenticationToken, sharedNotebookIds)
817
+ send_message('expungeSharedNotebooks', ExpungeSharedNotebooks_args, :authenticationToken => authenticationToken, :sharedNotebookIds => sharedNotebookIds)
818
+ end
819
+
820
+ def recv_expungeSharedNotebooks()
821
+ result = receive_message(ExpungeSharedNotebooks_result)
822
+ return result.success unless result.success.nil?
823
+ raise result.userException unless result.userException.nil?
824
+ raise result.notFoundException unless result.notFoundException.nil?
825
+ raise result.systemException unless result.systemException.nil?
826
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'expungeSharedNotebooks failed: unknown result')
827
+ end
828
+
829
+ def createLinkedNotebook(authenticationToken, linkedNotebook)
830
+ send_createLinkedNotebook(authenticationToken, linkedNotebook)
831
+ return recv_createLinkedNotebook()
832
+ end
833
+
834
+ def send_createLinkedNotebook(authenticationToken, linkedNotebook)
835
+ send_message('createLinkedNotebook', CreateLinkedNotebook_args, :authenticationToken => authenticationToken, :linkedNotebook => linkedNotebook)
836
+ end
837
+
838
+ def recv_createLinkedNotebook()
839
+ result = receive_message(CreateLinkedNotebook_result)
840
+ return result.success unless result.success.nil?
841
+ raise result.userException unless result.userException.nil?
842
+ raise result.notFoundException unless result.notFoundException.nil?
843
+ raise result.systemException unless result.systemException.nil?
844
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'createLinkedNotebook failed: unknown result')
845
+ end
846
+
847
+ def updateLinkedNotebook(authenticationToken, linkedNotebook)
848
+ send_updateLinkedNotebook(authenticationToken, linkedNotebook)
849
+ return recv_updateLinkedNotebook()
850
+ end
851
+
852
+ def send_updateLinkedNotebook(authenticationToken, linkedNotebook)
853
+ send_message('updateLinkedNotebook', UpdateLinkedNotebook_args, :authenticationToken => authenticationToken, :linkedNotebook => linkedNotebook)
854
+ end
855
+
856
+ def recv_updateLinkedNotebook()
857
+ result = receive_message(UpdateLinkedNotebook_result)
858
+ return result.success unless result.success.nil?
859
+ raise result.userException unless result.userException.nil?
860
+ raise result.notFoundException unless result.notFoundException.nil?
861
+ raise result.systemException unless result.systemException.nil?
862
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'updateLinkedNotebook failed: unknown result')
863
+ end
864
+
865
+ def listLinkedNotebooks(authenticationToken)
866
+ send_listLinkedNotebooks(authenticationToken)
867
+ return recv_listLinkedNotebooks()
868
+ end
869
+
870
+ def send_listLinkedNotebooks(authenticationToken)
871
+ send_message('listLinkedNotebooks', ListLinkedNotebooks_args, :authenticationToken => authenticationToken)
872
+ end
873
+
874
+ def recv_listLinkedNotebooks()
875
+ result = receive_message(ListLinkedNotebooks_result)
876
+ return result.success unless result.success.nil?
877
+ raise result.userException unless result.userException.nil?
878
+ raise result.notFoundException unless result.notFoundException.nil?
879
+ raise result.systemException unless result.systemException.nil?
880
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'listLinkedNotebooks failed: unknown result')
881
+ end
882
+
883
+ def expungeLinkedNotebook(authenticationToken, linkedNotebookId)
884
+ send_expungeLinkedNotebook(authenticationToken, linkedNotebookId)
885
+ return recv_expungeLinkedNotebook()
886
+ end
887
+
888
+ def send_expungeLinkedNotebook(authenticationToken, linkedNotebookId)
889
+ send_message('expungeLinkedNotebook', ExpungeLinkedNotebook_args, :authenticationToken => authenticationToken, :linkedNotebookId => linkedNotebookId)
890
+ end
891
+
892
+ def recv_expungeLinkedNotebook()
893
+ result = receive_message(ExpungeLinkedNotebook_result)
894
+ return result.success unless result.success.nil?
895
+ raise result.userException unless result.userException.nil?
896
+ raise result.notFoundException unless result.notFoundException.nil?
897
+ raise result.systemException unless result.systemException.nil?
898
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'expungeLinkedNotebook failed: unknown result')
899
+ end
900
+
901
+ def authenticateToSharedNotebook(shareKey, authenticationToken)
902
+ send_authenticateToSharedNotebook(shareKey, authenticationToken)
903
+ return recv_authenticateToSharedNotebook()
904
+ end
905
+
906
+ def send_authenticateToSharedNotebook(shareKey, authenticationToken)
907
+ send_message('authenticateToSharedNotebook', AuthenticateToSharedNotebook_args, :shareKey => shareKey, :authenticationToken => authenticationToken)
908
+ end
909
+
910
+ def recv_authenticateToSharedNotebook()
911
+ result = receive_message(AuthenticateToSharedNotebook_result)
912
+ return result.success unless result.success.nil?
913
+ raise result.userException unless result.userException.nil?
914
+ raise result.notFoundException unless result.notFoundException.nil?
915
+ raise result.systemException unless result.systemException.nil?
916
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'authenticateToSharedNotebook failed: unknown result')
917
+ end
918
+
919
+ def getSharedNotebookByAuth(authenticationToken)
920
+ send_getSharedNotebookByAuth(authenticationToken)
921
+ return recv_getSharedNotebookByAuth()
922
+ end
923
+
924
+ def send_getSharedNotebookByAuth(authenticationToken)
925
+ send_message('getSharedNotebookByAuth', GetSharedNotebookByAuth_args, :authenticationToken => authenticationToken)
926
+ end
927
+
928
+ def recv_getSharedNotebookByAuth()
929
+ result = receive_message(GetSharedNotebookByAuth_result)
930
+ return result.success unless result.success.nil?
931
+ raise result.userException unless result.userException.nil?
932
+ raise result.notFoundException unless result.notFoundException.nil?
933
+ raise result.systemException unless result.systemException.nil?
934
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getSharedNotebookByAuth failed: unknown result')
935
+ end
936
+
937
+ def emailNote(authenticationToken, parameters)
938
+ send_emailNote(authenticationToken, parameters)
939
+ recv_emailNote()
940
+ end
941
+
942
+ def send_emailNote(authenticationToken, parameters)
943
+ send_message('emailNote', EmailNote_args, :authenticationToken => authenticationToken, :parameters => parameters)
944
+ end
945
+
946
+ def recv_emailNote()
947
+ result = receive_message(EmailNote_result)
948
+ raise result.userException unless result.userException.nil?
949
+ raise result.notFoundException unless result.notFoundException.nil?
950
+ raise result.systemException unless result.systemException.nil?
951
+ return
952
+ end
953
+
954
+ end
955
+
956
+ class Processor
957
+ include ::Thrift::Processor
958
+
959
+ def process_getSyncState(seqid, iprot, oprot)
960
+ args = read_args(iprot, GetSyncState_args)
961
+ result = GetSyncState_result.new()
962
+ begin
963
+ result.success = @handler.getSyncState(args.authenticationToken)
964
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
965
+ result.userException = userException
966
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
967
+ result.systemException = systemException
968
+ end
969
+ write_result(result, oprot, 'getSyncState', seqid)
970
+ end
971
+
972
+ def process_getSyncChunk(seqid, iprot, oprot)
973
+ args = read_args(iprot, GetSyncChunk_args)
974
+ result = GetSyncChunk_result.new()
975
+ begin
976
+ result.success = @handler.getSyncChunk(args.authenticationToken, args.afterUSN, args.maxEntries, args.fullSyncOnly)
977
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
978
+ result.userException = userException
979
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
980
+ result.systemException = systemException
981
+ end
982
+ write_result(result, oprot, 'getSyncChunk', seqid)
983
+ end
984
+
985
+ def process_listNotebooks(seqid, iprot, oprot)
986
+ args = read_args(iprot, ListNotebooks_args)
987
+ result = ListNotebooks_result.new()
988
+ begin
989
+ result.success = @handler.listNotebooks(args.authenticationToken)
990
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
991
+ result.userException = userException
992
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
993
+ result.systemException = systemException
994
+ end
995
+ write_result(result, oprot, 'listNotebooks', seqid)
996
+ end
997
+
998
+ def process_getNotebook(seqid, iprot, oprot)
999
+ args = read_args(iprot, GetNotebook_args)
1000
+ result = GetNotebook_result.new()
1001
+ begin
1002
+ result.success = @handler.getNotebook(args.authenticationToken, args.guid)
1003
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1004
+ result.userException = userException
1005
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1006
+ result.systemException = systemException
1007
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
1008
+ result.notFoundException = notFoundException
1009
+ end
1010
+ write_result(result, oprot, 'getNotebook', seqid)
1011
+ end
1012
+
1013
+ def process_getDefaultNotebook(seqid, iprot, oprot)
1014
+ args = read_args(iprot, GetDefaultNotebook_args)
1015
+ result = GetDefaultNotebook_result.new()
1016
+ begin
1017
+ result.success = @handler.getDefaultNotebook(args.authenticationToken)
1018
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1019
+ result.userException = userException
1020
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1021
+ result.systemException = systemException
1022
+ end
1023
+ write_result(result, oprot, 'getDefaultNotebook', seqid)
1024
+ end
1025
+
1026
+ def process_createNotebook(seqid, iprot, oprot)
1027
+ args = read_args(iprot, CreateNotebook_args)
1028
+ result = CreateNotebook_result.new()
1029
+ begin
1030
+ result.success = @handler.createNotebook(args.authenticationToken, args.notebook)
1031
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1032
+ result.userException = userException
1033
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1034
+ result.systemException = systemException
1035
+ end
1036
+ write_result(result, oprot, 'createNotebook', seqid)
1037
+ end
1038
+
1039
+ def process_updateNotebook(seqid, iprot, oprot)
1040
+ args = read_args(iprot, UpdateNotebook_args)
1041
+ result = UpdateNotebook_result.new()
1042
+ begin
1043
+ result.success = @handler.updateNotebook(args.authenticationToken, args.notebook)
1044
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1045
+ result.userException = userException
1046
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1047
+ result.systemException = systemException
1048
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
1049
+ result.notFoundException = notFoundException
1050
+ end
1051
+ write_result(result, oprot, 'updateNotebook', seqid)
1052
+ end
1053
+
1054
+ def process_expungeNotebook(seqid, iprot, oprot)
1055
+ args = read_args(iprot, ExpungeNotebook_args)
1056
+ result = ExpungeNotebook_result.new()
1057
+ begin
1058
+ result.success = @handler.expungeNotebook(args.authenticationToken, args.guid)
1059
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1060
+ result.userException = userException
1061
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1062
+ result.systemException = systemException
1063
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
1064
+ result.notFoundException = notFoundException
1065
+ end
1066
+ write_result(result, oprot, 'expungeNotebook', seqid)
1067
+ end
1068
+
1069
+ def process_listTags(seqid, iprot, oprot)
1070
+ args = read_args(iprot, ListTags_args)
1071
+ result = ListTags_result.new()
1072
+ begin
1073
+ result.success = @handler.listTags(args.authenticationToken)
1074
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1075
+ result.userException = userException
1076
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1077
+ result.systemException = systemException
1078
+ end
1079
+ write_result(result, oprot, 'listTags', seqid)
1080
+ end
1081
+
1082
+ def process_listTagsByNotebook(seqid, iprot, oprot)
1083
+ args = read_args(iprot, ListTagsByNotebook_args)
1084
+ result = ListTagsByNotebook_result.new()
1085
+ begin
1086
+ result.success = @handler.listTagsByNotebook(args.authenticationToken, args.notebookGuid)
1087
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1088
+ result.userException = userException
1089
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1090
+ result.systemException = systemException
1091
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
1092
+ result.notFoundException = notFoundException
1093
+ end
1094
+ write_result(result, oprot, 'listTagsByNotebook', seqid)
1095
+ end
1096
+
1097
+ def process_getTag(seqid, iprot, oprot)
1098
+ args = read_args(iprot, GetTag_args)
1099
+ result = GetTag_result.new()
1100
+ begin
1101
+ result.success = @handler.getTag(args.authenticationToken, args.guid)
1102
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1103
+ result.userException = userException
1104
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1105
+ result.systemException = systemException
1106
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
1107
+ result.notFoundException = notFoundException
1108
+ end
1109
+ write_result(result, oprot, 'getTag', seqid)
1110
+ end
1111
+
1112
+ def process_createTag(seqid, iprot, oprot)
1113
+ args = read_args(iprot, CreateTag_args)
1114
+ result = CreateTag_result.new()
1115
+ begin
1116
+ result.success = @handler.createTag(args.authenticationToken, args.tag)
1117
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1118
+ result.userException = userException
1119
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1120
+ result.systemException = systemException
1121
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
1122
+ result.notFoundException = notFoundException
1123
+ end
1124
+ write_result(result, oprot, 'createTag', seqid)
1125
+ end
1126
+
1127
+ def process_updateTag(seqid, iprot, oprot)
1128
+ args = read_args(iprot, UpdateTag_args)
1129
+ result = UpdateTag_result.new()
1130
+ begin
1131
+ result.success = @handler.updateTag(args.authenticationToken, args.tag)
1132
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1133
+ result.userException = userException
1134
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1135
+ result.systemException = systemException
1136
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
1137
+ result.notFoundException = notFoundException
1138
+ end
1139
+ write_result(result, oprot, 'updateTag', seqid)
1140
+ end
1141
+
1142
+ def process_untagAll(seqid, iprot, oprot)
1143
+ args = read_args(iprot, UntagAll_args)
1144
+ result = UntagAll_result.new()
1145
+ begin
1146
+ @handler.untagAll(args.authenticationToken, args.guid)
1147
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1148
+ result.userException = userException
1149
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1150
+ result.systemException = systemException
1151
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
1152
+ result.notFoundException = notFoundException
1153
+ end
1154
+ write_result(result, oprot, 'untagAll', seqid)
1155
+ end
1156
+
1157
+ def process_expungeTag(seqid, iprot, oprot)
1158
+ args = read_args(iprot, ExpungeTag_args)
1159
+ result = ExpungeTag_result.new()
1160
+ begin
1161
+ result.success = @handler.expungeTag(args.authenticationToken, args.guid)
1162
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1163
+ result.userException = userException
1164
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1165
+ result.systemException = systemException
1166
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
1167
+ result.notFoundException = notFoundException
1168
+ end
1169
+ write_result(result, oprot, 'expungeTag', seqid)
1170
+ end
1171
+
1172
+ def process_listSearches(seqid, iprot, oprot)
1173
+ args = read_args(iprot, ListSearches_args)
1174
+ result = ListSearches_result.new()
1175
+ begin
1176
+ result.success = @handler.listSearches(args.authenticationToken)
1177
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1178
+ result.userException = userException
1179
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1180
+ result.systemException = systemException
1181
+ end
1182
+ write_result(result, oprot, 'listSearches', seqid)
1183
+ end
1184
+
1185
+ def process_getSearch(seqid, iprot, oprot)
1186
+ args = read_args(iprot, GetSearch_args)
1187
+ result = GetSearch_result.new()
1188
+ begin
1189
+ result.success = @handler.getSearch(args.authenticationToken, args.guid)
1190
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1191
+ result.userException = userException
1192
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1193
+ result.systemException = systemException
1194
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
1195
+ result.notFoundException = notFoundException
1196
+ end
1197
+ write_result(result, oprot, 'getSearch', seqid)
1198
+ end
1199
+
1200
+ def process_createSearch(seqid, iprot, oprot)
1201
+ args = read_args(iprot, CreateSearch_args)
1202
+ result = CreateSearch_result.new()
1203
+ begin
1204
+ result.success = @handler.createSearch(args.authenticationToken, args.search)
1205
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1206
+ result.userException = userException
1207
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1208
+ result.systemException = systemException
1209
+ end
1210
+ write_result(result, oprot, 'createSearch', seqid)
1211
+ end
1212
+
1213
+ def process_updateSearch(seqid, iprot, oprot)
1214
+ args = read_args(iprot, UpdateSearch_args)
1215
+ result = UpdateSearch_result.new()
1216
+ begin
1217
+ result.success = @handler.updateSearch(args.authenticationToken, args.search)
1218
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1219
+ result.userException = userException
1220
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1221
+ result.systemException = systemException
1222
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
1223
+ result.notFoundException = notFoundException
1224
+ end
1225
+ write_result(result, oprot, 'updateSearch', seqid)
1226
+ end
1227
+
1228
+ def process_expungeSearch(seqid, iprot, oprot)
1229
+ args = read_args(iprot, ExpungeSearch_args)
1230
+ result = ExpungeSearch_result.new()
1231
+ begin
1232
+ result.success = @handler.expungeSearch(args.authenticationToken, args.guid)
1233
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1234
+ result.userException = userException
1235
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1236
+ result.systemException = systemException
1237
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
1238
+ result.notFoundException = notFoundException
1239
+ end
1240
+ write_result(result, oprot, 'expungeSearch', seqid)
1241
+ end
1242
+
1243
+ def process_findNotes(seqid, iprot, oprot)
1244
+ args = read_args(iprot, FindNotes_args)
1245
+ result = FindNotes_result.new()
1246
+ begin
1247
+ result.success = @handler.findNotes(args.authenticationToken, args.filter, args.offset, args.maxNotes)
1248
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1249
+ result.userException = userException
1250
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1251
+ result.systemException = systemException
1252
+ end
1253
+ write_result(result, oprot, 'findNotes', seqid)
1254
+ end
1255
+
1256
+ def process_findNoteCounts(seqid, iprot, oprot)
1257
+ args = read_args(iprot, FindNoteCounts_args)
1258
+ result = FindNoteCounts_result.new()
1259
+ begin
1260
+ result.success = @handler.findNoteCounts(args.authenticationToken, args.filter, args.withTrash)
1261
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1262
+ result.userException = userException
1263
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1264
+ result.systemException = systemException
1265
+ end
1266
+ write_result(result, oprot, 'findNoteCounts', seqid)
1267
+ end
1268
+
1269
+ def process_getNote(seqid, iprot, oprot)
1270
+ args = read_args(iprot, GetNote_args)
1271
+ result = GetNote_result.new()
1272
+ begin
1273
+ result.success = @handler.getNote(args.authenticationToken, args.guid, args.withContent, args.withResourcesData, args.withResourcesRecognition, args.withResourcesAlternateData)
1274
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1275
+ result.userException = userException
1276
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1277
+ result.systemException = systemException
1278
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
1279
+ result.notFoundException = notFoundException
1280
+ end
1281
+ write_result(result, oprot, 'getNote', seqid)
1282
+ end
1283
+
1284
+ def process_getNoteContent(seqid, iprot, oprot)
1285
+ args = read_args(iprot, GetNoteContent_args)
1286
+ result = GetNoteContent_result.new()
1287
+ begin
1288
+ result.success = @handler.getNoteContent(args.authenticationToken, args.guid)
1289
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1290
+ result.userException = userException
1291
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1292
+ result.systemException = systemException
1293
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
1294
+ result.notFoundException = notFoundException
1295
+ end
1296
+ write_result(result, oprot, 'getNoteContent', seqid)
1297
+ end
1298
+
1299
+ def process_getNoteSearchText(seqid, iprot, oprot)
1300
+ args = read_args(iprot, GetNoteSearchText_args)
1301
+ result = GetNoteSearchText_result.new()
1302
+ begin
1303
+ result.success = @handler.getNoteSearchText(args.authenticationToken, args.guid)
1304
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1305
+ result.userException = userException
1306
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1307
+ result.systemException = systemException
1308
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
1309
+ result.notFoundException = notFoundException
1310
+ end
1311
+ write_result(result, oprot, 'getNoteSearchText', seqid)
1312
+ end
1313
+
1314
+ def process_getNoteTagNames(seqid, iprot, oprot)
1315
+ args = read_args(iprot, GetNoteTagNames_args)
1316
+ result = GetNoteTagNames_result.new()
1317
+ begin
1318
+ result.success = @handler.getNoteTagNames(args.authenticationToken, args.guid)
1319
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1320
+ result.userException = userException
1321
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1322
+ result.systemException = systemException
1323
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
1324
+ result.notFoundException = notFoundException
1325
+ end
1326
+ write_result(result, oprot, 'getNoteTagNames', seqid)
1327
+ end
1328
+
1329
+ def process_createNote(seqid, iprot, oprot)
1330
+ args = read_args(iprot, CreateNote_args)
1331
+ result = CreateNote_result.new()
1332
+ begin
1333
+ result.success = @handler.createNote(args.authenticationToken, args.note)
1334
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1335
+ result.userException = userException
1336
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1337
+ result.systemException = systemException
1338
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
1339
+ result.notFoundException = notFoundException
1340
+ end
1341
+ write_result(result, oprot, 'createNote', seqid)
1342
+ end
1343
+
1344
+ def process_updateNote(seqid, iprot, oprot)
1345
+ args = read_args(iprot, UpdateNote_args)
1346
+ result = UpdateNote_result.new()
1347
+ begin
1348
+ result.success = @handler.updateNote(args.authenticationToken, args.note)
1349
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1350
+ result.userException = userException
1351
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1352
+ result.systemException = systemException
1353
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
1354
+ result.notFoundException = notFoundException
1355
+ end
1356
+ write_result(result, oprot, 'updateNote', seqid)
1357
+ end
1358
+
1359
+ def process_expungeNote(seqid, iprot, oprot)
1360
+ args = read_args(iprot, ExpungeNote_args)
1361
+ result = ExpungeNote_result.new()
1362
+ begin
1363
+ result.success = @handler.expungeNote(args.authenticationToken, args.guid)
1364
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1365
+ result.userException = userException
1366
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1367
+ result.systemException = systemException
1368
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
1369
+ result.notFoundException = notFoundException
1370
+ end
1371
+ write_result(result, oprot, 'expungeNote', seqid)
1372
+ end
1373
+
1374
+ def process_expungeNotes(seqid, iprot, oprot)
1375
+ args = read_args(iprot, ExpungeNotes_args)
1376
+ result = ExpungeNotes_result.new()
1377
+ begin
1378
+ result.success = @handler.expungeNotes(args.authenticationToken, args.noteGuids)
1379
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1380
+ result.userException = userException
1381
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1382
+ result.systemException = systemException
1383
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
1384
+ result.notFoundException = notFoundException
1385
+ end
1386
+ write_result(result, oprot, 'expungeNotes', seqid)
1387
+ end
1388
+
1389
+ def process_expungeInactiveNotes(seqid, iprot, oprot)
1390
+ args = read_args(iprot, ExpungeInactiveNotes_args)
1391
+ result = ExpungeInactiveNotes_result.new()
1392
+ begin
1393
+ result.success = @handler.expungeInactiveNotes(args.authenticationToken)
1394
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1395
+ result.userException = userException
1396
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1397
+ result.systemException = systemException
1398
+ end
1399
+ write_result(result, oprot, 'expungeInactiveNotes', seqid)
1400
+ end
1401
+
1402
+ def process_copyNote(seqid, iprot, oprot)
1403
+ args = read_args(iprot, CopyNote_args)
1404
+ result = CopyNote_result.new()
1405
+ begin
1406
+ result.success = @handler.copyNote(args.authenticationToken, args.noteGuid, args.toNotebookGuid)
1407
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1408
+ result.userException = userException
1409
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1410
+ result.systemException = systemException
1411
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
1412
+ result.notFoundException = notFoundException
1413
+ end
1414
+ write_result(result, oprot, 'copyNote', seqid)
1415
+ end
1416
+
1417
+ def process_getResource(seqid, iprot, oprot)
1418
+ args = read_args(iprot, GetResource_args)
1419
+ result = GetResource_result.new()
1420
+ begin
1421
+ result.success = @handler.getResource(args.authenticationToken, args.guid, args.withData, args.withRecognition, args.withAttributes, args.withAlternateData)
1422
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1423
+ result.userException = userException
1424
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1425
+ result.systemException = systemException
1426
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
1427
+ result.notFoundException = notFoundException
1428
+ end
1429
+ write_result(result, oprot, 'getResource', seqid)
1430
+ end
1431
+
1432
+ def process_updateResource(seqid, iprot, oprot)
1433
+ args = read_args(iprot, UpdateResource_args)
1434
+ result = UpdateResource_result.new()
1435
+ begin
1436
+ result.success = @handler.updateResource(args.authenticationToken, args.resource)
1437
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1438
+ result.userException = userException
1439
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1440
+ result.systemException = systemException
1441
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
1442
+ result.notFoundException = notFoundException
1443
+ end
1444
+ write_result(result, oprot, 'updateResource', seqid)
1445
+ end
1446
+
1447
+ def process_getResourceData(seqid, iprot, oprot)
1448
+ args = read_args(iprot, GetResourceData_args)
1449
+ result = GetResourceData_result.new()
1450
+ begin
1451
+ result.success = @handler.getResourceData(args.authenticationToken, args.guid)
1452
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1453
+ result.userException = userException
1454
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1455
+ result.systemException = systemException
1456
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
1457
+ result.notFoundException = notFoundException
1458
+ end
1459
+ write_result(result, oprot, 'getResourceData', seqid)
1460
+ end
1461
+
1462
+ def process_getResourceByHash(seqid, iprot, oprot)
1463
+ args = read_args(iprot, GetResourceByHash_args)
1464
+ result = GetResourceByHash_result.new()
1465
+ begin
1466
+ result.success = @handler.getResourceByHash(args.authenticationToken, args.noteGuid, args.contentHash, args.withData, args.withRecognition, args.withAlternateData)
1467
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1468
+ result.userException = userException
1469
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1470
+ result.systemException = systemException
1471
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
1472
+ result.notFoundException = notFoundException
1473
+ end
1474
+ write_result(result, oprot, 'getResourceByHash', seqid)
1475
+ end
1476
+
1477
+ def process_getResourceRecognition(seqid, iprot, oprot)
1478
+ args = read_args(iprot, GetResourceRecognition_args)
1479
+ result = GetResourceRecognition_result.new()
1480
+ begin
1481
+ result.success = @handler.getResourceRecognition(args.authenticationToken, args.guid)
1482
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1483
+ result.userException = userException
1484
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1485
+ result.systemException = systemException
1486
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
1487
+ result.notFoundException = notFoundException
1488
+ end
1489
+ write_result(result, oprot, 'getResourceRecognition', seqid)
1490
+ end
1491
+
1492
+ def process_getResourceAlternateData(seqid, iprot, oprot)
1493
+ args = read_args(iprot, GetResourceAlternateData_args)
1494
+ result = GetResourceAlternateData_result.new()
1495
+ begin
1496
+ result.success = @handler.getResourceAlternateData(args.authenticationToken, args.guid)
1497
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1498
+ result.userException = userException
1499
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1500
+ result.systemException = systemException
1501
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
1502
+ result.notFoundException = notFoundException
1503
+ end
1504
+ write_result(result, oprot, 'getResourceAlternateData', seqid)
1505
+ end
1506
+
1507
+ def process_getResourceAttributes(seqid, iprot, oprot)
1508
+ args = read_args(iprot, GetResourceAttributes_args)
1509
+ result = GetResourceAttributes_result.new()
1510
+ begin
1511
+ result.success = @handler.getResourceAttributes(args.authenticationToken, args.guid)
1512
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1513
+ result.userException = userException
1514
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1515
+ result.systemException = systemException
1516
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
1517
+ result.notFoundException = notFoundException
1518
+ end
1519
+ write_result(result, oprot, 'getResourceAttributes', seqid)
1520
+ end
1521
+
1522
+ def process_getAccountSize(seqid, iprot, oprot)
1523
+ args = read_args(iprot, GetAccountSize_args)
1524
+ result = GetAccountSize_result.new()
1525
+ begin
1526
+ result.success = @handler.getAccountSize(args.authenticationToken)
1527
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1528
+ result.userException = userException
1529
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1530
+ result.systemException = systemException
1531
+ end
1532
+ write_result(result, oprot, 'getAccountSize', seqid)
1533
+ end
1534
+
1535
+ def process_getAds(seqid, iprot, oprot)
1536
+ args = read_args(iprot, GetAds_args)
1537
+ result = GetAds_result.new()
1538
+ begin
1539
+ result.success = @handler.getAds(args.authenticationToken, args.adParameters)
1540
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1541
+ result.userException = userException
1542
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1543
+ result.systemException = systemException
1544
+ end
1545
+ write_result(result, oprot, 'getAds', seqid)
1546
+ end
1547
+
1548
+ def process_getRandomAd(seqid, iprot, oprot)
1549
+ args = read_args(iprot, GetRandomAd_args)
1550
+ result = GetRandomAd_result.new()
1551
+ begin
1552
+ result.success = @handler.getRandomAd(args.authenticationToken, args.adParameters)
1553
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1554
+ result.userException = userException
1555
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1556
+ result.systemException = systemException
1557
+ end
1558
+ write_result(result, oprot, 'getRandomAd', seqid)
1559
+ end
1560
+
1561
+ def process_getPublicNotebook(seqid, iprot, oprot)
1562
+ args = read_args(iprot, GetPublicNotebook_args)
1563
+ result = GetPublicNotebook_result.new()
1564
+ begin
1565
+ result.success = @handler.getPublicNotebook(args.userId, args.publicUri)
1566
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1567
+ result.systemException = systemException
1568
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
1569
+ result.notFoundException = notFoundException
1570
+ end
1571
+ write_result(result, oprot, 'getPublicNotebook', seqid)
1572
+ end
1573
+
1574
+ def process_createSharedNotebook(seqid, iprot, oprot)
1575
+ args = read_args(iprot, CreateSharedNotebook_args)
1576
+ result = CreateSharedNotebook_result.new()
1577
+ begin
1578
+ result.success = @handler.createSharedNotebook(args.authenticationToken, args.sharedNotebook)
1579
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1580
+ result.userException = userException
1581
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
1582
+ result.notFoundException = notFoundException
1583
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1584
+ result.systemException = systemException
1585
+ end
1586
+ write_result(result, oprot, 'createSharedNotebook', seqid)
1587
+ end
1588
+
1589
+ def process_listSharedNotebooks(seqid, iprot, oprot)
1590
+ args = read_args(iprot, ListSharedNotebooks_args)
1591
+ result = ListSharedNotebooks_result.new()
1592
+ begin
1593
+ result.success = @handler.listSharedNotebooks(args.authenticationToken)
1594
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1595
+ result.userException = userException
1596
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
1597
+ result.notFoundException = notFoundException
1598
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1599
+ result.systemException = systemException
1600
+ end
1601
+ write_result(result, oprot, 'listSharedNotebooks', seqid)
1602
+ end
1603
+
1604
+ def process_expungeSharedNotebooks(seqid, iprot, oprot)
1605
+ args = read_args(iprot, ExpungeSharedNotebooks_args)
1606
+ result = ExpungeSharedNotebooks_result.new()
1607
+ begin
1608
+ result.success = @handler.expungeSharedNotebooks(args.authenticationToken, args.sharedNotebookIds)
1609
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1610
+ result.userException = userException
1611
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
1612
+ result.notFoundException = notFoundException
1613
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1614
+ result.systemException = systemException
1615
+ end
1616
+ write_result(result, oprot, 'expungeSharedNotebooks', seqid)
1617
+ end
1618
+
1619
+ def process_createLinkedNotebook(seqid, iprot, oprot)
1620
+ args = read_args(iprot, CreateLinkedNotebook_args)
1621
+ result = CreateLinkedNotebook_result.new()
1622
+ begin
1623
+ result.success = @handler.createLinkedNotebook(args.authenticationToken, args.linkedNotebook)
1624
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1625
+ result.userException = userException
1626
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
1627
+ result.notFoundException = notFoundException
1628
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1629
+ result.systemException = systemException
1630
+ end
1631
+ write_result(result, oprot, 'createLinkedNotebook', seqid)
1632
+ end
1633
+
1634
+ def process_updateLinkedNotebook(seqid, iprot, oprot)
1635
+ args = read_args(iprot, UpdateLinkedNotebook_args)
1636
+ result = UpdateLinkedNotebook_result.new()
1637
+ begin
1638
+ result.success = @handler.updateLinkedNotebook(args.authenticationToken, args.linkedNotebook)
1639
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1640
+ result.userException = userException
1641
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
1642
+ result.notFoundException = notFoundException
1643
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1644
+ result.systemException = systemException
1645
+ end
1646
+ write_result(result, oprot, 'updateLinkedNotebook', seqid)
1647
+ end
1648
+
1649
+ def process_listLinkedNotebooks(seqid, iprot, oprot)
1650
+ args = read_args(iprot, ListLinkedNotebooks_args)
1651
+ result = ListLinkedNotebooks_result.new()
1652
+ begin
1653
+ result.success = @handler.listLinkedNotebooks(args.authenticationToken)
1654
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1655
+ result.userException = userException
1656
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
1657
+ result.notFoundException = notFoundException
1658
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1659
+ result.systemException = systemException
1660
+ end
1661
+ write_result(result, oprot, 'listLinkedNotebooks', seqid)
1662
+ end
1663
+
1664
+ def process_expungeLinkedNotebook(seqid, iprot, oprot)
1665
+ args = read_args(iprot, ExpungeLinkedNotebook_args)
1666
+ result = ExpungeLinkedNotebook_result.new()
1667
+ begin
1668
+ result.success = @handler.expungeLinkedNotebook(args.authenticationToken, args.linkedNotebookId)
1669
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1670
+ result.userException = userException
1671
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
1672
+ result.notFoundException = notFoundException
1673
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1674
+ result.systemException = systemException
1675
+ end
1676
+ write_result(result, oprot, 'expungeLinkedNotebook', seqid)
1677
+ end
1678
+
1679
+ def process_authenticateToSharedNotebook(seqid, iprot, oprot)
1680
+ args = read_args(iprot, AuthenticateToSharedNotebook_args)
1681
+ result = AuthenticateToSharedNotebook_result.new()
1682
+ begin
1683
+ result.success = @handler.authenticateToSharedNotebook(args.shareKey, args.authenticationToken)
1684
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1685
+ result.userException = userException
1686
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
1687
+ result.notFoundException = notFoundException
1688
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1689
+ result.systemException = systemException
1690
+ end
1691
+ write_result(result, oprot, 'authenticateToSharedNotebook', seqid)
1692
+ end
1693
+
1694
+ def process_getSharedNotebookByAuth(seqid, iprot, oprot)
1695
+ args = read_args(iprot, GetSharedNotebookByAuth_args)
1696
+ result = GetSharedNotebookByAuth_result.new()
1697
+ begin
1698
+ result.success = @handler.getSharedNotebookByAuth(args.authenticationToken)
1699
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1700
+ result.userException = userException
1701
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
1702
+ result.notFoundException = notFoundException
1703
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1704
+ result.systemException = systemException
1705
+ end
1706
+ write_result(result, oprot, 'getSharedNotebookByAuth', seqid)
1707
+ end
1708
+
1709
+ def process_emailNote(seqid, iprot, oprot)
1710
+ args = read_args(iprot, EmailNote_args)
1711
+ result = EmailNote_result.new()
1712
+ begin
1713
+ @handler.emailNote(args.authenticationToken, args.parameters)
1714
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1715
+ result.userException = userException
1716
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
1717
+ result.notFoundException = notFoundException
1718
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1719
+ result.systemException = systemException
1720
+ end
1721
+ write_result(result, oprot, 'emailNote', seqid)
1722
+ end
1723
+
1724
+ end
1725
+
1726
+ # HELPER FUNCTIONS AND STRUCTURES
1727
+
1728
+ class GetSyncState_args
1729
+ include ::Thrift::Struct
1730
+ AUTHENTICATIONTOKEN = 1
1731
+
1732
+ ::Thrift::Struct.field_accessor self, :authenticationToken
1733
+ FIELDS = {
1734
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}
1735
+ }
1736
+
1737
+ def struct_fields; FIELDS; end
1738
+
1739
+ def validate
1740
+ end
1741
+
1742
+ end
1743
+
1744
+ class GetSyncState_result
1745
+ include ::Thrift::Struct
1746
+ SUCCESS = 0
1747
+ USEREXCEPTION = 1
1748
+ SYSTEMEXCEPTION = 2
1749
+
1750
+ ::Thrift::Struct.field_accessor self, :success, :userException, :systemException
1751
+ FIELDS = {
1752
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::NoteStore::SyncState},
1753
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
1754
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}
1755
+ }
1756
+
1757
+ def struct_fields; FIELDS; end
1758
+
1759
+ def validate
1760
+ end
1761
+
1762
+ end
1763
+
1764
+ class GetSyncChunk_args
1765
+ include ::Thrift::Struct
1766
+ AUTHENTICATIONTOKEN = 1
1767
+ AFTERUSN = 2
1768
+ MAXENTRIES = 3
1769
+ FULLSYNCONLY = 4
1770
+
1771
+ ::Thrift::Struct.field_accessor self, :authenticationToken, :afterUSN, :maxEntries, :fullSyncOnly
1772
+ FIELDS = {
1773
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
1774
+ AFTERUSN => {:type => ::Thrift::Types::I32, :name => 'afterUSN'},
1775
+ MAXENTRIES => {:type => ::Thrift::Types::I32, :name => 'maxEntries'},
1776
+ FULLSYNCONLY => {:type => ::Thrift::Types::BOOL, :name => 'fullSyncOnly'}
1777
+ }
1778
+
1779
+ def struct_fields; FIELDS; end
1780
+
1781
+ def validate
1782
+ end
1783
+
1784
+ end
1785
+
1786
+ class GetSyncChunk_result
1787
+ include ::Thrift::Struct
1788
+ SUCCESS = 0
1789
+ USEREXCEPTION = 1
1790
+ SYSTEMEXCEPTION = 2
1791
+
1792
+ ::Thrift::Struct.field_accessor self, :success, :userException, :systemException
1793
+ FIELDS = {
1794
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::NoteStore::SyncChunk},
1795
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
1796
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}
1797
+ }
1798
+
1799
+ def struct_fields; FIELDS; end
1800
+
1801
+ def validate
1802
+ end
1803
+
1804
+ end
1805
+
1806
+ class ListNotebooks_args
1807
+ include ::Thrift::Struct
1808
+ AUTHENTICATIONTOKEN = 1
1809
+
1810
+ ::Thrift::Struct.field_accessor self, :authenticationToken
1811
+ FIELDS = {
1812
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}
1813
+ }
1814
+
1815
+ def struct_fields; FIELDS; end
1816
+
1817
+ def validate
1818
+ end
1819
+
1820
+ end
1821
+
1822
+ class ListNotebooks_result
1823
+ include ::Thrift::Struct
1824
+ SUCCESS = 0
1825
+ USEREXCEPTION = 1
1826
+ SYSTEMEXCEPTION = 2
1827
+
1828
+ ::Thrift::Struct.field_accessor self, :success, :userException, :systemException
1829
+ FIELDS = {
1830
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => Evernote::EDAM::Type::Notebook}},
1831
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
1832
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}
1833
+ }
1834
+
1835
+ def struct_fields; FIELDS; end
1836
+
1837
+ def validate
1838
+ end
1839
+
1840
+ end
1841
+
1842
+ class GetNotebook_args
1843
+ include ::Thrift::Struct
1844
+ AUTHENTICATIONTOKEN = 1
1845
+ GUID = 2
1846
+
1847
+ ::Thrift::Struct.field_accessor self, :authenticationToken, :guid
1848
+ FIELDS = {
1849
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
1850
+ GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'}
1851
+ }
1852
+
1853
+ def struct_fields; FIELDS; end
1854
+
1855
+ def validate
1856
+ end
1857
+
1858
+ end
1859
+
1860
+ class GetNotebook_result
1861
+ include ::Thrift::Struct
1862
+ SUCCESS = 0
1863
+ USEREXCEPTION = 1
1864
+ SYSTEMEXCEPTION = 2
1865
+ NOTFOUNDEXCEPTION = 3
1866
+
1867
+ ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
1868
+ FIELDS = {
1869
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::Notebook},
1870
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
1871
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
1872
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
1873
+ }
1874
+
1875
+ def struct_fields; FIELDS; end
1876
+
1877
+ def validate
1878
+ end
1879
+
1880
+ end
1881
+
1882
+ class GetDefaultNotebook_args
1883
+ include ::Thrift::Struct
1884
+ AUTHENTICATIONTOKEN = 1
1885
+
1886
+ ::Thrift::Struct.field_accessor self, :authenticationToken
1887
+ FIELDS = {
1888
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}
1889
+ }
1890
+
1891
+ def struct_fields; FIELDS; end
1892
+
1893
+ def validate
1894
+ end
1895
+
1896
+ end
1897
+
1898
+ class GetDefaultNotebook_result
1899
+ include ::Thrift::Struct
1900
+ SUCCESS = 0
1901
+ USEREXCEPTION = 1
1902
+ SYSTEMEXCEPTION = 2
1903
+
1904
+ ::Thrift::Struct.field_accessor self, :success, :userException, :systemException
1905
+ FIELDS = {
1906
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::Notebook},
1907
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
1908
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}
1909
+ }
1910
+
1911
+ def struct_fields; FIELDS; end
1912
+
1913
+ def validate
1914
+ end
1915
+
1916
+ end
1917
+
1918
+ class CreateNotebook_args
1919
+ include ::Thrift::Struct
1920
+ AUTHENTICATIONTOKEN = 1
1921
+ NOTEBOOK = 2
1922
+
1923
+ ::Thrift::Struct.field_accessor self, :authenticationToken, :notebook
1924
+ FIELDS = {
1925
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
1926
+ NOTEBOOK => {:type => ::Thrift::Types::STRUCT, :name => 'notebook', :class => Evernote::EDAM::Type::Notebook}
1927
+ }
1928
+
1929
+ def struct_fields; FIELDS; end
1930
+
1931
+ def validate
1932
+ end
1933
+
1934
+ end
1935
+
1936
+ class CreateNotebook_result
1937
+ include ::Thrift::Struct
1938
+ SUCCESS = 0
1939
+ USEREXCEPTION = 1
1940
+ SYSTEMEXCEPTION = 2
1941
+
1942
+ ::Thrift::Struct.field_accessor self, :success, :userException, :systemException
1943
+ FIELDS = {
1944
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::Notebook},
1945
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
1946
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}
1947
+ }
1948
+
1949
+ def struct_fields; FIELDS; end
1950
+
1951
+ def validate
1952
+ end
1953
+
1954
+ end
1955
+
1956
+ class UpdateNotebook_args
1957
+ include ::Thrift::Struct
1958
+ AUTHENTICATIONTOKEN = 1
1959
+ NOTEBOOK = 2
1960
+
1961
+ ::Thrift::Struct.field_accessor self, :authenticationToken, :notebook
1962
+ FIELDS = {
1963
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
1964
+ NOTEBOOK => {:type => ::Thrift::Types::STRUCT, :name => 'notebook', :class => Evernote::EDAM::Type::Notebook}
1965
+ }
1966
+
1967
+ def struct_fields; FIELDS; end
1968
+
1969
+ def validate
1970
+ end
1971
+
1972
+ end
1973
+
1974
+ class UpdateNotebook_result
1975
+ include ::Thrift::Struct
1976
+ SUCCESS = 0
1977
+ USEREXCEPTION = 1
1978
+ SYSTEMEXCEPTION = 2
1979
+ NOTFOUNDEXCEPTION = 3
1980
+
1981
+ ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
1982
+ FIELDS = {
1983
+ SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
1984
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
1985
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
1986
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
1987
+ }
1988
+
1989
+ def struct_fields; FIELDS; end
1990
+
1991
+ def validate
1992
+ end
1993
+
1994
+ end
1995
+
1996
+ class ExpungeNotebook_args
1997
+ include ::Thrift::Struct
1998
+ AUTHENTICATIONTOKEN = 1
1999
+ GUID = 2
2000
+
2001
+ ::Thrift::Struct.field_accessor self, :authenticationToken, :guid
2002
+ FIELDS = {
2003
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
2004
+ GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'}
2005
+ }
2006
+
2007
+ def struct_fields; FIELDS; end
2008
+
2009
+ def validate
2010
+ end
2011
+
2012
+ end
2013
+
2014
+ class ExpungeNotebook_result
2015
+ include ::Thrift::Struct
2016
+ SUCCESS = 0
2017
+ USEREXCEPTION = 1
2018
+ SYSTEMEXCEPTION = 2
2019
+ NOTFOUNDEXCEPTION = 3
2020
+
2021
+ ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
2022
+ FIELDS = {
2023
+ SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
2024
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
2025
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
2026
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
2027
+ }
2028
+
2029
+ def struct_fields; FIELDS; end
2030
+
2031
+ def validate
2032
+ end
2033
+
2034
+ end
2035
+
2036
+ class ListTags_args
2037
+ include ::Thrift::Struct
2038
+ AUTHENTICATIONTOKEN = 1
2039
+
2040
+ ::Thrift::Struct.field_accessor self, :authenticationToken
2041
+ FIELDS = {
2042
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}
2043
+ }
2044
+
2045
+ def struct_fields; FIELDS; end
2046
+
2047
+ def validate
2048
+ end
2049
+
2050
+ end
2051
+
2052
+ class ListTags_result
2053
+ include ::Thrift::Struct
2054
+ SUCCESS = 0
2055
+ USEREXCEPTION = 1
2056
+ SYSTEMEXCEPTION = 2
2057
+
2058
+ ::Thrift::Struct.field_accessor self, :success, :userException, :systemException
2059
+ FIELDS = {
2060
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => Evernote::EDAM::Type::Tag}},
2061
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
2062
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}
2063
+ }
2064
+
2065
+ def struct_fields; FIELDS; end
2066
+
2067
+ def validate
2068
+ end
2069
+
2070
+ end
2071
+
2072
+ class ListTagsByNotebook_args
2073
+ include ::Thrift::Struct
2074
+ AUTHENTICATIONTOKEN = 1
2075
+ NOTEBOOKGUID = 2
2076
+
2077
+ ::Thrift::Struct.field_accessor self, :authenticationToken, :notebookGuid
2078
+ FIELDS = {
2079
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
2080
+ NOTEBOOKGUID => {:type => ::Thrift::Types::STRING, :name => 'notebookGuid'}
2081
+ }
2082
+
2083
+ def struct_fields; FIELDS; end
2084
+
2085
+ def validate
2086
+ end
2087
+
2088
+ end
2089
+
2090
+ class ListTagsByNotebook_result
2091
+ include ::Thrift::Struct
2092
+ SUCCESS = 0
2093
+ USEREXCEPTION = 1
2094
+ SYSTEMEXCEPTION = 2
2095
+ NOTFOUNDEXCEPTION = 3
2096
+
2097
+ ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
2098
+ FIELDS = {
2099
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => Evernote::EDAM::Type::Tag}},
2100
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
2101
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
2102
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
2103
+ }
2104
+
2105
+ def struct_fields; FIELDS; end
2106
+
2107
+ def validate
2108
+ end
2109
+
2110
+ end
2111
+
2112
+ class GetTag_args
2113
+ include ::Thrift::Struct
2114
+ AUTHENTICATIONTOKEN = 1
2115
+ GUID = 2
2116
+
2117
+ ::Thrift::Struct.field_accessor self, :authenticationToken, :guid
2118
+ FIELDS = {
2119
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
2120
+ GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'}
2121
+ }
2122
+
2123
+ def struct_fields; FIELDS; end
2124
+
2125
+ def validate
2126
+ end
2127
+
2128
+ end
2129
+
2130
+ class GetTag_result
2131
+ include ::Thrift::Struct
2132
+ SUCCESS = 0
2133
+ USEREXCEPTION = 1
2134
+ SYSTEMEXCEPTION = 2
2135
+ NOTFOUNDEXCEPTION = 3
2136
+
2137
+ ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
2138
+ FIELDS = {
2139
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::Tag},
2140
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
2141
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
2142
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
2143
+ }
2144
+
2145
+ def struct_fields; FIELDS; end
2146
+
2147
+ def validate
2148
+ end
2149
+
2150
+ end
2151
+
2152
+ class CreateTag_args
2153
+ include ::Thrift::Struct
2154
+ AUTHENTICATIONTOKEN = 1
2155
+ TAG = 2
2156
+
2157
+ ::Thrift::Struct.field_accessor self, :authenticationToken, :tag
2158
+ FIELDS = {
2159
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
2160
+ TAG => {:type => ::Thrift::Types::STRUCT, :name => 'tag', :class => Evernote::EDAM::Type::Tag}
2161
+ }
2162
+
2163
+ def struct_fields; FIELDS; end
2164
+
2165
+ def validate
2166
+ end
2167
+
2168
+ end
2169
+
2170
+ class CreateTag_result
2171
+ include ::Thrift::Struct
2172
+ SUCCESS = 0
2173
+ USEREXCEPTION = 1
2174
+ SYSTEMEXCEPTION = 2
2175
+ NOTFOUNDEXCEPTION = 3
2176
+
2177
+ ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
2178
+ FIELDS = {
2179
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::Tag},
2180
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
2181
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
2182
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
2183
+ }
2184
+
2185
+ def struct_fields; FIELDS; end
2186
+
2187
+ def validate
2188
+ end
2189
+
2190
+ end
2191
+
2192
+ class UpdateTag_args
2193
+ include ::Thrift::Struct
2194
+ AUTHENTICATIONTOKEN = 1
2195
+ TAG = 2
2196
+
2197
+ ::Thrift::Struct.field_accessor self, :authenticationToken, :tag
2198
+ FIELDS = {
2199
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
2200
+ TAG => {:type => ::Thrift::Types::STRUCT, :name => 'tag', :class => Evernote::EDAM::Type::Tag}
2201
+ }
2202
+
2203
+ def struct_fields; FIELDS; end
2204
+
2205
+ def validate
2206
+ end
2207
+
2208
+ end
2209
+
2210
+ class UpdateTag_result
2211
+ include ::Thrift::Struct
2212
+ SUCCESS = 0
2213
+ USEREXCEPTION = 1
2214
+ SYSTEMEXCEPTION = 2
2215
+ NOTFOUNDEXCEPTION = 3
2216
+
2217
+ ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
2218
+ FIELDS = {
2219
+ SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
2220
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
2221
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
2222
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
2223
+ }
2224
+
2225
+ def struct_fields; FIELDS; end
2226
+
2227
+ def validate
2228
+ end
2229
+
2230
+ end
2231
+
2232
+ class UntagAll_args
2233
+ include ::Thrift::Struct
2234
+ AUTHENTICATIONTOKEN = 1
2235
+ GUID = 2
2236
+
2237
+ ::Thrift::Struct.field_accessor self, :authenticationToken, :guid
2238
+ FIELDS = {
2239
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
2240
+ GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'}
2241
+ }
2242
+
2243
+ def struct_fields; FIELDS; end
2244
+
2245
+ def validate
2246
+ end
2247
+
2248
+ end
2249
+
2250
+ class UntagAll_result
2251
+ include ::Thrift::Struct
2252
+ USEREXCEPTION = 1
2253
+ SYSTEMEXCEPTION = 2
2254
+ NOTFOUNDEXCEPTION = 3
2255
+
2256
+ ::Thrift::Struct.field_accessor self, :userException, :systemException, :notFoundException
2257
+ FIELDS = {
2258
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
2259
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
2260
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
2261
+ }
2262
+
2263
+ def struct_fields; FIELDS; end
2264
+
2265
+ def validate
2266
+ end
2267
+
2268
+ end
2269
+
2270
+ class ExpungeTag_args
2271
+ include ::Thrift::Struct
2272
+ AUTHENTICATIONTOKEN = 1
2273
+ GUID = 2
2274
+
2275
+ ::Thrift::Struct.field_accessor self, :authenticationToken, :guid
2276
+ FIELDS = {
2277
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
2278
+ GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'}
2279
+ }
2280
+
2281
+ def struct_fields; FIELDS; end
2282
+
2283
+ def validate
2284
+ end
2285
+
2286
+ end
2287
+
2288
+ class ExpungeTag_result
2289
+ include ::Thrift::Struct
2290
+ SUCCESS = 0
2291
+ USEREXCEPTION = 1
2292
+ SYSTEMEXCEPTION = 2
2293
+ NOTFOUNDEXCEPTION = 3
2294
+
2295
+ ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
2296
+ FIELDS = {
2297
+ SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
2298
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
2299
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
2300
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
2301
+ }
2302
+
2303
+ def struct_fields; FIELDS; end
2304
+
2305
+ def validate
2306
+ end
2307
+
2308
+ end
2309
+
2310
+ class ListSearches_args
2311
+ include ::Thrift::Struct
2312
+ AUTHENTICATIONTOKEN = 1
2313
+
2314
+ ::Thrift::Struct.field_accessor self, :authenticationToken
2315
+ FIELDS = {
2316
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}
2317
+ }
2318
+
2319
+ def struct_fields; FIELDS; end
2320
+
2321
+ def validate
2322
+ end
2323
+
2324
+ end
2325
+
2326
+ class ListSearches_result
2327
+ include ::Thrift::Struct
2328
+ SUCCESS = 0
2329
+ USEREXCEPTION = 1
2330
+ SYSTEMEXCEPTION = 2
2331
+
2332
+ ::Thrift::Struct.field_accessor self, :success, :userException, :systemException
2333
+ FIELDS = {
2334
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => Evernote::EDAM::Type::SavedSearch}},
2335
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
2336
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}
2337
+ }
2338
+
2339
+ def struct_fields; FIELDS; end
2340
+
2341
+ def validate
2342
+ end
2343
+
2344
+ end
2345
+
2346
+ class GetSearch_args
2347
+ include ::Thrift::Struct
2348
+ AUTHENTICATIONTOKEN = 1
2349
+ GUID = 2
2350
+
2351
+ ::Thrift::Struct.field_accessor self, :authenticationToken, :guid
2352
+ FIELDS = {
2353
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
2354
+ GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'}
2355
+ }
2356
+
2357
+ def struct_fields; FIELDS; end
2358
+
2359
+ def validate
2360
+ end
2361
+
2362
+ end
2363
+
2364
+ class GetSearch_result
2365
+ include ::Thrift::Struct
2366
+ SUCCESS = 0
2367
+ USEREXCEPTION = 1
2368
+ SYSTEMEXCEPTION = 2
2369
+ NOTFOUNDEXCEPTION = 3
2370
+
2371
+ ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
2372
+ FIELDS = {
2373
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::SavedSearch},
2374
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
2375
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
2376
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
2377
+ }
2378
+
2379
+ def struct_fields; FIELDS; end
2380
+
2381
+ def validate
2382
+ end
2383
+
2384
+ end
2385
+
2386
+ class CreateSearch_args
2387
+ include ::Thrift::Struct
2388
+ AUTHENTICATIONTOKEN = 1
2389
+ SEARCH = 2
2390
+
2391
+ ::Thrift::Struct.field_accessor self, :authenticationToken, :search
2392
+ FIELDS = {
2393
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
2394
+ SEARCH => {:type => ::Thrift::Types::STRUCT, :name => 'search', :class => Evernote::EDAM::Type::SavedSearch}
2395
+ }
2396
+
2397
+ def struct_fields; FIELDS; end
2398
+
2399
+ def validate
2400
+ end
2401
+
2402
+ end
2403
+
2404
+ class CreateSearch_result
2405
+ include ::Thrift::Struct
2406
+ SUCCESS = 0
2407
+ USEREXCEPTION = 1
2408
+ SYSTEMEXCEPTION = 2
2409
+
2410
+ ::Thrift::Struct.field_accessor self, :success, :userException, :systemException
2411
+ FIELDS = {
2412
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::SavedSearch},
2413
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
2414
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}
2415
+ }
2416
+
2417
+ def struct_fields; FIELDS; end
2418
+
2419
+ def validate
2420
+ end
2421
+
2422
+ end
2423
+
2424
+ class UpdateSearch_args
2425
+ include ::Thrift::Struct
2426
+ AUTHENTICATIONTOKEN = 1
2427
+ SEARCH = 2
2428
+
2429
+ ::Thrift::Struct.field_accessor self, :authenticationToken, :search
2430
+ FIELDS = {
2431
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
2432
+ SEARCH => {:type => ::Thrift::Types::STRUCT, :name => 'search', :class => Evernote::EDAM::Type::SavedSearch}
2433
+ }
2434
+
2435
+ def struct_fields; FIELDS; end
2436
+
2437
+ def validate
2438
+ end
2439
+
2440
+ end
2441
+
2442
+ class UpdateSearch_result
2443
+ include ::Thrift::Struct
2444
+ SUCCESS = 0
2445
+ USEREXCEPTION = 1
2446
+ SYSTEMEXCEPTION = 2
2447
+ NOTFOUNDEXCEPTION = 3
2448
+
2449
+ ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
2450
+ FIELDS = {
2451
+ SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
2452
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
2453
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
2454
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
2455
+ }
2456
+
2457
+ def struct_fields; FIELDS; end
2458
+
2459
+ def validate
2460
+ end
2461
+
2462
+ end
2463
+
2464
+ class ExpungeSearch_args
2465
+ include ::Thrift::Struct
2466
+ AUTHENTICATIONTOKEN = 1
2467
+ GUID = 2
2468
+
2469
+ ::Thrift::Struct.field_accessor self, :authenticationToken, :guid
2470
+ FIELDS = {
2471
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
2472
+ GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'}
2473
+ }
2474
+
2475
+ def struct_fields; FIELDS; end
2476
+
2477
+ def validate
2478
+ end
2479
+
2480
+ end
2481
+
2482
+ class ExpungeSearch_result
2483
+ include ::Thrift::Struct
2484
+ SUCCESS = 0
2485
+ USEREXCEPTION = 1
2486
+ SYSTEMEXCEPTION = 2
2487
+ NOTFOUNDEXCEPTION = 3
2488
+
2489
+ ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
2490
+ FIELDS = {
2491
+ SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
2492
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
2493
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
2494
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
2495
+ }
2496
+
2497
+ def struct_fields; FIELDS; end
2498
+
2499
+ def validate
2500
+ end
2501
+
2502
+ end
2503
+
2504
+ class FindNotes_args
2505
+ include ::Thrift::Struct
2506
+ AUTHENTICATIONTOKEN = 1
2507
+ FILTER = 2
2508
+ OFFSET = 3
2509
+ MAXNOTES = 4
2510
+
2511
+ ::Thrift::Struct.field_accessor self, :authenticationToken, :filter, :offset, :maxNotes
2512
+ FIELDS = {
2513
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
2514
+ FILTER => {:type => ::Thrift::Types::STRUCT, :name => 'filter', :class => Evernote::EDAM::NoteStore::NoteFilter},
2515
+ OFFSET => {:type => ::Thrift::Types::I32, :name => 'offset'},
2516
+ MAXNOTES => {:type => ::Thrift::Types::I32, :name => 'maxNotes'}
2517
+ }
2518
+
2519
+ def struct_fields; FIELDS; end
2520
+
2521
+ def validate
2522
+ end
2523
+
2524
+ end
2525
+
2526
+ class FindNotes_result
2527
+ include ::Thrift::Struct
2528
+ SUCCESS = 0
2529
+ USEREXCEPTION = 1
2530
+ SYSTEMEXCEPTION = 2
2531
+
2532
+ ::Thrift::Struct.field_accessor self, :success, :userException, :systemException
2533
+ FIELDS = {
2534
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::NoteStore::NoteList},
2535
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
2536
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}
2537
+ }
2538
+
2539
+ def struct_fields; FIELDS; end
2540
+
2541
+ def validate
2542
+ end
2543
+
2544
+ end
2545
+
2546
+ class FindNoteCounts_args
2547
+ include ::Thrift::Struct
2548
+ AUTHENTICATIONTOKEN = 1
2549
+ FILTER = 2
2550
+ WITHTRASH = 3
2551
+
2552
+ ::Thrift::Struct.field_accessor self, :authenticationToken, :filter, :withTrash
2553
+ FIELDS = {
2554
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
2555
+ FILTER => {:type => ::Thrift::Types::STRUCT, :name => 'filter', :class => Evernote::EDAM::NoteStore::NoteFilter},
2556
+ WITHTRASH => {:type => ::Thrift::Types::BOOL, :name => 'withTrash'}
2557
+ }
2558
+
2559
+ def struct_fields; FIELDS; end
2560
+
2561
+ def validate
2562
+ end
2563
+
2564
+ end
2565
+
2566
+ class FindNoteCounts_result
2567
+ include ::Thrift::Struct
2568
+ SUCCESS = 0
2569
+ USEREXCEPTION = 1
2570
+ SYSTEMEXCEPTION = 2
2571
+
2572
+ ::Thrift::Struct.field_accessor self, :success, :userException, :systemException
2573
+ FIELDS = {
2574
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::NoteStore::NoteCollectionCounts},
2575
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
2576
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}
2577
+ }
2578
+
2579
+ def struct_fields; FIELDS; end
2580
+
2581
+ def validate
2582
+ end
2583
+
2584
+ end
2585
+
2586
+ class GetNote_args
2587
+ include ::Thrift::Struct
2588
+ AUTHENTICATIONTOKEN = 1
2589
+ GUID = 2
2590
+ WITHCONTENT = 3
2591
+ WITHRESOURCESDATA = 4
2592
+ WITHRESOURCESRECOGNITION = 5
2593
+ WITHRESOURCESALTERNATEDATA = 6
2594
+
2595
+ ::Thrift::Struct.field_accessor self, :authenticationToken, :guid, :withContent, :withResourcesData, :withResourcesRecognition, :withResourcesAlternateData
2596
+ FIELDS = {
2597
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
2598
+ GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'},
2599
+ WITHCONTENT => {:type => ::Thrift::Types::BOOL, :name => 'withContent'},
2600
+ WITHRESOURCESDATA => {:type => ::Thrift::Types::BOOL, :name => 'withResourcesData'},
2601
+ WITHRESOURCESRECOGNITION => {:type => ::Thrift::Types::BOOL, :name => 'withResourcesRecognition'},
2602
+ WITHRESOURCESALTERNATEDATA => {:type => ::Thrift::Types::BOOL, :name => 'withResourcesAlternateData'}
2603
+ }
2604
+
2605
+ def struct_fields; FIELDS; end
2606
+
2607
+ def validate
2608
+ end
2609
+
2610
+ end
2611
+
2612
+ class GetNote_result
2613
+ include ::Thrift::Struct
2614
+ SUCCESS = 0
2615
+ USEREXCEPTION = 1
2616
+ SYSTEMEXCEPTION = 2
2617
+ NOTFOUNDEXCEPTION = 3
2618
+
2619
+ ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
2620
+ FIELDS = {
2621
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::Note},
2622
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
2623
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
2624
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
2625
+ }
2626
+
2627
+ def struct_fields; FIELDS; end
2628
+
2629
+ def validate
2630
+ end
2631
+
2632
+ end
2633
+
2634
+ class GetNoteContent_args
2635
+ include ::Thrift::Struct
2636
+ AUTHENTICATIONTOKEN = 1
2637
+ GUID = 2
2638
+
2639
+ ::Thrift::Struct.field_accessor self, :authenticationToken, :guid
2640
+ FIELDS = {
2641
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
2642
+ GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'}
2643
+ }
2644
+
2645
+ def struct_fields; FIELDS; end
2646
+
2647
+ def validate
2648
+ end
2649
+
2650
+ end
2651
+
2652
+ class GetNoteContent_result
2653
+ include ::Thrift::Struct
2654
+ SUCCESS = 0
2655
+ USEREXCEPTION = 1
2656
+ SYSTEMEXCEPTION = 2
2657
+ NOTFOUNDEXCEPTION = 3
2658
+
2659
+ ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
2660
+ FIELDS = {
2661
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
2662
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
2663
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
2664
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
2665
+ }
2666
+
2667
+ def struct_fields; FIELDS; end
2668
+
2669
+ def validate
2670
+ end
2671
+
2672
+ end
2673
+
2674
+ class GetNoteSearchText_args
2675
+ include ::Thrift::Struct
2676
+ AUTHENTICATIONTOKEN = 1
2677
+ GUID = 2
2678
+
2679
+ ::Thrift::Struct.field_accessor self, :authenticationToken, :guid
2680
+ FIELDS = {
2681
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
2682
+ GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'}
2683
+ }
2684
+
2685
+ def struct_fields; FIELDS; end
2686
+
2687
+ def validate
2688
+ end
2689
+
2690
+ end
2691
+
2692
+ class GetNoteSearchText_result
2693
+ include ::Thrift::Struct
2694
+ SUCCESS = 0
2695
+ USEREXCEPTION = 1
2696
+ SYSTEMEXCEPTION = 2
2697
+ NOTFOUNDEXCEPTION = 3
2698
+
2699
+ ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
2700
+ FIELDS = {
2701
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
2702
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
2703
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
2704
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
2705
+ }
2706
+
2707
+ def struct_fields; FIELDS; end
2708
+
2709
+ def validate
2710
+ end
2711
+
2712
+ end
2713
+
2714
+ class GetNoteTagNames_args
2715
+ include ::Thrift::Struct
2716
+ AUTHENTICATIONTOKEN = 1
2717
+ GUID = 2
2718
+
2719
+ ::Thrift::Struct.field_accessor self, :authenticationToken, :guid
2720
+ FIELDS = {
2721
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
2722
+ GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'}
2723
+ }
2724
+
2725
+ def struct_fields; FIELDS; end
2726
+
2727
+ def validate
2728
+ end
2729
+
2730
+ end
2731
+
2732
+ class GetNoteTagNames_result
2733
+ include ::Thrift::Struct
2734
+ SUCCESS = 0
2735
+ USEREXCEPTION = 1
2736
+ SYSTEMEXCEPTION = 2
2737
+ NOTFOUNDEXCEPTION = 3
2738
+
2739
+ ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
2740
+ FIELDS = {
2741
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
2742
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
2743
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
2744
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
2745
+ }
2746
+
2747
+ def struct_fields; FIELDS; end
2748
+
2749
+ def validate
2750
+ end
2751
+
2752
+ end
2753
+
2754
+ class CreateNote_args
2755
+ include ::Thrift::Struct
2756
+ AUTHENTICATIONTOKEN = 1
2757
+ NOTE = 2
2758
+
2759
+ ::Thrift::Struct.field_accessor self, :authenticationToken, :note
2760
+ FIELDS = {
2761
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
2762
+ NOTE => {:type => ::Thrift::Types::STRUCT, :name => 'note', :class => Evernote::EDAM::Type::Note}
2763
+ }
2764
+
2765
+ def struct_fields; FIELDS; end
2766
+
2767
+ def validate
2768
+ end
2769
+
2770
+ end
2771
+
2772
+ class CreateNote_result
2773
+ include ::Thrift::Struct
2774
+ SUCCESS = 0
2775
+ USEREXCEPTION = 1
2776
+ SYSTEMEXCEPTION = 2
2777
+ NOTFOUNDEXCEPTION = 3
2778
+
2779
+ ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
2780
+ FIELDS = {
2781
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::Note},
2782
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
2783
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
2784
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
2785
+ }
2786
+
2787
+ def struct_fields; FIELDS; end
2788
+
2789
+ def validate
2790
+ end
2791
+
2792
+ end
2793
+
2794
+ class UpdateNote_args
2795
+ include ::Thrift::Struct
2796
+ AUTHENTICATIONTOKEN = 1
2797
+ NOTE = 2
2798
+
2799
+ ::Thrift::Struct.field_accessor self, :authenticationToken, :note
2800
+ FIELDS = {
2801
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
2802
+ NOTE => {:type => ::Thrift::Types::STRUCT, :name => 'note', :class => Evernote::EDAM::Type::Note}
2803
+ }
2804
+
2805
+ def struct_fields; FIELDS; end
2806
+
2807
+ def validate
2808
+ end
2809
+
2810
+ end
2811
+
2812
+ class UpdateNote_result
2813
+ include ::Thrift::Struct
2814
+ SUCCESS = 0
2815
+ USEREXCEPTION = 1
2816
+ SYSTEMEXCEPTION = 2
2817
+ NOTFOUNDEXCEPTION = 3
2818
+
2819
+ ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
2820
+ FIELDS = {
2821
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::Note},
2822
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
2823
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
2824
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
2825
+ }
2826
+
2827
+ def struct_fields; FIELDS; end
2828
+
2829
+ def validate
2830
+ end
2831
+
2832
+ end
2833
+
2834
+ class ExpungeNote_args
2835
+ include ::Thrift::Struct
2836
+ AUTHENTICATIONTOKEN = 1
2837
+ GUID = 2
2838
+
2839
+ ::Thrift::Struct.field_accessor self, :authenticationToken, :guid
2840
+ FIELDS = {
2841
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
2842
+ GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'}
2843
+ }
2844
+
2845
+ def struct_fields; FIELDS; end
2846
+
2847
+ def validate
2848
+ end
2849
+
2850
+ end
2851
+
2852
+ class ExpungeNote_result
2853
+ include ::Thrift::Struct
2854
+ SUCCESS = 0
2855
+ USEREXCEPTION = 1
2856
+ SYSTEMEXCEPTION = 2
2857
+ NOTFOUNDEXCEPTION = 3
2858
+
2859
+ ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
2860
+ FIELDS = {
2861
+ SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
2862
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
2863
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
2864
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
2865
+ }
2866
+
2867
+ def struct_fields; FIELDS; end
2868
+
2869
+ def validate
2870
+ end
2871
+
2872
+ end
2873
+
2874
+ class ExpungeNotes_args
2875
+ include ::Thrift::Struct
2876
+ AUTHENTICATIONTOKEN = 1
2877
+ NOTEGUIDS = 2
2878
+
2879
+ ::Thrift::Struct.field_accessor self, :authenticationToken, :noteGuids
2880
+ FIELDS = {
2881
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
2882
+ NOTEGUIDS => {:type => ::Thrift::Types::LIST, :name => 'noteGuids', :element => {:type => ::Thrift::Types::STRING}}
2883
+ }
2884
+
2885
+ def struct_fields; FIELDS; end
2886
+
2887
+ def validate
2888
+ end
2889
+
2890
+ end
2891
+
2892
+ class ExpungeNotes_result
2893
+ include ::Thrift::Struct
2894
+ SUCCESS = 0
2895
+ USEREXCEPTION = 1
2896
+ SYSTEMEXCEPTION = 2
2897
+ NOTFOUNDEXCEPTION = 3
2898
+
2899
+ ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
2900
+ FIELDS = {
2901
+ SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
2902
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
2903
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
2904
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
2905
+ }
2906
+
2907
+ def struct_fields; FIELDS; end
2908
+
2909
+ def validate
2910
+ end
2911
+
2912
+ end
2913
+
2914
+ class ExpungeInactiveNotes_args
2915
+ include ::Thrift::Struct
2916
+ AUTHENTICATIONTOKEN = 1
2917
+
2918
+ ::Thrift::Struct.field_accessor self, :authenticationToken
2919
+ FIELDS = {
2920
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}
2921
+ }
2922
+
2923
+ def struct_fields; FIELDS; end
2924
+
2925
+ def validate
2926
+ end
2927
+
2928
+ end
2929
+
2930
+ class ExpungeInactiveNotes_result
2931
+ include ::Thrift::Struct
2932
+ SUCCESS = 0
2933
+ USEREXCEPTION = 1
2934
+ SYSTEMEXCEPTION = 2
2935
+
2936
+ ::Thrift::Struct.field_accessor self, :success, :userException, :systemException
2937
+ FIELDS = {
2938
+ SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
2939
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
2940
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}
2941
+ }
2942
+
2943
+ def struct_fields; FIELDS; end
2944
+
2945
+ def validate
2946
+ end
2947
+
2948
+ end
2949
+
2950
+ class CopyNote_args
2951
+ include ::Thrift::Struct
2952
+ AUTHENTICATIONTOKEN = 1
2953
+ NOTEGUID = 2
2954
+ TONOTEBOOKGUID = 3
2955
+
2956
+ ::Thrift::Struct.field_accessor self, :authenticationToken, :noteGuid, :toNotebookGuid
2957
+ FIELDS = {
2958
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
2959
+ NOTEGUID => {:type => ::Thrift::Types::STRING, :name => 'noteGuid'},
2960
+ TONOTEBOOKGUID => {:type => ::Thrift::Types::STRING, :name => 'toNotebookGuid'}
2961
+ }
2962
+
2963
+ def struct_fields; FIELDS; end
2964
+
2965
+ def validate
2966
+ end
2967
+
2968
+ end
2969
+
2970
+ class CopyNote_result
2971
+ include ::Thrift::Struct
2972
+ SUCCESS = 0
2973
+ USEREXCEPTION = 1
2974
+ SYSTEMEXCEPTION = 2
2975
+ NOTFOUNDEXCEPTION = 3
2976
+
2977
+ ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
2978
+ FIELDS = {
2979
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::Note},
2980
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
2981
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
2982
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
2983
+ }
2984
+
2985
+ def struct_fields; FIELDS; end
2986
+
2987
+ def validate
2988
+ end
2989
+
2990
+ end
2991
+
2992
+ class GetResource_args
2993
+ include ::Thrift::Struct
2994
+ AUTHENTICATIONTOKEN = 1
2995
+ GUID = 2
2996
+ WITHDATA = 3
2997
+ WITHRECOGNITION = 4
2998
+ WITHATTRIBUTES = 5
2999
+ WITHALTERNATEDATA = 6
3000
+
3001
+ ::Thrift::Struct.field_accessor self, :authenticationToken, :guid, :withData, :withRecognition, :withAttributes, :withAlternateData
3002
+ FIELDS = {
3003
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
3004
+ GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'},
3005
+ WITHDATA => {:type => ::Thrift::Types::BOOL, :name => 'withData'},
3006
+ WITHRECOGNITION => {:type => ::Thrift::Types::BOOL, :name => 'withRecognition'},
3007
+ WITHATTRIBUTES => {:type => ::Thrift::Types::BOOL, :name => 'withAttributes'},
3008
+ WITHALTERNATEDATA => {:type => ::Thrift::Types::BOOL, :name => 'withAlternateData'}
3009
+ }
3010
+
3011
+ def struct_fields; FIELDS; end
3012
+
3013
+ def validate
3014
+ end
3015
+
3016
+ end
3017
+
3018
+ class GetResource_result
3019
+ include ::Thrift::Struct
3020
+ SUCCESS = 0
3021
+ USEREXCEPTION = 1
3022
+ SYSTEMEXCEPTION = 2
3023
+ NOTFOUNDEXCEPTION = 3
3024
+
3025
+ ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
3026
+ FIELDS = {
3027
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::Resource},
3028
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
3029
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
3030
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
3031
+ }
3032
+
3033
+ def struct_fields; FIELDS; end
3034
+
3035
+ def validate
3036
+ end
3037
+
3038
+ end
3039
+
3040
+ class UpdateResource_args
3041
+ include ::Thrift::Struct
3042
+ AUTHENTICATIONTOKEN = 1
3043
+ RESOURCE = 2
3044
+
3045
+ ::Thrift::Struct.field_accessor self, :authenticationToken, :resource
3046
+ FIELDS = {
3047
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
3048
+ RESOURCE => {:type => ::Thrift::Types::STRUCT, :name => 'resource', :class => Evernote::EDAM::Type::Resource}
3049
+ }
3050
+
3051
+ def struct_fields; FIELDS; end
3052
+
3053
+ def validate
3054
+ end
3055
+
3056
+ end
3057
+
3058
+ class UpdateResource_result
3059
+ include ::Thrift::Struct
3060
+ SUCCESS = 0
3061
+ USEREXCEPTION = 1
3062
+ SYSTEMEXCEPTION = 2
3063
+ NOTFOUNDEXCEPTION = 3
3064
+
3065
+ ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
3066
+ FIELDS = {
3067
+ SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
3068
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
3069
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
3070
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
3071
+ }
3072
+
3073
+ def struct_fields; FIELDS; end
3074
+
3075
+ def validate
3076
+ end
3077
+
3078
+ end
3079
+
3080
+ class GetResourceData_args
3081
+ include ::Thrift::Struct
3082
+ AUTHENTICATIONTOKEN = 1
3083
+ GUID = 2
3084
+
3085
+ ::Thrift::Struct.field_accessor self, :authenticationToken, :guid
3086
+ FIELDS = {
3087
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
3088
+ GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'}
3089
+ }
3090
+
3091
+ def struct_fields; FIELDS; end
3092
+
3093
+ def validate
3094
+ end
3095
+
3096
+ end
3097
+
3098
+ class GetResourceData_result
3099
+ include ::Thrift::Struct
3100
+ SUCCESS = 0
3101
+ USEREXCEPTION = 1
3102
+ SYSTEMEXCEPTION = 2
3103
+ NOTFOUNDEXCEPTION = 3
3104
+
3105
+ ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
3106
+ FIELDS = {
3107
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
3108
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
3109
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
3110
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
3111
+ }
3112
+
3113
+ def struct_fields; FIELDS; end
3114
+
3115
+ def validate
3116
+ end
3117
+
3118
+ end
3119
+
3120
+ class GetResourceByHash_args
3121
+ include ::Thrift::Struct
3122
+ AUTHENTICATIONTOKEN = 1
3123
+ NOTEGUID = 2
3124
+ CONTENTHASH = 3
3125
+ WITHDATA = 4
3126
+ WITHRECOGNITION = 5
3127
+ WITHALTERNATEDATA = 6
3128
+
3129
+ ::Thrift::Struct.field_accessor self, :authenticationToken, :noteGuid, :contentHash, :withData, :withRecognition, :withAlternateData
3130
+ FIELDS = {
3131
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
3132
+ NOTEGUID => {:type => ::Thrift::Types::STRING, :name => 'noteGuid'},
3133
+ CONTENTHASH => {:type => ::Thrift::Types::STRING, :name => 'contentHash'},
3134
+ WITHDATA => {:type => ::Thrift::Types::BOOL, :name => 'withData'},
3135
+ WITHRECOGNITION => {:type => ::Thrift::Types::BOOL, :name => 'withRecognition'},
3136
+ WITHALTERNATEDATA => {:type => ::Thrift::Types::BOOL, :name => 'withAlternateData'}
3137
+ }
3138
+
3139
+ def struct_fields; FIELDS; end
3140
+
3141
+ def validate
3142
+ end
3143
+
3144
+ end
3145
+
3146
+ class GetResourceByHash_result
3147
+ include ::Thrift::Struct
3148
+ SUCCESS = 0
3149
+ USEREXCEPTION = 1
3150
+ SYSTEMEXCEPTION = 2
3151
+ NOTFOUNDEXCEPTION = 3
3152
+
3153
+ ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
3154
+ FIELDS = {
3155
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::Resource},
3156
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
3157
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
3158
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
3159
+ }
3160
+
3161
+ def struct_fields; FIELDS; end
3162
+
3163
+ def validate
3164
+ end
3165
+
3166
+ end
3167
+
3168
+ class GetResourceRecognition_args
3169
+ include ::Thrift::Struct
3170
+ AUTHENTICATIONTOKEN = 1
3171
+ GUID = 2
3172
+
3173
+ ::Thrift::Struct.field_accessor self, :authenticationToken, :guid
3174
+ FIELDS = {
3175
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
3176
+ GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'}
3177
+ }
3178
+
3179
+ def struct_fields; FIELDS; end
3180
+
3181
+ def validate
3182
+ end
3183
+
3184
+ end
3185
+
3186
+ class GetResourceRecognition_result
3187
+ include ::Thrift::Struct
3188
+ SUCCESS = 0
3189
+ USEREXCEPTION = 1
3190
+ SYSTEMEXCEPTION = 2
3191
+ NOTFOUNDEXCEPTION = 3
3192
+
3193
+ ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
3194
+ FIELDS = {
3195
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
3196
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
3197
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
3198
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
3199
+ }
3200
+
3201
+ def struct_fields; FIELDS; end
3202
+
3203
+ def validate
3204
+ end
3205
+
3206
+ end
3207
+
3208
+ class GetResourceAlternateData_args
3209
+ include ::Thrift::Struct
3210
+ AUTHENTICATIONTOKEN = 1
3211
+ GUID = 2
3212
+
3213
+ ::Thrift::Struct.field_accessor self, :authenticationToken, :guid
3214
+ FIELDS = {
3215
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
3216
+ GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'}
3217
+ }
3218
+
3219
+ def struct_fields; FIELDS; end
3220
+
3221
+ def validate
3222
+ end
3223
+
3224
+ end
3225
+
3226
+ class GetResourceAlternateData_result
3227
+ include ::Thrift::Struct
3228
+ SUCCESS = 0
3229
+ USEREXCEPTION = 1
3230
+ SYSTEMEXCEPTION = 2
3231
+ NOTFOUNDEXCEPTION = 3
3232
+
3233
+ ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
3234
+ FIELDS = {
3235
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
3236
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
3237
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
3238
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
3239
+ }
3240
+
3241
+ def struct_fields; FIELDS; end
3242
+
3243
+ def validate
3244
+ end
3245
+
3246
+ end
3247
+
3248
+ class GetResourceAttributes_args
3249
+ include ::Thrift::Struct
3250
+ AUTHENTICATIONTOKEN = 1
3251
+ GUID = 2
3252
+
3253
+ ::Thrift::Struct.field_accessor self, :authenticationToken, :guid
3254
+ FIELDS = {
3255
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
3256
+ GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'}
3257
+ }
3258
+
3259
+ def struct_fields; FIELDS; end
3260
+
3261
+ def validate
3262
+ end
3263
+
3264
+ end
3265
+
3266
+ class GetResourceAttributes_result
3267
+ include ::Thrift::Struct
3268
+ SUCCESS = 0
3269
+ USEREXCEPTION = 1
3270
+ SYSTEMEXCEPTION = 2
3271
+ NOTFOUNDEXCEPTION = 3
3272
+
3273
+ ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
3274
+ FIELDS = {
3275
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::ResourceAttributes},
3276
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
3277
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
3278
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
3279
+ }
3280
+
3281
+ def struct_fields; FIELDS; end
3282
+
3283
+ def validate
3284
+ end
3285
+
3286
+ end
3287
+
3288
+ class GetAccountSize_args
3289
+ include ::Thrift::Struct
3290
+ AUTHENTICATIONTOKEN = 1
3291
+
3292
+ ::Thrift::Struct.field_accessor self, :authenticationToken
3293
+ FIELDS = {
3294
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}
3295
+ }
3296
+
3297
+ def struct_fields; FIELDS; end
3298
+
3299
+ def validate
3300
+ end
3301
+
3302
+ end
3303
+
3304
+ class GetAccountSize_result
3305
+ include ::Thrift::Struct
3306
+ SUCCESS = 0
3307
+ USEREXCEPTION = 1
3308
+ SYSTEMEXCEPTION = 2
3309
+
3310
+ ::Thrift::Struct.field_accessor self, :success, :userException, :systemException
3311
+ FIELDS = {
3312
+ SUCCESS => {:type => ::Thrift::Types::I64, :name => 'success'},
3313
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
3314
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}
3315
+ }
3316
+
3317
+ def struct_fields; FIELDS; end
3318
+
3319
+ def validate
3320
+ end
3321
+
3322
+ end
3323
+
3324
+ class GetAds_args
3325
+ include ::Thrift::Struct
3326
+ AUTHENTICATIONTOKEN = 1
3327
+ ADPARAMETERS = 2
3328
+
3329
+ ::Thrift::Struct.field_accessor self, :authenticationToken, :adParameters
3330
+ FIELDS = {
3331
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
3332
+ ADPARAMETERS => {:type => ::Thrift::Types::STRUCT, :name => 'adParameters', :class => Evernote::EDAM::NoteStore::AdParameters}
3333
+ }
3334
+
3335
+ def struct_fields; FIELDS; end
3336
+
3337
+ def validate
3338
+ end
3339
+
3340
+ end
3341
+
3342
+ class GetAds_result
3343
+ include ::Thrift::Struct
3344
+ SUCCESS = 0
3345
+ USEREXCEPTION = 1
3346
+ SYSTEMEXCEPTION = 2
3347
+
3348
+ ::Thrift::Struct.field_accessor self, :success, :userException, :systemException
3349
+ FIELDS = {
3350
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => Evernote::EDAM::Type::Ad}},
3351
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
3352
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}
3353
+ }
3354
+
3355
+ def struct_fields; FIELDS; end
3356
+
3357
+ def validate
3358
+ end
3359
+
3360
+ end
3361
+
3362
+ class GetRandomAd_args
3363
+ include ::Thrift::Struct
3364
+ AUTHENTICATIONTOKEN = 1
3365
+ ADPARAMETERS = 2
3366
+
3367
+ ::Thrift::Struct.field_accessor self, :authenticationToken, :adParameters
3368
+ FIELDS = {
3369
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
3370
+ ADPARAMETERS => {:type => ::Thrift::Types::STRUCT, :name => 'adParameters', :class => Evernote::EDAM::NoteStore::AdParameters}
3371
+ }
3372
+
3373
+ def struct_fields; FIELDS; end
3374
+
3375
+ def validate
3376
+ end
3377
+
3378
+ end
3379
+
3380
+ class GetRandomAd_result
3381
+ include ::Thrift::Struct
3382
+ SUCCESS = 0
3383
+ USEREXCEPTION = 1
3384
+ SYSTEMEXCEPTION = 2
3385
+
3386
+ ::Thrift::Struct.field_accessor self, :success, :userException, :systemException
3387
+ FIELDS = {
3388
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::Ad},
3389
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
3390
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}
3391
+ }
3392
+
3393
+ def struct_fields; FIELDS; end
3394
+
3395
+ def validate
3396
+ end
3397
+
3398
+ end
3399
+
3400
+ class GetPublicNotebook_args
3401
+ include ::Thrift::Struct
3402
+ USERID = 1
3403
+ PUBLICURI = 2
3404
+
3405
+ ::Thrift::Struct.field_accessor self, :userId, :publicUri
3406
+ FIELDS = {
3407
+ USERID => {:type => ::Thrift::Types::I32, :name => 'userId'},
3408
+ PUBLICURI => {:type => ::Thrift::Types::STRING, :name => 'publicUri'}
3409
+ }
3410
+
3411
+ def struct_fields; FIELDS; end
3412
+
3413
+ def validate
3414
+ end
3415
+
3416
+ end
3417
+
3418
+ class GetPublicNotebook_result
3419
+ include ::Thrift::Struct
3420
+ SUCCESS = 0
3421
+ SYSTEMEXCEPTION = 1
3422
+ NOTFOUNDEXCEPTION = 2
3423
+
3424
+ ::Thrift::Struct.field_accessor self, :success, :systemException, :notFoundException
3425
+ FIELDS = {
3426
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::Notebook},
3427
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
3428
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
3429
+ }
3430
+
3431
+ def struct_fields; FIELDS; end
3432
+
3433
+ def validate
3434
+ end
3435
+
3436
+ end
3437
+
3438
+ class CreateSharedNotebook_args
3439
+ include ::Thrift::Struct
3440
+ AUTHENTICATIONTOKEN = 1
3441
+ SHAREDNOTEBOOK = 2
3442
+
3443
+ ::Thrift::Struct.field_accessor self, :authenticationToken, :sharedNotebook
3444
+ FIELDS = {
3445
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
3446
+ SHAREDNOTEBOOK => {:type => ::Thrift::Types::STRUCT, :name => 'sharedNotebook', :class => Evernote::EDAM::Type::SharedNotebook}
3447
+ }
3448
+
3449
+ def struct_fields; FIELDS; end
3450
+
3451
+ def validate
3452
+ end
3453
+
3454
+ end
3455
+
3456
+ class CreateSharedNotebook_result
3457
+ include ::Thrift::Struct
3458
+ SUCCESS = 0
3459
+ USEREXCEPTION = 1
3460
+ NOTFOUNDEXCEPTION = 2
3461
+ SYSTEMEXCEPTION = 3
3462
+
3463
+ ::Thrift::Struct.field_accessor self, :success, :userException, :notFoundException, :systemException
3464
+ FIELDS = {
3465
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::SharedNotebook},
3466
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
3467
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException},
3468
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}
3469
+ }
3470
+
3471
+ def struct_fields; FIELDS; end
3472
+
3473
+ def validate
3474
+ end
3475
+
3476
+ end
3477
+
3478
+ class ListSharedNotebooks_args
3479
+ include ::Thrift::Struct
3480
+ AUTHENTICATIONTOKEN = 1
3481
+
3482
+ ::Thrift::Struct.field_accessor self, :authenticationToken
3483
+ FIELDS = {
3484
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}
3485
+ }
3486
+
3487
+ def struct_fields; FIELDS; end
3488
+
3489
+ def validate
3490
+ end
3491
+
3492
+ end
3493
+
3494
+ class ListSharedNotebooks_result
3495
+ include ::Thrift::Struct
3496
+ SUCCESS = 0
3497
+ USEREXCEPTION = 1
3498
+ NOTFOUNDEXCEPTION = 2
3499
+ SYSTEMEXCEPTION = 3
3500
+
3501
+ ::Thrift::Struct.field_accessor self, :success, :userException, :notFoundException, :systemException
3502
+ FIELDS = {
3503
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => Evernote::EDAM::Type::SharedNotebook}},
3504
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
3505
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException},
3506
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}
3507
+ }
3508
+
3509
+ def struct_fields; FIELDS; end
3510
+
3511
+ def validate
3512
+ end
3513
+
3514
+ end
3515
+
3516
+ class ExpungeSharedNotebooks_args
3517
+ include ::Thrift::Struct
3518
+ AUTHENTICATIONTOKEN = 1
3519
+ SHAREDNOTEBOOKIDS = 2
3520
+
3521
+ ::Thrift::Struct.field_accessor self, :authenticationToken, :sharedNotebookIds
3522
+ FIELDS = {
3523
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
3524
+ SHAREDNOTEBOOKIDS => {:type => ::Thrift::Types::LIST, :name => 'sharedNotebookIds', :element => {:type => ::Thrift::Types::I64}}
3525
+ }
3526
+
3527
+ def struct_fields; FIELDS; end
3528
+
3529
+ def validate
3530
+ end
3531
+
3532
+ end
3533
+
3534
+ class ExpungeSharedNotebooks_result
3535
+ include ::Thrift::Struct
3536
+ SUCCESS = 0
3537
+ USEREXCEPTION = 1
3538
+ NOTFOUNDEXCEPTION = 2
3539
+ SYSTEMEXCEPTION = 3
3540
+
3541
+ ::Thrift::Struct.field_accessor self, :success, :userException, :notFoundException, :systemException
3542
+ FIELDS = {
3543
+ SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
3544
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
3545
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException},
3546
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}
3547
+ }
3548
+
3549
+ def struct_fields; FIELDS; end
3550
+
3551
+ def validate
3552
+ end
3553
+
3554
+ end
3555
+
3556
+ class CreateLinkedNotebook_args
3557
+ include ::Thrift::Struct
3558
+ AUTHENTICATIONTOKEN = 1
3559
+ LINKEDNOTEBOOK = 2
3560
+
3561
+ ::Thrift::Struct.field_accessor self, :authenticationToken, :linkedNotebook
3562
+ FIELDS = {
3563
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
3564
+ LINKEDNOTEBOOK => {:type => ::Thrift::Types::STRUCT, :name => 'linkedNotebook', :class => Evernote::EDAM::Type::LinkedNotebook}
3565
+ }
3566
+
3567
+ def struct_fields; FIELDS; end
3568
+
3569
+ def validate
3570
+ end
3571
+
3572
+ end
3573
+
3574
+ class CreateLinkedNotebook_result
3575
+ include ::Thrift::Struct
3576
+ SUCCESS = 0
3577
+ USEREXCEPTION = 1
3578
+ NOTFOUNDEXCEPTION = 2
3579
+ SYSTEMEXCEPTION = 3
3580
+
3581
+ ::Thrift::Struct.field_accessor self, :success, :userException, :notFoundException, :systemException
3582
+ FIELDS = {
3583
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::LinkedNotebook},
3584
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
3585
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException},
3586
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}
3587
+ }
3588
+
3589
+ def struct_fields; FIELDS; end
3590
+
3591
+ def validate
3592
+ end
3593
+
3594
+ end
3595
+
3596
+ class UpdateLinkedNotebook_args
3597
+ include ::Thrift::Struct
3598
+ AUTHENTICATIONTOKEN = 1
3599
+ LINKEDNOTEBOOK = 2
3600
+
3601
+ ::Thrift::Struct.field_accessor self, :authenticationToken, :linkedNotebook
3602
+ FIELDS = {
3603
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
3604
+ LINKEDNOTEBOOK => {:type => ::Thrift::Types::STRUCT, :name => 'linkedNotebook', :class => Evernote::EDAM::Type::LinkedNotebook}
3605
+ }
3606
+
3607
+ def struct_fields; FIELDS; end
3608
+
3609
+ def validate
3610
+ end
3611
+
3612
+ end
3613
+
3614
+ class UpdateLinkedNotebook_result
3615
+ include ::Thrift::Struct
3616
+ SUCCESS = 0
3617
+ USEREXCEPTION = 1
3618
+ NOTFOUNDEXCEPTION = 2
3619
+ SYSTEMEXCEPTION = 3
3620
+
3621
+ ::Thrift::Struct.field_accessor self, :success, :userException, :notFoundException, :systemException
3622
+ FIELDS = {
3623
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::LinkedNotebook},
3624
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
3625
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException},
3626
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}
3627
+ }
3628
+
3629
+ def struct_fields; FIELDS; end
3630
+
3631
+ def validate
3632
+ end
3633
+
3634
+ end
3635
+
3636
+ class ListLinkedNotebooks_args
3637
+ include ::Thrift::Struct
3638
+ AUTHENTICATIONTOKEN = 1
3639
+
3640
+ ::Thrift::Struct.field_accessor self, :authenticationToken
3641
+ FIELDS = {
3642
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}
3643
+ }
3644
+
3645
+ def struct_fields; FIELDS; end
3646
+
3647
+ def validate
3648
+ end
3649
+
3650
+ end
3651
+
3652
+ class ListLinkedNotebooks_result
3653
+ include ::Thrift::Struct
3654
+ SUCCESS = 0
3655
+ USEREXCEPTION = 1
3656
+ NOTFOUNDEXCEPTION = 2
3657
+ SYSTEMEXCEPTION = 3
3658
+
3659
+ ::Thrift::Struct.field_accessor self, :success, :userException, :notFoundException, :systemException
3660
+ FIELDS = {
3661
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => Evernote::EDAM::Type::LinkedNotebook}},
3662
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
3663
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException},
3664
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}
3665
+ }
3666
+
3667
+ def struct_fields; FIELDS; end
3668
+
3669
+ def validate
3670
+ end
3671
+
3672
+ end
3673
+
3674
+ class ExpungeLinkedNotebook_args
3675
+ include ::Thrift::Struct
3676
+ AUTHENTICATIONTOKEN = 1
3677
+ LINKEDNOTEBOOKID = 2
3678
+
3679
+ ::Thrift::Struct.field_accessor self, :authenticationToken, :linkedNotebookId
3680
+ FIELDS = {
3681
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
3682
+ LINKEDNOTEBOOKID => {:type => ::Thrift::Types::I64, :name => 'linkedNotebookId'}
3683
+ }
3684
+
3685
+ def struct_fields; FIELDS; end
3686
+
3687
+ def validate
3688
+ end
3689
+
3690
+ end
3691
+
3692
+ class ExpungeLinkedNotebook_result
3693
+ include ::Thrift::Struct
3694
+ SUCCESS = 0
3695
+ USEREXCEPTION = 1
3696
+ NOTFOUNDEXCEPTION = 2
3697
+ SYSTEMEXCEPTION = 3
3698
+
3699
+ ::Thrift::Struct.field_accessor self, :success, :userException, :notFoundException, :systemException
3700
+ FIELDS = {
3701
+ SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
3702
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
3703
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException},
3704
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}
3705
+ }
3706
+
3707
+ def struct_fields; FIELDS; end
3708
+
3709
+ def validate
3710
+ end
3711
+
3712
+ end
3713
+
3714
+ class AuthenticateToSharedNotebook_args
3715
+ include ::Thrift::Struct
3716
+ SHAREKEY = 1
3717
+ AUTHENTICATIONTOKEN = 2
3718
+
3719
+ ::Thrift::Struct.field_accessor self, :shareKey, :authenticationToken
3720
+ FIELDS = {
3721
+ SHAREKEY => {:type => ::Thrift::Types::STRING, :name => 'shareKey'},
3722
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}
3723
+ }
3724
+
3725
+ def struct_fields; FIELDS; end
3726
+
3727
+ def validate
3728
+ end
3729
+
3730
+ end
3731
+
3732
+ class AuthenticateToSharedNotebook_result
3733
+ include ::Thrift::Struct
3734
+ SUCCESS = 0
3735
+ USEREXCEPTION = 1
3736
+ NOTFOUNDEXCEPTION = 2
3737
+ SYSTEMEXCEPTION = 3
3738
+
3739
+ ::Thrift::Struct.field_accessor self, :success, :userException, :notFoundException, :systemException
3740
+ FIELDS = {
3741
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::UserStore::AuthenticationResult},
3742
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
3743
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException},
3744
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}
3745
+ }
3746
+
3747
+ def struct_fields; FIELDS; end
3748
+
3749
+ def validate
3750
+ end
3751
+
3752
+ end
3753
+
3754
+ class GetSharedNotebookByAuth_args
3755
+ include ::Thrift::Struct
3756
+ AUTHENTICATIONTOKEN = 1
3757
+
3758
+ ::Thrift::Struct.field_accessor self, :authenticationToken
3759
+ FIELDS = {
3760
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}
3761
+ }
3762
+
3763
+ def struct_fields; FIELDS; end
3764
+
3765
+ def validate
3766
+ end
3767
+
3768
+ end
3769
+
3770
+ class GetSharedNotebookByAuth_result
3771
+ include ::Thrift::Struct
3772
+ SUCCESS = 0
3773
+ USEREXCEPTION = 1
3774
+ NOTFOUNDEXCEPTION = 2
3775
+ SYSTEMEXCEPTION = 3
3776
+
3777
+ ::Thrift::Struct.field_accessor self, :success, :userException, :notFoundException, :systemException
3778
+ FIELDS = {
3779
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::SharedNotebook},
3780
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
3781
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException},
3782
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}
3783
+ }
3784
+
3785
+ def struct_fields; FIELDS; end
3786
+
3787
+ def validate
3788
+ end
3789
+
3790
+ end
3791
+
3792
+ class EmailNote_args
3793
+ include ::Thrift::Struct
3794
+ AUTHENTICATIONTOKEN = 1
3795
+ PARAMETERS = 2
3796
+
3797
+ ::Thrift::Struct.field_accessor self, :authenticationToken, :parameters
3798
+ FIELDS = {
3799
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
3800
+ PARAMETERS => {:type => ::Thrift::Types::STRUCT, :name => 'parameters', :class => Evernote::EDAM::NoteStore::NoteEmailParameters}
3801
+ }
3802
+
3803
+ def struct_fields; FIELDS; end
3804
+
3805
+ def validate
3806
+ end
3807
+
3808
+ end
3809
+
3810
+ class EmailNote_result
3811
+ include ::Thrift::Struct
3812
+ USEREXCEPTION = 1
3813
+ NOTFOUNDEXCEPTION = 2
3814
+ SYSTEMEXCEPTION = 3
3815
+
3816
+ ::Thrift::Struct.field_accessor self, :userException, :notFoundException, :systemException
3817
+ FIELDS = {
3818
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
3819
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException},
3820
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}
3821
+ }
3822
+
3823
+ def struct_fields; FIELDS; end
3824
+
3825
+ def validate
3826
+ end
3827
+
3828
+ end
3829
+
3830
+ end
3831
+
3832
+ end
3833
+ end
3834
+ end