/Classes/ShareKit/Sharers/Services/Evernote/Helpers/edam/UserStore.m

https://github.com/Punnya/ShareKit_Posterous · Objective C · 1889 lines · 1642 code · 242 blank · 5 comment · 220 complexity · 2cbcf1e48a89a4e6c3cbd8fb11162118 MD5 · raw file

  1. /**
  2. * Autogenerated by Thrift
  3. *
  4. * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  5. */
  6. #import <Foundation/Foundation.h>
  7. #import "TProtocol.h"
  8. #import "TApplicationException.h"
  9. #import "TProtocolUtil.h"
  10. #import "TProcessor.h"
  11. #import "Types.h"
  12. #import "Errors.h"
  13. #import "UserStore.h"
  14. static int16_t EDAMEDAM_VERSION_MAJOR = 1;
  15. static int16_t EDAMEDAM_VERSION_MINOR = 16;
  16. @implementation EDAMUserStoreConstants
  17. + (void) initialize {
  18. }
  19. + (int16_t) EDAM_VERSION_MAJOR{
  20. return EDAMEDAM_VERSION_MAJOR;
  21. }
  22. + (int16_t) EDAM_VERSION_MINOR{
  23. return EDAMEDAM_VERSION_MINOR;
  24. }
  25. @end
  26. @implementation EDAMPublicUserInfo
  27. #if TARGET_OS_IPHONE || (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5)
  28. @dynamic userId;
  29. @dynamic shardId;
  30. @dynamic privilege;
  31. @dynamic username;
  32. #endif
  33. - (id) initWithUserId: (EDAMUserID) userId shardId: (NSString *) shardId privilege: (int) privilege username: (NSString *) username
  34. {
  35. self = [super init];
  36. __userId = userId;
  37. __userId_isset = YES;
  38. __shardId = [shardId retain];
  39. __shardId_isset = YES;
  40. __privilege = privilege;
  41. __privilege_isset = YES;
  42. __username = [username retain];
  43. __username_isset = YES;
  44. return self;
  45. }
  46. - (id) initWithCoder: (NSCoder *) decoder
  47. {
  48. self = [super init];
  49. if ([decoder containsValueForKey: @"userId"])
  50. {
  51. __userId = [decoder decodeInt32ForKey: @"userId"];
  52. __userId_isset = YES;
  53. }
  54. if ([decoder containsValueForKey: @"shardId"])
  55. {
  56. __shardId = [[decoder decodeObjectForKey: @"shardId"] retain];
  57. __shardId_isset = YES;
  58. }
  59. if ([decoder containsValueForKey: @"privilege"])
  60. {
  61. __privilege = [decoder decodeIntForKey: @"privilege"];
  62. __privilege_isset = YES;
  63. }
  64. if ([decoder containsValueForKey: @"username"])
  65. {
  66. __username = [[decoder decodeObjectForKey: @"username"] retain];
  67. __username_isset = YES;
  68. }
  69. return self;
  70. }
  71. - (void) encodeWithCoder: (NSCoder *) encoder
  72. {
  73. if (__userId_isset)
  74. {
  75. [encoder encodeInt32: __userId forKey: @"userId"];
  76. }
  77. if (__shardId_isset)
  78. {
  79. [encoder encodeObject: __shardId forKey: @"shardId"];
  80. }
  81. if (__privilege_isset)
  82. {
  83. [encoder encodeInt: __privilege forKey: @"privilege"];
  84. }
  85. if (__username_isset)
  86. {
  87. [encoder encodeObject: __username forKey: @"username"];
  88. }
  89. }
  90. - (void) dealloc
  91. {
  92. [__shardId release];
  93. [__username release];
  94. [super dealloc];
  95. }
  96. - (int32_t) userId {
  97. return __userId;
  98. }
  99. - (void) setUserId: (int32_t) userId {
  100. __userId = userId;
  101. __userId_isset = YES;
  102. }
  103. - (BOOL) userIdIsSet {
  104. return __userId_isset;
  105. }
  106. - (void) unsetUserId {
  107. __userId_isset = NO;
  108. }
  109. - (NSString *) shardId {
  110. return [[__shardId retain] autorelease];
  111. }
  112. - (void) setShardId: (NSString *) shardId {
  113. [shardId retain];
  114. [__shardId release];
  115. __shardId = shardId;
  116. __shardId_isset = YES;
  117. }
  118. - (BOOL) shardIdIsSet {
  119. return __shardId_isset;
  120. }
  121. - (void) unsetShardId {
  122. [__shardId release];
  123. __shardId = nil;
  124. __shardId_isset = NO;
  125. }
  126. - (int) privilege {
  127. return __privilege;
  128. }
  129. - (void) setPrivilege: (int) privilege {
  130. __privilege = privilege;
  131. __privilege_isset = YES;
  132. }
  133. - (BOOL) privilegeIsSet {
  134. return __privilege_isset;
  135. }
  136. - (void) unsetPrivilege {
  137. __privilege_isset = NO;
  138. }
  139. - (NSString *) username {
  140. return [[__username retain] autorelease];
  141. }
  142. - (void) setUsername: (NSString *) username {
  143. [username retain];
  144. [__username release];
  145. __username = username;
  146. __username_isset = YES;
  147. }
  148. - (BOOL) usernameIsSet {
  149. return __username_isset;
  150. }
  151. - (void) unsetUsername {
  152. [__username release];
  153. __username = nil;
  154. __username_isset = NO;
  155. }
  156. - (void) read: (id <TProtocol>) inProtocol
  157. {
  158. NSString * fieldName;
  159. int fieldType;
  160. int fieldID;
  161. [inProtocol readStructBeginReturningName: NULL];
  162. while (true)
  163. {
  164. [inProtocol readFieldBeginReturningName: &fieldName type: &fieldType fieldID: &fieldID];
  165. if (fieldType == TType_STOP) {
  166. break;
  167. }
  168. switch (fieldID)
  169. {
  170. case 1:
  171. if (fieldType == TType_I32) {
  172. int32_t fieldValue = [inProtocol readI32];
  173. [self setUserId: fieldValue];
  174. } else {
  175. [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
  176. }
  177. break;
  178. case 2:
  179. if (fieldType == TType_STRING) {
  180. NSString * fieldValue = [inProtocol readString];
  181. [self setShardId: fieldValue];
  182. } else {
  183. [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
  184. }
  185. break;
  186. case 3:
  187. if (fieldType == TType_I32) {
  188. int fieldValue = [inProtocol readI32];
  189. [self setPrivilege: fieldValue];
  190. } else {
  191. [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
  192. }
  193. break;
  194. case 4:
  195. if (fieldType == TType_STRING) {
  196. NSString * fieldValue = [inProtocol readString];
  197. [self setUsername: fieldValue];
  198. } else {
  199. [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
  200. }
  201. break;
  202. default:
  203. [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
  204. break;
  205. }
  206. [inProtocol readFieldEnd];
  207. }
  208. [inProtocol readStructEnd];
  209. }
  210. - (void) write: (id <TProtocol>) outProtocol {
  211. [outProtocol writeStructBeginWithName: @"PublicUserInfo"];
  212. if (__userId_isset) {
  213. [outProtocol writeFieldBeginWithName: @"userId" type: TType_I32 fieldID: 1];
  214. [outProtocol writeI32: __userId];
  215. [outProtocol writeFieldEnd];
  216. }
  217. if (__shardId_isset) {
  218. if (__shardId != nil) {
  219. [outProtocol writeFieldBeginWithName: @"shardId" type: TType_STRING fieldID: 2];
  220. [outProtocol writeString: __shardId];
  221. [outProtocol writeFieldEnd];
  222. }
  223. }
  224. if (__privilege_isset) {
  225. [outProtocol writeFieldBeginWithName: @"privilege" type: TType_I32 fieldID: 3];
  226. [outProtocol writeI32: __privilege];
  227. [outProtocol writeFieldEnd];
  228. }
  229. if (__username_isset) {
  230. if (__username != nil) {
  231. [outProtocol writeFieldBeginWithName: @"username" type: TType_STRING fieldID: 4];
  232. [outProtocol writeString: __username];
  233. [outProtocol writeFieldEnd];
  234. }
  235. }
  236. [outProtocol writeFieldStop];
  237. [outProtocol writeStructEnd];
  238. }
  239. - (NSString *) description {
  240. NSMutableString * ms = [NSMutableString stringWithString: @"PublicUserInfo("];
  241. [ms appendString: @"userId:"];
  242. [ms appendFormat: @"%i", __userId];
  243. [ms appendString: @",shardId:"];
  244. [ms appendFormat: @"\"%@\"", __shardId];
  245. [ms appendString: @",privilege:"];
  246. [ms appendFormat: @"%i", __privilege];
  247. [ms appendString: @",username:"];
  248. [ms appendFormat: @"\"%@\"", __username];
  249. [ms appendString: @")"];
  250. return [NSString stringWithString: ms];
  251. }
  252. @end
  253. @implementation EDAMAuthenticationResult
  254. #if TARGET_OS_IPHONE || (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5)
  255. @dynamic currentTime;
  256. @dynamic authenticationToken;
  257. @dynamic expiration;
  258. @dynamic user;
  259. @dynamic publicUserInfo;
  260. #endif
  261. - (id) initWithCurrentTime: (EDAMTimestamp) currentTime authenticationToken: (NSString *) authenticationToken expiration: (EDAMTimestamp) expiration user: (EDAMUser *) user publicUserInfo: (EDAMPublicUserInfo *) publicUserInfo
  262. {
  263. self = [super init];
  264. __currentTime = currentTime;
  265. __currentTime_isset = YES;
  266. __authenticationToken = [authenticationToken retain];
  267. __authenticationToken_isset = YES;
  268. __expiration = expiration;
  269. __expiration_isset = YES;
  270. __user = [user retain];
  271. __user_isset = YES;
  272. __publicUserInfo = [publicUserInfo retain];
  273. __publicUserInfo_isset = YES;
  274. return self;
  275. }
  276. - (id) initWithCoder: (NSCoder *) decoder
  277. {
  278. self = [super init];
  279. if ([decoder containsValueForKey: @"currentTime"])
  280. {
  281. __currentTime = [decoder decodeInt64ForKey: @"currentTime"];
  282. __currentTime_isset = YES;
  283. }
  284. if ([decoder containsValueForKey: @"authenticationToken"])
  285. {
  286. __authenticationToken = [[decoder decodeObjectForKey: @"authenticationToken"] retain];
  287. __authenticationToken_isset = YES;
  288. }
  289. if ([decoder containsValueForKey: @"expiration"])
  290. {
  291. __expiration = [decoder decodeInt64ForKey: @"expiration"];
  292. __expiration_isset = YES;
  293. }
  294. if ([decoder containsValueForKey: @"user"])
  295. {
  296. __user = [[decoder decodeObjectForKey: @"user"] retain];
  297. __user_isset = YES;
  298. }
  299. if ([decoder containsValueForKey: @"publicUserInfo"])
  300. {
  301. __publicUserInfo = [[decoder decodeObjectForKey: @"publicUserInfo"] retain];
  302. __publicUserInfo_isset = YES;
  303. }
  304. return self;
  305. }
  306. - (void) encodeWithCoder: (NSCoder *) encoder
  307. {
  308. if (__currentTime_isset)
  309. {
  310. [encoder encodeInt64: __currentTime forKey: @"currentTime"];
  311. }
  312. if (__authenticationToken_isset)
  313. {
  314. [encoder encodeObject: __authenticationToken forKey: @"authenticationToken"];
  315. }
  316. if (__expiration_isset)
  317. {
  318. [encoder encodeInt64: __expiration forKey: @"expiration"];
  319. }
  320. if (__user_isset)
  321. {
  322. [encoder encodeObject: __user forKey: @"user"];
  323. }
  324. if (__publicUserInfo_isset)
  325. {
  326. [encoder encodeObject: __publicUserInfo forKey: @"publicUserInfo"];
  327. }
  328. }
  329. - (void) dealloc
  330. {
  331. [__authenticationToken release];
  332. [__user release];
  333. [__publicUserInfo release];
  334. [super dealloc];
  335. }
  336. - (int64_t) currentTime {
  337. return __currentTime;
  338. }
  339. - (void) setCurrentTime: (int64_t) currentTime {
  340. __currentTime = currentTime;
  341. __currentTime_isset = YES;
  342. }
  343. - (BOOL) currentTimeIsSet {
  344. return __currentTime_isset;
  345. }
  346. - (void) unsetCurrentTime {
  347. __currentTime_isset = NO;
  348. }
  349. - (NSString *) authenticationToken {
  350. return [[__authenticationToken retain] autorelease];
  351. }
  352. - (void) setAuthenticationToken: (NSString *) authenticationToken {
  353. [authenticationToken retain];
  354. [__authenticationToken release];
  355. __authenticationToken = authenticationToken;
  356. __authenticationToken_isset = YES;
  357. }
  358. - (BOOL) authenticationTokenIsSet {
  359. return __authenticationToken_isset;
  360. }
  361. - (void) unsetAuthenticationToken {
  362. [__authenticationToken release];
  363. __authenticationToken = nil;
  364. __authenticationToken_isset = NO;
  365. }
  366. - (int64_t) expiration {
  367. return __expiration;
  368. }
  369. - (void) setExpiration: (int64_t) expiration {
  370. __expiration = expiration;
  371. __expiration_isset = YES;
  372. }
  373. - (BOOL) expirationIsSet {
  374. return __expiration_isset;
  375. }
  376. - (void) unsetExpiration {
  377. __expiration_isset = NO;
  378. }
  379. - (EDAMUser *) user {
  380. return [[__user retain] autorelease];
  381. }
  382. - (void) setUser: (EDAMUser *) user {
  383. [user retain];
  384. [__user release];
  385. __user = user;
  386. __user_isset = YES;
  387. }
  388. - (BOOL) userIsSet {
  389. return __user_isset;
  390. }
  391. - (void) unsetUser {
  392. [__user release];
  393. __user = nil;
  394. __user_isset = NO;
  395. }
  396. - (EDAMPublicUserInfo *) publicUserInfo {
  397. return [[__publicUserInfo retain] autorelease];
  398. }
  399. - (void) setPublicUserInfo: (EDAMPublicUserInfo *) publicUserInfo {
  400. [publicUserInfo retain];
  401. [__publicUserInfo release];
  402. __publicUserInfo = publicUserInfo;
  403. __publicUserInfo_isset = YES;
  404. }
  405. - (BOOL) publicUserInfoIsSet {
  406. return __publicUserInfo_isset;
  407. }
  408. - (void) unsetPublicUserInfo {
  409. [__publicUserInfo release];
  410. __publicUserInfo = nil;
  411. __publicUserInfo_isset = NO;
  412. }
  413. - (void) read: (id <TProtocol>) inProtocol
  414. {
  415. NSString * fieldName;
  416. int fieldType;
  417. int fieldID;
  418. [inProtocol readStructBeginReturningName: NULL];
  419. while (true)
  420. {
  421. [inProtocol readFieldBeginReturningName: &fieldName type: &fieldType fieldID: &fieldID];
  422. if (fieldType == TType_STOP) {
  423. break;
  424. }
  425. switch (fieldID)
  426. {
  427. case 1:
  428. if (fieldType == TType_I64) {
  429. int64_t fieldValue = [inProtocol readI64];
  430. [self setCurrentTime: fieldValue];
  431. } else {
  432. [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
  433. }
  434. break;
  435. case 2:
  436. if (fieldType == TType_STRING) {
  437. NSString * fieldValue = [inProtocol readString];
  438. [self setAuthenticationToken: fieldValue];
  439. } else {
  440. [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
  441. }
  442. break;
  443. case 3:
  444. if (fieldType == TType_I64) {
  445. int64_t fieldValue = [inProtocol readI64];
  446. [self setExpiration: fieldValue];
  447. } else {
  448. [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
  449. }
  450. break;
  451. case 4:
  452. if (fieldType == TType_STRUCT) {
  453. EDAMUser *fieldValue = [[EDAMUser alloc] init];
  454. [fieldValue read: inProtocol];
  455. [self setUser: fieldValue];
  456. [fieldValue release];
  457. } else {
  458. [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
  459. }
  460. break;
  461. case 5:
  462. if (fieldType == TType_STRUCT) {
  463. EDAMPublicUserInfo *fieldValue = [[EDAMPublicUserInfo alloc] init];
  464. [fieldValue read: inProtocol];
  465. [self setPublicUserInfo: fieldValue];
  466. [fieldValue release];
  467. } else {
  468. [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
  469. }
  470. break;
  471. default:
  472. [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
  473. break;
  474. }
  475. [inProtocol readFieldEnd];
  476. }
  477. [inProtocol readStructEnd];
  478. }
  479. - (void) write: (id <TProtocol>) outProtocol {
  480. [outProtocol writeStructBeginWithName: @"AuthenticationResult"];
  481. if (__currentTime_isset) {
  482. [outProtocol writeFieldBeginWithName: @"currentTime" type: TType_I64 fieldID: 1];
  483. [outProtocol writeI64: __currentTime];
  484. [outProtocol writeFieldEnd];
  485. }
  486. if (__authenticationToken_isset) {
  487. if (__authenticationToken != nil) {
  488. [outProtocol writeFieldBeginWithName: @"authenticationToken" type: TType_STRING fieldID: 2];
  489. [outProtocol writeString: __authenticationToken];
  490. [outProtocol writeFieldEnd];
  491. }
  492. }
  493. if (__expiration_isset) {
  494. [outProtocol writeFieldBeginWithName: @"expiration" type: TType_I64 fieldID: 3];
  495. [outProtocol writeI64: __expiration];
  496. [outProtocol writeFieldEnd];
  497. }
  498. if (__user_isset) {
  499. if (__user != nil) {
  500. [outProtocol writeFieldBeginWithName: @"user" type: TType_STRUCT fieldID: 4];
  501. [__user write: outProtocol];
  502. [outProtocol writeFieldEnd];
  503. }
  504. }
  505. if (__publicUserInfo_isset) {
  506. if (__publicUserInfo != nil) {
  507. [outProtocol writeFieldBeginWithName: @"publicUserInfo" type: TType_STRUCT fieldID: 5];
  508. [__publicUserInfo write: outProtocol];
  509. [outProtocol writeFieldEnd];
  510. }
  511. }
  512. [outProtocol writeFieldStop];
  513. [outProtocol writeStructEnd];
  514. }
  515. - (NSString *) description {
  516. NSMutableString * ms = [NSMutableString stringWithString: @"AuthenticationResult("];
  517. [ms appendString: @"currentTime:"];
  518. [ms appendFormat: @"%qi", __currentTime];
  519. [ms appendString: @",authenticationToken:"];
  520. [ms appendFormat: @"\"%@\"", __authenticationToken];
  521. [ms appendString: @",expiration:"];
  522. [ms appendFormat: @"%qi", __expiration];
  523. [ms appendString: @",user:"];
  524. [ms appendFormat: @"%@", __user];
  525. [ms appendString: @",publicUserInfo:"];
  526. [ms appendFormat: @"%@", __publicUserInfo];
  527. [ms appendString: @")"];
  528. return [NSString stringWithString: ms];
  529. }
  530. @end
  531. @interface EDAMcheckVersion_args : NSObject <NSCoding> {
  532. NSString * __clientName;
  533. int16_t __edamVersionMajor;
  534. int16_t __edamVersionMinor;
  535. BOOL __clientName_isset;
  536. BOOL __edamVersionMajor_isset;
  537. BOOL __edamVersionMinor_isset;
  538. }
  539. #if TARGET_OS_IPHONE || (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5)
  540. @property (nonatomic, retain, getter=clientName, setter=setClientName:) NSString * clientName;
  541. @property (nonatomic, getter=edamVersionMajor, setter=setEdamVersionMajor:) int16_t edamVersionMajor;
  542. @property (nonatomic, getter=edamVersionMinor, setter=setEdamVersionMinor:) int16_t edamVersionMinor;
  543. #endif
  544. - (id) initWithClientName: (NSString *) clientName edamVersionMajor: (int16_t) edamVersionMajor edamVersionMinor: (int16_t) edamVersionMinor;
  545. - (void) read: (id <TProtocol>) inProtocol;
  546. - (void) write: (id <TProtocol>) outProtocol;
  547. - (NSString *) clientName;
  548. - (void) setClientName: (NSString *) clientName;
  549. - (BOOL) clientNameIsSet;
  550. - (int16_t) edamVersionMajor;
  551. - (void) setEdamVersionMajor: (int16_t) edamVersionMajor;
  552. - (BOOL) edamVersionMajorIsSet;
  553. - (int16_t) edamVersionMinor;
  554. - (void) setEdamVersionMinor: (int16_t) edamVersionMinor;
  555. - (BOOL) edamVersionMinorIsSet;
  556. @end
  557. @implementation EDAMcheckVersion_args
  558. #if TARGET_OS_IPHONE || (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5)
  559. @dynamic clientName;
  560. @dynamic edamVersionMajor;
  561. @dynamic edamVersionMinor;
  562. #endif
  563. - (id) initWithClientName: (NSString *) clientName edamVersionMajor: (int16_t) edamVersionMajor edamVersionMinor: (int16_t) edamVersionMinor
  564. {
  565. self = [super init];
  566. __clientName = [clientName retain];
  567. __clientName_isset = YES;
  568. __edamVersionMajor = edamVersionMajor;
  569. __edamVersionMajor_isset = YES;
  570. __edamVersionMinor = edamVersionMinor;
  571. __edamVersionMinor_isset = YES;
  572. return self;
  573. }
  574. - (id) initWithCoder: (NSCoder *) decoder
  575. {
  576. self = [super init];
  577. if ([decoder containsValueForKey: @"clientName"])
  578. {
  579. __clientName = [[decoder decodeObjectForKey: @"clientName"] retain];
  580. __clientName_isset = YES;
  581. }
  582. if ([decoder containsValueForKey: @"edamVersionMajor"])
  583. {
  584. __edamVersionMajor = [decoder decodeIntForKey: @"edamVersionMajor"];
  585. __edamVersionMajor_isset = YES;
  586. }
  587. if ([decoder containsValueForKey: @"edamVersionMinor"])
  588. {
  589. __edamVersionMinor = [decoder decodeIntForKey: @"edamVersionMinor"];
  590. __edamVersionMinor_isset = YES;
  591. }
  592. return self;
  593. }
  594. - (void) encodeWithCoder: (NSCoder *) encoder
  595. {
  596. if (__clientName_isset)
  597. {
  598. [encoder encodeObject: __clientName forKey: @"clientName"];
  599. }
  600. if (__edamVersionMajor_isset)
  601. {
  602. [encoder encodeInt: __edamVersionMajor forKey: @"edamVersionMajor"];
  603. }
  604. if (__edamVersionMinor_isset)
  605. {
  606. [encoder encodeInt: __edamVersionMinor forKey: @"edamVersionMinor"];
  607. }
  608. }
  609. - (void) dealloc
  610. {
  611. [__clientName release];
  612. [super dealloc];
  613. }
  614. - (NSString *) clientName {
  615. return [[__clientName retain] autorelease];
  616. }
  617. - (void) setClientName: (NSString *) clientName {
  618. [clientName retain];
  619. [__clientName release];
  620. __clientName = clientName;
  621. __clientName_isset = YES;
  622. }
  623. - (BOOL) clientNameIsSet {
  624. return __clientName_isset;
  625. }
  626. - (void) unsetClientName {
  627. [__clientName release];
  628. __clientName = nil;
  629. __clientName_isset = NO;
  630. }
  631. - (int16_t) edamVersionMajor {
  632. return __edamVersionMajor;
  633. }
  634. - (void) setEdamVersionMajor: (int16_t) edamVersionMajor {
  635. __edamVersionMajor = edamVersionMajor;
  636. __edamVersionMajor_isset = YES;
  637. }
  638. - (BOOL) edamVersionMajorIsSet {
  639. return __edamVersionMajor_isset;
  640. }
  641. - (void) unsetEdamVersionMajor {
  642. __edamVersionMajor_isset = NO;
  643. }
  644. - (int16_t) edamVersionMinor {
  645. return __edamVersionMinor;
  646. }
  647. - (void) setEdamVersionMinor: (int16_t) edamVersionMinor {
  648. __edamVersionMinor = edamVersionMinor;
  649. __edamVersionMinor_isset = YES;
  650. }
  651. - (BOOL) edamVersionMinorIsSet {
  652. return __edamVersionMinor_isset;
  653. }
  654. - (void) unsetEdamVersionMinor {
  655. __edamVersionMinor_isset = NO;
  656. }
  657. - (void) read: (id <TProtocol>) inProtocol
  658. {
  659. NSString * fieldName;
  660. int fieldType;
  661. int fieldID;
  662. [inProtocol readStructBeginReturningName: NULL];
  663. while (true)
  664. {
  665. [inProtocol readFieldBeginReturningName: &fieldName type: &fieldType fieldID: &fieldID];
  666. if (fieldType == TType_STOP) {
  667. break;
  668. }
  669. switch (fieldID)
  670. {
  671. case 1:
  672. if (fieldType == TType_STRING) {
  673. NSString * fieldValue = [inProtocol readString];
  674. [self setClientName: fieldValue];
  675. } else {
  676. [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
  677. }
  678. break;
  679. case 2:
  680. if (fieldType == TType_I16) {
  681. int16_t fieldValue = [inProtocol readI16];
  682. [self setEdamVersionMajor: fieldValue];
  683. } else {
  684. [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
  685. }
  686. break;
  687. case 3:
  688. if (fieldType == TType_I16) {
  689. int16_t fieldValue = [inProtocol readI16];
  690. [self setEdamVersionMinor: fieldValue];
  691. } else {
  692. [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
  693. }
  694. break;
  695. default:
  696. [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
  697. break;
  698. }
  699. [inProtocol readFieldEnd];
  700. }
  701. [inProtocol readStructEnd];
  702. }
  703. - (void) write: (id <TProtocol>) outProtocol {
  704. [outProtocol writeStructBeginWithName: @"checkVersion_args"];
  705. if (__clientName_isset) {
  706. if (__clientName != nil) {
  707. [outProtocol writeFieldBeginWithName: @"clientName" type: TType_STRING fieldID: 1];
  708. [outProtocol writeString: __clientName];
  709. [outProtocol writeFieldEnd];
  710. }
  711. }
  712. if (__edamVersionMajor_isset) {
  713. [outProtocol writeFieldBeginWithName: @"edamVersionMajor" type: TType_I16 fieldID: 2];
  714. [outProtocol writeI16: __edamVersionMajor];
  715. [outProtocol writeFieldEnd];
  716. }
  717. if (__edamVersionMinor_isset) {
  718. [outProtocol writeFieldBeginWithName: @"edamVersionMinor" type: TType_I16 fieldID: 3];
  719. [outProtocol writeI16: __edamVersionMinor];
  720. [outProtocol writeFieldEnd];
  721. }
  722. [outProtocol writeFieldStop];
  723. [outProtocol writeStructEnd];
  724. }
  725. - (NSString *) description {
  726. NSMutableString * ms = [NSMutableString stringWithString: @"checkVersion_args("];
  727. [ms appendString: @"clientName:"];
  728. [ms appendFormat: @"\"%@\"", __clientName];
  729. [ms appendString: @",edamVersionMajor:"];
  730. [ms appendFormat: @"%hi", __edamVersionMajor];
  731. [ms appendString: @",edamVersionMinor:"];
  732. [ms appendFormat: @"%hi", __edamVersionMinor];
  733. [ms appendString: @")"];
  734. return [NSString stringWithString: ms];
  735. }
  736. @end
  737. @interface EDAMCheckVersion_result : NSObject <NSCoding> {
  738. BOOL __success;
  739. BOOL __success_isset;
  740. }
  741. #if TARGET_OS_IPHONE || (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5)
  742. @property (nonatomic, getter=success, setter=setSuccess:) BOOL success;
  743. #endif
  744. - (id) initWithSuccess: (BOOL) success;
  745. - (void) read: (id <TProtocol>) inProtocol;
  746. - (void) write: (id <TProtocol>) outProtocol;
  747. - (BOOL) success;
  748. - (void) setSuccess: (BOOL) success;
  749. - (BOOL) successIsSet;
  750. @end
  751. @implementation EDAMCheckVersion_result
  752. #if TARGET_OS_IPHONE || (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5)
  753. @dynamic success;
  754. #endif
  755. - (id) initWithSuccess: (BOOL) success
  756. {
  757. self = [super init];
  758. __success = success;
  759. __success_isset = YES;
  760. return self;
  761. }
  762. - (id) initWithCoder: (NSCoder *) decoder
  763. {
  764. self = [super init];
  765. if ([decoder containsValueForKey: @"success"])
  766. {
  767. __success = [decoder decodeBoolForKey: @"success"];
  768. __success_isset = YES;
  769. }
  770. return self;
  771. }
  772. - (void) encodeWithCoder: (NSCoder *) encoder
  773. {
  774. if (__success_isset)
  775. {
  776. [encoder encodeBool: __success forKey: @"success"];
  777. }
  778. }
  779. - (void) dealloc
  780. {
  781. [super dealloc];
  782. }
  783. - (BOOL) success {
  784. return __success;
  785. }
  786. - (void) setSuccess: (BOOL) success {
  787. __success = success;
  788. __success_isset = YES;
  789. }
  790. - (BOOL) successIsSet {
  791. return __success_isset;
  792. }
  793. - (void) unsetSuccess {
  794. __success_isset = NO;
  795. }
  796. - (void) read: (id <TProtocol>) inProtocol
  797. {
  798. NSString * fieldName;
  799. int fieldType;
  800. int fieldID;
  801. [inProtocol readStructBeginReturningName: NULL];
  802. while (true)
  803. {
  804. [inProtocol readFieldBeginReturningName: &fieldName type: &fieldType fieldID: &fieldID];
  805. if (fieldType == TType_STOP) {
  806. break;
  807. }
  808. switch (fieldID)
  809. {
  810. case 0:
  811. if (fieldType == TType_BOOL) {
  812. BOOL fieldValue = [inProtocol readBool];
  813. [self setSuccess: fieldValue];
  814. } else {
  815. [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
  816. }
  817. break;
  818. default:
  819. [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
  820. break;
  821. }
  822. [inProtocol readFieldEnd];
  823. }
  824. [inProtocol readStructEnd];
  825. }
  826. - (void) write: (id <TProtocol>) outProtocol {
  827. [outProtocol writeStructBeginWithName: @"CheckVersion_result"];
  828. if (__success_isset) {
  829. [outProtocol writeFieldBeginWithName: @"success" type: TType_BOOL fieldID: 0];
  830. [outProtocol writeBool: __success];
  831. [outProtocol writeFieldEnd];
  832. }
  833. [outProtocol writeFieldStop];
  834. [outProtocol writeStructEnd];
  835. }
  836. - (NSString *) description {
  837. NSMutableString * ms = [NSMutableString stringWithString: @"CheckVersion_result("];
  838. [ms appendString: @"success:"];
  839. [ms appendFormat: @"%i", __success];
  840. [ms appendString: @")"];
  841. return [NSString stringWithString: ms];
  842. }
  843. @end
  844. @interface EDAMauthenticate_args : NSObject <NSCoding> {
  845. NSString * __username;
  846. NSString * __password;
  847. NSString * __consumerKey;
  848. NSString * __consumerSecret;
  849. BOOL __username_isset;
  850. BOOL __password_isset;
  851. BOOL __consumerKey_isset;
  852. BOOL __consumerSecret_isset;
  853. }
  854. #if TARGET_OS_IPHONE || (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5)
  855. @property (nonatomic, retain, getter=username, setter=setUsername:) NSString * username;
  856. @property (nonatomic, retain, getter=password, setter=setPassword:) NSString * password;
  857. @property (nonatomic, retain, getter=consumerKey, setter=setConsumerKey:) NSString * consumerKey;
  858. @property (nonatomic, retain, getter=consumerSecret, setter=setConsumerSecret:) NSString * consumerSecret;
  859. #endif
  860. - (id) initWithUsername: (NSString *) username password: (NSString *) password consumerKey: (NSString *) consumerKey consumerSecret: (NSString *) consumerSecret;
  861. - (void) read: (id <TProtocol>) inProtocol;
  862. - (void) write: (id <TProtocol>) outProtocol;
  863. - (NSString *) username;
  864. - (void) setUsername: (NSString *) username;
  865. - (BOOL) usernameIsSet;
  866. - (NSString *) password;
  867. - (void) setPassword: (NSString *) password;
  868. - (BOOL) passwordIsSet;
  869. - (NSString *) consumerKey;
  870. - (void) setConsumerKey: (NSString *) consumerKey;
  871. - (BOOL) consumerKeyIsSet;
  872. - (NSString *) consumerSecret;
  873. - (void) setConsumerSecret: (NSString *) consumerSecret;
  874. - (BOOL) consumerSecretIsSet;
  875. @end
  876. @implementation EDAMauthenticate_args
  877. #if TARGET_OS_IPHONE || (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5)
  878. @dynamic username;
  879. @dynamic password;
  880. @dynamic consumerKey;
  881. @dynamic consumerSecret;
  882. #endif
  883. - (id) initWithUsername: (NSString *) username password: (NSString *) password consumerKey: (NSString *) consumerKey consumerSecret: (NSString *) consumerSecret
  884. {
  885. self = [super init];
  886. __username = [username retain];
  887. __username_isset = YES;
  888. __password = [password retain];
  889. __password_isset = YES;
  890. __consumerKey = [consumerKey retain];
  891. __consumerKey_isset = YES;
  892. __consumerSecret = [consumerSecret retain];
  893. __consumerSecret_isset = YES;
  894. return self;
  895. }
  896. - (id) initWithCoder: (NSCoder *) decoder
  897. {
  898. self = [super init];
  899. if ([decoder containsValueForKey: @"username"])
  900. {
  901. __username = [[decoder decodeObjectForKey: @"username"] retain];
  902. __username_isset = YES;
  903. }
  904. if ([decoder containsValueForKey: @"password"])
  905. {
  906. __password = [[decoder decodeObjectForKey: @"password"] retain];
  907. __password_isset = YES;
  908. }
  909. if ([decoder containsValueForKey: @"consumerKey"])
  910. {
  911. __consumerKey = [[decoder decodeObjectForKey: @"consumerKey"] retain];
  912. __consumerKey_isset = YES;
  913. }
  914. if ([decoder containsValueForKey: @"consumerSecret"])
  915. {
  916. __consumerSecret = [[decoder decodeObjectForKey: @"consumerSecret"] retain];
  917. __consumerSecret_isset = YES;
  918. }
  919. return self;
  920. }
  921. - (void) encodeWithCoder: (NSCoder *) encoder
  922. {
  923. if (__username_isset)
  924. {
  925. [encoder encodeObject: __username forKey: @"username"];
  926. }
  927. if (__password_isset)
  928. {
  929. [encoder encodeObject: __password forKey: @"password"];
  930. }
  931. if (__consumerKey_isset)
  932. {
  933. [encoder encodeObject: __consumerKey forKey: @"consumerKey"];
  934. }
  935. if (__consumerSecret_isset)
  936. {
  937. [encoder encodeObject: __consumerSecret forKey: @"consumerSecret"];
  938. }
  939. }
  940. - (void) dealloc
  941. {
  942. [__username release];
  943. [__password release];
  944. [__consumerKey release];
  945. [__consumerSecret release];
  946. [super dealloc];
  947. }
  948. - (NSString *) username {
  949. return [[__username retain] autorelease];
  950. }
  951. - (void) setUsername: (NSString *) username {
  952. [username retain];
  953. [__username release];
  954. __username = username;
  955. __username_isset = YES;
  956. }
  957. - (BOOL) usernameIsSet {
  958. return __username_isset;
  959. }
  960. - (void) unsetUsername {
  961. [__username release];
  962. __username = nil;
  963. __username_isset = NO;
  964. }
  965. - (NSString *) password {
  966. return [[__password retain] autorelease];
  967. }
  968. - (void) setPassword: (NSString *) password {
  969. [password retain];
  970. [__password release];
  971. __password = password;
  972. __password_isset = YES;
  973. }
  974. - (BOOL) passwordIsSet {
  975. return __password_isset;
  976. }
  977. - (void) unsetPassword {
  978. [__password release];
  979. __password = nil;
  980. __password_isset = NO;
  981. }
  982. - (NSString *) consumerKey {
  983. return [[__consumerKey retain] autorelease];
  984. }
  985. - (void) setConsumerKey: (NSString *) consumerKey {
  986. [consumerKey retain];
  987. [__consumerKey release];
  988. __consumerKey = consumerKey;
  989. __consumerKey_isset = YES;
  990. }
  991. - (BOOL) consumerKeyIsSet {
  992. return __consumerKey_isset;
  993. }
  994. - (void) unsetConsumerKey {
  995. [__consumerKey release];
  996. __consumerKey = nil;
  997. __consumerKey_isset = NO;
  998. }
  999. - (NSString *) consumerSecret {
  1000. return [[__consumerSecret retain] autorelease];
  1001. }
  1002. - (void) setConsumerSecret: (NSString *) consumerSecret {
  1003. [consumerSecret retain];
  1004. [__consumerSecret release];
  1005. __consumerSecret = consumerSecret;
  1006. __consumerSecret_isset = YES;
  1007. }
  1008. - (BOOL) consumerSecretIsSet {
  1009. return __consumerSecret_isset;
  1010. }
  1011. - (void) unsetConsumerSecret {
  1012. [__consumerSecret release];
  1013. __consumerSecret = nil;
  1014. __consumerSecret_isset = NO;
  1015. }
  1016. - (void) read: (id <TProtocol>) inProtocol
  1017. {
  1018. NSString * fieldName;
  1019. int fieldType;
  1020. int fieldID;
  1021. [inProtocol readStructBeginReturningName: NULL];
  1022. while (true)
  1023. {
  1024. [inProtocol readFieldBeginReturningName: &fieldName type: &fieldType fieldID: &fieldID];
  1025. if (fieldType == TType_STOP) {
  1026. break;
  1027. }
  1028. switch (fieldID)
  1029. {
  1030. case 1:
  1031. if (fieldType == TType_STRING) {
  1032. NSString * fieldValue = [inProtocol readString];
  1033. [self setUsername: fieldValue];
  1034. } else {
  1035. [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
  1036. }
  1037. break;
  1038. case 2:
  1039. if (fieldType == TType_STRING) {
  1040. NSString * fieldValue = [inProtocol readString];
  1041. [self setPassword: fieldValue];
  1042. } else {
  1043. [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
  1044. }
  1045. break;
  1046. case 3:
  1047. if (fieldType == TType_STRING) {
  1048. NSString * fieldValue = [inProtocol readString];
  1049. [self setConsumerKey: fieldValue];
  1050. } else {
  1051. [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
  1052. }
  1053. break;
  1054. case 4:
  1055. if (fieldType == TType_STRING) {
  1056. NSString * fieldValue = [inProtocol readString];
  1057. [self setConsumerSecret: fieldValue];
  1058. } else {
  1059. [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
  1060. }
  1061. break;
  1062. default:
  1063. [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
  1064. break;
  1065. }
  1066. [inProtocol readFieldEnd];
  1067. }
  1068. [inProtocol readStructEnd];
  1069. }
  1070. - (void) write: (id <TProtocol>) outProtocol {
  1071. [outProtocol writeStructBeginWithName: @"authenticate_args"];
  1072. if (__username_isset) {
  1073. if (__username != nil) {
  1074. [outProtocol writeFieldBeginWithName: @"username" type: TType_STRING fieldID: 1];
  1075. [outProtocol writeString: __username];
  1076. [outProtocol writeFieldEnd];
  1077. }
  1078. }
  1079. if (__password_isset) {
  1080. if (__password != nil) {
  1081. [outProtocol writeFieldBeginWithName: @"password" type: TType_STRING fieldID: 2];
  1082. [outProtocol writeString: __password];
  1083. [outProtocol writeFieldEnd];
  1084. }
  1085. }
  1086. if (__consumerKey_isset) {
  1087. if (__consumerKey != nil) {
  1088. [outProtocol writeFieldBeginWithName: @"consumerKey" type: TType_STRING fieldID: 3];
  1089. [outProtocol writeString: __consumerKey];
  1090. [outProtocol writeFieldEnd];
  1091. }
  1092. }
  1093. if (__consumerSecret_isset) {
  1094. if (__consumerSecret != nil) {
  1095. [outProtocol writeFieldBeginWithName: @"consumerSecret" type: TType_STRING fieldID: 4];
  1096. [outProtocol writeString: __consumerSecret];
  1097. [outProtocol writeFieldEnd];
  1098. }
  1099. }
  1100. [outProtocol writeFieldStop];
  1101. [outProtocol writeStructEnd];
  1102. }
  1103. - (NSString *) description {
  1104. NSMutableString * ms = [NSMutableString stringWithString: @"authenticate_args("];
  1105. [ms appendString: @"username:"];
  1106. [ms appendFormat: @"\"%@\"", __username];
  1107. [ms appendString: @",password:"];
  1108. [ms appendFormat: @"\"%@\"", __password];
  1109. [ms appendString: @",consumerKey:"];
  1110. [ms appendFormat: @"\"%@\"", __consumerKey];
  1111. [ms appendString: @",consumerSecret:"];
  1112. [ms appendFormat: @"\"%@\"", __consumerSecret];
  1113. [ms appendString: @")"];
  1114. return [NSString stringWithString: ms];
  1115. }
  1116. @end
  1117. @interface EDAMAuthenticate_result : NSObject <NSCoding> {
  1118. EDAMAuthenticationResult * __success;
  1119. EDAMUserException * __userException;
  1120. EDAMSystemException * __systemException;
  1121. BOOL __success_isset;
  1122. BOOL __userException_isset;
  1123. BOOL __systemException_isset;
  1124. }
  1125. #if TARGET_OS_IPHONE || (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5)
  1126. @property (nonatomic, retain, getter=success, setter=setSuccess:) EDAMAuthenticationResult * success;
  1127. @property (nonatomic, retain, getter=userException, setter=setUserException:) EDAMUserException * userException;
  1128. @property (nonatomic, retain, getter=systemException, setter=setSystemException:) EDAMSystemException * systemException;
  1129. #endif
  1130. - (id) initWithSuccess: (EDAMAuthenticationResult *) success userException: (EDAMUserException *) userException systemException: (EDAMSystemException *) systemException;
  1131. - (void) read: (id <TProtocol>) inProtocol;
  1132. - (void) write: (id <TProtocol>) outProtocol;
  1133. - (EDAMAuthenticationResult *) success;
  1134. - (void) setSuccess: (EDAMAuthenticationResult *) success;
  1135. - (BOOL) successIsSet;
  1136. - (EDAMUserException *) userException;
  1137. - (void) setUserException: (EDAMUserException *) userException;
  1138. - (BOOL) userExceptionIsSet;
  1139. - (EDAMSystemException *) systemException;
  1140. - (void) setSystemException: (EDAMSystemException *) systemException;
  1141. - (BOOL) systemExceptionIsSet;
  1142. @end
  1143. @implementation EDAMAuthenticate_result
  1144. #if TARGET_OS_IPHONE || (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5)
  1145. @dynamic success;
  1146. @dynamic userException;
  1147. @dynamic systemException;
  1148. #endif
  1149. - (id) initWithSuccess: (EDAMAuthenticationResult *) success userException: (EDAMUserException *) userException systemException: (EDAMSystemException *) systemException
  1150. {
  1151. self = [super init];
  1152. __success = [success retain];
  1153. __success_isset = YES;
  1154. __userException = [userException retain];
  1155. __userException_isset = YES;
  1156. __systemException = [systemException retain];
  1157. __systemException_isset = YES;
  1158. return self;
  1159. }
  1160. - (id) initWithCoder: (NSCoder *) decoder
  1161. {
  1162. self = [super init];
  1163. if ([decoder containsValueForKey: @"success"])
  1164. {
  1165. __success = [[decoder decodeObjectForKey: @"success"] retain];
  1166. __success_isset = YES;
  1167. }
  1168. if ([decoder containsValueForKey: @"userException"])
  1169. {
  1170. __userException = [[decoder decodeObjectForKey: @"userException"] retain];
  1171. __userException_isset = YES;
  1172. }
  1173. if ([decoder containsValueForKey: @"systemException"])
  1174. {
  1175. __systemException = [[decoder decodeObjectForKey: @"systemException"] retain];
  1176. __systemException_isset = YES;
  1177. }
  1178. return self;
  1179. }
  1180. - (void) encodeWithCoder: (NSCoder *) encoder
  1181. {
  1182. if (__success_isset)
  1183. {
  1184. [encoder encodeObject: __success forKey: @"success"];
  1185. }
  1186. if (__userException_isset)
  1187. {
  1188. [encoder encodeObject: __userException forKey: @"userException"];
  1189. }
  1190. if (__systemException_isset)
  1191. {
  1192. [encoder encodeObject: __systemException forKey: @"systemException"];
  1193. }
  1194. }
  1195. - (void) dealloc
  1196. {
  1197. [__success release];
  1198. [__userException release];
  1199. [__systemException release];
  1200. [super dealloc];
  1201. }
  1202. - (EDAMAuthenticationResult *) success {
  1203. return [[__success retain] autorelease];
  1204. }
  1205. - (void) setSuccess: (EDAMAuthenticationResult *) success {
  1206. [success retain];
  1207. [__success release];
  1208. __success = success;
  1209. __success_isset = YES;
  1210. }
  1211. - (BOOL) successIsSet {
  1212. return __success_isset;
  1213. }
  1214. - (void) unsetSuccess {
  1215. [__success release];
  1216. __success = nil;
  1217. __success_isset = NO;
  1218. }
  1219. - (EDAMUserException *) userException {
  1220. return [[__userException retain] autorelease];
  1221. }
  1222. - (void) setUserException: (EDAMUserException *) userException {
  1223. [userException retain];
  1224. [__userException release];
  1225. __userException = userException;
  1226. __userException_isset = YES;
  1227. }
  1228. - (BOOL) userExceptionIsSet {
  1229. return __userException_isset;
  1230. }
  1231. - (void) unsetUserException {
  1232. [__userException release];
  1233. __userException = nil;
  1234. __userException_isset = NO;
  1235. }
  1236. - (EDAMSystemException *) systemException {
  1237. return [[__systemException retain] autorelease];
  1238. }
  1239. - (void) setSystemException: (EDAMSystemException *) systemException {
  1240. [systemException retain];
  1241. [__systemException release];
  1242. __systemException = systemException;
  1243. __systemException_isset = YES;
  1244. }
  1245. - (BOOL) systemExceptionIsSet {
  1246. return __systemException_isset;
  1247. }
  1248. - (void) unsetSystemException {
  1249. [__systemException release];
  1250. __systemException = nil;
  1251. __systemException_isset = NO;
  1252. }
  1253. - (void) read: (id <TProtocol>) inProtocol
  1254. {
  1255. NSString * fieldName;
  1256. int fieldType;
  1257. int fieldID;
  1258. [inProtocol readStructBeginReturningName: NULL];
  1259. while (true)
  1260. {
  1261. [inProtocol readFieldBeginReturningName: &fieldName type: &fieldType fieldID: &fieldID];
  1262. if (fieldType == TType_STOP) {
  1263. break;
  1264. }
  1265. switch (fieldID)
  1266. {
  1267. case 0:
  1268. if (fieldType == TType_STRUCT) {
  1269. EDAMAuthenticationResult *fieldValue = [[EDAMAuthenticationResult alloc] init];
  1270. [fieldValue read: inProtocol];
  1271. [self setSuccess: fieldValue];
  1272. [fieldValue release];
  1273. } else {
  1274. [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
  1275. }
  1276. break;
  1277. case 1:
  1278. if (fieldType == TType_STRUCT) {
  1279. EDAMUserException *fieldValue = [[EDAMUserException alloc] init];
  1280. [fieldValue read: inProtocol];
  1281. [self setUserException: fieldValue];
  1282. [fieldValue release];
  1283. } else {
  1284. [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
  1285. }
  1286. break;
  1287. case 2:
  1288. if (fieldType == TType_STRUCT) {
  1289. EDAMSystemException *fieldValue = [[EDAMSystemException alloc] init];
  1290. [fieldValue read: inProtocol];
  1291. [self setSystemException: fieldValue];
  1292. [fieldValue release];
  1293. } else {
  1294. [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
  1295. }
  1296. break;
  1297. default:
  1298. [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
  1299. break;
  1300. }
  1301. [inProtocol readFieldEnd];
  1302. }
  1303. [inProtocol readStructEnd];
  1304. }
  1305. - (void) write: (id <TProtocol>) outProtocol {
  1306. [outProtocol writeStructBeginWithName: @"Authenticate_result"];
  1307. if (__success_isset) {
  1308. if (__success != nil) {
  1309. [outProtocol writeFieldBeginWithName: @"success" type: TType_STRUCT fieldID: 0];
  1310. [__success write: outProtocol];
  1311. [outProtocol writeFieldEnd];
  1312. }
  1313. } else if (__userException_isset) {
  1314. if (__userException != nil) {
  1315. [outProtocol writeFieldBeginWithName: @"userException" type: TType_STRUCT fieldID: 1];
  1316. [__userException write: outProtocol];
  1317. [outProtocol writeFieldEnd];
  1318. }
  1319. } else if (__systemException_isset) {
  1320. if (__systemException != nil) {
  1321. [outProtocol writeFieldBeginWithName: @"systemException" type: TType_STRUCT fieldID: 2];
  1322. [__systemException write: outProtocol];
  1323. [outProtocol writeFieldEnd];
  1324. }
  1325. }
  1326. [outProtocol writeFieldStop];
  1327. [outProtocol writeStructEnd];
  1328. }
  1329. - (NSString *) description {
  1330. NSMutableString * ms = [NSMutableString stringWithString: @"Authenticate_result("];
  1331. [ms appendString: @"success:"];
  1332. [ms appendFormat: @"%@", __success];
  1333. [ms appendString: @",userException:"];
  1334. [ms appendFormat: @"%@", __userException];
  1335. [ms appendString: @",systemException:"];
  1336. [ms appendFormat: @"%@", __systemException];
  1337. [ms appendString: @")"];
  1338. return [NSString stringWithString: ms];
  1339. }
  1340. @end
  1341. @interface EDAMrefreshAuthentication_args : NSObject <NSCoding> {
  1342. NSString * __authenticationToken;
  1343. BOOL __authenticationToken_isset;
  1344. }
  1345. #if TARGET_OS_IPHONE || (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5)
  1346. @property (nonatomic, retain, getter=authenticationToken, setter=setAuthenticationToken:) NSString * authenticationToken;
  1347. #endif
  1348. - (id) initWithAuthenticationToken: (NSString *) authenticationToken;
  1349. - (void) read: (id <TProtocol>) inProtocol;
  1350. - (void) write: (id <TProtocol>) outProtocol;
  1351. - (NSString *) authenticationToken;
  1352. - (void) setAuthenticationToken: (NSString *) authenticationToken;
  1353. - (BOOL) authenticationTokenIsSet;
  1354. @end
  1355. @implementation EDAMrefreshAuthentication_args
  1356. #if TARGET_OS_IPHONE || (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5)
  1357. @dynamic authenticationToken;
  1358. #endif
  1359. - (id) initWithAuthenticationToken: (NSString *) authenticationToken
  1360. {
  1361. self = [super init];
  1362. __authenticationToken = [authenticationToken retain];
  1363. __authenticationToken_isset = YES;
  1364. return self;
  1365. }
  1366. - (id) initWithCoder: (NSCoder *) decoder
  1367. {
  1368. self = [super init];
  1369. if ([decoder containsValueForKey: @"authenticationToken"])
  1370. {
  1371. __authenticationToken = [[decoder decodeObjectForKey: @"authenticationToken"] retain];
  1372. __authenticationToken_isset = YES;
  1373. }
  1374. return self;
  1375. }
  1376. - (void) encodeWithCoder: (NSCoder *) encoder
  1377. {
  1378. if (__authenticationToken_isset)
  1379. {
  1380. [encoder encodeObject: __authenticationToken forKey: @"authenticationToken"];
  1381. }
  1382. }
  1383. - (void) dealloc
  1384. {
  1385. [__authenticationToken release];
  1386. [super dealloc];
  1387. }
  1388. - (NSString *) authenticationToken {
  1389. return [[__authenticationToken retain] autorelease];
  1390. }
  1391. - (void) setAuthenticationToken: (NSString *) authenticationToken {
  1392. [authenticationToken retain];
  1393. [__authenticationToken release];
  1394. __authenticationToken = authenticationToken;
  1395. __authenticationToken_isset = YES;
  1396. }
  1397. - (BOOL) authenticationTokenIsSet {
  1398. return __authenticationToken_isset;
  1399. }
  1400. - (void) unsetAuthenticationToken {
  1401. [__authenticationToken release];
  1402. __authenticationToken = nil;
  1403. __authenticationToken_isset = NO;
  1404. }
  1405. - (void) read: (id <TProtocol>) inProtocol
  1406. {
  1407. NSString * fieldName;
  1408. int fieldType;
  1409. int fieldID;
  1410. [inProtocol readStructBeginReturningName: NULL];
  1411. while (true)
  1412. {
  1413. [inProtocol readFieldBeginReturningName: &fieldName type: &fieldType fieldID: &fieldID];
  1414. if (fieldType == TType_STOP) {
  1415. break;
  1416. }
  1417. switch (fieldID)
  1418. {
  1419. case 1:
  1420. if (fieldType == TType_STRING) {
  1421. NSString * fieldValue = [inProtocol readString];
  1422. [self setAuthenticationToken: fieldValue];
  1423. } else {
  1424. [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
  1425. }
  1426. break;
  1427. default:
  1428. [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
  1429. break;
  1430. }
  1431. [inProtocol readFieldEnd];
  1432. }
  1433. [inProtocol readStructEnd];
  1434. }
  1435. - (void) write: (id <TProtocol>) outProtocol {
  1436. [outProtocol writeStructBeginWithName: @"refreshAuthentication_args"];
  1437. if (__authenticationToken_isset) {
  1438. if (__authenticationToken != nil) {
  1439. [outProtocol writeFieldBeginWithName: @"authenticationToken" type: TType_STRING fieldID: 1];
  1440. [outProtocol writeString: __authenticationToken];
  1441. [outProtocol writeFieldEnd];
  1442. }
  1443. }
  1444. [outProtocol writeFieldStop];
  1445. [outProtocol writeStructEnd];
  1446. }
  1447. - (NSString *) description {
  1448. NSMutableString * ms = [NSMutableString stringWithString: @"refreshAuthentication_args("];
  1449. [ms appendString: @"authenticationToken:"];
  1450. [ms appendFormat: @"\"%@\"", __authenticationToken];
  1451. [ms appendString: @")"];
  1452. return [NSString stringWithString: ms];
  1453. }
  1454. @end
  1455. @interface EDAMRefreshAuthentication_result : NSObject <NSCoding> {
  1456. EDAMAuthenticationResult * __success;
  1457. EDAMUserException * __userException;
  1458. EDAMSystemException * __systemException;
  1459. BOOL __success_isset;
  1460. BOOL __userException_isset;
  1461. BOOL __systemException_isset;
  1462. }
  1463. #if TARGET_OS_IPHONE || (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5)
  1464. @property (nonatomic, retain, getter=success, setter=setSuccess:) EDAMAuthenticationResult * success;
  1465. @property (nonatomic, retain, getter=userException, setter=setUserException:) EDAMUserException * userException;
  1466. @property (nonatomic, retain, getter=systemException, setter=setSystemException:) EDAMSystemException * systemException;
  1467. #endif
  1468. - (id) initWithSuccess: (EDAMAuthenticationResult *) success userException: (EDAMUserException *) userException systemException: (EDAMSystemException *) systemException;
  1469. - (void) read: (id <TProtocol>) inProtocol;
  1470. - (void) write: (id <TProtocol>) outProtocol;
  1471. - (EDAMAuthenticationResult *) success;
  1472. - (void) setSuccess: (EDAMAuthenticationResult *) success;
  1473. - (BOOL) successIsSet;
  1474. - (EDAMUserException *) userException;
  1475. - (void) setUserException: (EDAMUserException *) userException;
  1476. - (BOOL) userExceptionIsSet;
  1477. - (EDAMSystemException *) systemException;
  1478. - (void) setSystemException: (EDAMSystemException *) systemException;
  1479. - (BOOL) systemExceptionIsSet;
  1480. @end
  1481. @implementation EDAMRefreshAuthentication_result
  1482. #if TARGET_OS_IPHONE || (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5)
  1483. @dynamic success;
  1484. @dynamic userException;
  1485. @dynamic systemException;
  1486. #endif
  1487. - (id) initWithSuccess: (EDAMAuthenticationResult *) success userException: (EDAMUserException *) userException systemException: (EDAMSystemException *) systemException
  1488. {
  1489. self = [super init];
  1490. __success = [success retain];
  1491. __success_isset = YES;
  1492. __userException = [userException retain];
  1493. __userException_isset = YES;
  1494. __systemException = [systemException retain];
  1495. __systemException_isset = YES;
  1496. return self;
  1497. }
  1498. - (id) initWithCoder: (NSCoder *) decoder
  1499. {
  1500. self = [super init];
  1501. if ([decoder containsValueForKey: @"success"])
  1502. {
  1503. __success = [[decoder decodeObjectForKey: @"success"] retain];
  1504. __success_isset = YES;
  1505. }
  1506. if ([decoder containsValueForKey: @"userException"])
  1507. {
  1508. __userException = [[decoder decodeObjectForKey: @"userException"] retain];
  1509. __userException_isset = YES;
  1510. }
  1511. if ([decoder containsValueForKey: @"systemException"])
  1512. {
  1513. __systemException = [[decoder decodeObjectForKey: @"systemException"] retain];
  1514. __systemException_isset = YES;
  1515. }
  1516. return self;
  1517. }
  1518. - (void) encodeWithCoder: (NSCoder *) encoder
  1519. {
  1520. if (__success_isset)
  1521. {
  1522. [encoder encodeObject: __success forKey: @"success"];
  1523. }
  1524. if (__userException_isset)
  1525. {
  1526. [encoder encodeObject: __userException forKey: @"userException"];
  1527. }
  1528. if (__systemException_isset)
  1529. {
  1530. [encoder encodeObject: __systemException forKey: @"systemException"];
  1531. }
  1532. }
  1533. - (void) dealloc
  1534. {
  1535. [__success release];
  1536. [__userException release];
  1537. [__systemException release];
  1538. [super dealloc];
  1539. }
  1540. - (EDAMAuthenticationResult *) success {
  1541. return [[__success retain] autorelease];
  1542. }
  1543. - (void) setSuccess: (EDAMAuthenticationResult *) success {
  1544. [success retain];
  1545. [__success release];
  1546. __success = success;
  1547. __success_isset = YES;
  1548. }
  1549. - (BOOL) successIsSet {
  1550. return __success_isset;
  1551. }
  1552. - (void) unsetSuccess {
  1553. [__success release];
  1554. __success = nil;
  1555. __success_isset = NO;
  1556. }
  1557. - (EDAMUserException *) userException {
  1558. return [[__userException retain] autorelease];
  1559. }
  1560. - (void) setUserException: (EDAMUserException *) userException {
  1561. [userException retain];
  1562. [__userException release];
  1563. __userException = userException;
  1564. __userException_isset = YES;
  1565. }
  1566. - (BOOL) userExceptionIsSet {
  1567. return __userException_isset;
  1568. }
  1569. - (void) unsetUserException {
  1570. [__userException release];
  1571. __userException = nil;
  1572. __userException_isset = NO;
  1573. }
  1574. - (EDAMSystemException *) systemException {
  1575. return [[__systemException retain] autorelease];
  1576. }
  1577. - (void) setSystemException: (EDAMSystemException *) systemException {
  1578. [systemException retain];
  1579. [__systemException release];
  1580. __systemException = systemException;
  1581. __systemException_isset = YES;
  1582. }
  1583. - (BOOL) systemExceptionIsSet {
  1584. return __systemException_isset;
  1585. }
  1586. - (void) unsetSystemException {
  1587. [__systemException release];
  1588. __systemException = nil;
  1589. __systemException_isset = NO;
  1590. }
  1591. - (void) read: (id <TProtocol>) inProtocol
  1592. {
  1593. NSString * fieldName;
  1594. int fieldType;
  1595. int fieldID;
  1596. [inProtocol readStructBeginReturningName: NULL];
  1597. while (true)
  1598. {
  1599. [inProtocol readFieldBeginReturningName: &fieldName type: &fieldType fieldID: &fieldID];
  1600. if (fieldType == TType_STOP) {
  1601. break;
  1602. }
  1603. switch (fieldID)
  1604. {
  1605. case 0:
  1606. if (fieldType == TType_STRUCT) {
  1607. EDAMAuthenticationResult *fieldValue = [[EDAMAuthenticationResult alloc] init];
  1608. [fieldValue read: inProtocol];
  1609. [self setSuccess: fieldValue];
  1610. [fieldValue release];
  1611. } else {
  1612. [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
  1613. }
  1614. break;
  1615. case 1:
  1616. if (fieldType == TType_STRUCT) {
  1617. EDAMUserException *fieldValue = [[EDAMUserException alloc] init];
  1618. [fieldValue read: inProtocol];
  1619. [self setUserException: fieldValue];
  1620. [fieldValue release];
  1621. } else {
  1622. [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
  1623. }
  1624. break;
  1625. case 2:
  1626. if (fieldType == TType_STRUCT) {
  1627. EDAMSystemException *fieldValue = [[EDAMSystemException alloc] init];
  1628. [fieldValue read: inProtocol];
  1629. [self setSystemException: fieldValue];
  1630. [fieldValue release];
  1631. } else {
  1632. [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
  1633. }
  1634. break;
  1635. default:
  1636. [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
  1637. break;
  1638. }
  1639. [inProtocol readFieldEnd];
  1640. }
  1641. [inProtocol readStructEnd];
  1642. }
  1643. - (void) write: (id <TProtocol>) outProtocol {
  1644. [outProtocol writeStructBeginWithName: @"RefreshAuthentication_result"];
  1645. if (__success_isset) {
  1646. if (__success != nil) {
  1647. [outProtocol writeFieldBeginWithName: @"success" type: TType_STRUCT fieldID: 0];