2
* Autogenerated by Thrift
4
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
9
#include <TProcessor.h>
10
#include "UserStore_types.h"
12
namespace evernote { namespace edam {
16
virtual ~UserStoreIf() {}
17
virtual bool checkVersion(const std::string& clientName, const int16_t edamVersionMajor, const int16_t edamVersionMinor) = 0;
18
virtual void getBootstrapInfo(BootstrapInfo& _return, const std::string& locale) = 0;
19
virtual void authenticate(AuthenticationResult& _return, const std::string& username, const std::string& password, const std::string& consumerKey, const std::string& consumerSecret, const bool supportsTwoFactor) = 0;
20
virtual void authenticateLongSession(AuthenticationResult& _return, const std::string& username, const std::string& password, const std::string& consumerKey, const std::string& consumerSecret, const std::string& deviceIdentifier, const std::string& deviceDescription, const bool supportsTwoFactor) = 0;
21
virtual void completeTwoFactorAuthentication(AuthenticationResult& _return, const std::string& authenticationToken, const std::string& oneTimeCode, const std::string& deviceIdentifier, const std::string& deviceDescription) = 0;
22
virtual void revokeLongSession(const std::string& authenticationToken) = 0;
23
virtual void authenticateToBusiness(AuthenticationResult& _return, const std::string& authenticationToken) = 0;
24
virtual void refreshAuthentication(AuthenticationResult& _return, const std::string& authenticationToken) = 0;
25
virtual void getUser(evernote::edam::User& _return, const std::string& authenticationToken) = 0;
26
virtual void getPublicUserInfo(PublicUserInfo& _return, const std::string& username) = 0;
27
virtual void getPremiumInfo(evernote::edam::PremiumInfo& _return, const std::string& authenticationToken) = 0;
28
virtual void getNoteStoreUrl(std::string& _return, const std::string& authenticationToken) = 0;
31
class UserStoreNull : virtual public UserStoreIf {
33
virtual ~UserStoreNull() {}
34
bool checkVersion(const std::string& /* clientName */, const int16_t /* edamVersionMajor */, const int16_t /* edamVersionMinor */) {
38
void getBootstrapInfo(BootstrapInfo& /* _return */, const std::string& /* locale */) {
41
void authenticate(AuthenticationResult& /* _return */, const std::string& /* username */, const std::string& /* password */, const std::string& /* consumerKey */, const std::string& /* consumerSecret */, const bool /* supportsTwoFactor */) {
44
void authenticateLongSession(AuthenticationResult& /* _return */, const std::string& /* username */, const std::string& /* password */, const std::string& /* consumerKey */, const std::string& /* consumerSecret */, const std::string& /* deviceIdentifier */, const std::string& /* deviceDescription */, const bool /* supportsTwoFactor */) {
47
void completeTwoFactorAuthentication(AuthenticationResult& /* _return */, const std::string& /* authenticationToken */, const std::string& /* oneTimeCode */, const std::string& /* deviceIdentifier */, const std::string& /* deviceDescription */) {
50
void revokeLongSession(const std::string& /* authenticationToken */) {
53
void authenticateToBusiness(AuthenticationResult& /* _return */, const std::string& /* authenticationToken */) {
56
void refreshAuthentication(AuthenticationResult& /* _return */, const std::string& /* authenticationToken */) {
59
void getUser(evernote::edam::User& /* _return */, const std::string& /* authenticationToken */) {
62
void getPublicUserInfo(PublicUserInfo& /* _return */, const std::string& /* username */) {
65
void getPremiumInfo(evernote::edam::PremiumInfo& /* _return */, const std::string& /* authenticationToken */) {
68
void getNoteStoreUrl(std::string& /* _return */, const std::string& /* authenticationToken */) {
73
typedef struct _UserStore_checkVersion_args__isset {
74
_UserStore_checkVersion_args__isset() : clientName(false), edamVersionMajor(false), edamVersionMinor(false) {}
76
bool edamVersionMajor;
77
bool edamVersionMinor;
78
} _UserStore_checkVersion_args__isset;
80
class UserStore_checkVersion_args {
83
UserStore_checkVersion_args() : clientName(""), edamVersionMajor(1), edamVersionMinor(25) {
86
virtual ~UserStore_checkVersion_args() throw() {}
88
std::string clientName;
89
int16_t edamVersionMajor;
90
int16_t edamVersionMinor;
92
_UserStore_checkVersion_args__isset __isset;
94
bool operator == (const UserStore_checkVersion_args & rhs) const
96
if (!(clientName == rhs.clientName))
98
if (!(edamVersionMajor == rhs.edamVersionMajor))
100
if (!(edamVersionMinor == rhs.edamVersionMinor))
104
bool operator != (const UserStore_checkVersion_args &rhs) const {
105
return !(*this == rhs);
108
bool operator < (const UserStore_checkVersion_args & ) const;
110
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
111
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
116
class UserStore_checkVersion_pargs {
120
virtual ~UserStore_checkVersion_pargs() throw() {}
122
const std::string* clientName;
123
const int16_t* edamVersionMajor;
124
const int16_t* edamVersionMinor;
126
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
130
typedef struct _UserStore_checkVersion_result__isset {
131
_UserStore_checkVersion_result__isset() : success(false) {}
133
} _UserStore_checkVersion_result__isset;
135
class UserStore_checkVersion_result {
138
UserStore_checkVersion_result() : success(0) {
141
virtual ~UserStore_checkVersion_result() throw() {}
145
_UserStore_checkVersion_result__isset __isset;
147
bool operator == (const UserStore_checkVersion_result & rhs) const
149
if (!(success == rhs.success))
153
bool operator != (const UserStore_checkVersion_result &rhs) const {
154
return !(*this == rhs);
157
bool operator < (const UserStore_checkVersion_result & ) const;
159
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
160
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
164
typedef struct _UserStore_checkVersion_presult__isset {
165
_UserStore_checkVersion_presult__isset() : success(false) {}
167
} _UserStore_checkVersion_presult__isset;
169
class UserStore_checkVersion_presult {
173
virtual ~UserStore_checkVersion_presult() throw() {}
177
_UserStore_checkVersion_presult__isset __isset;
179
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
183
typedef struct _UserStore_getBootstrapInfo_args__isset {
184
_UserStore_getBootstrapInfo_args__isset() : locale(false) {}
186
} _UserStore_getBootstrapInfo_args__isset;
188
class UserStore_getBootstrapInfo_args {
191
UserStore_getBootstrapInfo_args() : locale("") {
194
virtual ~UserStore_getBootstrapInfo_args() throw() {}
198
_UserStore_getBootstrapInfo_args__isset __isset;
200
bool operator == (const UserStore_getBootstrapInfo_args & rhs) const
202
if (!(locale == rhs.locale))
206
bool operator != (const UserStore_getBootstrapInfo_args &rhs) const {
207
return !(*this == rhs);
210
bool operator < (const UserStore_getBootstrapInfo_args & ) const;
212
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
213
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
218
class UserStore_getBootstrapInfo_pargs {
222
virtual ~UserStore_getBootstrapInfo_pargs() throw() {}
224
const std::string* locale;
226
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
230
typedef struct _UserStore_getBootstrapInfo_result__isset {
231
_UserStore_getBootstrapInfo_result__isset() : success(false) {}
233
} _UserStore_getBootstrapInfo_result__isset;
235
class UserStore_getBootstrapInfo_result {
238
UserStore_getBootstrapInfo_result() {
241
virtual ~UserStore_getBootstrapInfo_result() throw() {}
243
BootstrapInfo success;
245
_UserStore_getBootstrapInfo_result__isset __isset;
247
bool operator == (const UserStore_getBootstrapInfo_result & rhs) const
249
if (!(success == rhs.success))
253
bool operator != (const UserStore_getBootstrapInfo_result &rhs) const {
254
return !(*this == rhs);
257
bool operator < (const UserStore_getBootstrapInfo_result & ) const;
259
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
260
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
264
typedef struct _UserStore_getBootstrapInfo_presult__isset {
265
_UserStore_getBootstrapInfo_presult__isset() : success(false) {}
267
} _UserStore_getBootstrapInfo_presult__isset;
269
class UserStore_getBootstrapInfo_presult {
273
virtual ~UserStore_getBootstrapInfo_presult() throw() {}
275
BootstrapInfo* success;
277
_UserStore_getBootstrapInfo_presult__isset __isset;
279
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
283
typedef struct _UserStore_authenticate_args__isset {
284
_UserStore_authenticate_args__isset() : username(false), password(false), consumerKey(false), consumerSecret(false), supportsTwoFactor(false) {}
289
bool supportsTwoFactor;
290
} _UserStore_authenticate_args__isset;
292
class UserStore_authenticate_args {
295
UserStore_authenticate_args() : username(""), password(""), consumerKey(""), consumerSecret(""), supportsTwoFactor(0) {
298
virtual ~UserStore_authenticate_args() throw() {}
300
std::string username;
301
std::string password;
302
std::string consumerKey;
303
std::string consumerSecret;
304
bool supportsTwoFactor;
306
_UserStore_authenticate_args__isset __isset;
308
bool operator == (const UserStore_authenticate_args & rhs) const
310
if (!(username == rhs.username))
312
if (!(password == rhs.password))
314
if (!(consumerKey == rhs.consumerKey))
316
if (!(consumerSecret == rhs.consumerSecret))
318
if (!(supportsTwoFactor == rhs.supportsTwoFactor))
322
bool operator != (const UserStore_authenticate_args &rhs) const {
323
return !(*this == rhs);
326
bool operator < (const UserStore_authenticate_args & ) const;
328
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
329
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
334
class UserStore_authenticate_pargs {
338
virtual ~UserStore_authenticate_pargs() throw() {}
340
const std::string* username;
341
const std::string* password;
342
const std::string* consumerKey;
343
const std::string* consumerSecret;
344
const bool* supportsTwoFactor;
346
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
350
typedef struct _UserStore_authenticate_result__isset {
351
_UserStore_authenticate_result__isset() : success(false), userException(false), systemException(false) {}
354
bool systemException;
355
} _UserStore_authenticate_result__isset;
357
class UserStore_authenticate_result {
360
UserStore_authenticate_result() {
363
virtual ~UserStore_authenticate_result() throw() {}
365
AuthenticationResult success;
366
evernote::edam::EDAMUserException userException;
367
evernote::edam::EDAMSystemException systemException;
369
_UserStore_authenticate_result__isset __isset;
371
bool operator == (const UserStore_authenticate_result & rhs) const
373
if (!(success == rhs.success))
375
if (!(userException == rhs.userException))
377
if (!(systemException == rhs.systemException))
381
bool operator != (const UserStore_authenticate_result &rhs) const {
382
return !(*this == rhs);
385
bool operator < (const UserStore_authenticate_result & ) const;
387
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
388
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
392
typedef struct _UserStore_authenticate_presult__isset {
393
_UserStore_authenticate_presult__isset() : success(false), userException(false), systemException(false) {}
396
bool systemException;
397
} _UserStore_authenticate_presult__isset;
399
class UserStore_authenticate_presult {
403
virtual ~UserStore_authenticate_presult() throw() {}
405
AuthenticationResult* success;
406
evernote::edam::EDAMUserException userException;
407
evernote::edam::EDAMSystemException systemException;
409
_UserStore_authenticate_presult__isset __isset;
411
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
415
typedef struct _UserStore_authenticateLongSession_args__isset {
416
_UserStore_authenticateLongSession_args__isset() : username(false), password(false), consumerKey(false), consumerSecret(false), deviceIdentifier(false), deviceDescription(false), supportsTwoFactor(false) {}
421
bool deviceIdentifier;
422
bool deviceDescription;
423
bool supportsTwoFactor;
424
} _UserStore_authenticateLongSession_args__isset;
426
class UserStore_authenticateLongSession_args {
429
UserStore_authenticateLongSession_args() : username(""), password(""), consumerKey(""), consumerSecret(""), deviceIdentifier(""), deviceDescription(""), supportsTwoFactor(0) {
432
virtual ~UserStore_authenticateLongSession_args() throw() {}
434
std::string username;
435
std::string password;
436
std::string consumerKey;
437
std::string consumerSecret;
438
std::string deviceIdentifier;
439
std::string deviceDescription;
440
bool supportsTwoFactor;
442
_UserStore_authenticateLongSession_args__isset __isset;
444
bool operator == (const UserStore_authenticateLongSession_args & rhs) const
446
if (!(username == rhs.username))
448
if (!(password == rhs.password))
450
if (!(consumerKey == rhs.consumerKey))
452
if (!(consumerSecret == rhs.consumerSecret))
454
if (!(deviceIdentifier == rhs.deviceIdentifier))
456
if (!(deviceDescription == rhs.deviceDescription))
458
if (!(supportsTwoFactor == rhs.supportsTwoFactor))
462
bool operator != (const UserStore_authenticateLongSession_args &rhs) const {
463
return !(*this == rhs);
466
bool operator < (const UserStore_authenticateLongSession_args & ) const;
468
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
469
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
474
class UserStore_authenticateLongSession_pargs {
478
virtual ~UserStore_authenticateLongSession_pargs() throw() {}
480
const std::string* username;
481
const std::string* password;
482
const std::string* consumerKey;
483
const std::string* consumerSecret;
484
const std::string* deviceIdentifier;
485
const std::string* deviceDescription;
486
const bool* supportsTwoFactor;
488
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
492
typedef struct _UserStore_authenticateLongSession_result__isset {
493
_UserStore_authenticateLongSession_result__isset() : success(false), userException(false), systemException(false) {}
496
bool systemException;
497
} _UserStore_authenticateLongSession_result__isset;
499
class UserStore_authenticateLongSession_result {
502
UserStore_authenticateLongSession_result() {
505
virtual ~UserStore_authenticateLongSession_result() throw() {}
507
AuthenticationResult success;
508
evernote::edam::EDAMUserException userException;
509
evernote::edam::EDAMSystemException systemException;
511
_UserStore_authenticateLongSession_result__isset __isset;
513
bool operator == (const UserStore_authenticateLongSession_result & rhs) const
515
if (!(success == rhs.success))
517
if (!(userException == rhs.userException))
519
if (!(systemException == rhs.systemException))
523
bool operator != (const UserStore_authenticateLongSession_result &rhs) const {
524
return !(*this == rhs);
527
bool operator < (const UserStore_authenticateLongSession_result & ) const;
529
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
530
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
534
typedef struct _UserStore_authenticateLongSession_presult__isset {
535
_UserStore_authenticateLongSession_presult__isset() : success(false), userException(false), systemException(false) {}
538
bool systemException;
539
} _UserStore_authenticateLongSession_presult__isset;
541
class UserStore_authenticateLongSession_presult {
545
virtual ~UserStore_authenticateLongSession_presult() throw() {}
547
AuthenticationResult* success;
548
evernote::edam::EDAMUserException userException;
549
evernote::edam::EDAMSystemException systemException;
551
_UserStore_authenticateLongSession_presult__isset __isset;
553
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
557
typedef struct _UserStore_completeTwoFactorAuthentication_args__isset {
558
_UserStore_completeTwoFactorAuthentication_args__isset() : authenticationToken(false), oneTimeCode(false), deviceIdentifier(false), deviceDescription(false) {}
559
bool authenticationToken;
561
bool deviceIdentifier;
562
bool deviceDescription;
563
} _UserStore_completeTwoFactorAuthentication_args__isset;
565
class UserStore_completeTwoFactorAuthentication_args {
568
UserStore_completeTwoFactorAuthentication_args() : authenticationToken(""), oneTimeCode(""), deviceIdentifier(""), deviceDescription("") {
571
virtual ~UserStore_completeTwoFactorAuthentication_args() throw() {}
573
std::string authenticationToken;
574
std::string oneTimeCode;
575
std::string deviceIdentifier;
576
std::string deviceDescription;
578
_UserStore_completeTwoFactorAuthentication_args__isset __isset;
580
bool operator == (const UserStore_completeTwoFactorAuthentication_args & rhs) const
582
if (!(authenticationToken == rhs.authenticationToken))
584
if (!(oneTimeCode == rhs.oneTimeCode))
586
if (!(deviceIdentifier == rhs.deviceIdentifier))
588
if (!(deviceDescription == rhs.deviceDescription))
592
bool operator != (const UserStore_completeTwoFactorAuthentication_args &rhs) const {
593
return !(*this == rhs);
596
bool operator < (const UserStore_completeTwoFactorAuthentication_args & ) const;
598
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
599
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
604
class UserStore_completeTwoFactorAuthentication_pargs {
608
virtual ~UserStore_completeTwoFactorAuthentication_pargs() throw() {}
610
const std::string* authenticationToken;
611
const std::string* oneTimeCode;
612
const std::string* deviceIdentifier;
613
const std::string* deviceDescription;
615
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
619
typedef struct _UserStore_completeTwoFactorAuthentication_result__isset {
620
_UserStore_completeTwoFactorAuthentication_result__isset() : success(false), userException(false), systemException(false) {}
623
bool systemException;
624
} _UserStore_completeTwoFactorAuthentication_result__isset;
626
class UserStore_completeTwoFactorAuthentication_result {
629
UserStore_completeTwoFactorAuthentication_result() {
632
virtual ~UserStore_completeTwoFactorAuthentication_result() throw() {}
634
AuthenticationResult success;
635
evernote::edam::EDAMUserException userException;
636
evernote::edam::EDAMSystemException systemException;
638
_UserStore_completeTwoFactorAuthentication_result__isset __isset;
640
bool operator == (const UserStore_completeTwoFactorAuthentication_result & rhs) const
642
if (!(success == rhs.success))
644
if (!(userException == rhs.userException))
646
if (!(systemException == rhs.systemException))
650
bool operator != (const UserStore_completeTwoFactorAuthentication_result &rhs) const {
651
return !(*this == rhs);
654
bool operator < (const UserStore_completeTwoFactorAuthentication_result & ) const;
656
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
657
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
661
typedef struct _UserStore_completeTwoFactorAuthentication_presult__isset {
662
_UserStore_completeTwoFactorAuthentication_presult__isset() : success(false), userException(false), systemException(false) {}
665
bool systemException;
666
} _UserStore_completeTwoFactorAuthentication_presult__isset;
668
class UserStore_completeTwoFactorAuthentication_presult {
672
virtual ~UserStore_completeTwoFactorAuthentication_presult() throw() {}
674
AuthenticationResult* success;
675
evernote::edam::EDAMUserException userException;
676
evernote::edam::EDAMSystemException systemException;
678
_UserStore_completeTwoFactorAuthentication_presult__isset __isset;
680
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
684
typedef struct _UserStore_revokeLongSession_args__isset {
685
_UserStore_revokeLongSession_args__isset() : authenticationToken(false) {}
686
bool authenticationToken;
687
} _UserStore_revokeLongSession_args__isset;
689
class UserStore_revokeLongSession_args {
692
UserStore_revokeLongSession_args() : authenticationToken("") {
695
virtual ~UserStore_revokeLongSession_args() throw() {}
697
std::string authenticationToken;
699
_UserStore_revokeLongSession_args__isset __isset;
701
bool operator == (const UserStore_revokeLongSession_args & rhs) const
703
if (!(authenticationToken == rhs.authenticationToken))
707
bool operator != (const UserStore_revokeLongSession_args &rhs) const {
708
return !(*this == rhs);
711
bool operator < (const UserStore_revokeLongSession_args & ) const;
713
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
714
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
719
class UserStore_revokeLongSession_pargs {
723
virtual ~UserStore_revokeLongSession_pargs() throw() {}
725
const std::string* authenticationToken;
727
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
731
typedef struct _UserStore_revokeLongSession_result__isset {
732
_UserStore_revokeLongSession_result__isset() : userException(false), systemException(false) {}
734
bool systemException;
735
} _UserStore_revokeLongSession_result__isset;
737
class UserStore_revokeLongSession_result {
740
UserStore_revokeLongSession_result() {
743
virtual ~UserStore_revokeLongSession_result() throw() {}
745
evernote::edam::EDAMUserException userException;
746
evernote::edam::EDAMSystemException systemException;
748
_UserStore_revokeLongSession_result__isset __isset;
750
bool operator == (const UserStore_revokeLongSession_result & rhs) const
752
if (!(userException == rhs.userException))
754
if (!(systemException == rhs.systemException))
758
bool operator != (const UserStore_revokeLongSession_result &rhs) const {
759
return !(*this == rhs);
762
bool operator < (const UserStore_revokeLongSession_result & ) const;
764
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
765
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
769
typedef struct _UserStore_revokeLongSession_presult__isset {
770
_UserStore_revokeLongSession_presult__isset() : userException(false), systemException(false) {}
772
bool systemException;
773
} _UserStore_revokeLongSession_presult__isset;
775
class UserStore_revokeLongSession_presult {
779
virtual ~UserStore_revokeLongSession_presult() throw() {}
781
evernote::edam::EDAMUserException userException;
782
evernote::edam::EDAMSystemException systemException;
784
_UserStore_revokeLongSession_presult__isset __isset;
786
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
790
typedef struct _UserStore_authenticateToBusiness_args__isset {
791
_UserStore_authenticateToBusiness_args__isset() : authenticationToken(false) {}
792
bool authenticationToken;
793
} _UserStore_authenticateToBusiness_args__isset;
795
class UserStore_authenticateToBusiness_args {
798
UserStore_authenticateToBusiness_args() : authenticationToken("") {
801
virtual ~UserStore_authenticateToBusiness_args() throw() {}
803
std::string authenticationToken;
805
_UserStore_authenticateToBusiness_args__isset __isset;
807
bool operator == (const UserStore_authenticateToBusiness_args & rhs) const
809
if (!(authenticationToken == rhs.authenticationToken))
813
bool operator != (const UserStore_authenticateToBusiness_args &rhs) const {
814
return !(*this == rhs);
817
bool operator < (const UserStore_authenticateToBusiness_args & ) const;
819
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
820
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
825
class UserStore_authenticateToBusiness_pargs {
829
virtual ~UserStore_authenticateToBusiness_pargs() throw() {}
831
const std::string* authenticationToken;
833
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
837
typedef struct _UserStore_authenticateToBusiness_result__isset {
838
_UserStore_authenticateToBusiness_result__isset() : success(false), userException(false), systemException(false) {}
841
bool systemException;
842
} _UserStore_authenticateToBusiness_result__isset;
844
class UserStore_authenticateToBusiness_result {
847
UserStore_authenticateToBusiness_result() {
850
virtual ~UserStore_authenticateToBusiness_result() throw() {}
852
AuthenticationResult success;
853
evernote::edam::EDAMUserException userException;
854
evernote::edam::EDAMSystemException systemException;
856
_UserStore_authenticateToBusiness_result__isset __isset;
858
bool operator == (const UserStore_authenticateToBusiness_result & rhs) const
860
if (!(success == rhs.success))
862
if (!(userException == rhs.userException))
864
if (!(systemException == rhs.systemException))
868
bool operator != (const UserStore_authenticateToBusiness_result &rhs) const {
869
return !(*this == rhs);
872
bool operator < (const UserStore_authenticateToBusiness_result & ) const;
874
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
875
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
879
typedef struct _UserStore_authenticateToBusiness_presult__isset {
880
_UserStore_authenticateToBusiness_presult__isset() : success(false), userException(false), systemException(false) {}
883
bool systemException;
884
} _UserStore_authenticateToBusiness_presult__isset;
886
class UserStore_authenticateToBusiness_presult {
890
virtual ~UserStore_authenticateToBusiness_presult() throw() {}
892
AuthenticationResult* success;
893
evernote::edam::EDAMUserException userException;
894
evernote::edam::EDAMSystemException systemException;
896
_UserStore_authenticateToBusiness_presult__isset __isset;
898
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
902
typedef struct _UserStore_refreshAuthentication_args__isset {
903
_UserStore_refreshAuthentication_args__isset() : authenticationToken(false) {}
904
bool authenticationToken;
905
} _UserStore_refreshAuthentication_args__isset;
907
class UserStore_refreshAuthentication_args {
910
UserStore_refreshAuthentication_args() : authenticationToken("") {
913
virtual ~UserStore_refreshAuthentication_args() throw() {}
915
std::string authenticationToken;
917
_UserStore_refreshAuthentication_args__isset __isset;
919
bool operator == (const UserStore_refreshAuthentication_args & rhs) const
921
if (!(authenticationToken == rhs.authenticationToken))
925
bool operator != (const UserStore_refreshAuthentication_args &rhs) const {
926
return !(*this == rhs);
929
bool operator < (const UserStore_refreshAuthentication_args & ) const;
931
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
932
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
937
class UserStore_refreshAuthentication_pargs {
941
virtual ~UserStore_refreshAuthentication_pargs() throw() {}
943
const std::string* authenticationToken;
945
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
949
typedef struct _UserStore_refreshAuthentication_result__isset {
950
_UserStore_refreshAuthentication_result__isset() : success(false), userException(false), systemException(false) {}
953
bool systemException;
954
} _UserStore_refreshAuthentication_result__isset;
956
class UserStore_refreshAuthentication_result {
959
UserStore_refreshAuthentication_result() {
962
virtual ~UserStore_refreshAuthentication_result() throw() {}
964
AuthenticationResult success;
965
evernote::edam::EDAMUserException userException;
966
evernote::edam::EDAMSystemException systemException;
968
_UserStore_refreshAuthentication_result__isset __isset;
970
bool operator == (const UserStore_refreshAuthentication_result & rhs) const
972
if (!(success == rhs.success))
974
if (!(userException == rhs.userException))
976
if (!(systemException == rhs.systemException))
980
bool operator != (const UserStore_refreshAuthentication_result &rhs) const {
981
return !(*this == rhs);
984
bool operator < (const UserStore_refreshAuthentication_result & ) const;
986
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
987
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
991
typedef struct _UserStore_refreshAuthentication_presult__isset {
992
_UserStore_refreshAuthentication_presult__isset() : success(false), userException(false), systemException(false) {}
995
bool systemException;
996
} _UserStore_refreshAuthentication_presult__isset;
998
class UserStore_refreshAuthentication_presult {
1002
virtual ~UserStore_refreshAuthentication_presult() throw() {}
1004
AuthenticationResult* success;
1005
evernote::edam::EDAMUserException userException;
1006
evernote::edam::EDAMSystemException systemException;
1008
_UserStore_refreshAuthentication_presult__isset __isset;
1010
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
1014
typedef struct _UserStore_getUser_args__isset {
1015
_UserStore_getUser_args__isset() : authenticationToken(false) {}
1016
bool authenticationToken;
1017
} _UserStore_getUser_args__isset;
1019
class UserStore_getUser_args {
1022
UserStore_getUser_args() : authenticationToken("") {
1025
virtual ~UserStore_getUser_args() throw() {}
1027
std::string authenticationToken;
1029
_UserStore_getUser_args__isset __isset;
1031
bool operator == (const UserStore_getUser_args & rhs) const
1033
if (!(authenticationToken == rhs.authenticationToken))
1037
bool operator != (const UserStore_getUser_args &rhs) const {
1038
return !(*this == rhs);
1041
bool operator < (const UserStore_getUser_args & ) const;
1043
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
1044
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
1049
class UserStore_getUser_pargs {
1053
virtual ~UserStore_getUser_pargs() throw() {}
1055
const std::string* authenticationToken;
1057
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
1061
typedef struct _UserStore_getUser_result__isset {
1062
_UserStore_getUser_result__isset() : success(false), userException(false), systemException(false) {}
1065
bool systemException;
1066
} _UserStore_getUser_result__isset;
1068
class UserStore_getUser_result {
1071
UserStore_getUser_result() {
1074
virtual ~UserStore_getUser_result() throw() {}
1076
evernote::edam::User success;
1077
evernote::edam::EDAMUserException userException;
1078
evernote::edam::EDAMSystemException systemException;
1080
_UserStore_getUser_result__isset __isset;
1082
bool operator == (const UserStore_getUser_result & rhs) const
1084
if (!(success == rhs.success))
1086
if (!(userException == rhs.userException))
1088
if (!(systemException == rhs.systemException))
1092
bool operator != (const UserStore_getUser_result &rhs) const {
1093
return !(*this == rhs);
1096
bool operator < (const UserStore_getUser_result & ) const;
1098
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
1099
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
1103
typedef struct _UserStore_getUser_presult__isset {
1104
_UserStore_getUser_presult__isset() : success(false), userException(false), systemException(false) {}
1107
bool systemException;
1108
} _UserStore_getUser_presult__isset;
1110
class UserStore_getUser_presult {
1114
virtual ~UserStore_getUser_presult() throw() {}
1116
evernote::edam::User* success;
1117
evernote::edam::EDAMUserException userException;
1118
evernote::edam::EDAMSystemException systemException;
1120
_UserStore_getUser_presult__isset __isset;
1122
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
1126
typedef struct _UserStore_getPublicUserInfo_args__isset {
1127
_UserStore_getPublicUserInfo_args__isset() : username(false) {}
1129
} _UserStore_getPublicUserInfo_args__isset;
1131
class UserStore_getPublicUserInfo_args {
1134
UserStore_getPublicUserInfo_args() : username("") {
1137
virtual ~UserStore_getPublicUserInfo_args() throw() {}
1139
std::string username;
1141
_UserStore_getPublicUserInfo_args__isset __isset;
1143
bool operator == (const UserStore_getPublicUserInfo_args & rhs) const
1145
if (!(username == rhs.username))
1149
bool operator != (const UserStore_getPublicUserInfo_args &rhs) const {
1150
return !(*this == rhs);
1153
bool operator < (const UserStore_getPublicUserInfo_args & ) const;
1155
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
1156
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
1161
class UserStore_getPublicUserInfo_pargs {
1165
virtual ~UserStore_getPublicUserInfo_pargs() throw() {}
1167
const std::string* username;
1169
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
1173
typedef struct _UserStore_getPublicUserInfo_result__isset {
1174
_UserStore_getPublicUserInfo_result__isset() : success(false), notFoundException(false), systemException(false), userException(false) {}
1176
bool notFoundException;
1177
bool systemException;
1179
} _UserStore_getPublicUserInfo_result__isset;
1181
class UserStore_getPublicUserInfo_result {
1184
UserStore_getPublicUserInfo_result() {
1187
virtual ~UserStore_getPublicUserInfo_result() throw() {}
1189
PublicUserInfo success;
1190
evernote::edam::EDAMNotFoundException notFoundException;
1191
evernote::edam::EDAMSystemException systemException;
1192
evernote::edam::EDAMUserException userException;
1194
_UserStore_getPublicUserInfo_result__isset __isset;
1196
bool operator == (const UserStore_getPublicUserInfo_result & rhs) const
1198
if (!(success == rhs.success))
1200
if (!(notFoundException == rhs.notFoundException))
1202
if (!(systemException == rhs.systemException))
1204
if (!(userException == rhs.userException))
1208
bool operator != (const UserStore_getPublicUserInfo_result &rhs) const {
1209
return !(*this == rhs);
1212
bool operator < (const UserStore_getPublicUserInfo_result & ) const;
1214
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
1215
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
1219
typedef struct _UserStore_getPublicUserInfo_presult__isset {
1220
_UserStore_getPublicUserInfo_presult__isset() : success(false), notFoundException(false), systemException(false), userException(false) {}
1222
bool notFoundException;
1223
bool systemException;
1225
} _UserStore_getPublicUserInfo_presult__isset;
1227
class UserStore_getPublicUserInfo_presult {
1231
virtual ~UserStore_getPublicUserInfo_presult() throw() {}
1233
PublicUserInfo* success;
1234
evernote::edam::EDAMNotFoundException notFoundException;
1235
evernote::edam::EDAMSystemException systemException;
1236
evernote::edam::EDAMUserException userException;
1238
_UserStore_getPublicUserInfo_presult__isset __isset;
1240
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
1244
typedef struct _UserStore_getPremiumInfo_args__isset {
1245
_UserStore_getPremiumInfo_args__isset() : authenticationToken(false) {}
1246
bool authenticationToken;
1247
} _UserStore_getPremiumInfo_args__isset;
1249
class UserStore_getPremiumInfo_args {
1252
UserStore_getPremiumInfo_args() : authenticationToken("") {
1255
virtual ~UserStore_getPremiumInfo_args() throw() {}
1257
std::string authenticationToken;
1259
_UserStore_getPremiumInfo_args__isset __isset;
1261
bool operator == (const UserStore_getPremiumInfo_args & rhs) const
1263
if (!(authenticationToken == rhs.authenticationToken))
1267
bool operator != (const UserStore_getPremiumInfo_args &rhs) const {
1268
return !(*this == rhs);
1271
bool operator < (const UserStore_getPremiumInfo_args & ) const;
1273
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
1274
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
1279
class UserStore_getPremiumInfo_pargs {
1283
virtual ~UserStore_getPremiumInfo_pargs() throw() {}
1285
const std::string* authenticationToken;
1287
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
1291
typedef struct _UserStore_getPremiumInfo_result__isset {
1292
_UserStore_getPremiumInfo_result__isset() : success(false), userException(false), systemException(false) {}
1295
bool systemException;
1296
} _UserStore_getPremiumInfo_result__isset;
1298
class UserStore_getPremiumInfo_result {
1301
UserStore_getPremiumInfo_result() {
1304
virtual ~UserStore_getPremiumInfo_result() throw() {}
1306
evernote::edam::PremiumInfo success;
1307
evernote::edam::EDAMUserException userException;
1308
evernote::edam::EDAMSystemException systemException;
1310
_UserStore_getPremiumInfo_result__isset __isset;
1312
bool operator == (const UserStore_getPremiumInfo_result & rhs) const
1314
if (!(success == rhs.success))
1316
if (!(userException == rhs.userException))
1318
if (!(systemException == rhs.systemException))
1322
bool operator != (const UserStore_getPremiumInfo_result &rhs) const {
1323
return !(*this == rhs);
1326
bool operator < (const UserStore_getPremiumInfo_result & ) const;
1328
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
1329
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
1333
typedef struct _UserStore_getPremiumInfo_presult__isset {
1334
_UserStore_getPremiumInfo_presult__isset() : success(false), userException(false), systemException(false) {}
1337
bool systemException;
1338
} _UserStore_getPremiumInfo_presult__isset;
1340
class UserStore_getPremiumInfo_presult {
1344
virtual ~UserStore_getPremiumInfo_presult() throw() {}
1346
evernote::edam::PremiumInfo* success;
1347
evernote::edam::EDAMUserException userException;
1348
evernote::edam::EDAMSystemException systemException;
1350
_UserStore_getPremiumInfo_presult__isset __isset;
1352
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
1356
typedef struct _UserStore_getNoteStoreUrl_args__isset {
1357
_UserStore_getNoteStoreUrl_args__isset() : authenticationToken(false) {}
1358
bool authenticationToken;
1359
} _UserStore_getNoteStoreUrl_args__isset;
1361
class UserStore_getNoteStoreUrl_args {
1364
UserStore_getNoteStoreUrl_args() : authenticationToken("") {
1367
virtual ~UserStore_getNoteStoreUrl_args() throw() {}
1369
std::string authenticationToken;
1371
_UserStore_getNoteStoreUrl_args__isset __isset;
1373
bool operator == (const UserStore_getNoteStoreUrl_args & rhs) const
1375
if (!(authenticationToken == rhs.authenticationToken))
1379
bool operator != (const UserStore_getNoteStoreUrl_args &rhs) const {
1380
return !(*this == rhs);
1383
bool operator < (const UserStore_getNoteStoreUrl_args & ) const;
1385
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
1386
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
1391
class UserStore_getNoteStoreUrl_pargs {
1395
virtual ~UserStore_getNoteStoreUrl_pargs() throw() {}
1397
const std::string* authenticationToken;
1399
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
1403
typedef struct _UserStore_getNoteStoreUrl_result__isset {
1404
_UserStore_getNoteStoreUrl_result__isset() : success(false), userException(false), systemException(false) {}
1407
bool systemException;
1408
} _UserStore_getNoteStoreUrl_result__isset;
1410
class UserStore_getNoteStoreUrl_result {
1413
UserStore_getNoteStoreUrl_result() : success("") {
1416
virtual ~UserStore_getNoteStoreUrl_result() throw() {}
1418
std::string success;
1419
evernote::edam::EDAMUserException userException;
1420
evernote::edam::EDAMSystemException systemException;
1422
_UserStore_getNoteStoreUrl_result__isset __isset;
1424
bool operator == (const UserStore_getNoteStoreUrl_result & rhs) const
1426
if (!(success == rhs.success))
1428
if (!(userException == rhs.userException))
1430
if (!(systemException == rhs.systemException))
1434
bool operator != (const UserStore_getNoteStoreUrl_result &rhs) const {
1435
return !(*this == rhs);
1438
bool operator < (const UserStore_getNoteStoreUrl_result & ) const;
1440
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
1441
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
1445
typedef struct _UserStore_getNoteStoreUrl_presult__isset {
1446
_UserStore_getNoteStoreUrl_presult__isset() : success(false), userException(false), systemException(false) {}
1449
bool systemException;
1450
} _UserStore_getNoteStoreUrl_presult__isset;
1452
class UserStore_getNoteStoreUrl_presult {
1456
virtual ~UserStore_getNoteStoreUrl_presult() throw() {}
1458
std::string* success;
1459
evernote::edam::EDAMUserException userException;
1460
evernote::edam::EDAMSystemException systemException;
1462
_UserStore_getNoteStoreUrl_presult__isset __isset;
1464
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
1468
class UserStoreClient : virtual public UserStoreIf {
1470
UserStoreClient(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> prot) :
1473
iprot_ = prot.get();
1474
oprot_ = prot.get();
1476
UserStoreClient(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> iprot, boost::shared_ptr< ::apache::thrift::protocol::TProtocol> oprot) :
1479
iprot_ = iprot.get();
1480
oprot_ = oprot.get();
1482
boost::shared_ptr< ::apache::thrift::protocol::TProtocol> getInputProtocol() {
1485
boost::shared_ptr< ::apache::thrift::protocol::TProtocol> getOutputProtocol() {
1488
bool checkVersion(const std::string& clientName, const int16_t edamVersionMajor, const int16_t edamVersionMinor);
1489
void send_checkVersion(const std::string& clientName, const int16_t edamVersionMajor, const int16_t edamVersionMinor);
1490
bool recv_checkVersion();
1491
void getBootstrapInfo(BootstrapInfo& _return, const std::string& locale);
1492
void send_getBootstrapInfo(const std::string& locale);
1493
void recv_getBootstrapInfo(BootstrapInfo& _return);
1494
void authenticate(AuthenticationResult& _return, const std::string& username, const std::string& password, const std::string& consumerKey, const std::string& consumerSecret, const bool supportsTwoFactor);
1495
void send_authenticate(const std::string& username, const std::string& password, const std::string& consumerKey, const std::string& consumerSecret, const bool supportsTwoFactor);
1496
void recv_authenticate(AuthenticationResult& _return);
1497
void authenticateLongSession(AuthenticationResult& _return, const std::string& username, const std::string& password, const std::string& consumerKey, const std::string& consumerSecret, const std::string& deviceIdentifier, const std::string& deviceDescription, const bool supportsTwoFactor);
1498
void send_authenticateLongSession(const std::string& username, const std::string& password, const std::string& consumerKey, const std::string& consumerSecret, const std::string& deviceIdentifier, const std::string& deviceDescription, const bool supportsTwoFactor);
1499
void recv_authenticateLongSession(AuthenticationResult& _return);
1500
void completeTwoFactorAuthentication(AuthenticationResult& _return, const std::string& authenticationToken, const std::string& oneTimeCode, const std::string& deviceIdentifier, const std::string& deviceDescription);
1501
void send_completeTwoFactorAuthentication(const std::string& authenticationToken, const std::string& oneTimeCode, const std::string& deviceIdentifier, const std::string& deviceDescription);
1502
void recv_completeTwoFactorAuthentication(AuthenticationResult& _return);
1503
void revokeLongSession(const std::string& authenticationToken);
1504
void send_revokeLongSession(const std::string& authenticationToken);
1505
void recv_revokeLongSession();
1506
void authenticateToBusiness(AuthenticationResult& _return, const std::string& authenticationToken);
1507
void send_authenticateToBusiness(const std::string& authenticationToken);
1508
void recv_authenticateToBusiness(AuthenticationResult& _return);
1509
void refreshAuthentication(AuthenticationResult& _return, const std::string& authenticationToken);
1510
void send_refreshAuthentication(const std::string& authenticationToken);
1511
void recv_refreshAuthentication(AuthenticationResult& _return);
1512
void getUser(evernote::edam::User& _return, const std::string& authenticationToken);
1513
void send_getUser(const std::string& authenticationToken);
1514
void recv_getUser(evernote::edam::User& _return);
1515
void getPublicUserInfo(PublicUserInfo& _return, const std::string& username);
1516
void send_getPublicUserInfo(const std::string& username);
1517
void recv_getPublicUserInfo(PublicUserInfo& _return);
1518
void getPremiumInfo(evernote::edam::PremiumInfo& _return, const std::string& authenticationToken);
1519
void send_getPremiumInfo(const std::string& authenticationToken);
1520
void recv_getPremiumInfo(evernote::edam::PremiumInfo& _return);
1521
void getNoteStoreUrl(std::string& _return, const std::string& authenticationToken);
1522
void send_getNoteStoreUrl(const std::string& authenticationToken);
1523
void recv_getNoteStoreUrl(std::string& _return);
1525
boost::shared_ptr< ::apache::thrift::protocol::TProtocol> piprot_;
1526
boost::shared_ptr< ::apache::thrift::protocol::TProtocol> poprot_;
1527
::apache::thrift::protocol::TProtocol* iprot_;
1528
::apache::thrift::protocol::TProtocol* oprot_;
1531
class UserStoreProcessor : virtual public ::apache::thrift::TProcessor {
1533
boost::shared_ptr<UserStoreIf> iface_;
1534
virtual bool process_fn(::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, std::string& fname, int32_t seqid);
1536
std::map<std::string, void (UserStoreProcessor::*)(int32_t, ::apache::thrift::protocol::TProtocol*, ::apache::thrift::protocol::TProtocol*)> processMap_;
1537
void process_checkVersion(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot);
1538
void process_getBootstrapInfo(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot);
1539
void process_authenticate(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot);
1540
void process_authenticateLongSession(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot);
1541
void process_completeTwoFactorAuthentication(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot);
1542
void process_revokeLongSession(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot);
1543
void process_authenticateToBusiness(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot);
1544
void process_refreshAuthentication(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot);
1545
void process_getUser(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot);
1546
void process_getPublicUserInfo(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot);
1547
void process_getPremiumInfo(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot);
1548
void process_getNoteStoreUrl(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot);
1550
UserStoreProcessor(boost::shared_ptr<UserStoreIf> iface) :
1552
processMap_["checkVersion"] = &UserStoreProcessor::process_checkVersion;
1553
processMap_["getBootstrapInfo"] = &UserStoreProcessor::process_getBootstrapInfo;
1554
processMap_["authenticate"] = &UserStoreProcessor::process_authenticate;
1555
processMap_["authenticateLongSession"] = &UserStoreProcessor::process_authenticateLongSession;
1556
processMap_["completeTwoFactorAuthentication"] = &UserStoreProcessor::process_completeTwoFactorAuthentication;
1557
processMap_["revokeLongSession"] = &UserStoreProcessor::process_revokeLongSession;
1558
processMap_["authenticateToBusiness"] = &UserStoreProcessor::process_authenticateToBusiness;
1559
processMap_["refreshAuthentication"] = &UserStoreProcessor::process_refreshAuthentication;
1560
processMap_["getUser"] = &UserStoreProcessor::process_getUser;
1561
processMap_["getPublicUserInfo"] = &UserStoreProcessor::process_getPublicUserInfo;
1562
processMap_["getPremiumInfo"] = &UserStoreProcessor::process_getPremiumInfo;
1563
processMap_["getNoteStoreUrl"] = &UserStoreProcessor::process_getNoteStoreUrl;
1566
virtual bool process(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> piprot, boost::shared_ptr< ::apache::thrift::protocol::TProtocol> poprot);
1567
virtual ~UserStoreProcessor() {}
1570
class UserStoreMultiface : virtual public UserStoreIf {
1572
UserStoreMultiface(std::vector<boost::shared_ptr<UserStoreIf> >& ifaces) : ifaces_(ifaces) {
1574
virtual ~UserStoreMultiface() {}
1576
std::vector<boost::shared_ptr<UserStoreIf> > ifaces_;
1577
UserStoreMultiface() {}
1578
void add(boost::shared_ptr<UserStoreIf> iface) {
1579
ifaces_.push_back(iface);
1582
bool checkVersion(const std::string& clientName, const int16_t edamVersionMajor, const int16_t edamVersionMinor) {
1583
uint32_t sz = ifaces_.size();
1584
for (uint32_t i = 0; i < sz; ++i) {
1586
return ifaces_[i]->checkVersion(clientName, edamVersionMajor, edamVersionMinor);
1588
ifaces_[i]->checkVersion(clientName, edamVersionMajor, edamVersionMinor);
1593
void getBootstrapInfo(BootstrapInfo& _return, const std::string& locale) {
1594
uint32_t sz = ifaces_.size();
1595
for (uint32_t i = 0; i < sz; ++i) {
1597
ifaces_[i]->getBootstrapInfo(_return, locale);
1600
ifaces_[i]->getBootstrapInfo(_return, locale);
1605
void authenticate(AuthenticationResult& _return, const std::string& username, const std::string& password, const std::string& consumerKey, const std::string& consumerSecret, const bool supportsTwoFactor) {
1606
uint32_t sz = ifaces_.size();
1607
for (uint32_t i = 0; i < sz; ++i) {
1609
ifaces_[i]->authenticate(_return, username, password, consumerKey, consumerSecret, supportsTwoFactor);
1612
ifaces_[i]->authenticate(_return, username, password, consumerKey, consumerSecret, supportsTwoFactor);
1617
void authenticateLongSession(AuthenticationResult& _return, const std::string& username, const std::string& password, const std::string& consumerKey, const std::string& consumerSecret, const std::string& deviceIdentifier, const std::string& deviceDescription, const bool supportsTwoFactor) {
1618
uint32_t sz = ifaces_.size();
1619
for (uint32_t i = 0; i < sz; ++i) {
1621
ifaces_[i]->authenticateLongSession(_return, username, password, consumerKey, consumerSecret, deviceIdentifier, deviceDescription, supportsTwoFactor);
1624
ifaces_[i]->authenticateLongSession(_return, username, password, consumerKey, consumerSecret, deviceIdentifier, deviceDescription, supportsTwoFactor);
1629
void completeTwoFactorAuthentication(AuthenticationResult& _return, const std::string& authenticationToken, const std::string& oneTimeCode, const std::string& deviceIdentifier, const std::string& deviceDescription) {
1630
uint32_t sz = ifaces_.size();
1631
for (uint32_t i = 0; i < sz; ++i) {
1633
ifaces_[i]->completeTwoFactorAuthentication(_return, authenticationToken, oneTimeCode, deviceIdentifier, deviceDescription);
1636
ifaces_[i]->completeTwoFactorAuthentication(_return, authenticationToken, oneTimeCode, deviceIdentifier, deviceDescription);
1641
void revokeLongSession(const std::string& authenticationToken) {
1642
uint32_t sz = ifaces_.size();
1643
for (uint32_t i = 0; i < sz; ++i) {
1644
ifaces_[i]->revokeLongSession(authenticationToken);
1648
void authenticateToBusiness(AuthenticationResult& _return, const std::string& authenticationToken) {
1649
uint32_t sz = ifaces_.size();
1650
for (uint32_t i = 0; i < sz; ++i) {
1652
ifaces_[i]->authenticateToBusiness(_return, authenticationToken);
1655
ifaces_[i]->authenticateToBusiness(_return, authenticationToken);
1660
void refreshAuthentication(AuthenticationResult& _return, const std::string& authenticationToken) {
1661
uint32_t sz = ifaces_.size();
1662
for (uint32_t i = 0; i < sz; ++i) {
1664
ifaces_[i]->refreshAuthentication(_return, authenticationToken);
1667
ifaces_[i]->refreshAuthentication(_return, authenticationToken);
1672
void getUser(evernote::edam::User& _return, const std::string& authenticationToken) {
1673
uint32_t sz = ifaces_.size();
1674
for (uint32_t i = 0; i < sz; ++i) {
1676
ifaces_[i]->getUser(_return, authenticationToken);
1679
ifaces_[i]->getUser(_return, authenticationToken);
1684
void getPublicUserInfo(PublicUserInfo& _return, const std::string& username) {
1685
uint32_t sz = ifaces_.size();
1686
for (uint32_t i = 0; i < sz; ++i) {
1688
ifaces_[i]->getPublicUserInfo(_return, username);
1691
ifaces_[i]->getPublicUserInfo(_return, username);
1696
void getPremiumInfo(evernote::edam::PremiumInfo& _return, const std::string& authenticationToken) {
1697
uint32_t sz = ifaces_.size();
1698
for (uint32_t i = 0; i < sz; ++i) {
1700
ifaces_[i]->getPremiumInfo(_return, authenticationToken);
1703
ifaces_[i]->getPremiumInfo(_return, authenticationToken);
1708
void getNoteStoreUrl(std::string& _return, const std::string& authenticationToken) {
1709
uint32_t sz = ifaces_.size();
1710
for (uint32_t i = 0; i < sz; ++i) {
1712
ifaces_[i]->getNoteStoreUrl(_return, authenticationToken);
1715
ifaces_[i]->getNoteStoreUrl(_return, authenticationToken);