Subversion Repositories SmartDukaan

Rev

Rev 1674 | Rev 1860 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1674 Rev 1846
Line 79... Line 79...
79
 
79
 
80
    public List<UserCommunication> getUserCommunicationByUser(long userId) throws UserCommunicationException, TException;
80
    public List<UserCommunication> getUserCommunicationByUser(long userId) throws UserCommunicationException, TException;
81
 
81
 
82
    public List<UserCommunication> getAllUserCommunications() throws UserCommunicationException, TException;
82
    public List<UserCommunication> getAllUserCommunications() throws UserCommunicationException, TException;
83
 
83
 
-
 
84
    public MasterAffiliate createMasterAffiliate(String name) throws UserTrackerException, TException;
-
 
85
 
-
 
86
    public MasterAffiliate getMasterAffiliateById(long id) throws UserTrackerException, TException;
-
 
87
 
-
 
88
    public MasterAffiliate getMasterAffiliateByName(String name) throws UserTrackerException, TException;
-
 
89
 
-
 
90
    public Affiliate createAffiliate(String name, String url, long masterAffiliateId) throws UserTrackerException, TException;
-
 
91
 
-
 
92
    public Affiliate getAffiliateById(long id) throws UserTrackerException, TException;
-
 
93
 
-
 
94
    public Affiliate getAffiliateByName(String name) throws UserTrackerException, TException;
-
 
95
 
-
 
96
    public List<Affiliate> getAffiliatesByMasterAffiliate(long id) throws UserTrackerException, TException;
-
 
97
 
-
 
98
    public Tracker createTracker(long affiliateId) throws UserTrackerException, TException;
-
 
99
 
-
 
100
    public Tracker getTrackerById(long trackerId) throws UserTrackerException, TException;
-
 
101
 
-
 
102
    public List<Tracker> getTrackersByAffiliate(long affiliateId) throws UserTrackerException, TException;
-
 
103
 
-
 
104
    public long addTrackLog(long trackerId, long userId, String event, String url, String data) throws UserTrackerException, TException;
-
 
105
 
-
 
106
    public TrackLog getTrackLogById(long id) throws UserTrackerException, TException;
-
 
107
 
-
 
108
    public List<TrackLog> getTrackLogsByTracker(long trackerId) throws UserTrackerException, TException;
-
 
109
 
-
 
110
    public List<TrackLog> getTrackLogsByUser(long userId) throws UserTrackerException, TException;
-
 
111
 
-
 
112
    public List<TrackLog> getTrackLogs(long trackerId, long userId, String event, String url) throws UserTrackerException, TException;
-
 
113
 
84
    public long createCart(long userId) throws ShoppingCartException, TException;
114
    public long createCart(long userId) throws ShoppingCartException, TException;
85
 
115
 
86
    public Cart getCurrentCart(long userId) throws ShoppingCartException, TException;
116
    public Cart getCurrentCart(long userId) throws ShoppingCartException, TException;
87
 
117
 
88
    public Cart getCart(long cartId) throws ShoppingCartException, TException;
118
    public Cart getCart(long cartId) throws ShoppingCartException, TException;
Line 1081... Line 1111...
1081
        throw result.ucx;
1111
        throw result.ucx;
1082
      }
1112
      }
1083
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAllUserCommunications failed: unknown result");
1113
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAllUserCommunications failed: unknown result");
1084
    }
1114
    }
1085
 
1115
 
-
 
1116
    public MasterAffiliate createMasterAffiliate(String name) throws UserTrackerException, TException
-
 
1117
    {
-
 
1118
      send_createMasterAffiliate(name);
-
 
1119
      return recv_createMasterAffiliate();
-
 
1120
    }
-
 
1121
 
-
 
1122
    public void send_createMasterAffiliate(String name) throws TException
-
 
1123
    {
-
 
1124
      oprot_.writeMessageBegin(new TMessage("createMasterAffiliate", TMessageType.CALL, seqid_));
-
 
1125
      createMasterAffiliate_args args = new createMasterAffiliate_args();
-
 
1126
      args.name = name;
-
 
1127
      args.write(oprot_);
-
 
1128
      oprot_.writeMessageEnd();
-
 
1129
      oprot_.getTransport().flush();
-
 
1130
    }
-
 
1131
 
-
 
1132
    public MasterAffiliate recv_createMasterAffiliate() throws UserTrackerException, TException
-
 
1133
    {
-
 
1134
      TMessage msg = iprot_.readMessageBegin();
-
 
1135
      if (msg.type == TMessageType.EXCEPTION) {
-
 
1136
        TApplicationException x = TApplicationException.read(iprot_);
-
 
1137
        iprot_.readMessageEnd();
-
 
1138
        throw x;
-
 
1139
      }
-
 
1140
      createMasterAffiliate_result result = new createMasterAffiliate_result();
-
 
1141
      result.read(iprot_);
-
 
1142
      iprot_.readMessageEnd();
-
 
1143
      if (result.isSetSuccess()) {
-
 
1144
        return result.success;
-
 
1145
      }
-
 
1146
      if (result.utx != null) {
-
 
1147
        throw result.utx;
-
 
1148
      }
-
 
1149
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "createMasterAffiliate failed: unknown result");
-
 
1150
    }
-
 
1151
 
-
 
1152
    public MasterAffiliate getMasterAffiliateById(long id) throws UserTrackerException, TException
-
 
1153
    {
-
 
1154
      send_getMasterAffiliateById(id);
-
 
1155
      return recv_getMasterAffiliateById();
-
 
1156
    }
-
 
1157
 
-
 
1158
    public void send_getMasterAffiliateById(long id) throws TException
-
 
1159
    {
-
 
1160
      oprot_.writeMessageBegin(new TMessage("getMasterAffiliateById", TMessageType.CALL, seqid_));
-
 
1161
      getMasterAffiliateById_args args = new getMasterAffiliateById_args();
-
 
1162
      args.id = id;
-
 
1163
      args.write(oprot_);
-
 
1164
      oprot_.writeMessageEnd();
-
 
1165
      oprot_.getTransport().flush();
-
 
1166
    }
-
 
1167
 
-
 
1168
    public MasterAffiliate recv_getMasterAffiliateById() throws UserTrackerException, TException
-
 
1169
    {
-
 
1170
      TMessage msg = iprot_.readMessageBegin();
-
 
1171
      if (msg.type == TMessageType.EXCEPTION) {
-
 
1172
        TApplicationException x = TApplicationException.read(iprot_);
-
 
1173
        iprot_.readMessageEnd();
-
 
1174
        throw x;
-
 
1175
      }
-
 
1176
      getMasterAffiliateById_result result = new getMasterAffiliateById_result();
-
 
1177
      result.read(iprot_);
-
 
1178
      iprot_.readMessageEnd();
-
 
1179
      if (result.isSetSuccess()) {
-
 
1180
        return result.success;
-
 
1181
      }
-
 
1182
      if (result.utx != null) {
-
 
1183
        throw result.utx;
-
 
1184
      }
-
 
1185
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getMasterAffiliateById failed: unknown result");
-
 
1186
    }
-
 
1187
 
-
 
1188
    public MasterAffiliate getMasterAffiliateByName(String name) throws UserTrackerException, TException
-
 
1189
    {
-
 
1190
      send_getMasterAffiliateByName(name);
-
 
1191
      return recv_getMasterAffiliateByName();
-
 
1192
    }
-
 
1193
 
-
 
1194
    public void send_getMasterAffiliateByName(String name) throws TException
-
 
1195
    {
-
 
1196
      oprot_.writeMessageBegin(new TMessage("getMasterAffiliateByName", TMessageType.CALL, seqid_));
-
 
1197
      getMasterAffiliateByName_args args = new getMasterAffiliateByName_args();
-
 
1198
      args.name = name;
-
 
1199
      args.write(oprot_);
-
 
1200
      oprot_.writeMessageEnd();
-
 
1201
      oprot_.getTransport().flush();
-
 
1202
    }
-
 
1203
 
-
 
1204
    public MasterAffiliate recv_getMasterAffiliateByName() throws UserTrackerException, TException
-
 
1205
    {
-
 
1206
      TMessage msg = iprot_.readMessageBegin();
-
 
1207
      if (msg.type == TMessageType.EXCEPTION) {
-
 
1208
        TApplicationException x = TApplicationException.read(iprot_);
-
 
1209
        iprot_.readMessageEnd();
-
 
1210
        throw x;
-
 
1211
      }
-
 
1212
      getMasterAffiliateByName_result result = new getMasterAffiliateByName_result();
-
 
1213
      result.read(iprot_);
-
 
1214
      iprot_.readMessageEnd();
-
 
1215
      if (result.isSetSuccess()) {
-
 
1216
        return result.success;
-
 
1217
      }
-
 
1218
      if (result.utx != null) {
-
 
1219
        throw result.utx;
-
 
1220
      }
-
 
1221
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getMasterAffiliateByName failed: unknown result");
-
 
1222
    }
-
 
1223
 
-
 
1224
    public Affiliate createAffiliate(String name, String url, long masterAffiliateId) throws UserTrackerException, TException
-
 
1225
    {
-
 
1226
      send_createAffiliate(name, url, masterAffiliateId);
-
 
1227
      return recv_createAffiliate();
-
 
1228
    }
-
 
1229
 
-
 
1230
    public void send_createAffiliate(String name, String url, long masterAffiliateId) throws TException
-
 
1231
    {
-
 
1232
      oprot_.writeMessageBegin(new TMessage("createAffiliate", TMessageType.CALL, seqid_));
-
 
1233
      createAffiliate_args args = new createAffiliate_args();
-
 
1234
      args.name = name;
-
 
1235
      args.url = url;
-
 
1236
      args.masterAffiliateId = masterAffiliateId;
-
 
1237
      args.write(oprot_);
-
 
1238
      oprot_.writeMessageEnd();
-
 
1239
      oprot_.getTransport().flush();
-
 
1240
    }
-
 
1241
 
-
 
1242
    public Affiliate recv_createAffiliate() throws UserTrackerException, TException
-
 
1243
    {
-
 
1244
      TMessage msg = iprot_.readMessageBegin();
-
 
1245
      if (msg.type == TMessageType.EXCEPTION) {
-
 
1246
        TApplicationException x = TApplicationException.read(iprot_);
-
 
1247
        iprot_.readMessageEnd();
-
 
1248
        throw x;
-
 
1249
      }
-
 
1250
      createAffiliate_result result = new createAffiliate_result();
-
 
1251
      result.read(iprot_);
-
 
1252
      iprot_.readMessageEnd();
-
 
1253
      if (result.isSetSuccess()) {
-
 
1254
        return result.success;
-
 
1255
      }
-
 
1256
      if (result.utx != null) {
-
 
1257
        throw result.utx;
-
 
1258
      }
-
 
1259
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "createAffiliate failed: unknown result");
-
 
1260
    }
-
 
1261
 
-
 
1262
    public Affiliate getAffiliateById(long id) throws UserTrackerException, TException
-
 
1263
    {
-
 
1264
      send_getAffiliateById(id);
-
 
1265
      return recv_getAffiliateById();
-
 
1266
    }
-
 
1267
 
-
 
1268
    public void send_getAffiliateById(long id) throws TException
-
 
1269
    {
-
 
1270
      oprot_.writeMessageBegin(new TMessage("getAffiliateById", TMessageType.CALL, seqid_));
-
 
1271
      getAffiliateById_args args = new getAffiliateById_args();
-
 
1272
      args.id = id;
-
 
1273
      args.write(oprot_);
-
 
1274
      oprot_.writeMessageEnd();
-
 
1275
      oprot_.getTransport().flush();
-
 
1276
    }
-
 
1277
 
-
 
1278
    public Affiliate recv_getAffiliateById() throws UserTrackerException, TException
-
 
1279
    {
-
 
1280
      TMessage msg = iprot_.readMessageBegin();
-
 
1281
      if (msg.type == TMessageType.EXCEPTION) {
-
 
1282
        TApplicationException x = TApplicationException.read(iprot_);
-
 
1283
        iprot_.readMessageEnd();
-
 
1284
        throw x;
-
 
1285
      }
-
 
1286
      getAffiliateById_result result = new getAffiliateById_result();
-
 
1287
      result.read(iprot_);
-
 
1288
      iprot_.readMessageEnd();
-
 
1289
      if (result.isSetSuccess()) {
-
 
1290
        return result.success;
-
 
1291
      }
-
 
1292
      if (result.utx != null) {
-
 
1293
        throw result.utx;
-
 
1294
      }
-
 
1295
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliateById failed: unknown result");
-
 
1296
    }
-
 
1297
 
-
 
1298
    public Affiliate getAffiliateByName(String name) throws UserTrackerException, TException
-
 
1299
    {
-
 
1300
      send_getAffiliateByName(name);
-
 
1301
      return recv_getAffiliateByName();
-
 
1302
    }
-
 
1303
 
-
 
1304
    public void send_getAffiliateByName(String name) throws TException
-
 
1305
    {
-
 
1306
      oprot_.writeMessageBegin(new TMessage("getAffiliateByName", TMessageType.CALL, seqid_));
-
 
1307
      getAffiliateByName_args args = new getAffiliateByName_args();
-
 
1308
      args.name = name;
-
 
1309
      args.write(oprot_);
-
 
1310
      oprot_.writeMessageEnd();
-
 
1311
      oprot_.getTransport().flush();
-
 
1312
    }
-
 
1313
 
-
 
1314
    public Affiliate recv_getAffiliateByName() throws UserTrackerException, TException
-
 
1315
    {
-
 
1316
      TMessage msg = iprot_.readMessageBegin();
-
 
1317
      if (msg.type == TMessageType.EXCEPTION) {
-
 
1318
        TApplicationException x = TApplicationException.read(iprot_);
-
 
1319
        iprot_.readMessageEnd();
-
 
1320
        throw x;
-
 
1321
      }
-
 
1322
      getAffiliateByName_result result = new getAffiliateByName_result();
-
 
1323
      result.read(iprot_);
-
 
1324
      iprot_.readMessageEnd();
-
 
1325
      if (result.isSetSuccess()) {
-
 
1326
        return result.success;
-
 
1327
      }
-
 
1328
      if (result.utx != null) {
-
 
1329
        throw result.utx;
-
 
1330
      }
-
 
1331
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliateByName failed: unknown result");
-
 
1332
    }
-
 
1333
 
-
 
1334
    public List<Affiliate> getAffiliatesByMasterAffiliate(long id) throws UserTrackerException, TException
-
 
1335
    {
-
 
1336
      send_getAffiliatesByMasterAffiliate(id);
-
 
1337
      return recv_getAffiliatesByMasterAffiliate();
-
 
1338
    }
-
 
1339
 
-
 
1340
    public void send_getAffiliatesByMasterAffiliate(long id) throws TException
-
 
1341
    {
-
 
1342
      oprot_.writeMessageBegin(new TMessage("getAffiliatesByMasterAffiliate", TMessageType.CALL, seqid_));
-
 
1343
      getAffiliatesByMasterAffiliate_args args = new getAffiliatesByMasterAffiliate_args();
-
 
1344
      args.id = id;
-
 
1345
      args.write(oprot_);
-
 
1346
      oprot_.writeMessageEnd();
-
 
1347
      oprot_.getTransport().flush();
-
 
1348
    }
-
 
1349
 
-
 
1350
    public List<Affiliate> recv_getAffiliatesByMasterAffiliate() throws UserTrackerException, TException
-
 
1351
    {
-
 
1352
      TMessage msg = iprot_.readMessageBegin();
-
 
1353
      if (msg.type == TMessageType.EXCEPTION) {
-
 
1354
        TApplicationException x = TApplicationException.read(iprot_);
-
 
1355
        iprot_.readMessageEnd();
-
 
1356
        throw x;
-
 
1357
      }
-
 
1358
      getAffiliatesByMasterAffiliate_result result = new getAffiliatesByMasterAffiliate_result();
-
 
1359
      result.read(iprot_);
-
 
1360
      iprot_.readMessageEnd();
-
 
1361
      if (result.isSetSuccess()) {
-
 
1362
        return result.success;
-
 
1363
      }
-
 
1364
      if (result.utx != null) {
-
 
1365
        throw result.utx;
-
 
1366
      }
-
 
1367
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliatesByMasterAffiliate failed: unknown result");
-
 
1368
    }
-
 
1369
 
-
 
1370
    public Tracker createTracker(long affiliateId) throws UserTrackerException, TException
-
 
1371
    {
-
 
1372
      send_createTracker(affiliateId);
-
 
1373
      return recv_createTracker();
-
 
1374
    }
-
 
1375
 
-
 
1376
    public void send_createTracker(long affiliateId) throws TException
-
 
1377
    {
-
 
1378
      oprot_.writeMessageBegin(new TMessage("createTracker", TMessageType.CALL, seqid_));
-
 
1379
      createTracker_args args = new createTracker_args();
-
 
1380
      args.affiliateId = affiliateId;
-
 
1381
      args.write(oprot_);
-
 
1382
      oprot_.writeMessageEnd();
-
 
1383
      oprot_.getTransport().flush();
-
 
1384
    }
-
 
1385
 
-
 
1386
    public Tracker recv_createTracker() throws UserTrackerException, TException
-
 
1387
    {
-
 
1388
      TMessage msg = iprot_.readMessageBegin();
-
 
1389
      if (msg.type == TMessageType.EXCEPTION) {
-
 
1390
        TApplicationException x = TApplicationException.read(iprot_);
-
 
1391
        iprot_.readMessageEnd();
-
 
1392
        throw x;
-
 
1393
      }
-
 
1394
      createTracker_result result = new createTracker_result();
-
 
1395
      result.read(iprot_);
-
 
1396
      iprot_.readMessageEnd();
-
 
1397
      if (result.isSetSuccess()) {
-
 
1398
        return result.success;
-
 
1399
      }
-
 
1400
      if (result.utx != null) {
-
 
1401
        throw result.utx;
-
 
1402
      }
-
 
1403
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "createTracker failed: unknown result");
-
 
1404
    }
-
 
1405
 
-
 
1406
    public Tracker getTrackerById(long trackerId) throws UserTrackerException, TException
-
 
1407
    {
-
 
1408
      send_getTrackerById(trackerId);
-
 
1409
      return recv_getTrackerById();
-
 
1410
    }
-
 
1411
 
-
 
1412
    public void send_getTrackerById(long trackerId) throws TException
-
 
1413
    {
-
 
1414
      oprot_.writeMessageBegin(new TMessage("getTrackerById", TMessageType.CALL, seqid_));
-
 
1415
      getTrackerById_args args = new getTrackerById_args();
-
 
1416
      args.trackerId = trackerId;
-
 
1417
      args.write(oprot_);
-
 
1418
      oprot_.writeMessageEnd();
-
 
1419
      oprot_.getTransport().flush();
-
 
1420
    }
-
 
1421
 
-
 
1422
    public Tracker recv_getTrackerById() throws UserTrackerException, TException
-
 
1423
    {
-
 
1424
      TMessage msg = iprot_.readMessageBegin();
-
 
1425
      if (msg.type == TMessageType.EXCEPTION) {
-
 
1426
        TApplicationException x = TApplicationException.read(iprot_);
-
 
1427
        iprot_.readMessageEnd();
-
 
1428
        throw x;
-
 
1429
      }
-
 
1430
      getTrackerById_result result = new getTrackerById_result();
-
 
1431
      result.read(iprot_);
-
 
1432
      iprot_.readMessageEnd();
-
 
1433
      if (result.isSetSuccess()) {
-
 
1434
        return result.success;
-
 
1435
      }
-
 
1436
      if (result.utx != null) {
-
 
1437
        throw result.utx;
-
 
1438
      }
-
 
1439
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getTrackerById failed: unknown result");
-
 
1440
    }
-
 
1441
 
-
 
1442
    public List<Tracker> getTrackersByAffiliate(long affiliateId) throws UserTrackerException, TException
-
 
1443
    {
-
 
1444
      send_getTrackersByAffiliate(affiliateId);
-
 
1445
      return recv_getTrackersByAffiliate();
-
 
1446
    }
-
 
1447
 
-
 
1448
    public void send_getTrackersByAffiliate(long affiliateId) throws TException
-
 
1449
    {
-
 
1450
      oprot_.writeMessageBegin(new TMessage("getTrackersByAffiliate", TMessageType.CALL, seqid_));
-
 
1451
      getTrackersByAffiliate_args args = new getTrackersByAffiliate_args();
-
 
1452
      args.affiliateId = affiliateId;
-
 
1453
      args.write(oprot_);
-
 
1454
      oprot_.writeMessageEnd();
-
 
1455
      oprot_.getTransport().flush();
-
 
1456
    }
-
 
1457
 
-
 
1458
    public List<Tracker> recv_getTrackersByAffiliate() throws UserTrackerException, TException
-
 
1459
    {
-
 
1460
      TMessage msg = iprot_.readMessageBegin();
-
 
1461
      if (msg.type == TMessageType.EXCEPTION) {
-
 
1462
        TApplicationException x = TApplicationException.read(iprot_);
-
 
1463
        iprot_.readMessageEnd();
-
 
1464
        throw x;
-
 
1465
      }
-
 
1466
      getTrackersByAffiliate_result result = new getTrackersByAffiliate_result();
-
 
1467
      result.read(iprot_);
-
 
1468
      iprot_.readMessageEnd();
-
 
1469
      if (result.isSetSuccess()) {
-
 
1470
        return result.success;
-
 
1471
      }
-
 
1472
      if (result.utx != null) {
-
 
1473
        throw result.utx;
-
 
1474
      }
-
 
1475
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getTrackersByAffiliate failed: unknown result");
-
 
1476
    }
-
 
1477
 
-
 
1478
    public long addTrackLog(long trackerId, long userId, String event, String url, String data) throws UserTrackerException, TException
-
 
1479
    {
-
 
1480
      send_addTrackLog(trackerId, userId, event, url, data);
-
 
1481
      return recv_addTrackLog();
-
 
1482
    }
-
 
1483
 
-
 
1484
    public void send_addTrackLog(long trackerId, long userId, String event, String url, String data) throws TException
-
 
1485
    {
-
 
1486
      oprot_.writeMessageBegin(new TMessage("addTrackLog", TMessageType.CALL, seqid_));
-
 
1487
      addTrackLog_args args = new addTrackLog_args();
-
 
1488
      args.trackerId = trackerId;
-
 
1489
      args.userId = userId;
-
 
1490
      args.event = event;
-
 
1491
      args.url = url;
-
 
1492
      args.data = data;
-
 
1493
      args.write(oprot_);
-
 
1494
      oprot_.writeMessageEnd();
-
 
1495
      oprot_.getTransport().flush();
-
 
1496
    }
-
 
1497
 
-
 
1498
    public long recv_addTrackLog() throws UserTrackerException, TException
-
 
1499
    {
-
 
1500
      TMessage msg = iprot_.readMessageBegin();
-
 
1501
      if (msg.type == TMessageType.EXCEPTION) {
-
 
1502
        TApplicationException x = TApplicationException.read(iprot_);
-
 
1503
        iprot_.readMessageEnd();
-
 
1504
        throw x;
-
 
1505
      }
-
 
1506
      addTrackLog_result result = new addTrackLog_result();
-
 
1507
      result.read(iprot_);
-
 
1508
      iprot_.readMessageEnd();
-
 
1509
      if (result.isSetSuccess()) {
-
 
1510
        return result.success;
-
 
1511
      }
-
 
1512
      if (result.utx != null) {
-
 
1513
        throw result.utx;
-
 
1514
      }
-
 
1515
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "addTrackLog failed: unknown result");
-
 
1516
    }
-
 
1517
 
-
 
1518
    public TrackLog getTrackLogById(long id) throws UserTrackerException, TException
-
 
1519
    {
-
 
1520
      send_getTrackLogById(id);
-
 
1521
      return recv_getTrackLogById();
-
 
1522
    }
-
 
1523
 
-
 
1524
    public void send_getTrackLogById(long id) throws TException
-
 
1525
    {
-
 
1526
      oprot_.writeMessageBegin(new TMessage("getTrackLogById", TMessageType.CALL, seqid_));
-
 
1527
      getTrackLogById_args args = new getTrackLogById_args();
-
 
1528
      args.id = id;
-
 
1529
      args.write(oprot_);
-
 
1530
      oprot_.writeMessageEnd();
-
 
1531
      oprot_.getTransport().flush();
-
 
1532
    }
-
 
1533
 
-
 
1534
    public TrackLog recv_getTrackLogById() throws UserTrackerException, TException
-
 
1535
    {
-
 
1536
      TMessage msg = iprot_.readMessageBegin();
-
 
1537
      if (msg.type == TMessageType.EXCEPTION) {
-
 
1538
        TApplicationException x = TApplicationException.read(iprot_);
-
 
1539
        iprot_.readMessageEnd();
-
 
1540
        throw x;
-
 
1541
      }
-
 
1542
      getTrackLogById_result result = new getTrackLogById_result();
-
 
1543
      result.read(iprot_);
-
 
1544
      iprot_.readMessageEnd();
-
 
1545
      if (result.isSetSuccess()) {
-
 
1546
        return result.success;
-
 
1547
      }
-
 
1548
      if (result.utx != null) {
-
 
1549
        throw result.utx;
-
 
1550
      }
-
 
1551
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogById failed: unknown result");
-
 
1552
    }
-
 
1553
 
-
 
1554
    public List<TrackLog> getTrackLogsByTracker(long trackerId) throws UserTrackerException, TException
-
 
1555
    {
-
 
1556
      send_getTrackLogsByTracker(trackerId);
-
 
1557
      return recv_getTrackLogsByTracker();
-
 
1558
    }
-
 
1559
 
-
 
1560
    public void send_getTrackLogsByTracker(long trackerId) throws TException
-
 
1561
    {
-
 
1562
      oprot_.writeMessageBegin(new TMessage("getTrackLogsByTracker", TMessageType.CALL, seqid_));
-
 
1563
      getTrackLogsByTracker_args args = new getTrackLogsByTracker_args();
-
 
1564
      args.trackerId = trackerId;
-
 
1565
      args.write(oprot_);
-
 
1566
      oprot_.writeMessageEnd();
-
 
1567
      oprot_.getTransport().flush();
-
 
1568
    }
-
 
1569
 
-
 
1570
    public List<TrackLog> recv_getTrackLogsByTracker() throws UserTrackerException, TException
-
 
1571
    {
-
 
1572
      TMessage msg = iprot_.readMessageBegin();
-
 
1573
      if (msg.type == TMessageType.EXCEPTION) {
-
 
1574
        TApplicationException x = TApplicationException.read(iprot_);
-
 
1575
        iprot_.readMessageEnd();
-
 
1576
        throw x;
-
 
1577
      }
-
 
1578
      getTrackLogsByTracker_result result = new getTrackLogsByTracker_result();
-
 
1579
      result.read(iprot_);
-
 
1580
      iprot_.readMessageEnd();
-
 
1581
      if (result.isSetSuccess()) {
-
 
1582
        return result.success;
-
 
1583
      }
-
 
1584
      if (result.utx != null) {
-
 
1585
        throw result.utx;
-
 
1586
      }
-
 
1587
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogsByTracker failed: unknown result");
-
 
1588
    }
-
 
1589
 
-
 
1590
    public List<TrackLog> getTrackLogsByUser(long userId) throws UserTrackerException, TException
-
 
1591
    {
-
 
1592
      send_getTrackLogsByUser(userId);
-
 
1593
      return recv_getTrackLogsByUser();
-
 
1594
    }
-
 
1595
 
-
 
1596
    public void send_getTrackLogsByUser(long userId) throws TException
-
 
1597
    {
-
 
1598
      oprot_.writeMessageBegin(new TMessage("getTrackLogsByUser", TMessageType.CALL, seqid_));
-
 
1599
      getTrackLogsByUser_args args = new getTrackLogsByUser_args();
-
 
1600
      args.userId = userId;
-
 
1601
      args.write(oprot_);
-
 
1602
      oprot_.writeMessageEnd();
-
 
1603
      oprot_.getTransport().flush();
-
 
1604
    }
-
 
1605
 
-
 
1606
    public List<TrackLog> recv_getTrackLogsByUser() throws UserTrackerException, TException
-
 
1607
    {
-
 
1608
      TMessage msg = iprot_.readMessageBegin();
-
 
1609
      if (msg.type == TMessageType.EXCEPTION) {
-
 
1610
        TApplicationException x = TApplicationException.read(iprot_);
-
 
1611
        iprot_.readMessageEnd();
-
 
1612
        throw x;
-
 
1613
      }
-
 
1614
      getTrackLogsByUser_result result = new getTrackLogsByUser_result();
-
 
1615
      result.read(iprot_);
-
 
1616
      iprot_.readMessageEnd();
-
 
1617
      if (result.isSetSuccess()) {
-
 
1618
        return result.success;
-
 
1619
      }
-
 
1620
      if (result.utx != null) {
-
 
1621
        throw result.utx;
-
 
1622
      }
-
 
1623
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogsByUser failed: unknown result");
-
 
1624
    }
-
 
1625
 
-
 
1626
    public List<TrackLog> getTrackLogs(long trackerId, long userId, String event, String url) throws UserTrackerException, TException
-
 
1627
    {
-
 
1628
      send_getTrackLogs(trackerId, userId, event, url);
-
 
1629
      return recv_getTrackLogs();
-
 
1630
    }
-
 
1631
 
-
 
1632
    public void send_getTrackLogs(long trackerId, long userId, String event, String url) throws TException
-
 
1633
    {
-
 
1634
      oprot_.writeMessageBegin(new TMessage("getTrackLogs", TMessageType.CALL, seqid_));
-
 
1635
      getTrackLogs_args args = new getTrackLogs_args();
-
 
1636
      args.trackerId = trackerId;
-
 
1637
      args.userId = userId;
-
 
1638
      args.event = event;
-
 
1639
      args.url = url;
-
 
1640
      args.write(oprot_);
-
 
1641
      oprot_.writeMessageEnd();
-
 
1642
      oprot_.getTransport().flush();
-
 
1643
    }
-
 
1644
 
-
 
1645
    public List<TrackLog> recv_getTrackLogs() throws UserTrackerException, TException
-
 
1646
    {
-
 
1647
      TMessage msg = iprot_.readMessageBegin();
-
 
1648
      if (msg.type == TMessageType.EXCEPTION) {
-
 
1649
        TApplicationException x = TApplicationException.read(iprot_);
-
 
1650
        iprot_.readMessageEnd();
-
 
1651
        throw x;
-
 
1652
      }
-
 
1653
      getTrackLogs_result result = new getTrackLogs_result();
-
 
1654
      result.read(iprot_);
-
 
1655
      iprot_.readMessageEnd();
-
 
1656
      if (result.isSetSuccess()) {
-
 
1657
        return result.success;
-
 
1658
      }
-
 
1659
      if (result.utx != null) {
-
 
1660
        throw result.utx;
-
 
1661
      }
-
 
1662
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogs failed: unknown result");
-
 
1663
    }
-
 
1664
 
1086
    public long createCart(long userId) throws ShoppingCartException, TException
1665
    public long createCart(long userId) throws ShoppingCartException, TException
1087
    {
1666
    {
1088
      send_createCart(userId);
1667
      send_createCart(userId);
1089
      return recv_createCart();
1668
      return recv_createCart();
1090
    }
1669
    }
Line 1984... Line 2563...
1984
      processMap_.put("getDefaultPincode", new getDefaultPincode());
2563
      processMap_.put("getDefaultPincode", new getDefaultPincode());
1985
      processMap_.put("saveUserCommunication", new saveUserCommunication());
2564
      processMap_.put("saveUserCommunication", new saveUserCommunication());
1986
      processMap_.put("getUserCommunicationById", new getUserCommunicationById());
2565
      processMap_.put("getUserCommunicationById", new getUserCommunicationById());
1987
      processMap_.put("getUserCommunicationByUser", new getUserCommunicationByUser());
2566
      processMap_.put("getUserCommunicationByUser", new getUserCommunicationByUser());
1988
      processMap_.put("getAllUserCommunications", new getAllUserCommunications());
2567
      processMap_.put("getAllUserCommunications", new getAllUserCommunications());
-
 
2568
      processMap_.put("createMasterAffiliate", new createMasterAffiliate());
-
 
2569
      processMap_.put("getMasterAffiliateById", new getMasterAffiliateById());
-
 
2570
      processMap_.put("getMasterAffiliateByName", new getMasterAffiliateByName());
-
 
2571
      processMap_.put("createAffiliate", new createAffiliate());
-
 
2572
      processMap_.put("getAffiliateById", new getAffiliateById());
-
 
2573
      processMap_.put("getAffiliateByName", new getAffiliateByName());
-
 
2574
      processMap_.put("getAffiliatesByMasterAffiliate", new getAffiliatesByMasterAffiliate());
-
 
2575
      processMap_.put("createTracker", new createTracker());
-
 
2576
      processMap_.put("getTrackerById", new getTrackerById());
-
 
2577
      processMap_.put("getTrackersByAffiliate", new getTrackersByAffiliate());
-
 
2578
      processMap_.put("addTrackLog", new addTrackLog());
-
 
2579
      processMap_.put("getTrackLogById", new getTrackLogById());
-
 
2580
      processMap_.put("getTrackLogsByTracker", new getTrackLogsByTracker());
-
 
2581
      processMap_.put("getTrackLogsByUser", new getTrackLogsByUser());
-
 
2582
      processMap_.put("getTrackLogs", new getTrackLogs());
1989
      processMap_.put("createCart", new createCart());
2583
      processMap_.put("createCart", new createCart());
1990
      processMap_.put("getCurrentCart", new getCurrentCart());
2584
      processMap_.put("getCurrentCart", new getCurrentCart());
1991
      processMap_.put("getCart", new getCart());
2585
      processMap_.put("getCart", new getCart());
1992
      processMap_.put("getCartsForUser", new getCartsForUser());
2586
      processMap_.put("getCartsForUser", new getCartsForUser());
1993
      processMap_.put("getCartsByStatus", new getCartsByStatus());
2587
      processMap_.put("getCartsByStatus", new getCartsByStatus());
Line 2707... Line 3301...
2707
        oprot.getTransport().flush();
3301
        oprot.getTransport().flush();
2708
      }
3302
      }
2709
 
3303
 
2710
    }
3304
    }
2711
 
3305
 
-
 
3306
    private class createMasterAffiliate implements ProcessFunction {
-
 
3307
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
3308
      {
-
 
3309
        createMasterAffiliate_args args = new createMasterAffiliate_args();
-
 
3310
        args.read(iprot);
-
 
3311
        iprot.readMessageEnd();
-
 
3312
        createMasterAffiliate_result result = new createMasterAffiliate_result();
-
 
3313
        try {
-
 
3314
          result.success = iface_.createMasterAffiliate(args.name);
-
 
3315
        } catch (UserTrackerException utx) {
-
 
3316
          result.utx = utx;
-
 
3317
        } catch (Throwable th) {
-
 
3318
          LOGGER.error("Internal error processing createMasterAffiliate", th);
-
 
3319
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing createMasterAffiliate");
-
 
3320
          oprot.writeMessageBegin(new TMessage("createMasterAffiliate", TMessageType.EXCEPTION, seqid));
-
 
3321
          x.write(oprot);
-
 
3322
          oprot.writeMessageEnd();
-
 
3323
          oprot.getTransport().flush();
-
 
3324
          return;
-
 
3325
        }
-
 
3326
        oprot.writeMessageBegin(new TMessage("createMasterAffiliate", TMessageType.REPLY, seqid));
-
 
3327
        result.write(oprot);
-
 
3328
        oprot.writeMessageEnd();
-
 
3329
        oprot.getTransport().flush();
-
 
3330
      }
-
 
3331
 
-
 
3332
    }
-
 
3333
 
-
 
3334
    private class getMasterAffiliateById implements ProcessFunction {
-
 
3335
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
3336
      {
-
 
3337
        getMasterAffiliateById_args args = new getMasterAffiliateById_args();
-
 
3338
        args.read(iprot);
-
 
3339
        iprot.readMessageEnd();
-
 
3340
        getMasterAffiliateById_result result = new getMasterAffiliateById_result();
-
 
3341
        try {
-
 
3342
          result.success = iface_.getMasterAffiliateById(args.id);
-
 
3343
        } catch (UserTrackerException utx) {
-
 
3344
          result.utx = utx;
-
 
3345
        } catch (Throwable th) {
-
 
3346
          LOGGER.error("Internal error processing getMasterAffiliateById", th);
-
 
3347
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getMasterAffiliateById");
-
 
3348
          oprot.writeMessageBegin(new TMessage("getMasterAffiliateById", TMessageType.EXCEPTION, seqid));
-
 
3349
          x.write(oprot);
-
 
3350
          oprot.writeMessageEnd();
-
 
3351
          oprot.getTransport().flush();
-
 
3352
          return;
-
 
3353
        }
-
 
3354
        oprot.writeMessageBegin(new TMessage("getMasterAffiliateById", TMessageType.REPLY, seqid));
-
 
3355
        result.write(oprot);
-
 
3356
        oprot.writeMessageEnd();
-
 
3357
        oprot.getTransport().flush();
-
 
3358
      }
-
 
3359
 
-
 
3360
    }
-
 
3361
 
-
 
3362
    private class getMasterAffiliateByName implements ProcessFunction {
-
 
3363
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
3364
      {
-
 
3365
        getMasterAffiliateByName_args args = new getMasterAffiliateByName_args();
-
 
3366
        args.read(iprot);
-
 
3367
        iprot.readMessageEnd();
-
 
3368
        getMasterAffiliateByName_result result = new getMasterAffiliateByName_result();
-
 
3369
        try {
-
 
3370
          result.success = iface_.getMasterAffiliateByName(args.name);
-
 
3371
        } catch (UserTrackerException utx) {
-
 
3372
          result.utx = utx;
-
 
3373
        } catch (Throwable th) {
-
 
3374
          LOGGER.error("Internal error processing getMasterAffiliateByName", th);
-
 
3375
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getMasterAffiliateByName");
-
 
3376
          oprot.writeMessageBegin(new TMessage("getMasterAffiliateByName", TMessageType.EXCEPTION, seqid));
-
 
3377
          x.write(oprot);
-
 
3378
          oprot.writeMessageEnd();
-
 
3379
          oprot.getTransport().flush();
-
 
3380
          return;
-
 
3381
        }
-
 
3382
        oprot.writeMessageBegin(new TMessage("getMasterAffiliateByName", TMessageType.REPLY, seqid));
-
 
3383
        result.write(oprot);
-
 
3384
        oprot.writeMessageEnd();
-
 
3385
        oprot.getTransport().flush();
-
 
3386
      }
-
 
3387
 
-
 
3388
    }
-
 
3389
 
-
 
3390
    private class createAffiliate implements ProcessFunction {
-
 
3391
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
3392
      {
-
 
3393
        createAffiliate_args args = new createAffiliate_args();
-
 
3394
        args.read(iprot);
-
 
3395
        iprot.readMessageEnd();
-
 
3396
        createAffiliate_result result = new createAffiliate_result();
-
 
3397
        try {
-
 
3398
          result.success = iface_.createAffiliate(args.name, args.url, args.masterAffiliateId);
-
 
3399
        } catch (UserTrackerException utx) {
-
 
3400
          result.utx = utx;
-
 
3401
        } catch (Throwable th) {
-
 
3402
          LOGGER.error("Internal error processing createAffiliate", th);
-
 
3403
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing createAffiliate");
-
 
3404
          oprot.writeMessageBegin(new TMessage("createAffiliate", TMessageType.EXCEPTION, seqid));
-
 
3405
          x.write(oprot);
-
 
3406
          oprot.writeMessageEnd();
-
 
3407
          oprot.getTransport().flush();
-
 
3408
          return;
-
 
3409
        }
-
 
3410
        oprot.writeMessageBegin(new TMessage("createAffiliate", TMessageType.REPLY, seqid));
-
 
3411
        result.write(oprot);
-
 
3412
        oprot.writeMessageEnd();
-
 
3413
        oprot.getTransport().flush();
-
 
3414
      }
-
 
3415
 
-
 
3416
    }
-
 
3417
 
-
 
3418
    private class getAffiliateById implements ProcessFunction {
-
 
3419
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
3420
      {
-
 
3421
        getAffiliateById_args args = new getAffiliateById_args();
-
 
3422
        args.read(iprot);
-
 
3423
        iprot.readMessageEnd();
-
 
3424
        getAffiliateById_result result = new getAffiliateById_result();
-
 
3425
        try {
-
 
3426
          result.success = iface_.getAffiliateById(args.id);
-
 
3427
        } catch (UserTrackerException utx) {
-
 
3428
          result.utx = utx;
-
 
3429
        } catch (Throwable th) {
-
 
3430
          LOGGER.error("Internal error processing getAffiliateById", th);
-
 
3431
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getAffiliateById");
-
 
3432
          oprot.writeMessageBegin(new TMessage("getAffiliateById", TMessageType.EXCEPTION, seqid));
-
 
3433
          x.write(oprot);
-
 
3434
          oprot.writeMessageEnd();
-
 
3435
          oprot.getTransport().flush();
-
 
3436
          return;
-
 
3437
        }
-
 
3438
        oprot.writeMessageBegin(new TMessage("getAffiliateById", TMessageType.REPLY, seqid));
-
 
3439
        result.write(oprot);
-
 
3440
        oprot.writeMessageEnd();
-
 
3441
        oprot.getTransport().flush();
-
 
3442
      }
-
 
3443
 
-
 
3444
    }
-
 
3445
 
-
 
3446
    private class getAffiliateByName implements ProcessFunction {
-
 
3447
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
3448
      {
-
 
3449
        getAffiliateByName_args args = new getAffiliateByName_args();
-
 
3450
        args.read(iprot);
-
 
3451
        iprot.readMessageEnd();
-
 
3452
        getAffiliateByName_result result = new getAffiliateByName_result();
-
 
3453
        try {
-
 
3454
          result.success = iface_.getAffiliateByName(args.name);
-
 
3455
        } catch (UserTrackerException utx) {
-
 
3456
          result.utx = utx;
-
 
3457
        } catch (Throwable th) {
-
 
3458
          LOGGER.error("Internal error processing getAffiliateByName", th);
-
 
3459
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getAffiliateByName");
-
 
3460
          oprot.writeMessageBegin(new TMessage("getAffiliateByName", TMessageType.EXCEPTION, seqid));
-
 
3461
          x.write(oprot);
-
 
3462
          oprot.writeMessageEnd();
-
 
3463
          oprot.getTransport().flush();
-
 
3464
          return;
-
 
3465
        }
-
 
3466
        oprot.writeMessageBegin(new TMessage("getAffiliateByName", TMessageType.REPLY, seqid));
-
 
3467
        result.write(oprot);
-
 
3468
        oprot.writeMessageEnd();
-
 
3469
        oprot.getTransport().flush();
-
 
3470
      }
-
 
3471
 
-
 
3472
    }
-
 
3473
 
-
 
3474
    private class getAffiliatesByMasterAffiliate implements ProcessFunction {
-
 
3475
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
3476
      {
-
 
3477
        getAffiliatesByMasterAffiliate_args args = new getAffiliatesByMasterAffiliate_args();
-
 
3478
        args.read(iprot);
-
 
3479
        iprot.readMessageEnd();
-
 
3480
        getAffiliatesByMasterAffiliate_result result = new getAffiliatesByMasterAffiliate_result();
-
 
3481
        try {
-
 
3482
          result.success = iface_.getAffiliatesByMasterAffiliate(args.id);
-
 
3483
        } catch (UserTrackerException utx) {
-
 
3484
          result.utx = utx;
-
 
3485
        } catch (Throwable th) {
-
 
3486
          LOGGER.error("Internal error processing getAffiliatesByMasterAffiliate", th);
-
 
3487
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getAffiliatesByMasterAffiliate");
-
 
3488
          oprot.writeMessageBegin(new TMessage("getAffiliatesByMasterAffiliate", TMessageType.EXCEPTION, seqid));
-
 
3489
          x.write(oprot);
-
 
3490
          oprot.writeMessageEnd();
-
 
3491
          oprot.getTransport().flush();
-
 
3492
          return;
-
 
3493
        }
-
 
3494
        oprot.writeMessageBegin(new TMessage("getAffiliatesByMasterAffiliate", TMessageType.REPLY, seqid));
-
 
3495
        result.write(oprot);
-
 
3496
        oprot.writeMessageEnd();
-
 
3497
        oprot.getTransport().flush();
-
 
3498
      }
-
 
3499
 
-
 
3500
    }
-
 
3501
 
-
 
3502
    private class createTracker implements ProcessFunction {
-
 
3503
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
3504
      {
-
 
3505
        createTracker_args args = new createTracker_args();
-
 
3506
        args.read(iprot);
-
 
3507
        iprot.readMessageEnd();
-
 
3508
        createTracker_result result = new createTracker_result();
-
 
3509
        try {
-
 
3510
          result.success = iface_.createTracker(args.affiliateId);
-
 
3511
        } catch (UserTrackerException utx) {
-
 
3512
          result.utx = utx;
-
 
3513
        } catch (Throwable th) {
-
 
3514
          LOGGER.error("Internal error processing createTracker", th);
-
 
3515
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing createTracker");
-
 
3516
          oprot.writeMessageBegin(new TMessage("createTracker", TMessageType.EXCEPTION, seqid));
-
 
3517
          x.write(oprot);
-
 
3518
          oprot.writeMessageEnd();
-
 
3519
          oprot.getTransport().flush();
-
 
3520
          return;
-
 
3521
        }
-
 
3522
        oprot.writeMessageBegin(new TMessage("createTracker", TMessageType.REPLY, seqid));
-
 
3523
        result.write(oprot);
-
 
3524
        oprot.writeMessageEnd();
-
 
3525
        oprot.getTransport().flush();
-
 
3526
      }
-
 
3527
 
-
 
3528
    }
-
 
3529
 
-
 
3530
    private class getTrackerById implements ProcessFunction {
-
 
3531
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
3532
      {
-
 
3533
        getTrackerById_args args = new getTrackerById_args();
-
 
3534
        args.read(iprot);
-
 
3535
        iprot.readMessageEnd();
-
 
3536
        getTrackerById_result result = new getTrackerById_result();
-
 
3537
        try {
-
 
3538
          result.success = iface_.getTrackerById(args.trackerId);
-
 
3539
        } catch (UserTrackerException utx) {
-
 
3540
          result.utx = utx;
-
 
3541
        } catch (Throwable th) {
-
 
3542
          LOGGER.error("Internal error processing getTrackerById", th);
-
 
3543
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getTrackerById");
-
 
3544
          oprot.writeMessageBegin(new TMessage("getTrackerById", TMessageType.EXCEPTION, seqid));
-
 
3545
          x.write(oprot);
-
 
3546
          oprot.writeMessageEnd();
-
 
3547
          oprot.getTransport().flush();
-
 
3548
          return;
-
 
3549
        }
-
 
3550
        oprot.writeMessageBegin(new TMessage("getTrackerById", TMessageType.REPLY, seqid));
-
 
3551
        result.write(oprot);
-
 
3552
        oprot.writeMessageEnd();
-
 
3553
        oprot.getTransport().flush();
-
 
3554
      }
-
 
3555
 
-
 
3556
    }
-
 
3557
 
-
 
3558
    private class getTrackersByAffiliate implements ProcessFunction {
-
 
3559
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
3560
      {
-
 
3561
        getTrackersByAffiliate_args args = new getTrackersByAffiliate_args();
-
 
3562
        args.read(iprot);
-
 
3563
        iprot.readMessageEnd();
-
 
3564
        getTrackersByAffiliate_result result = new getTrackersByAffiliate_result();
-
 
3565
        try {
-
 
3566
          result.success = iface_.getTrackersByAffiliate(args.affiliateId);
-
 
3567
        } catch (UserTrackerException utx) {
-
 
3568
          result.utx = utx;
-
 
3569
        } catch (Throwable th) {
-
 
3570
          LOGGER.error("Internal error processing getTrackersByAffiliate", th);
-
 
3571
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getTrackersByAffiliate");
-
 
3572
          oprot.writeMessageBegin(new TMessage("getTrackersByAffiliate", TMessageType.EXCEPTION, seqid));
-
 
3573
          x.write(oprot);
-
 
3574
          oprot.writeMessageEnd();
-
 
3575
          oprot.getTransport().flush();
-
 
3576
          return;
-
 
3577
        }
-
 
3578
        oprot.writeMessageBegin(new TMessage("getTrackersByAffiliate", TMessageType.REPLY, seqid));
-
 
3579
        result.write(oprot);
-
 
3580
        oprot.writeMessageEnd();
-
 
3581
        oprot.getTransport().flush();
-
 
3582
      }
-
 
3583
 
-
 
3584
    }
-
 
3585
 
-
 
3586
    private class addTrackLog implements ProcessFunction {
-
 
3587
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
3588
      {
-
 
3589
        addTrackLog_args args = new addTrackLog_args();
-
 
3590
        args.read(iprot);
-
 
3591
        iprot.readMessageEnd();
-
 
3592
        addTrackLog_result result = new addTrackLog_result();
-
 
3593
        try {
-
 
3594
          result.success = iface_.addTrackLog(args.trackerId, args.userId, args.event, args.url, args.data);
-
 
3595
          result.setSuccessIsSet(true);
-
 
3596
        } catch (UserTrackerException utx) {
-
 
3597
          result.utx = utx;
-
 
3598
        } catch (Throwable th) {
-
 
3599
          LOGGER.error("Internal error processing addTrackLog", th);
-
 
3600
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing addTrackLog");
-
 
3601
          oprot.writeMessageBegin(new TMessage("addTrackLog", TMessageType.EXCEPTION, seqid));
-
 
3602
          x.write(oprot);
-
 
3603
          oprot.writeMessageEnd();
-
 
3604
          oprot.getTransport().flush();
-
 
3605
          return;
-
 
3606
        }
-
 
3607
        oprot.writeMessageBegin(new TMessage("addTrackLog", TMessageType.REPLY, seqid));
-
 
3608
        result.write(oprot);
-
 
3609
        oprot.writeMessageEnd();
-
 
3610
        oprot.getTransport().flush();
-
 
3611
      }
-
 
3612
 
-
 
3613
    }
-
 
3614
 
-
 
3615
    private class getTrackLogById implements ProcessFunction {
-
 
3616
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
3617
      {
-
 
3618
        getTrackLogById_args args = new getTrackLogById_args();
-
 
3619
        args.read(iprot);
-
 
3620
        iprot.readMessageEnd();
-
 
3621
        getTrackLogById_result result = new getTrackLogById_result();
-
 
3622
        try {
-
 
3623
          result.success = iface_.getTrackLogById(args.id);
-
 
3624
        } catch (UserTrackerException utx) {
-
 
3625
          result.utx = utx;
-
 
3626
        } catch (Throwable th) {
-
 
3627
          LOGGER.error("Internal error processing getTrackLogById", th);
-
 
3628
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getTrackLogById");
-
 
3629
          oprot.writeMessageBegin(new TMessage("getTrackLogById", TMessageType.EXCEPTION, seqid));
-
 
3630
          x.write(oprot);
-
 
3631
          oprot.writeMessageEnd();
-
 
3632
          oprot.getTransport().flush();
-
 
3633
          return;
-
 
3634
        }
-
 
3635
        oprot.writeMessageBegin(new TMessage("getTrackLogById", TMessageType.REPLY, seqid));
-
 
3636
        result.write(oprot);
-
 
3637
        oprot.writeMessageEnd();
-
 
3638
        oprot.getTransport().flush();
-
 
3639
      }
-
 
3640
 
-
 
3641
    }
-
 
3642
 
-
 
3643
    private class getTrackLogsByTracker implements ProcessFunction {
-
 
3644
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
3645
      {
-
 
3646
        getTrackLogsByTracker_args args = new getTrackLogsByTracker_args();
-
 
3647
        args.read(iprot);
-
 
3648
        iprot.readMessageEnd();
-
 
3649
        getTrackLogsByTracker_result result = new getTrackLogsByTracker_result();
-
 
3650
        try {
-
 
3651
          result.success = iface_.getTrackLogsByTracker(args.trackerId);
-
 
3652
        } catch (UserTrackerException utx) {
-
 
3653
          result.utx = utx;
-
 
3654
        } catch (Throwable th) {
-
 
3655
          LOGGER.error("Internal error processing getTrackLogsByTracker", th);
-
 
3656
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getTrackLogsByTracker");
-
 
3657
          oprot.writeMessageBegin(new TMessage("getTrackLogsByTracker", TMessageType.EXCEPTION, seqid));
-
 
3658
          x.write(oprot);
-
 
3659
          oprot.writeMessageEnd();
-
 
3660
          oprot.getTransport().flush();
-
 
3661
          return;
-
 
3662
        }
-
 
3663
        oprot.writeMessageBegin(new TMessage("getTrackLogsByTracker", TMessageType.REPLY, seqid));
-
 
3664
        result.write(oprot);
-
 
3665
        oprot.writeMessageEnd();
-
 
3666
        oprot.getTransport().flush();
-
 
3667
      }
-
 
3668
 
-
 
3669
    }
-
 
3670
 
-
 
3671
    private class getTrackLogsByUser implements ProcessFunction {
-
 
3672
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
3673
      {
-
 
3674
        getTrackLogsByUser_args args = new getTrackLogsByUser_args();
-
 
3675
        args.read(iprot);
-
 
3676
        iprot.readMessageEnd();
-
 
3677
        getTrackLogsByUser_result result = new getTrackLogsByUser_result();
-
 
3678
        try {
-
 
3679
          result.success = iface_.getTrackLogsByUser(args.userId);
-
 
3680
        } catch (UserTrackerException utx) {
-
 
3681
          result.utx = utx;
-
 
3682
        } catch (Throwable th) {
-
 
3683
          LOGGER.error("Internal error processing getTrackLogsByUser", th);
-
 
3684
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getTrackLogsByUser");
-
 
3685
          oprot.writeMessageBegin(new TMessage("getTrackLogsByUser", TMessageType.EXCEPTION, seqid));
-
 
3686
          x.write(oprot);
-
 
3687
          oprot.writeMessageEnd();
-
 
3688
          oprot.getTransport().flush();
-
 
3689
          return;
-
 
3690
        }
-
 
3691
        oprot.writeMessageBegin(new TMessage("getTrackLogsByUser", TMessageType.REPLY, seqid));
-
 
3692
        result.write(oprot);
-
 
3693
        oprot.writeMessageEnd();
-
 
3694
        oprot.getTransport().flush();
-
 
3695
      }
-
 
3696
 
-
 
3697
    }
-
 
3698
 
-
 
3699
    private class getTrackLogs implements ProcessFunction {
-
 
3700
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
3701
      {
-
 
3702
        getTrackLogs_args args = new getTrackLogs_args();
-
 
3703
        args.read(iprot);
-
 
3704
        iprot.readMessageEnd();
-
 
3705
        getTrackLogs_result result = new getTrackLogs_result();
-
 
3706
        try {
-
 
3707
          result.success = iface_.getTrackLogs(args.trackerId, args.userId, args.event, args.url);
-
 
3708
        } catch (UserTrackerException utx) {
-
 
3709
          result.utx = utx;
-
 
3710
        } catch (Throwable th) {
-
 
3711
          LOGGER.error("Internal error processing getTrackLogs", th);
-
 
3712
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getTrackLogs");
-
 
3713
          oprot.writeMessageBegin(new TMessage("getTrackLogs", TMessageType.EXCEPTION, seqid));
-
 
3714
          x.write(oprot);
-
 
3715
          oprot.writeMessageEnd();
-
 
3716
          oprot.getTransport().flush();
-
 
3717
          return;
-
 
3718
        }
-
 
3719
        oprot.writeMessageBegin(new TMessage("getTrackLogs", TMessageType.REPLY, seqid));
-
 
3720
        result.write(oprot);
-
 
3721
        oprot.writeMessageEnd();
-
 
3722
        oprot.getTransport().flush();
-
 
3723
      }
-
 
3724
 
-
 
3725
    }
-
 
3726
 
2712
    private class createCart implements ProcessFunction {
3727
    private class createCart implements ProcessFunction {
2713
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
3728
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
2714
      {
3729
      {
2715
        createCart_args args = new createCart_args();
3730
        createCart_args args = new createCart_args();
2716
        args.read(iprot);
3731
        args.read(iprot);
Line 19936... Line 20951...
19936
      // check for required fields
20951
      // check for required fields
19937
    }
20952
    }
19938
 
20953
 
19939
  }
20954
  }
19940
 
20955
 
19941
  public static class createCart_args implements TBase<createCart_args._Fields>, java.io.Serializable, Cloneable, Comparable<createCart_args>   {
20956
  public static class createMasterAffiliate_args implements TBase<createMasterAffiliate_args._Fields>, java.io.Serializable, Cloneable, Comparable<createMasterAffiliate_args>   {
19942
    private static final TStruct STRUCT_DESC = new TStruct("createCart_args");
20957
    private static final TStruct STRUCT_DESC = new TStruct("createMasterAffiliate_args");
19943
 
20958
 
19944
    private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)1);
20959
    private static final TField NAME_FIELD_DESC = new TField("name", TType.STRING, (short)1);
19945
 
20960
 
19946
    private long userId;
20961
    private String name;
19947
 
20962
 
19948
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20963
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19949
    public enum _Fields implements TFieldIdEnum {
20964
    public enum _Fields implements TFieldIdEnum {
19950
      USER_ID((short)1, "userId");
20965
      NAME((short)1, "name");
19951
 
20966
 
19952
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
20967
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
19953
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20968
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19954
 
20969
 
19955
      static {
20970
      static {
Line 19999... Line 21014...
19999
        return _fieldName;
21014
        return _fieldName;
20000
      }
21015
      }
20001
    }
21016
    }
20002
 
21017
 
20003
    // isset id assignments
21018
    // isset id assignments
20004
    private static final int __USERID_ISSET_ID = 0;
-
 
20005
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
20006
 
21019
 
20007
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
21020
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
20008
      put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT, 
21021
      put(_Fields.NAME, new FieldMetaData("name", TFieldRequirementType.DEFAULT, 
20009
          new FieldValueMetaData(TType.I64)));
21022
          new FieldValueMetaData(TType.STRING)));
20010
    }});
21023
    }});
20011
 
21024
 
20012
    static {
21025
    static {
20013
      FieldMetaData.addStructMetaDataMap(createCart_args.class, metaDataMap);
21026
      FieldMetaData.addStructMetaDataMap(createMasterAffiliate_args.class, metaDataMap);
20014
    }
21027
    }
20015
 
21028
 
20016
    public createCart_args() {
21029
    public createMasterAffiliate_args() {
20017
    }
21030
    }
20018
 
21031
 
20019
    public createCart_args(
21032
    public createMasterAffiliate_args(
20020
      long userId)
21033
      String name)
20021
    {
21034
    {
20022
      this();
21035
      this();
20023
      this.userId = userId;
21036
      this.name = name;
20024
      setUserIdIsSet(true);
-
 
20025
    }
21037
    }
20026
 
21038
 
20027
    /**
21039
    /**
20028
     * Performs a deep copy on <i>other</i>.
21040
     * Performs a deep copy on <i>other</i>.
20029
     */
21041
     */
20030
    public createCart_args(createCart_args other) {
21042
    public createMasterAffiliate_args(createMasterAffiliate_args other) {
20031
      __isset_bit_vector.clear();
21043
      if (other.isSetName()) {
20032
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
20033
      this.userId = other.userId;
21044
        this.name = other.name;
-
 
21045
      }
20034
    }
21046
    }
20035
 
21047
 
20036
    public createCart_args deepCopy() {
21048
    public createMasterAffiliate_args deepCopy() {
20037
      return new createCart_args(this);
21049
      return new createMasterAffiliate_args(this);
20038
    }
21050
    }
20039
 
21051
 
20040
    @Deprecated
21052
    @Deprecated
20041
    public createCart_args clone() {
21053
    public createMasterAffiliate_args clone() {
20042
      return new createCart_args(this);
21054
      return new createMasterAffiliate_args(this);
20043
    }
21055
    }
20044
 
21056
 
20045
    public long getUserId() {
21057
    public String getName() {
20046
      return this.userId;
21058
      return this.name;
20047
    }
21059
    }
20048
 
21060
 
20049
    public createCart_args setUserId(long userId) {
21061
    public createMasterAffiliate_args setName(String name) {
20050
      this.userId = userId;
21062
      this.name = name;
20051
      setUserIdIsSet(true);
-
 
20052
      return this;
21063
      return this;
20053
    }
21064
    }
20054
 
21065
 
20055
    public void unsetUserId() {
21066
    public void unsetName() {
20056
      __isset_bit_vector.clear(__USERID_ISSET_ID);
21067
      this.name = null;
20057
    }
21068
    }
20058
 
21069
 
20059
    /** Returns true if field userId is set (has been asigned a value) and false otherwise */
21070
    /** Returns true if field name is set (has been asigned a value) and false otherwise */
20060
    public boolean isSetUserId() {
21071
    public boolean isSetName() {
20061
      return __isset_bit_vector.get(__USERID_ISSET_ID);
21072
      return this.name != null;
20062
    }
21073
    }
20063
 
21074
 
20064
    public void setUserIdIsSet(boolean value) {
21075
    public void setNameIsSet(boolean value) {
-
 
21076
      if (!value) {
20065
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
21077
        this.name = null;
-
 
21078
      }
20066
    }
21079
    }
20067
 
21080
 
20068
    public void setFieldValue(_Fields field, Object value) {
21081
    public void setFieldValue(_Fields field, Object value) {
20069
      switch (field) {
21082
      switch (field) {
20070
      case USER_ID:
21083
      case NAME:
20071
        if (value == null) {
21084
        if (value == null) {
20072
          unsetUserId();
21085
          unsetName();
20073
        } else {
21086
        } else {
20074
          setUserId((Long)value);
21087
          setName((String)value);
20075
        }
21088
        }
20076
        break;
21089
        break;
20077
 
21090
 
20078
      }
21091
      }
20079
    }
21092
    }
Line 20082... Line 21095...
20082
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
21095
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
20083
    }
21096
    }
20084
 
21097
 
20085
    public Object getFieldValue(_Fields field) {
21098
    public Object getFieldValue(_Fields field) {
20086
      switch (field) {
21099
      switch (field) {
20087
      case USER_ID:
21100
      case NAME:
20088
        return new Long(getUserId());
21101
        return getName();
20089
 
21102
 
20090
      }
21103
      }
20091
      throw new IllegalStateException();
21104
      throw new IllegalStateException();
20092
    }
21105
    }
20093
 
21106
 
Line 20096... Line 21109...
20096
    }
21109
    }
20097
 
21110
 
20098
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
21111
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
20099
    public boolean isSet(_Fields field) {
21112
    public boolean isSet(_Fields field) {
20100
      switch (field) {
21113
      switch (field) {
20101
      case USER_ID:
21114
      case NAME:
20102
        return isSetUserId();
21115
        return isSetName();
20103
      }
21116
      }
20104
      throw new IllegalStateException();
21117
      throw new IllegalStateException();
20105
    }
21118
    }
20106
 
21119
 
20107
    public boolean isSet(int fieldID) {
21120
    public boolean isSet(int fieldID) {
Line 20110... Line 21123...
20110
 
21123
 
20111
    @Override
21124
    @Override
20112
    public boolean equals(Object that) {
21125
    public boolean equals(Object that) {
20113
      if (that == null)
21126
      if (that == null)
20114
        return false;
21127
        return false;
20115
      if (that instanceof createCart_args)
21128
      if (that instanceof createMasterAffiliate_args)
20116
        return this.equals((createCart_args)that);
21129
        return this.equals((createMasterAffiliate_args)that);
20117
      return false;
21130
      return false;
20118
    }
21131
    }
20119
 
21132
 
20120
    public boolean equals(createCart_args that) {
21133
    public boolean equals(createMasterAffiliate_args that) {
20121
      if (that == null)
21134
      if (that == null)
20122
        return false;
21135
        return false;
20123
 
21136
 
20124
      boolean this_present_userId = true;
21137
      boolean this_present_name = true && this.isSetName();
20125
      boolean that_present_userId = true;
21138
      boolean that_present_name = true && that.isSetName();
20126
      if (this_present_userId || that_present_userId) {
21139
      if (this_present_name || that_present_name) {
20127
        if (!(this_present_userId && that_present_userId))
21140
        if (!(this_present_name && that_present_name))
20128
          return false;
21141
          return false;
20129
        if (this.userId != that.userId)
21142
        if (!this.name.equals(that.name))
20130
          return false;
21143
          return false;
20131
      }
21144
      }
20132
 
21145
 
20133
      return true;
21146
      return true;
20134
    }
21147
    }
Line 20136... Line 21149...
20136
    @Override
21149
    @Override
20137
    public int hashCode() {
21150
    public int hashCode() {
20138
      return 0;
21151
      return 0;
20139
    }
21152
    }
20140
 
21153
 
20141
    public int compareTo(createCart_args other) {
21154
    public int compareTo(createMasterAffiliate_args other) {
20142
      if (!getClass().equals(other.getClass())) {
21155
      if (!getClass().equals(other.getClass())) {
20143
        return getClass().getName().compareTo(other.getClass().getName());
21156
        return getClass().getName().compareTo(other.getClass().getName());
20144
      }
21157
      }
20145
 
21158
 
20146
      int lastComparison = 0;
21159
      int lastComparison = 0;
20147
      createCart_args typedOther = (createCart_args)other;
21160
      createMasterAffiliate_args typedOther = (createMasterAffiliate_args)other;
20148
 
21161
 
20149
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(isSetUserId());
21162
      lastComparison = Boolean.valueOf(isSetName()).compareTo(isSetName());
20150
      if (lastComparison != 0) {
21163
      if (lastComparison != 0) {
20151
        return lastComparison;
21164
        return lastComparison;
20152
      }
21165
      }
20153
      lastComparison = TBaseHelper.compareTo(userId, typedOther.userId);
21166
      lastComparison = TBaseHelper.compareTo(name, typedOther.name);
20154
      if (lastComparison != 0) {
21167
      if (lastComparison != 0) {
20155
        return lastComparison;
21168
        return lastComparison;
20156
      }
21169
      }
20157
      return 0;
21170
      return 0;
20158
    }
21171
    }
Line 20169... Line 21182...
20169
        _Fields fieldId = _Fields.findByThriftId(field.id);
21182
        _Fields fieldId = _Fields.findByThriftId(field.id);
20170
        if (fieldId == null) {
21183
        if (fieldId == null) {
20171
          TProtocolUtil.skip(iprot, field.type);
21184
          TProtocolUtil.skip(iprot, field.type);
20172
        } else {
21185
        } else {
20173
          switch (fieldId) {
21186
          switch (fieldId) {
20174
            case USER_ID:
21187
            case NAME:
20175
              if (field.type == TType.I64) {
21188
              if (field.type == TType.STRING) {
20176
                this.userId = iprot.readI64();
21189
                this.name = iprot.readString();
20177
                setUserIdIsSet(true);
-
 
20178
              } else { 
21190
              } else { 
20179
                TProtocolUtil.skip(iprot, field.type);
21191
                TProtocolUtil.skip(iprot, field.type);
20180
              }
21192
              }
20181
              break;
21193
              break;
20182
          }
21194
          }
Line 20189... Line 21201...
20189
 
21201
 
20190
    public void write(TProtocol oprot) throws TException {
21202
    public void write(TProtocol oprot) throws TException {
20191
      validate();
21203
      validate();
20192
 
21204
 
20193
      oprot.writeStructBegin(STRUCT_DESC);
21205
      oprot.writeStructBegin(STRUCT_DESC);
-
 
21206
      if (this.name != null) {
20194
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
21207
        oprot.writeFieldBegin(NAME_FIELD_DESC);
20195
      oprot.writeI64(this.userId);
21208
        oprot.writeString(this.name);
20196
      oprot.writeFieldEnd();
21209
        oprot.writeFieldEnd();
-
 
21210
      }
20197
      oprot.writeFieldStop();
21211
      oprot.writeFieldStop();
20198
      oprot.writeStructEnd();
21212
      oprot.writeStructEnd();
20199
    }
21213
    }
20200
 
21214
 
20201
    @Override
21215
    @Override
20202
    public String toString() {
21216
    public String toString() {
20203
      StringBuilder sb = new StringBuilder("createCart_args(");
21217
      StringBuilder sb = new StringBuilder("createMasterAffiliate_args(");
20204
      boolean first = true;
21218
      boolean first = true;
20205
 
21219
 
20206
      sb.append("userId:");
21220
      sb.append("name:");
-
 
21221
      if (this.name == null) {
-
 
21222
        sb.append("null");
-
 
21223
      } else {
20207
      sb.append(this.userId);
21224
        sb.append(this.name);
-
 
21225
      }
20208
      first = false;
21226
      first = false;
20209
      sb.append(")");
21227
      sb.append(")");
20210
      return sb.toString();
21228
      return sb.toString();
20211
    }
21229
    }
20212
 
21230
 
Line 20214... Line 21232...
20214
      // check for required fields
21232
      // check for required fields
20215
    }
21233
    }
20216
 
21234
 
20217
  }
21235
  }
20218
 
21236
 
20219
  public static class createCart_result implements TBase<createCart_result._Fields>, java.io.Serializable, Cloneable, Comparable<createCart_result>   {
21237
  public static class createMasterAffiliate_result implements TBase<createMasterAffiliate_result._Fields>, java.io.Serializable, Cloneable, Comparable<createMasterAffiliate_result>   {
20220
    private static final TStruct STRUCT_DESC = new TStruct("createCart_result");
21238
    private static final TStruct STRUCT_DESC = new TStruct("createMasterAffiliate_result");
20221
 
21239
 
20222
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I64, (short)0);
21240
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
20223
    private static final TField SCX_FIELD_DESC = new TField("scx", TType.STRUCT, (short)1);
21241
    private static final TField UTX_FIELD_DESC = new TField("utx", TType.STRUCT, (short)1);
20224
 
21242
 
20225
    private long success;
21243
    private MasterAffiliate success;
20226
    private ShoppingCartException scx;
21244
    private UserTrackerException utx;
20227
 
21245
 
20228
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21246
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20229
    public enum _Fields implements TFieldIdEnum {
21247
    public enum _Fields implements TFieldIdEnum {
20230
      SUCCESS((short)0, "success"),
21248
      SUCCESS((short)0, "success"),
20231
      SCX((short)1, "scx");
21249
      UTX((short)1, "utx");
20232
 
21250
 
20233
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
21251
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
20234
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21252
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20235
 
21253
 
20236
      static {
21254
      static {
Line 20280... Line 21298...
20280
        return _fieldName;
21298
        return _fieldName;
20281
      }
21299
      }
20282
    }
21300
    }
20283
 
21301
 
20284
    // isset id assignments
21302
    // isset id assignments
20285
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
20286
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
20287
 
21303
 
20288
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
21304
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
20289
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
21305
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
20290
          new FieldValueMetaData(TType.I64)));
21306
          new StructMetaData(TType.STRUCT, MasterAffiliate.class)));
20291
      put(_Fields.SCX, new FieldMetaData("scx", TFieldRequirementType.DEFAULT, 
21307
      put(_Fields.UTX, new FieldMetaData("utx", TFieldRequirementType.DEFAULT, 
20292
          new FieldValueMetaData(TType.STRUCT)));
21308
          new FieldValueMetaData(TType.STRUCT)));
20293
    }});
21309
    }});
20294
 
21310
 
20295
    static {
21311
    static {
20296
      FieldMetaData.addStructMetaDataMap(createCart_result.class, metaDataMap);
21312
      FieldMetaData.addStructMetaDataMap(createMasterAffiliate_result.class, metaDataMap);
20297
    }
21313
    }
20298
 
21314
 
20299
    public createCart_result() {
21315
    public createMasterAffiliate_result() {
20300
    }
21316
    }
20301
 
21317
 
20302
    public createCart_result(
21318
    public createMasterAffiliate_result(
20303
      long success,
21319
      MasterAffiliate success,
20304
      ShoppingCartException scx)
21320
      UserTrackerException utx)
20305
    {
21321
    {
20306
      this();
21322
      this();
20307
      this.success = success;
21323
      this.success = success;
20308
      setSuccessIsSet(true);
-
 
20309
      this.scx = scx;
21324
      this.utx = utx;
20310
    }
21325
    }
20311
 
21326
 
20312
    /**
21327
    /**
20313
     * Performs a deep copy on <i>other</i>.
21328
     * Performs a deep copy on <i>other</i>.
20314
     */
21329
     */
20315
    public createCart_result(createCart_result other) {
21330
    public createMasterAffiliate_result(createMasterAffiliate_result other) {
20316
      __isset_bit_vector.clear();
21331
      if (other.isSetSuccess()) {
20317
      __isset_bit_vector.or(other.__isset_bit_vector);
21332
        this.success = new MasterAffiliate(other.success);
20318
      this.success = other.success;
21333
      }
20319
      if (other.isSetScx()) {
21334
      if (other.isSetUtx()) {
20320
        this.scx = new ShoppingCartException(other.scx);
21335
        this.utx = new UserTrackerException(other.utx);
20321
      }
21336
      }
20322
    }
21337
    }
20323
 
21338
 
20324
    public createCart_result deepCopy() {
21339
    public createMasterAffiliate_result deepCopy() {
20325
      return new createCart_result(this);
21340
      return new createMasterAffiliate_result(this);
20326
    }
21341
    }
20327
 
21342
 
20328
    @Deprecated
21343
    @Deprecated
20329
    public createCart_result clone() {
21344
    public createMasterAffiliate_result clone() {
20330
      return new createCart_result(this);
21345
      return new createMasterAffiliate_result(this);
20331
    }
21346
    }
20332
 
21347
 
20333
    public long getSuccess() {
21348
    public MasterAffiliate getSuccess() {
20334
      return this.success;
21349
      return this.success;
20335
    }
21350
    }
20336
 
21351
 
20337
    public createCart_result setSuccess(long success) {
21352
    public createMasterAffiliate_result setSuccess(MasterAffiliate success) {
20338
      this.success = success;
21353
      this.success = success;
20339
      setSuccessIsSet(true);
-
 
20340
      return this;
21354
      return this;
20341
    }
21355
    }
20342
 
21356
 
20343
    public void unsetSuccess() {
21357
    public void unsetSuccess() {
20344
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
21358
      this.success = null;
20345
    }
21359
    }
20346
 
21360
 
20347
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
21361
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
20348
    public boolean isSetSuccess() {
21362
    public boolean isSetSuccess() {
20349
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
21363
      return this.success != null;
20350
    }
21364
    }
20351
 
21365
 
20352
    public void setSuccessIsSet(boolean value) {
21366
    public void setSuccessIsSet(boolean value) {
-
 
21367
      if (!value) {
20353
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
21368
        this.success = null;
-
 
21369
      }
20354
    }
21370
    }
20355
 
21371
 
20356
    public ShoppingCartException getScx() {
21372
    public UserTrackerException getUtx() {
20357
      return this.scx;
21373
      return this.utx;
20358
    }
21374
    }
20359
 
21375
 
20360
    public createCart_result setScx(ShoppingCartException scx) {
21376
    public createMasterAffiliate_result setUtx(UserTrackerException utx) {
20361
      this.scx = scx;
21377
      this.utx = utx;
20362
      return this;
21378
      return this;
20363
    }
21379
    }
20364
 
21380
 
20365
    public void unsetScx() {
21381
    public void unsetUtx() {
20366
      this.scx = null;
21382
      this.utx = null;
20367
    }
21383
    }
20368
 
21384
 
20369
    /** Returns true if field scx is set (has been asigned a value) and false otherwise */
21385
    /** Returns true if field utx is set (has been asigned a value) and false otherwise */
20370
    public boolean isSetScx() {
21386
    public boolean isSetUtx() {
20371
      return this.scx != null;
21387
      return this.utx != null;
20372
    }
21388
    }
20373
 
21389
 
20374
    public void setScxIsSet(boolean value) {
21390
    public void setUtxIsSet(boolean value) {
20375
      if (!value) {
21391
      if (!value) {
20376
        this.scx = null;
21392
        this.utx = null;
20377
      }
21393
      }
20378
    }
21394
    }
20379
 
21395
 
20380
    public void setFieldValue(_Fields field, Object value) {
21396
    public void setFieldValue(_Fields field, Object value) {
20381
      switch (field) {
21397
      switch (field) {
20382
      case SUCCESS:
21398
      case SUCCESS:
20383
        if (value == null) {
21399
        if (value == null) {
20384
          unsetSuccess();
21400
          unsetSuccess();
20385
        } else {
21401
        } else {
20386
          setSuccess((Long)value);
21402
          setSuccess((MasterAffiliate)value);
20387
        }
21403
        }
20388
        break;
21404
        break;
20389
 
21405
 
20390
      case SCX:
21406
      case UTX:
20391
        if (value == null) {
21407
        if (value == null) {
20392
          unsetScx();
21408
          unsetUtx();
20393
        } else {
21409
        } else {
20394
          setScx((ShoppingCartException)value);
21410
          setUtx((UserTrackerException)value);
20395
        }
21411
        }
20396
        break;
21412
        break;
20397
 
21413
 
20398
      }
21414
      }
20399
    }
21415
    }
Line 20403... Line 21419...
20403
    }
21419
    }
20404
 
21420
 
20405
    public Object getFieldValue(_Fields field) {
21421
    public Object getFieldValue(_Fields field) {
20406
      switch (field) {
21422
      switch (field) {
20407
      case SUCCESS:
21423
      case SUCCESS:
20408
        return new Long(getSuccess());
21424
        return getSuccess();
20409
 
21425
 
20410
      case SCX:
21426
      case UTX:
20411
        return getScx();
21427
        return getUtx();
20412
 
21428
 
20413
      }
21429
      }
20414
      throw new IllegalStateException();
21430
      throw new IllegalStateException();
20415
    }
21431
    }
20416
 
21432
 
Line 20421... Line 21437...
20421
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
21437
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
20422
    public boolean isSet(_Fields field) {
21438
    public boolean isSet(_Fields field) {
20423
      switch (field) {
21439
      switch (field) {
20424
      case SUCCESS:
21440
      case SUCCESS:
20425
        return isSetSuccess();
21441
        return isSetSuccess();
20426
      case SCX:
21442
      case UTX:
20427
        return isSetScx();
21443
        return isSetUtx();
20428
      }
21444
      }
20429
      throw new IllegalStateException();
21445
      throw new IllegalStateException();
20430
    }
21446
    }
20431
 
21447
 
20432
    public boolean isSet(int fieldID) {
21448
    public boolean isSet(int fieldID) {
Line 20435... Line 21451...
20435
 
21451
 
20436
    @Override
21452
    @Override
20437
    public boolean equals(Object that) {
21453
    public boolean equals(Object that) {
20438
      if (that == null)
21454
      if (that == null)
20439
        return false;
21455
        return false;
20440
      if (that instanceof createCart_result)
21456
      if (that instanceof createMasterAffiliate_result)
20441
        return this.equals((createCart_result)that);
21457
        return this.equals((createMasterAffiliate_result)that);
20442
      return false;
21458
      return false;
20443
    }
21459
    }
20444
 
21460
 
20445
    public boolean equals(createCart_result that) {
21461
    public boolean equals(createMasterAffiliate_result that) {
20446
      if (that == null)
21462
      if (that == null)
20447
        return false;
21463
        return false;
20448
 
21464
 
20449
      boolean this_present_success = true;
21465
      boolean this_present_success = true && this.isSetSuccess();
20450
      boolean that_present_success = true;
21466
      boolean that_present_success = true && that.isSetSuccess();
20451
      if (this_present_success || that_present_success) {
21467
      if (this_present_success || that_present_success) {
20452
        if (!(this_present_success && that_present_success))
21468
        if (!(this_present_success && that_present_success))
20453
          return false;
21469
          return false;
20454
        if (this.success != that.success)
21470
        if (!this.success.equals(that.success))
20455
          return false;
21471
          return false;
20456
      }
21472
      }
20457
 
21473
 
20458
      boolean this_present_scx = true && this.isSetScx();
21474
      boolean this_present_utx = true && this.isSetUtx();
20459
      boolean that_present_scx = true && that.isSetScx();
21475
      boolean that_present_utx = true && that.isSetUtx();
20460
      if (this_present_scx || that_present_scx) {
21476
      if (this_present_utx || that_present_utx) {
20461
        if (!(this_present_scx && that_present_scx))
21477
        if (!(this_present_utx && that_present_utx))
20462
          return false;
21478
          return false;
20463
        if (!this.scx.equals(that.scx))
21479
        if (!this.utx.equals(that.utx))
20464
          return false;
21480
          return false;
20465
      }
21481
      }
20466
 
21482
 
20467
      return true;
21483
      return true;
20468
    }
21484
    }
Line 20470... Line 21486...
20470
    @Override
21486
    @Override
20471
    public int hashCode() {
21487
    public int hashCode() {
20472
      return 0;
21488
      return 0;
20473
    }
21489
    }
20474
 
21490
 
20475
    public int compareTo(createCart_result other) {
21491
    public int compareTo(createMasterAffiliate_result other) {
20476
      if (!getClass().equals(other.getClass())) {
21492
      if (!getClass().equals(other.getClass())) {
20477
        return getClass().getName().compareTo(other.getClass().getName());
21493
        return getClass().getName().compareTo(other.getClass().getName());
20478
      }
21494
      }
20479
 
21495
 
20480
      int lastComparison = 0;
21496
      int lastComparison = 0;
20481
      createCart_result typedOther = (createCart_result)other;
21497
      createMasterAffiliate_result typedOther = (createMasterAffiliate_result)other;
20482
 
21498
 
20483
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
21499
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
20484
      if (lastComparison != 0) {
21500
      if (lastComparison != 0) {
20485
        return lastComparison;
21501
        return lastComparison;
20486
      }
21502
      }
20487
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
21503
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
20488
      if (lastComparison != 0) {
21504
      if (lastComparison != 0) {
20489
        return lastComparison;
21505
        return lastComparison;
20490
      }
21506
      }
20491
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(isSetScx());
21507
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(isSetUtx());
20492
      if (lastComparison != 0) {
21508
      if (lastComparison != 0) {
20493
        return lastComparison;
21509
        return lastComparison;
20494
      }
21510
      }
20495
      lastComparison = TBaseHelper.compareTo(scx, typedOther.scx);
21511
      lastComparison = TBaseHelper.compareTo(utx, typedOther.utx);
20496
      if (lastComparison != 0) {
21512
      if (lastComparison != 0) {
20497
        return lastComparison;
21513
        return lastComparison;
20498
      }
21514
      }
20499
      return 0;
21515
      return 0;
20500
    }
21516
    }
Line 20512... Line 21528...
20512
        if (fieldId == null) {
21528
        if (fieldId == null) {
20513
          TProtocolUtil.skip(iprot, field.type);
21529
          TProtocolUtil.skip(iprot, field.type);
20514
        } else {
21530
        } else {
20515
          switch (fieldId) {
21531
          switch (fieldId) {
20516
            case SUCCESS:
21532
            case SUCCESS:
20517
              if (field.type == TType.I64) {
21533
              if (field.type == TType.STRUCT) {
20518
                this.success = iprot.readI64();
21534
                this.success = new MasterAffiliate();
20519
                setSuccessIsSet(true);
21535
                this.success.read(iprot);
20520
              } else { 
21536
              } else { 
20521
                TProtocolUtil.skip(iprot, field.type);
21537
                TProtocolUtil.skip(iprot, field.type);
20522
              }
21538
              }
20523
              break;
21539
              break;
20524
            case SCX:
21540
            case UTX:
20525
              if (field.type == TType.STRUCT) {
21541
              if (field.type == TType.STRUCT) {
20526
                this.scx = new ShoppingCartException();
21542
                this.utx = new UserTrackerException();
20527
                this.scx.read(iprot);
21543
                this.utx.read(iprot);
20528
              } else { 
21544
              } else { 
20529
                TProtocolUtil.skip(iprot, field.type);
21545
                TProtocolUtil.skip(iprot, field.type);
20530
              }
21546
              }
20531
              break;
21547
              break;
20532
          }
21548
          }
Line 20540... Line 21556...
20540
    public void write(TProtocol oprot) throws TException {
21556
    public void write(TProtocol oprot) throws TException {
20541
      oprot.writeStructBegin(STRUCT_DESC);
21557
      oprot.writeStructBegin(STRUCT_DESC);
20542
 
21558
 
20543
      if (this.isSetSuccess()) {
21559
      if (this.isSetSuccess()) {
20544
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21560
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20545
        oprot.writeI64(this.success);
21561
        this.success.write(oprot);
20546
        oprot.writeFieldEnd();
21562
        oprot.writeFieldEnd();
20547
      } else if (this.isSetScx()) {
21563
      } else if (this.isSetUtx()) {
20548
        oprot.writeFieldBegin(SCX_FIELD_DESC);
21564
        oprot.writeFieldBegin(UTX_FIELD_DESC);
20549
        this.scx.write(oprot);
21565
        this.utx.write(oprot);
20550
        oprot.writeFieldEnd();
21566
        oprot.writeFieldEnd();
20551
      }
21567
      }
20552
      oprot.writeFieldStop();
21568
      oprot.writeFieldStop();
20553
      oprot.writeStructEnd();
21569
      oprot.writeStructEnd();
20554
    }
21570
    }
20555
 
21571
 
20556
    @Override
21572
    @Override
20557
    public String toString() {
21573
    public String toString() {
20558
      StringBuilder sb = new StringBuilder("createCart_result(");
21574
      StringBuilder sb = new StringBuilder("createMasterAffiliate_result(");
20559
      boolean first = true;
21575
      boolean first = true;
20560
 
21576
 
20561
      sb.append("success:");
21577
      sb.append("success:");
-
 
21578
      if (this.success == null) {
-
 
21579
        sb.append("null");
-
 
21580
      } else {
20562
      sb.append(this.success);
21581
        sb.append(this.success);
-
 
21582
      }
20563
      first = false;
21583
      first = false;
20564
      if (!first) sb.append(", ");
21584
      if (!first) sb.append(", ");
20565
      sb.append("scx:");
21585
      sb.append("utx:");
20566
      if (this.scx == null) {
21586
      if (this.utx == null) {
20567
        sb.append("null");
21587
        sb.append("null");
20568
      } else {
21588
      } else {
20569
        sb.append(this.scx);
21589
        sb.append(this.utx);
20570
      }
21590
      }
20571
      first = false;
21591
      first = false;
20572
      sb.append(")");
21592
      sb.append(")");
20573
      return sb.toString();
21593
      return sb.toString();
20574
    }
21594
    }
Line 20577... Line 21597...
20577
      // check for required fields
21597
      // check for required fields
20578
    }
21598
    }
20579
 
21599
 
20580
  }
21600
  }
20581
 
21601
 
20582
  public static class getCurrentCart_args implements TBase<getCurrentCart_args._Fields>, java.io.Serializable, Cloneable, Comparable<getCurrentCart_args>   {
21602
  public static class getMasterAffiliateById_args implements TBase<getMasterAffiliateById_args._Fields>, java.io.Serializable, Cloneable, Comparable<getMasterAffiliateById_args>   {
20583
    private static final TStruct STRUCT_DESC = new TStruct("getCurrentCart_args");
21603
    private static final TStruct STRUCT_DESC = new TStruct("getMasterAffiliateById_args");
20584
 
21604
 
20585
    private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)1);
21605
    private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
20586
 
21606
 
20587
    private long userId;
21607
    private long id;
20588
 
21608
 
20589
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21609
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20590
    public enum _Fields implements TFieldIdEnum {
21610
    public enum _Fields implements TFieldIdEnum {
20591
      USER_ID((short)1, "userId");
21611
      ID((short)1, "id");
20592
 
21612
 
20593
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
21613
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
20594
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21614
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20595
 
21615
 
20596
      static {
21616
      static {
Line 20640... Line 21660...
20640
        return _fieldName;
21660
        return _fieldName;
20641
      }
21661
      }
20642
    }
21662
    }
20643
 
21663
 
20644
    // isset id assignments
21664
    // isset id assignments
20645
    private static final int __USERID_ISSET_ID = 0;
21665
    private static final int __ID_ISSET_ID = 0;
20646
    private BitSet __isset_bit_vector = new BitSet(1);
21666
    private BitSet __isset_bit_vector = new BitSet(1);
20647
 
21667
 
20648
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
21668
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
20649
      put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT, 
21669
      put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
20650
          new FieldValueMetaData(TType.I64)));
21670
          new FieldValueMetaData(TType.I64)));
20651
    }});
21671
    }});
20652
 
21672
 
20653
    static {
21673
    static {
20654
      FieldMetaData.addStructMetaDataMap(getCurrentCart_args.class, metaDataMap);
21674
      FieldMetaData.addStructMetaDataMap(getMasterAffiliateById_args.class, metaDataMap);
20655
    }
21675
    }
20656
 
21676
 
20657
    public getCurrentCart_args() {
21677
    public getMasterAffiliateById_args() {
20658
    }
21678
    }
20659
 
21679
 
20660
    public getCurrentCart_args(
21680
    public getMasterAffiliateById_args(
20661
      long userId)
21681
      long id)
20662
    {
21682
    {
20663
      this();
21683
      this();
20664
      this.userId = userId;
21684
      this.id = id;
20665
      setUserIdIsSet(true);
21685
      setIdIsSet(true);
20666
    }
21686
    }
20667
 
21687
 
20668
    /**
21688
    /**
20669
     * Performs a deep copy on <i>other</i>.
21689
     * Performs a deep copy on <i>other</i>.
20670
     */
21690
     */
20671
    public getCurrentCart_args(getCurrentCart_args other) {
21691
    public getMasterAffiliateById_args(getMasterAffiliateById_args other) {
20672
      __isset_bit_vector.clear();
21692
      __isset_bit_vector.clear();
20673
      __isset_bit_vector.or(other.__isset_bit_vector);
21693
      __isset_bit_vector.or(other.__isset_bit_vector);
20674
      this.userId = other.userId;
21694
      this.id = other.id;
20675
    }
21695
    }
20676
 
21696
 
20677
    public getCurrentCart_args deepCopy() {
21697
    public getMasterAffiliateById_args deepCopy() {
20678
      return new getCurrentCart_args(this);
21698
      return new getMasterAffiliateById_args(this);
20679
    }
21699
    }
20680
 
21700
 
20681
    @Deprecated
21701
    @Deprecated
20682
    public getCurrentCart_args clone() {
21702
    public getMasterAffiliateById_args clone() {
20683
      return new getCurrentCart_args(this);
21703
      return new getMasterAffiliateById_args(this);
20684
    }
21704
    }
20685
 
21705
 
20686
    public long getUserId() {
21706
    public long getId() {
20687
      return this.userId;
21707
      return this.id;
20688
    }
21708
    }
20689
 
21709
 
20690
    public getCurrentCart_args setUserId(long userId) {
21710
    public getMasterAffiliateById_args setId(long id) {
20691
      this.userId = userId;
21711
      this.id = id;
20692
      setUserIdIsSet(true);
21712
      setIdIsSet(true);
20693
      return this;
21713
      return this;
20694
    }
21714
    }
20695
 
21715
 
20696
    public void unsetUserId() {
21716
    public void unsetId() {
20697
      __isset_bit_vector.clear(__USERID_ISSET_ID);
21717
      __isset_bit_vector.clear(__ID_ISSET_ID);
20698
    }
21718
    }
20699
 
21719
 
20700
    /** Returns true if field userId is set (has been asigned a value) and false otherwise */
21720
    /** Returns true if field id is set (has been asigned a value) and false otherwise */
20701
    public boolean isSetUserId() {
21721
    public boolean isSetId() {
20702
      return __isset_bit_vector.get(__USERID_ISSET_ID);
21722
      return __isset_bit_vector.get(__ID_ISSET_ID);
20703
    }
21723
    }
20704
 
21724
 
20705
    public void setUserIdIsSet(boolean value) {
21725
    public void setIdIsSet(boolean value) {
20706
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
21726
      __isset_bit_vector.set(__ID_ISSET_ID, value);
20707
    }
21727
    }
20708
 
21728
 
20709
    public void setFieldValue(_Fields field, Object value) {
21729
    public void setFieldValue(_Fields field, Object value) {
20710
      switch (field) {
21730
      switch (field) {
20711
      case USER_ID:
21731
      case ID:
20712
        if (value == null) {
21732
        if (value == null) {
20713
          unsetUserId();
21733
          unsetId();
20714
        } else {
21734
        } else {
20715
          setUserId((Long)value);
21735
          setId((Long)value);
20716
        }
21736
        }
20717
        break;
21737
        break;
20718
 
21738
 
20719
      }
21739
      }
20720
    }
21740
    }
Line 20723... Line 21743...
20723
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
21743
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
20724
    }
21744
    }
20725
 
21745
 
20726
    public Object getFieldValue(_Fields field) {
21746
    public Object getFieldValue(_Fields field) {
20727
      switch (field) {
21747
      switch (field) {
20728
      case USER_ID:
21748
      case ID:
20729
        return new Long(getUserId());
21749
        return new Long(getId());
20730
 
21750
 
20731
      }
21751
      }
20732
      throw new IllegalStateException();
21752
      throw new IllegalStateException();
20733
    }
21753
    }
20734
 
21754
 
Line 20737... Line 21757...
20737
    }
21757
    }
20738
 
21758
 
20739
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
21759
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
20740
    public boolean isSet(_Fields field) {
21760
    public boolean isSet(_Fields field) {
20741
      switch (field) {
21761
      switch (field) {
20742
      case USER_ID:
21762
      case ID:
20743
        return isSetUserId();
21763
        return isSetId();
20744
      }
21764
      }
20745
      throw new IllegalStateException();
21765
      throw new IllegalStateException();
20746
    }
21766
    }
20747
 
21767
 
20748
    public boolean isSet(int fieldID) {
21768
    public boolean isSet(int fieldID) {
Line 20751... Line 21771...
20751
 
21771
 
20752
    @Override
21772
    @Override
20753
    public boolean equals(Object that) {
21773
    public boolean equals(Object that) {
20754
      if (that == null)
21774
      if (that == null)
20755
        return false;
21775
        return false;
20756
      if (that instanceof getCurrentCart_args)
21776
      if (that instanceof getMasterAffiliateById_args)
20757
        return this.equals((getCurrentCart_args)that);
21777
        return this.equals((getMasterAffiliateById_args)that);
20758
      return false;
21778
      return false;
20759
    }
21779
    }
20760
 
21780
 
20761
    public boolean equals(getCurrentCart_args that) {
21781
    public boolean equals(getMasterAffiliateById_args that) {
20762
      if (that == null)
21782
      if (that == null)
20763
        return false;
21783
        return false;
20764
 
21784
 
20765
      boolean this_present_userId = true;
21785
      boolean this_present_id = true;
20766
      boolean that_present_userId = true;
21786
      boolean that_present_id = true;
20767
      if (this_present_userId || that_present_userId) {
21787
      if (this_present_id || that_present_id) {
20768
        if (!(this_present_userId && that_present_userId))
21788
        if (!(this_present_id && that_present_id))
20769
          return false;
21789
          return false;
20770
        if (this.userId != that.userId)
21790
        if (this.id != that.id)
20771
          return false;
21791
          return false;
20772
      }
21792
      }
20773
 
21793
 
20774
      return true;
21794
      return true;
20775
    }
21795
    }
Line 20777... Line 21797...
20777
    @Override
21797
    @Override
20778
    public int hashCode() {
21798
    public int hashCode() {
20779
      return 0;
21799
      return 0;
20780
    }
21800
    }
20781
 
21801
 
20782
    public int compareTo(getCurrentCart_args other) {
21802
    public int compareTo(getMasterAffiliateById_args other) {
20783
      if (!getClass().equals(other.getClass())) {
21803
      if (!getClass().equals(other.getClass())) {
20784
        return getClass().getName().compareTo(other.getClass().getName());
21804
        return getClass().getName().compareTo(other.getClass().getName());
20785
      }
21805
      }
20786
 
21806
 
20787
      int lastComparison = 0;
21807
      int lastComparison = 0;
20788
      getCurrentCart_args typedOther = (getCurrentCart_args)other;
21808
      getMasterAffiliateById_args typedOther = (getMasterAffiliateById_args)other;
20789
 
21809
 
20790
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(isSetUserId());
21810
      lastComparison = Boolean.valueOf(isSetId()).compareTo(isSetId());
20791
      if (lastComparison != 0) {
21811
      if (lastComparison != 0) {
20792
        return lastComparison;
21812
        return lastComparison;
20793
      }
21813
      }
20794
      lastComparison = TBaseHelper.compareTo(userId, typedOther.userId);
21814
      lastComparison = TBaseHelper.compareTo(id, typedOther.id);
20795
      if (lastComparison != 0) {
21815
      if (lastComparison != 0) {
20796
        return lastComparison;
21816
        return lastComparison;
20797
      }
21817
      }
20798
      return 0;
21818
      return 0;
20799
    }
21819
    }
Line 20810... Line 21830...
20810
        _Fields fieldId = _Fields.findByThriftId(field.id);
21830
        _Fields fieldId = _Fields.findByThriftId(field.id);
20811
        if (fieldId == null) {
21831
        if (fieldId == null) {
20812
          TProtocolUtil.skip(iprot, field.type);
21832
          TProtocolUtil.skip(iprot, field.type);
20813
        } else {
21833
        } else {
20814
          switch (fieldId) {
21834
          switch (fieldId) {
20815
            case USER_ID:
21835
            case ID:
20816
              if (field.type == TType.I64) {
21836
              if (field.type == TType.I64) {
20817
                this.userId = iprot.readI64();
21837
                this.id = iprot.readI64();
20818
                setUserIdIsSet(true);
21838
                setIdIsSet(true);
20819
              } else { 
21839
              } else { 
20820
                TProtocolUtil.skip(iprot, field.type);
21840
                TProtocolUtil.skip(iprot, field.type);
20821
              }
21841
              }
20822
              break;
21842
              break;
20823
          }
21843
          }
Line 20830... Line 21850...
20830
 
21850
 
20831
    public void write(TProtocol oprot) throws TException {
21851
    public void write(TProtocol oprot) throws TException {
20832
      validate();
21852
      validate();
20833
 
21853
 
20834
      oprot.writeStructBegin(STRUCT_DESC);
21854
      oprot.writeStructBegin(STRUCT_DESC);
20835
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
21855
      oprot.writeFieldBegin(ID_FIELD_DESC);
20836
      oprot.writeI64(this.userId);
21856
      oprot.writeI64(this.id);
20837
      oprot.writeFieldEnd();
21857
      oprot.writeFieldEnd();
20838
      oprot.writeFieldStop();
21858
      oprot.writeFieldStop();
20839
      oprot.writeStructEnd();
21859
      oprot.writeStructEnd();
20840
    }
21860
    }
20841
 
21861
 
20842
    @Override
21862
    @Override
20843
    public String toString() {
21863
    public String toString() {
20844
      StringBuilder sb = new StringBuilder("getCurrentCart_args(");
21864
      StringBuilder sb = new StringBuilder("getMasterAffiliateById_args(");
20845
      boolean first = true;
21865
      boolean first = true;
20846
 
21866
 
20847
      sb.append("userId:");
21867
      sb.append("id:");
20848
      sb.append(this.userId);
21868
      sb.append(this.id);
20849
      first = false;
21869
      first = false;
20850
      sb.append(")");
21870
      sb.append(")");
20851
      return sb.toString();
21871
      return sb.toString();
20852
    }
21872
    }
20853
 
21873
 
Line 20855... Line 21875...
20855
      // check for required fields
21875
      // check for required fields
20856
    }
21876
    }
20857
 
21877
 
20858
  }
21878
  }
20859
 
21879
 
20860
  public static class getCurrentCart_result implements TBase<getCurrentCart_result._Fields>, java.io.Serializable, Cloneable, Comparable<getCurrentCart_result>   {
21880
  public static class getMasterAffiliateById_result implements TBase<getMasterAffiliateById_result._Fields>, java.io.Serializable, Cloneable, Comparable<getMasterAffiliateById_result>   {
20861
    private static final TStruct STRUCT_DESC = new TStruct("getCurrentCart_result");
21881
    private static final TStruct STRUCT_DESC = new TStruct("getMasterAffiliateById_result");
20862
 
21882
 
20863
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
21883
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
20864
    private static final TField SCX_FIELD_DESC = new TField("scx", TType.STRUCT, (short)1);
21884
    private static final TField UTX_FIELD_DESC = new TField("utx", TType.STRUCT, (short)1);
20865
 
21885
 
20866
    private Cart success;
21886
    private MasterAffiliate success;
20867
    private ShoppingCartException scx;
21887
    private UserTrackerException utx;
20868
 
21888
 
20869
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21889
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20870
    public enum _Fields implements TFieldIdEnum {
21890
    public enum _Fields implements TFieldIdEnum {
20871
      SUCCESS((short)0, "success"),
21891
      SUCCESS((short)0, "success"),
20872
      SCX((short)1, "scx");
21892
      UTX((short)1, "utx");
20873
 
21893
 
20874
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
21894
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
20875
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21895
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20876
 
21896
 
20877
      static {
21897
      static {
Line 20924... Line 21944...
20924
 
21944
 
20925
    // isset id assignments
21945
    // isset id assignments
20926
 
21946
 
20927
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
21947
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
20928
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
21948
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
20929
          new StructMetaData(TType.STRUCT, Cart.class)));
21949
          new StructMetaData(TType.STRUCT, MasterAffiliate.class)));
20930
      put(_Fields.SCX, new FieldMetaData("scx", TFieldRequirementType.DEFAULT, 
21950
      put(_Fields.UTX, new FieldMetaData("utx", TFieldRequirementType.DEFAULT, 
20931
          new FieldValueMetaData(TType.STRUCT)));
21951
          new FieldValueMetaData(TType.STRUCT)));
20932
    }});
21952
    }});
20933
 
21953
 
20934
    static {
21954
    static {
20935
      FieldMetaData.addStructMetaDataMap(getCurrentCart_result.class, metaDataMap);
21955
      FieldMetaData.addStructMetaDataMap(getMasterAffiliateById_result.class, metaDataMap);
20936
    }
21956
    }
20937
 
21957
 
20938
    public getCurrentCart_result() {
21958
    public getMasterAffiliateById_result() {
20939
    }
21959
    }
20940
 
21960
 
20941
    public getCurrentCart_result(
21961
    public getMasterAffiliateById_result(
20942
      Cart success,
21962
      MasterAffiliate success,
20943
      ShoppingCartException scx)
21963
      UserTrackerException utx)
20944
    {
21964
    {
20945
      this();
21965
      this();
20946
      this.success = success;
21966
      this.success = success;
20947
      this.scx = scx;
21967
      this.utx = utx;
20948
    }
21968
    }
20949
 
21969
 
20950
    /**
21970
    /**
20951
     * Performs a deep copy on <i>other</i>.
21971
     * Performs a deep copy on <i>other</i>.
20952
     */
21972
     */
20953
    public getCurrentCart_result(getCurrentCart_result other) {
21973
    public getMasterAffiliateById_result(getMasterAffiliateById_result other) {
20954
      if (other.isSetSuccess()) {
21974
      if (other.isSetSuccess()) {
20955
        this.success = new Cart(other.success);
21975
        this.success = new MasterAffiliate(other.success);
20956
      }
21976
      }
20957
      if (other.isSetScx()) {
21977
      if (other.isSetUtx()) {
20958
        this.scx = new ShoppingCartException(other.scx);
21978
        this.utx = new UserTrackerException(other.utx);
20959
      }
21979
      }
20960
    }
21980
    }
20961
 
21981
 
20962
    public getCurrentCart_result deepCopy() {
21982
    public getMasterAffiliateById_result deepCopy() {
20963
      return new getCurrentCart_result(this);
21983
      return new getMasterAffiliateById_result(this);
20964
    }
21984
    }
20965
 
21985
 
20966
    @Deprecated
21986
    @Deprecated
20967
    public getCurrentCart_result clone() {
21987
    public getMasterAffiliateById_result clone() {
20968
      return new getCurrentCart_result(this);
21988
      return new getMasterAffiliateById_result(this);
20969
    }
21989
    }
20970
 
21990
 
20971
    public Cart getSuccess() {
21991
    public MasterAffiliate getSuccess() {
20972
      return this.success;
21992
      return this.success;
20973
    }
21993
    }
20974
 
21994
 
20975
    public getCurrentCart_result setSuccess(Cart success) {
21995
    public getMasterAffiliateById_result setSuccess(MasterAffiliate success) {
20976
      this.success = success;
21996
      this.success = success;
20977
      return this;
21997
      return this;
20978
    }
21998
    }
20979
 
21999
 
20980
    public void unsetSuccess() {
22000
    public void unsetSuccess() {
Line 20990... Line 22010...
20990
      if (!value) {
22010
      if (!value) {
20991
        this.success = null;
22011
        this.success = null;
20992
      }
22012
      }
20993
    }
22013
    }
20994
 
22014
 
20995
    public ShoppingCartException getScx() {
22015
    public UserTrackerException getUtx() {
20996
      return this.scx;
22016
      return this.utx;
20997
    }
22017
    }
20998
 
22018
 
20999
    public getCurrentCart_result setScx(ShoppingCartException scx) {
22019
    public getMasterAffiliateById_result setUtx(UserTrackerException utx) {
21000
      this.scx = scx;
22020
      this.utx = utx;
21001
      return this;
22021
      return this;
21002
    }
22022
    }
21003
 
22023
 
21004
    public void unsetScx() {
22024
    public void unsetUtx() {
21005
      this.scx = null;
22025
      this.utx = null;
21006
    }
22026
    }
21007
 
22027
 
21008
    /** Returns true if field scx is set (has been asigned a value) and false otherwise */
22028
    /** Returns true if field utx is set (has been asigned a value) and false otherwise */
21009
    public boolean isSetScx() {
22029
    public boolean isSetUtx() {
21010
      return this.scx != null;
22030
      return this.utx != null;
21011
    }
22031
    }
21012
 
22032
 
21013
    public void setScxIsSet(boolean value) {
22033
    public void setUtxIsSet(boolean value) {
21014
      if (!value) {
22034
      if (!value) {
21015
        this.scx = null;
22035
        this.utx = null;
21016
      }
22036
      }
21017
    }
22037
    }
21018
 
22038
 
21019
    public void setFieldValue(_Fields field, Object value) {
22039
    public void setFieldValue(_Fields field, Object value) {
21020
      switch (field) {
22040
      switch (field) {
21021
      case SUCCESS:
22041
      case SUCCESS:
21022
        if (value == null) {
22042
        if (value == null) {
21023
          unsetSuccess();
22043
          unsetSuccess();
21024
        } else {
22044
        } else {
21025
          setSuccess((Cart)value);
22045
          setSuccess((MasterAffiliate)value);
21026
        }
22046
        }
21027
        break;
22047
        break;
21028
 
22048
 
21029
      case SCX:
22049
      case UTX:
21030
        if (value == null) {
22050
        if (value == null) {
21031
          unsetScx();
22051
          unsetUtx();
21032
        } else {
22052
        } else {
21033
          setScx((ShoppingCartException)value);
22053
          setUtx((UserTrackerException)value);
21034
        }
22054
        }
21035
        break;
22055
        break;
21036
 
22056
 
21037
      }
22057
      }
21038
    }
22058
    }
Line 21044... Line 22064...
21044
    public Object getFieldValue(_Fields field) {
22064
    public Object getFieldValue(_Fields field) {
21045
      switch (field) {
22065
      switch (field) {
21046
      case SUCCESS:
22066
      case SUCCESS:
21047
        return getSuccess();
22067
        return getSuccess();
21048
 
22068
 
21049
      case SCX:
22069
      case UTX:
21050
        return getScx();
22070
        return getUtx();
21051
 
22071
 
21052
      }
22072
      }
21053
      throw new IllegalStateException();
22073
      throw new IllegalStateException();
21054
    }
22074
    }
21055
 
22075
 
Line 21060... Line 22080...
21060
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
22080
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
21061
    public boolean isSet(_Fields field) {
22081
    public boolean isSet(_Fields field) {
21062
      switch (field) {
22082
      switch (field) {
21063
      case SUCCESS:
22083
      case SUCCESS:
21064
        return isSetSuccess();
22084
        return isSetSuccess();
21065
      case SCX:
22085
      case UTX:
21066
        return isSetScx();
22086
        return isSetUtx();
21067
      }
22087
      }
21068
      throw new IllegalStateException();
22088
      throw new IllegalStateException();
21069
    }
22089
    }
21070
 
22090
 
21071
    public boolean isSet(int fieldID) {
22091
    public boolean isSet(int fieldID) {
Line 21074... Line 22094...
21074
 
22094
 
21075
    @Override
22095
    @Override
21076
    public boolean equals(Object that) {
22096
    public boolean equals(Object that) {
21077
      if (that == null)
22097
      if (that == null)
21078
        return false;
22098
        return false;
21079
      if (that instanceof getCurrentCart_result)
22099
      if (that instanceof getMasterAffiliateById_result)
21080
        return this.equals((getCurrentCart_result)that);
22100
        return this.equals((getMasterAffiliateById_result)that);
21081
      return false;
22101
      return false;
21082
    }
22102
    }
21083
 
22103
 
21084
    public boolean equals(getCurrentCart_result that) {
22104
    public boolean equals(getMasterAffiliateById_result that) {
21085
      if (that == null)
22105
      if (that == null)
21086
        return false;
22106
        return false;
21087
 
22107
 
21088
      boolean this_present_success = true && this.isSetSuccess();
22108
      boolean this_present_success = true && this.isSetSuccess();
21089
      boolean that_present_success = true && that.isSetSuccess();
22109
      boolean that_present_success = true && that.isSetSuccess();
Line 21092... Line 22112...
21092
          return false;
22112
          return false;
21093
        if (!this.success.equals(that.success))
22113
        if (!this.success.equals(that.success))
21094
          return false;
22114
          return false;
21095
      }
22115
      }
21096
 
22116
 
21097
      boolean this_present_scx = true && this.isSetScx();
22117
      boolean this_present_utx = true && this.isSetUtx();
21098
      boolean that_present_scx = true && that.isSetScx();
22118
      boolean that_present_utx = true && that.isSetUtx();
21099
      if (this_present_scx || that_present_scx) {
22119
      if (this_present_utx || that_present_utx) {
21100
        if (!(this_present_scx && that_present_scx))
22120
        if (!(this_present_utx && that_present_utx))
21101
          return false;
22121
          return false;
21102
        if (!this.scx.equals(that.scx))
22122
        if (!this.utx.equals(that.utx))
21103
          return false;
22123
          return false;
21104
      }
22124
      }
21105
 
22125
 
21106
      return true;
22126
      return true;
21107
    }
22127
    }
Line 21109... Line 22129...
21109
    @Override
22129
    @Override
21110
    public int hashCode() {
22130
    public int hashCode() {
21111
      return 0;
22131
      return 0;
21112
    }
22132
    }
21113
 
22133
 
21114
    public int compareTo(getCurrentCart_result other) {
22134
    public int compareTo(getMasterAffiliateById_result other) {
21115
      if (!getClass().equals(other.getClass())) {
22135
      if (!getClass().equals(other.getClass())) {
21116
        return getClass().getName().compareTo(other.getClass().getName());
22136
        return getClass().getName().compareTo(other.getClass().getName());
21117
      }
22137
      }
21118
 
22138
 
21119
      int lastComparison = 0;
22139
      int lastComparison = 0;
21120
      getCurrentCart_result typedOther = (getCurrentCart_result)other;
22140
      getMasterAffiliateById_result typedOther = (getMasterAffiliateById_result)other;
21121
 
22141
 
21122
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
22142
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
21123
      if (lastComparison != 0) {
22143
      if (lastComparison != 0) {
21124
        return lastComparison;
22144
        return lastComparison;
21125
      }
22145
      }
21126
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
22146
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
21127
      if (lastComparison != 0) {
22147
      if (lastComparison != 0) {
21128
        return lastComparison;
22148
        return lastComparison;
21129
      }
22149
      }
21130
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(isSetScx());
22150
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(isSetUtx());
21131
      if (lastComparison != 0) {
22151
      if (lastComparison != 0) {
21132
        return lastComparison;
22152
        return lastComparison;
21133
      }
22153
      }
21134
      lastComparison = TBaseHelper.compareTo(scx, typedOther.scx);
22154
      lastComparison = TBaseHelper.compareTo(utx, typedOther.utx);
21135
      if (lastComparison != 0) {
22155
      if (lastComparison != 0) {
21136
        return lastComparison;
22156
        return lastComparison;
21137
      }
22157
      }
21138
      return 0;
22158
      return 0;
21139
    }
22159
    }
Line 21152... Line 22172...
21152
          TProtocolUtil.skip(iprot, field.type);
22172
          TProtocolUtil.skip(iprot, field.type);
21153
        } else {
22173
        } else {
21154
          switch (fieldId) {
22174
          switch (fieldId) {
21155
            case SUCCESS:
22175
            case SUCCESS:
21156
              if (field.type == TType.STRUCT) {
22176
              if (field.type == TType.STRUCT) {
21157
                this.success = new Cart();
22177
                this.success = new MasterAffiliate();
21158
                this.success.read(iprot);
22178
                this.success.read(iprot);
21159
              } else { 
22179
              } else { 
21160
                TProtocolUtil.skip(iprot, field.type);
22180
                TProtocolUtil.skip(iprot, field.type);
21161
              }
22181
              }
21162
              break;
22182
              break;
21163
            case SCX:
22183
            case UTX:
21164
              if (field.type == TType.STRUCT) {
22184
              if (field.type == TType.STRUCT) {
21165
                this.scx = new ShoppingCartException();
22185
                this.utx = new UserTrackerException();
21166
                this.scx.read(iprot);
22186
                this.utx.read(iprot);
21167
              } else { 
22187
              } else { 
21168
                TProtocolUtil.skip(iprot, field.type);
22188
                TProtocolUtil.skip(iprot, field.type);
21169
              }
22189
              }
21170
              break;
22190
              break;
21171
          }
22191
          }
Line 21181... Line 22201...
21181
 
22201
 
21182
      if (this.isSetSuccess()) {
22202
      if (this.isSetSuccess()) {
21183
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22203
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21184
        this.success.write(oprot);
22204
        this.success.write(oprot);
21185
        oprot.writeFieldEnd();
22205
        oprot.writeFieldEnd();
21186
      } else if (this.isSetScx()) {
22206
      } else if (this.isSetUtx()) {
21187
        oprot.writeFieldBegin(SCX_FIELD_DESC);
22207
        oprot.writeFieldBegin(UTX_FIELD_DESC);
21188
        this.scx.write(oprot);
22208
        this.utx.write(oprot);
21189
        oprot.writeFieldEnd();
22209
        oprot.writeFieldEnd();
21190
      }
22210
      }
21191
      oprot.writeFieldStop();
22211
      oprot.writeFieldStop();
21192
      oprot.writeStructEnd();
22212
      oprot.writeStructEnd();
21193
    }
22213
    }
21194
 
22214
 
21195
    @Override
22215
    @Override
21196
    public String toString() {
22216
    public String toString() {
21197
      StringBuilder sb = new StringBuilder("getCurrentCart_result(");
22217
      StringBuilder sb = new StringBuilder("getMasterAffiliateById_result(");
21198
      boolean first = true;
22218
      boolean first = true;
21199
 
22219
 
21200
      sb.append("success:");
22220
      sb.append("success:");
21201
      if (this.success == null) {
22221
      if (this.success == null) {
21202
        sb.append("null");
22222
        sb.append("null");
21203
      } else {
22223
      } else {
21204
        sb.append(this.success);
22224
        sb.append(this.success);
21205
      }
22225
      }
21206
      first = false;
22226
      first = false;
21207
      if (!first) sb.append(", ");
22227
      if (!first) sb.append(", ");
21208
      sb.append("scx:");
22228
      sb.append("utx:");
21209
      if (this.scx == null) {
22229
      if (this.utx == null) {
21210
        sb.append("null");
22230
        sb.append("null");
21211
      } else {
22231
      } else {
21212
        sb.append(this.scx);
22232
        sb.append(this.utx);
21213
      }
22233
      }
21214
      first = false;
22234
      first = false;
21215
      sb.append(")");
22235
      sb.append(")");
21216
      return sb.toString();
22236
      return sb.toString();
21217
    }
22237
    }
Line 21220... Line 22240...
21220
      // check for required fields
22240
      // check for required fields
21221
    }
22241
    }
21222
 
22242
 
21223
  }
22243
  }
21224
 
22244
 
21225
  public static class getCart_args implements TBase<getCart_args._Fields>, java.io.Serializable, Cloneable, Comparable<getCart_args>   {
22245
  public static class getMasterAffiliateByName_args implements TBase<getMasterAffiliateByName_args._Fields>, java.io.Serializable, Cloneable, Comparable<getMasterAffiliateByName_args>   {
21226
    private static final TStruct STRUCT_DESC = new TStruct("getCart_args");
22246
    private static final TStruct STRUCT_DESC = new TStruct("getMasterAffiliateByName_args");
21227
 
22247
 
21228
    private static final TField CART_ID_FIELD_DESC = new TField("cartId", TType.I64, (short)1);
22248
    private static final TField NAME_FIELD_DESC = new TField("name", TType.STRING, (short)1);
21229
 
22249
 
21230
    private long cartId;
22250
    private String name;
21231
 
22251
 
21232
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22252
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21233
    public enum _Fields implements TFieldIdEnum {
22253
    public enum _Fields implements TFieldIdEnum {
21234
      CART_ID((short)1, "cartId");
22254
      NAME((short)1, "name");
21235
 
22255
 
21236
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
22256
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
21237
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22257
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21238
 
22258
 
21239
      static {
22259
      static {
Line 21283... Line 22303...
21283
        return _fieldName;
22303
        return _fieldName;
21284
      }
22304
      }
21285
    }
22305
    }
21286
 
22306
 
21287
    // isset id assignments
22307
    // isset id assignments
21288
    private static final int __CARTID_ISSET_ID = 0;
-
 
21289
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
21290
 
22308
 
21291
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
22309
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
21292
      put(_Fields.CART_ID, new FieldMetaData("cartId", TFieldRequirementType.DEFAULT, 
22310
      put(_Fields.NAME, new FieldMetaData("name", TFieldRequirementType.DEFAULT, 
21293
          new FieldValueMetaData(TType.I64)));
22311
          new FieldValueMetaData(TType.STRING)));
21294
    }});
22312
    }});
21295
 
22313
 
21296
    static {
22314
    static {
21297
      FieldMetaData.addStructMetaDataMap(getCart_args.class, metaDataMap);
22315
      FieldMetaData.addStructMetaDataMap(getMasterAffiliateByName_args.class, metaDataMap);
21298
    }
22316
    }
21299
 
22317
 
21300
    public getCart_args() {
22318
    public getMasterAffiliateByName_args() {
21301
    }
22319
    }
21302
 
22320
 
21303
    public getCart_args(
22321
    public getMasterAffiliateByName_args(
21304
      long cartId)
22322
      String name)
21305
    {
22323
    {
21306
      this();
22324
      this();
21307
      this.cartId = cartId;
22325
      this.name = name;
21308
      setCartIdIsSet(true);
-
 
21309
    }
22326
    }
21310
 
22327
 
21311
    /**
22328
    /**
21312
     * Performs a deep copy on <i>other</i>.
22329
     * Performs a deep copy on <i>other</i>.
21313
     */
22330
     */
21314
    public getCart_args(getCart_args other) {
22331
    public getMasterAffiliateByName_args(getMasterAffiliateByName_args other) {
21315
      __isset_bit_vector.clear();
22332
      if (other.isSetName()) {
21316
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
21317
      this.cartId = other.cartId;
22333
        this.name = other.name;
-
 
22334
      }
21318
    }
22335
    }
21319
 
22336
 
21320
    public getCart_args deepCopy() {
22337
    public getMasterAffiliateByName_args deepCopy() {
21321
      return new getCart_args(this);
22338
      return new getMasterAffiliateByName_args(this);
21322
    }
22339
    }
21323
 
22340
 
21324
    @Deprecated
22341
    @Deprecated
21325
    public getCart_args clone() {
22342
    public getMasterAffiliateByName_args clone() {
21326
      return new getCart_args(this);
22343
      return new getMasterAffiliateByName_args(this);
21327
    }
22344
    }
21328
 
22345
 
21329
    public long getCartId() {
22346
    public String getName() {
21330
      return this.cartId;
22347
      return this.name;
21331
    }
22348
    }
21332
 
22349
 
21333
    public getCart_args setCartId(long cartId) {
22350
    public getMasterAffiliateByName_args setName(String name) {
21334
      this.cartId = cartId;
22351
      this.name = name;
21335
      setCartIdIsSet(true);
-
 
21336
      return this;
22352
      return this;
21337
    }
22353
    }
21338
 
22354
 
21339
    public void unsetCartId() {
22355
    public void unsetName() {
21340
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
22356
      this.name = null;
21341
    }
22357
    }
21342
 
22358
 
21343
    /** Returns true if field cartId is set (has been asigned a value) and false otherwise */
22359
    /** Returns true if field name is set (has been asigned a value) and false otherwise */
21344
    public boolean isSetCartId() {
22360
    public boolean isSetName() {
21345
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
22361
      return this.name != null;
21346
    }
22362
    }
21347
 
22363
 
21348
    public void setCartIdIsSet(boolean value) {
22364
    public void setNameIsSet(boolean value) {
-
 
22365
      if (!value) {
21349
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
22366
        this.name = null;
-
 
22367
      }
21350
    }
22368
    }
21351
 
22369
 
21352
    public void setFieldValue(_Fields field, Object value) {
22370
    public void setFieldValue(_Fields field, Object value) {
21353
      switch (field) {
22371
      switch (field) {
21354
      case CART_ID:
22372
      case NAME:
21355
        if (value == null) {
22373
        if (value == null) {
21356
          unsetCartId();
22374
          unsetName();
21357
        } else {
22375
        } else {
21358
          setCartId((Long)value);
22376
          setName((String)value);
21359
        }
22377
        }
21360
        break;
22378
        break;
21361
 
22379
 
21362
      }
22380
      }
21363
    }
22381
    }
Line 21366... Line 22384...
21366
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
22384
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
21367
    }
22385
    }
21368
 
22386
 
21369
    public Object getFieldValue(_Fields field) {
22387
    public Object getFieldValue(_Fields field) {
21370
      switch (field) {
22388
      switch (field) {
21371
      case CART_ID:
22389
      case NAME:
21372
        return new Long(getCartId());
22390
        return getName();
21373
 
22391
 
21374
      }
22392
      }
21375
      throw new IllegalStateException();
22393
      throw new IllegalStateException();
21376
    }
22394
    }
21377
 
22395
 
Line 21380... Line 22398...
21380
    }
22398
    }
21381
 
22399
 
21382
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
22400
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
21383
    public boolean isSet(_Fields field) {
22401
    public boolean isSet(_Fields field) {
21384
      switch (field) {
22402
      switch (field) {
21385
      case CART_ID:
22403
      case NAME:
21386
        return isSetCartId();
22404
        return isSetName();
21387
      }
22405
      }
21388
      throw new IllegalStateException();
22406
      throw new IllegalStateException();
21389
    }
22407
    }
21390
 
22408
 
21391
    public boolean isSet(int fieldID) {
22409
    public boolean isSet(int fieldID) {
Line 21394... Line 22412...
21394
 
22412
 
21395
    @Override
22413
    @Override
21396
    public boolean equals(Object that) {
22414
    public boolean equals(Object that) {
21397
      if (that == null)
22415
      if (that == null)
21398
        return false;
22416
        return false;
21399
      if (that instanceof getCart_args)
22417
      if (that instanceof getMasterAffiliateByName_args)
21400
        return this.equals((getCart_args)that);
22418
        return this.equals((getMasterAffiliateByName_args)that);
21401
      return false;
22419
      return false;
21402
    }
22420
    }
21403
 
22421
 
21404
    public boolean equals(getCart_args that) {
22422
    public boolean equals(getMasterAffiliateByName_args that) {
21405
      if (that == null)
22423
      if (that == null)
21406
        return false;
22424
        return false;
21407
 
22425
 
21408
      boolean this_present_cartId = true;
22426
      boolean this_present_name = true && this.isSetName();
21409
      boolean that_present_cartId = true;
22427
      boolean that_present_name = true && that.isSetName();
21410
      if (this_present_cartId || that_present_cartId) {
22428
      if (this_present_name || that_present_name) {
21411
        if (!(this_present_cartId && that_present_cartId))
22429
        if (!(this_present_name && that_present_name))
21412
          return false;
22430
          return false;
21413
        if (this.cartId != that.cartId)
22431
        if (!this.name.equals(that.name))
21414
          return false;
22432
          return false;
21415
      }
22433
      }
21416
 
22434
 
21417
      return true;
22435
      return true;
21418
    }
22436
    }
Line 21420... Line 22438...
21420
    @Override
22438
    @Override
21421
    public int hashCode() {
22439
    public int hashCode() {
21422
      return 0;
22440
      return 0;
21423
    }
22441
    }
21424
 
22442
 
21425
    public int compareTo(getCart_args other) {
22443
    public int compareTo(getMasterAffiliateByName_args other) {
21426
      if (!getClass().equals(other.getClass())) {
22444
      if (!getClass().equals(other.getClass())) {
21427
        return getClass().getName().compareTo(other.getClass().getName());
22445
        return getClass().getName().compareTo(other.getClass().getName());
21428
      }
22446
      }
21429
 
22447
 
21430
      int lastComparison = 0;
22448
      int lastComparison = 0;
21431
      getCart_args typedOther = (getCart_args)other;
22449
      getMasterAffiliateByName_args typedOther = (getMasterAffiliateByName_args)other;
21432
 
22450
 
21433
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(isSetCartId());
22451
      lastComparison = Boolean.valueOf(isSetName()).compareTo(isSetName());
21434
      if (lastComparison != 0) {
22452
      if (lastComparison != 0) {
21435
        return lastComparison;
22453
        return lastComparison;
21436
      }
22454
      }
21437
      lastComparison = TBaseHelper.compareTo(cartId, typedOther.cartId);
22455
      lastComparison = TBaseHelper.compareTo(name, typedOther.name);
21438
      if (lastComparison != 0) {
22456
      if (lastComparison != 0) {
21439
        return lastComparison;
22457
        return lastComparison;
21440
      }
22458
      }
21441
      return 0;
22459
      return 0;
21442
    }
22460
    }
Line 21453... Line 22471...
21453
        _Fields fieldId = _Fields.findByThriftId(field.id);
22471
        _Fields fieldId = _Fields.findByThriftId(field.id);
21454
        if (fieldId == null) {
22472
        if (fieldId == null) {
21455
          TProtocolUtil.skip(iprot, field.type);
22473
          TProtocolUtil.skip(iprot, field.type);
21456
        } else {
22474
        } else {
21457
          switch (fieldId) {
22475
          switch (fieldId) {
21458
            case CART_ID:
22476
            case NAME:
21459
              if (field.type == TType.I64) {
22477
              if (field.type == TType.STRING) {
21460
                this.cartId = iprot.readI64();
22478
                this.name = iprot.readString();
21461
                setCartIdIsSet(true);
-
 
21462
              } else { 
22479
              } else { 
21463
                TProtocolUtil.skip(iprot, field.type);
22480
                TProtocolUtil.skip(iprot, field.type);
21464
              }
22481
              }
21465
              break;
22482
              break;
21466
          }
22483
          }
Line 21473... Line 22490...
21473
 
22490
 
21474
    public void write(TProtocol oprot) throws TException {
22491
    public void write(TProtocol oprot) throws TException {
21475
      validate();
22492
      validate();
21476
 
22493
 
21477
      oprot.writeStructBegin(STRUCT_DESC);
22494
      oprot.writeStructBegin(STRUCT_DESC);
-
 
22495
      if (this.name != null) {
21478
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
22496
        oprot.writeFieldBegin(NAME_FIELD_DESC);
21479
      oprot.writeI64(this.cartId);
22497
        oprot.writeString(this.name);
21480
      oprot.writeFieldEnd();
22498
        oprot.writeFieldEnd();
-
 
22499
      }
21481
      oprot.writeFieldStop();
22500
      oprot.writeFieldStop();
21482
      oprot.writeStructEnd();
22501
      oprot.writeStructEnd();
21483
    }
22502
    }
21484
 
22503
 
21485
    @Override
22504
    @Override
21486
    public String toString() {
22505
    public String toString() {
21487
      StringBuilder sb = new StringBuilder("getCart_args(");
22506
      StringBuilder sb = new StringBuilder("getMasterAffiliateByName_args(");
21488
      boolean first = true;
22507
      boolean first = true;
21489
 
22508
 
21490
      sb.append("cartId:");
22509
      sb.append("name:");
-
 
22510
      if (this.name == null) {
-
 
22511
        sb.append("null");
-
 
22512
      } else {
21491
      sb.append(this.cartId);
22513
        sb.append(this.name);
-
 
22514
      }
21492
      first = false;
22515
      first = false;
21493
      sb.append(")");
22516
      sb.append(")");
21494
      return sb.toString();
22517
      return sb.toString();
21495
    }
22518
    }
21496
 
22519
 
Line 21498... Line 22521...
21498
      // check for required fields
22521
      // check for required fields
21499
    }
22522
    }
21500
 
22523
 
21501
  }
22524
  }
21502
 
22525
 
21503
  public static class getCart_result implements TBase<getCart_result._Fields>, java.io.Serializable, Cloneable, Comparable<getCart_result>   {
22526
  public static class getMasterAffiliateByName_result implements TBase<getMasterAffiliateByName_result._Fields>, java.io.Serializable, Cloneable, Comparable<getMasterAffiliateByName_result>   {
21504
    private static final TStruct STRUCT_DESC = new TStruct("getCart_result");
22527
    private static final TStruct STRUCT_DESC = new TStruct("getMasterAffiliateByName_result");
21505
 
22528
 
21506
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
22529
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
21507
    private static final TField SCX_FIELD_DESC = new TField("scx", TType.STRUCT, (short)1);
22530
    private static final TField UTX_FIELD_DESC = new TField("utx", TType.STRUCT, (short)1);
21508
 
22531
 
21509
    private Cart success;
22532
    private MasterAffiliate success;
21510
    private ShoppingCartException scx;
22533
    private UserTrackerException utx;
21511
 
22534
 
21512
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22535
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21513
    public enum _Fields implements TFieldIdEnum {
22536
    public enum _Fields implements TFieldIdEnum {
21514
      SUCCESS((short)0, "success"),
22537
      SUCCESS((short)0, "success"),
21515
      SCX((short)1, "scx");
22538
      UTX((short)1, "utx");
21516
 
22539
 
21517
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
22540
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
21518
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22541
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21519
 
22542
 
21520
      static {
22543
      static {
Line 21567... Line 22590...
21567
 
22590
 
21568
    // isset id assignments
22591
    // isset id assignments
21569
 
22592
 
21570
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
22593
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
21571
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
22594
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
21572
          new StructMetaData(TType.STRUCT, Cart.class)));
22595
          new StructMetaData(TType.STRUCT, MasterAffiliate.class)));
21573
      put(_Fields.SCX, new FieldMetaData("scx", TFieldRequirementType.DEFAULT, 
22596
      put(_Fields.UTX, new FieldMetaData("utx", TFieldRequirementType.DEFAULT, 
21574
          new FieldValueMetaData(TType.STRUCT)));
22597
          new FieldValueMetaData(TType.STRUCT)));
21575
    }});
22598
    }});
21576
 
22599
 
21577
    static {
22600
    static {
21578
      FieldMetaData.addStructMetaDataMap(getCart_result.class, metaDataMap);
22601
      FieldMetaData.addStructMetaDataMap(getMasterAffiliateByName_result.class, metaDataMap);
21579
    }
22602
    }
21580
 
22603
 
21581
    public getCart_result() {
22604
    public getMasterAffiliateByName_result() {
21582
    }
22605
    }
21583
 
22606
 
21584
    public getCart_result(
22607
    public getMasterAffiliateByName_result(
21585
      Cart success,
22608
      MasterAffiliate success,
21586
      ShoppingCartException scx)
22609
      UserTrackerException utx)
21587
    {
22610
    {
21588
      this();
22611
      this();
21589
      this.success = success;
22612
      this.success = success;
21590
      this.scx = scx;
22613
      this.utx = utx;
21591
    }
22614
    }
21592
 
22615
 
21593
    /**
22616
    /**
21594
     * Performs a deep copy on <i>other</i>.
22617
     * Performs a deep copy on <i>other</i>.
21595
     */
22618
     */
21596
    public getCart_result(getCart_result other) {
22619
    public getMasterAffiliateByName_result(getMasterAffiliateByName_result other) {
21597
      if (other.isSetSuccess()) {
22620
      if (other.isSetSuccess()) {
21598
        this.success = new Cart(other.success);
22621
        this.success = new MasterAffiliate(other.success);
21599
      }
22622
      }
21600
      if (other.isSetScx()) {
22623
      if (other.isSetUtx()) {
21601
        this.scx = new ShoppingCartException(other.scx);
22624
        this.utx = new UserTrackerException(other.utx);
21602
      }
22625
      }
21603
    }
22626
    }
21604
 
22627
 
21605
    public getCart_result deepCopy() {
22628
    public getMasterAffiliateByName_result deepCopy() {
21606
      return new getCart_result(this);
22629
      return new getMasterAffiliateByName_result(this);
21607
    }
22630
    }
21608
 
22631
 
21609
    @Deprecated
22632
    @Deprecated
21610
    public getCart_result clone() {
22633
    public getMasterAffiliateByName_result clone() {
21611
      return new getCart_result(this);
22634
      return new getMasterAffiliateByName_result(this);
21612
    }
22635
    }
21613
 
22636
 
21614
    public Cart getSuccess() {
22637
    public MasterAffiliate getSuccess() {
21615
      return this.success;
22638
      return this.success;
21616
    }
22639
    }
21617
 
22640
 
21618
    public getCart_result setSuccess(Cart success) {
22641
    public getMasterAffiliateByName_result setSuccess(MasterAffiliate success) {
21619
      this.success = success;
22642
      this.success = success;
21620
      return this;
22643
      return this;
21621
    }
22644
    }
21622
 
22645
 
21623
    public void unsetSuccess() {
22646
    public void unsetSuccess() {
Line 21633... Line 22656...
21633
      if (!value) {
22656
      if (!value) {
21634
        this.success = null;
22657
        this.success = null;
21635
      }
22658
      }
21636
    }
22659
    }
21637
 
22660
 
21638
    public ShoppingCartException getScx() {
22661
    public UserTrackerException getUtx() {
21639
      return this.scx;
22662
      return this.utx;
21640
    }
22663
    }
21641
 
22664
 
21642
    public getCart_result setScx(ShoppingCartException scx) {
22665
    public getMasterAffiliateByName_result setUtx(UserTrackerException utx) {
21643
      this.scx = scx;
22666
      this.utx = utx;
21644
      return this;
22667
      return this;
21645
    }
22668
    }
21646
 
22669
 
21647
    public void unsetScx() {
22670
    public void unsetUtx() {
21648
      this.scx = null;
22671
      this.utx = null;
21649
    }
22672
    }
21650
 
22673
 
21651
    /** Returns true if field scx is set (has been asigned a value) and false otherwise */
22674
    /** Returns true if field utx is set (has been asigned a value) and false otherwise */
21652
    public boolean isSetScx() {
22675
    public boolean isSetUtx() {
21653
      return this.scx != null;
22676
      return this.utx != null;
21654
    }
22677
    }
21655
 
22678
 
21656
    public void setScxIsSet(boolean value) {
22679
    public void setUtxIsSet(boolean value) {
21657
      if (!value) {
22680
      if (!value) {
21658
        this.scx = null;
22681
        this.utx = null;
21659
      }
22682
      }
21660
    }
22683
    }
21661
 
22684
 
21662
    public void setFieldValue(_Fields field, Object value) {
22685
    public void setFieldValue(_Fields field, Object value) {
21663
      switch (field) {
22686
      switch (field) {
21664
      case SUCCESS:
22687
      case SUCCESS:
21665
        if (value == null) {
22688
        if (value == null) {
21666
          unsetSuccess();
22689
          unsetSuccess();
21667
        } else {
22690
        } else {
21668
          setSuccess((Cart)value);
22691
          setSuccess((MasterAffiliate)value);
21669
        }
22692
        }
21670
        break;
22693
        break;
21671
 
22694
 
21672
      case SCX:
22695
      case UTX:
21673
        if (value == null) {
22696
        if (value == null) {
21674
          unsetScx();
22697
          unsetUtx();
21675
        } else {
22698
        } else {
21676
          setScx((ShoppingCartException)value);
22699
          setUtx((UserTrackerException)value);
21677
        }
22700
        }
21678
        break;
22701
        break;
21679
 
22702
 
21680
      }
22703
      }
21681
    }
22704
    }
Line 21687... Line 22710...
21687
    public Object getFieldValue(_Fields field) {
22710
    public Object getFieldValue(_Fields field) {
21688
      switch (field) {
22711
      switch (field) {
21689
      case SUCCESS:
22712
      case SUCCESS:
21690
        return getSuccess();
22713
        return getSuccess();
21691
 
22714
 
21692
      case SCX:
22715
      case UTX:
21693
        return getScx();
22716
        return getUtx();
21694
 
22717
 
21695
      }
22718
      }
21696
      throw new IllegalStateException();
22719
      throw new IllegalStateException();
21697
    }
22720
    }
21698
 
22721
 
Line 21703... Line 22726...
21703
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
22726
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
21704
    public boolean isSet(_Fields field) {
22727
    public boolean isSet(_Fields field) {
21705
      switch (field) {
22728
      switch (field) {
21706
      case SUCCESS:
22729
      case SUCCESS:
21707
        return isSetSuccess();
22730
        return isSetSuccess();
21708
      case SCX:
22731
      case UTX:
21709
        return isSetScx();
22732
        return isSetUtx();
21710
      }
22733
      }
21711
      throw new IllegalStateException();
22734
      throw new IllegalStateException();
21712
    }
22735
    }
21713
 
22736
 
21714
    public boolean isSet(int fieldID) {
22737
    public boolean isSet(int fieldID) {
Line 21717... Line 22740...
21717
 
22740
 
21718
    @Override
22741
    @Override
21719
    public boolean equals(Object that) {
22742
    public boolean equals(Object that) {
21720
      if (that == null)
22743
      if (that == null)
21721
        return false;
22744
        return false;
21722
      if (that instanceof getCart_result)
22745
      if (that instanceof getMasterAffiliateByName_result)
21723
        return this.equals((getCart_result)that);
22746
        return this.equals((getMasterAffiliateByName_result)that);
21724
      return false;
22747
      return false;
21725
    }
22748
    }
21726
 
22749
 
21727
    public boolean equals(getCart_result that) {
22750
    public boolean equals(getMasterAffiliateByName_result that) {
21728
      if (that == null)
22751
      if (that == null)
21729
        return false;
22752
        return false;
21730
 
22753
 
21731
      boolean this_present_success = true && this.isSetSuccess();
22754
      boolean this_present_success = true && this.isSetSuccess();
21732
      boolean that_present_success = true && that.isSetSuccess();
22755
      boolean that_present_success = true && that.isSetSuccess();
Line 21735... Line 22758...
21735
          return false;
22758
          return false;
21736
        if (!this.success.equals(that.success))
22759
        if (!this.success.equals(that.success))
21737
          return false;
22760
          return false;
21738
      }
22761
      }
21739
 
22762
 
21740
      boolean this_present_scx = true && this.isSetScx();
22763
      boolean this_present_utx = true && this.isSetUtx();
21741
      boolean that_present_scx = true && that.isSetScx();
22764
      boolean that_present_utx = true && that.isSetUtx();
21742
      if (this_present_scx || that_present_scx) {
22765
      if (this_present_utx || that_present_utx) {
21743
        if (!(this_present_scx && that_present_scx))
22766
        if (!(this_present_utx && that_present_utx))
21744
          return false;
22767
          return false;
21745
        if (!this.scx.equals(that.scx))
22768
        if (!this.utx.equals(that.utx))
21746
          return false;
22769
          return false;
21747
      }
22770
      }
21748
 
22771
 
21749
      return true;
22772
      return true;
21750
    }
22773
    }
Line 21752... Line 22775...
21752
    @Override
22775
    @Override
21753
    public int hashCode() {
22776
    public int hashCode() {
21754
      return 0;
22777
      return 0;
21755
    }
22778
    }
21756
 
22779
 
21757
    public int compareTo(getCart_result other) {
22780
    public int compareTo(getMasterAffiliateByName_result other) {
21758
      if (!getClass().equals(other.getClass())) {
22781
      if (!getClass().equals(other.getClass())) {
21759
        return getClass().getName().compareTo(other.getClass().getName());
22782
        return getClass().getName().compareTo(other.getClass().getName());
21760
      }
22783
      }
21761
 
22784
 
21762
      int lastComparison = 0;
22785
      int lastComparison = 0;
21763
      getCart_result typedOther = (getCart_result)other;
22786
      getMasterAffiliateByName_result typedOther = (getMasterAffiliateByName_result)other;
21764
 
22787
 
21765
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
22788
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
21766
      if (lastComparison != 0) {
22789
      if (lastComparison != 0) {
21767
        return lastComparison;
22790
        return lastComparison;
21768
      }
22791
      }
21769
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
22792
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
21770
      if (lastComparison != 0) {
22793
      if (lastComparison != 0) {
21771
        return lastComparison;
22794
        return lastComparison;
21772
      }
22795
      }
21773
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(isSetScx());
22796
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(isSetUtx());
21774
      if (lastComparison != 0) {
22797
      if (lastComparison != 0) {
21775
        return lastComparison;
22798
        return lastComparison;
21776
      }
22799
      }
21777
      lastComparison = TBaseHelper.compareTo(scx, typedOther.scx);
22800
      lastComparison = TBaseHelper.compareTo(utx, typedOther.utx);
21778
      if (lastComparison != 0) {
22801
      if (lastComparison != 0) {
21779
        return lastComparison;
22802
        return lastComparison;
21780
      }
22803
      }
21781
      return 0;
22804
      return 0;
21782
    }
22805
    }
Line 21795... Line 22818...
21795
          TProtocolUtil.skip(iprot, field.type);
22818
          TProtocolUtil.skip(iprot, field.type);
21796
        } else {
22819
        } else {
21797
          switch (fieldId) {
22820
          switch (fieldId) {
21798
            case SUCCESS:
22821
            case SUCCESS:
21799
              if (field.type == TType.STRUCT) {
22822
              if (field.type == TType.STRUCT) {
21800
                this.success = new Cart();
22823
                this.success = new MasterAffiliate();
21801
                this.success.read(iprot);
22824
                this.success.read(iprot);
21802
              } else { 
22825
              } else { 
21803
                TProtocolUtil.skip(iprot, field.type);
22826
                TProtocolUtil.skip(iprot, field.type);
21804
              }
22827
              }
21805
              break;
22828
              break;
21806
            case SCX:
22829
            case UTX:
21807
              if (field.type == TType.STRUCT) {
22830
              if (field.type == TType.STRUCT) {
21808
                this.scx = new ShoppingCartException();
22831
                this.utx = new UserTrackerException();
21809
                this.scx.read(iprot);
22832
                this.utx.read(iprot);
21810
              } else { 
22833
              } else { 
21811
                TProtocolUtil.skip(iprot, field.type);
22834
                TProtocolUtil.skip(iprot, field.type);
21812
              }
22835
              }
21813
              break;
22836
              break;
21814
          }
22837
          }
Line 21824... Line 22847...
21824
 
22847
 
21825
      if (this.isSetSuccess()) {
22848
      if (this.isSetSuccess()) {
21826
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22849
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21827
        this.success.write(oprot);
22850
        this.success.write(oprot);
21828
        oprot.writeFieldEnd();
22851
        oprot.writeFieldEnd();
21829
      } else if (this.isSetScx()) {
22852
      } else if (this.isSetUtx()) {
21830
        oprot.writeFieldBegin(SCX_FIELD_DESC);
22853
        oprot.writeFieldBegin(UTX_FIELD_DESC);
21831
        this.scx.write(oprot);
22854
        this.utx.write(oprot);
21832
        oprot.writeFieldEnd();
22855
        oprot.writeFieldEnd();
21833
      }
22856
      }
21834
      oprot.writeFieldStop();
22857
      oprot.writeFieldStop();
21835
      oprot.writeStructEnd();
22858
      oprot.writeStructEnd();
21836
    }
22859
    }
21837
 
22860
 
21838
    @Override
22861
    @Override
21839
    public String toString() {
22862
    public String toString() {
21840
      StringBuilder sb = new StringBuilder("getCart_result(");
22863
      StringBuilder sb = new StringBuilder("getMasterAffiliateByName_result(");
21841
      boolean first = true;
22864
      boolean first = true;
21842
 
22865
 
21843
      sb.append("success:");
22866
      sb.append("success:");
21844
      if (this.success == null) {
22867
      if (this.success == null) {
21845
        sb.append("null");
22868
        sb.append("null");
21846
      } else {
22869
      } else {
21847
        sb.append(this.success);
22870
        sb.append(this.success);
21848
      }
22871
      }
21849
      first = false;
22872
      first = false;
21850
      if (!first) sb.append(", ");
22873
      if (!first) sb.append(", ");
21851
      sb.append("scx:");
22874
      sb.append("utx:");
21852
      if (this.scx == null) {
22875
      if (this.utx == null) {
21853
        sb.append("null");
22876
        sb.append("null");
21854
      } else {
22877
      } else {
21855
        sb.append(this.scx);
22878
        sb.append(this.utx);
21856
      }
22879
      }
21857
      first = false;
22880
      first = false;
21858
      sb.append(")");
22881
      sb.append(")");
21859
      return sb.toString();
22882
      return sb.toString();
21860
    }
22883
    }
Line 21863... Line 22886...
21863
      // check for required fields
22886
      // check for required fields
21864
    }
22887
    }
21865
 
22888
 
21866
  }
22889
  }
21867
 
22890
 
21868
  public static class getCartsForUser_args implements TBase<getCartsForUser_args._Fields>, java.io.Serializable, Cloneable, Comparable<getCartsForUser_args>   {
22891
  public static class createAffiliate_args implements TBase<createAffiliate_args._Fields>, java.io.Serializable, Cloneable, Comparable<createAffiliate_args>   {
21869
    private static final TStruct STRUCT_DESC = new TStruct("getCartsForUser_args");
22892
    private static final TStruct STRUCT_DESC = new TStruct("createAffiliate_args");
21870
 
22893
 
21871
    private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)1);
22894
    private static final TField NAME_FIELD_DESC = new TField("name", TType.STRING, (short)1);
21872
    private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)2);
22895
    private static final TField URL_FIELD_DESC = new TField("url", TType.STRING, (short)2);
-
 
22896
    private static final TField MASTER_AFFILIATE_ID_FIELD_DESC = new TField("masterAffiliateId", TType.I64, (short)3);
21873
 
22897
 
-
 
22898
    private String name;
21874
    private long userId;
22899
    private String url;
21875
    private CartStatus status;
22900
    private long masterAffiliateId;
21876
 
22901
 
21877
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22902
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21878
    public enum _Fields implements TFieldIdEnum {
22903
    public enum _Fields implements TFieldIdEnum {
21879
      USER_ID((short)1, "userId"),
22904
      NAME((short)1, "name"),
21880
      /**
-
 
21881
       * 
-
 
21882
       * @see CartStatus
22905
      URL((short)2, "url"),
21883
       */
-
 
21884
      STATUS((short)2, "status");
22906
      MASTER_AFFILIATE_ID((short)3, "masterAffiliateId");
21885
 
22907
 
21886
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
22908
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
21887
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22909
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21888
 
22910
 
21889
      static {
22911
      static {
Line 21933... Line 22955...
21933
        return _fieldName;
22955
        return _fieldName;
21934
      }
22956
      }
21935
    }
22957
    }
21936
 
22958
 
21937
    // isset id assignments
22959
    // isset id assignments
21938
    private static final int __USERID_ISSET_ID = 0;
22960
    private static final int __MASTERAFFILIATEID_ISSET_ID = 0;
21939
    private BitSet __isset_bit_vector = new BitSet(1);
22961
    private BitSet __isset_bit_vector = new BitSet(1);
21940
 
22962
 
21941
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
22963
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
22964
      put(_Fields.NAME, new FieldMetaData("name", TFieldRequirementType.DEFAULT, 
-
 
22965
          new FieldValueMetaData(TType.STRING)));
21942
      put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT, 
22966
      put(_Fields.URL, new FieldMetaData("url", TFieldRequirementType.DEFAULT, 
-
 
22967
          new FieldValueMetaData(TType.STRING)));
-
 
22968
      put(_Fields.MASTER_AFFILIATE_ID, new FieldMetaData("masterAffiliateId", TFieldRequirementType.DEFAULT, 
21943
          new FieldValueMetaData(TType.I64)));
22969
          new FieldValueMetaData(TType.I64)));
21944
      put(_Fields.STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT, 
-
 
21945
          new EnumMetaData(TType.ENUM, CartStatus.class)));
-
 
21946
    }});
22970
    }});
21947
 
22971
 
21948
    static {
22972
    static {
21949
      FieldMetaData.addStructMetaDataMap(getCartsForUser_args.class, metaDataMap);
22973
      FieldMetaData.addStructMetaDataMap(createAffiliate_args.class, metaDataMap);
21950
    }
22974
    }
21951
 
22975
 
21952
    public getCartsForUser_args() {
22976
    public createAffiliate_args() {
21953
    }
22977
    }
21954
 
22978
 
21955
    public getCartsForUser_args(
22979
    public createAffiliate_args(
-
 
22980
      String name,
21956
      long userId,
22981
      String url,
21957
      CartStatus status)
22982
      long masterAffiliateId)
21958
    {
22983
    {
21959
      this();
22984
      this();
21960
      this.userId = userId;
22985
      this.name = name;
21961
      setUserIdIsSet(true);
22986
      this.url = url;
21962
      this.status = status;
22987
      this.masterAffiliateId = masterAffiliateId;
-
 
22988
      setMasterAffiliateIdIsSet(true);
21963
    }
22989
    }
21964
 
22990
 
21965
    /**
22991
    /**
21966
     * Performs a deep copy on <i>other</i>.
22992
     * Performs a deep copy on <i>other</i>.
21967
     */
22993
     */
21968
    public getCartsForUser_args(getCartsForUser_args other) {
22994
    public createAffiliate_args(createAffiliate_args other) {
21969
      __isset_bit_vector.clear();
22995
      __isset_bit_vector.clear();
21970
      __isset_bit_vector.or(other.__isset_bit_vector);
22996
      __isset_bit_vector.or(other.__isset_bit_vector);
21971
      this.userId = other.userId;
-
 
21972
      if (other.isSetStatus()) {
22997
      if (other.isSetName()) {
21973
        this.status = other.status;
22998
        this.name = other.name;
21974
      }
22999
      }
-
 
23000
      if (other.isSetUrl()) {
-
 
23001
        this.url = other.url;
-
 
23002
      }
-
 
23003
      this.masterAffiliateId = other.masterAffiliateId;
21975
    }
23004
    }
21976
 
23005
 
21977
    public getCartsForUser_args deepCopy() {
23006
    public createAffiliate_args deepCopy() {
21978
      return new getCartsForUser_args(this);
23007
      return new createAffiliate_args(this);
21979
    }
23008
    }
21980
 
23009
 
21981
    @Deprecated
23010
    @Deprecated
21982
    public getCartsForUser_args clone() {
23011
    public createAffiliate_args clone() {
21983
      return new getCartsForUser_args(this);
23012
      return new createAffiliate_args(this);
21984
    }
23013
    }
21985
 
23014
 
21986
    public long getUserId() {
23015
    public String getName() {
21987
      return this.userId;
23016
      return this.name;
21988
    }
23017
    }
21989
 
23018
 
21990
    public getCartsForUser_args setUserId(long userId) {
23019
    public createAffiliate_args setName(String name) {
21991
      this.userId = userId;
23020
      this.name = name;
21992
      setUserIdIsSet(true);
-
 
21993
      return this;
23021
      return this;
21994
    }
23022
    }
21995
 
23023
 
21996
    public void unsetUserId() {
23024
    public void unsetName() {
21997
      __isset_bit_vector.clear(__USERID_ISSET_ID);
23025
      this.name = null;
21998
    }
23026
    }
21999
 
23027
 
22000
    /** Returns true if field userId is set (has been asigned a value) and false otherwise */
23028
    /** Returns true if field name is set (has been asigned a value) and false otherwise */
22001
    public boolean isSetUserId() {
23029
    public boolean isSetName() {
22002
      return __isset_bit_vector.get(__USERID_ISSET_ID);
23030
      return this.name != null;
22003
    }
23031
    }
22004
 
23032
 
22005
    public void setUserIdIsSet(boolean value) {
23033
    public void setNameIsSet(boolean value) {
-
 
23034
      if (!value) {
22006
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
23035
        this.name = null;
-
 
23036
      }
22007
    }
23037
    }
22008
 
23038
 
22009
    /**
-
 
22010
     * 
-
 
22011
     * @see CartStatus
-
 
22012
     */
-
 
22013
    public CartStatus getStatus() {
23039
    public String getUrl() {
22014
      return this.status;
23040
      return this.url;
22015
    }
23041
    }
22016
 
23042
 
22017
    /**
-
 
22018
     * 
-
 
22019
     * @see CartStatus
-
 
22020
     */
-
 
22021
    public getCartsForUser_args setStatus(CartStatus status) {
23043
    public createAffiliate_args setUrl(String url) {
22022
      this.status = status;
23044
      this.url = url;
22023
      return this;
23045
      return this;
22024
    }
23046
    }
22025
 
23047
 
22026
    public void unsetStatus() {
23048
    public void unsetUrl() {
22027
      this.status = null;
23049
      this.url = null;
22028
    }
23050
    }
22029
 
23051
 
22030
    /** Returns true if field status is set (has been asigned a value) and false otherwise */
23052
    /** Returns true if field url is set (has been asigned a value) and false otherwise */
22031
    public boolean isSetStatus() {
23053
    public boolean isSetUrl() {
22032
      return this.status != null;
23054
      return this.url != null;
22033
    }
23055
    }
22034
 
23056
 
22035
    public void setStatusIsSet(boolean value) {
23057
    public void setUrlIsSet(boolean value) {
22036
      if (!value) {
23058
      if (!value) {
22037
        this.status = null;
23059
        this.url = null;
22038
      }
23060
      }
22039
    }
23061
    }
22040
 
23062
 
-
 
23063
    public long getMasterAffiliateId() {
-
 
23064
      return this.masterAffiliateId;
-
 
23065
    }
-
 
23066
 
-
 
23067
    public createAffiliate_args setMasterAffiliateId(long masterAffiliateId) {
-
 
23068
      this.masterAffiliateId = masterAffiliateId;
-
 
23069
      setMasterAffiliateIdIsSet(true);
-
 
23070
      return this;
-
 
23071
    }
-
 
23072
 
-
 
23073
    public void unsetMasterAffiliateId() {
-
 
23074
      __isset_bit_vector.clear(__MASTERAFFILIATEID_ISSET_ID);
-
 
23075
    }
-
 
23076
 
-
 
23077
    /** Returns true if field masterAffiliateId is set (has been asigned a value) and false otherwise */
-
 
23078
    public boolean isSetMasterAffiliateId() {
-
 
23079
      return __isset_bit_vector.get(__MASTERAFFILIATEID_ISSET_ID);
-
 
23080
    }
-
 
23081
 
-
 
23082
    public void setMasterAffiliateIdIsSet(boolean value) {
-
 
23083
      __isset_bit_vector.set(__MASTERAFFILIATEID_ISSET_ID, value);
-
 
23084
    }
-
 
23085
 
22041
    public void setFieldValue(_Fields field, Object value) {
23086
    public void setFieldValue(_Fields field, Object value) {
22042
      switch (field) {
23087
      switch (field) {
22043
      case USER_ID:
23088
      case NAME:
22044
        if (value == null) {
23089
        if (value == null) {
22045
          unsetUserId();
23090
          unsetName();
22046
        } else {
23091
        } else {
22047
          setUserId((Long)value);
23092
          setName((String)value);
22048
        }
23093
        }
22049
        break;
23094
        break;
22050
 
23095
 
22051
      case STATUS:
23096
      case URL:
22052
        if (value == null) {
23097
        if (value == null) {
22053
          unsetStatus();
23098
          unsetUrl();
22054
        } else {
23099
        } else {
22055
          setStatus((CartStatus)value);
23100
          setUrl((String)value);
-
 
23101
        }
-
 
23102
        break;
-
 
23103
 
-
 
23104
      case MASTER_AFFILIATE_ID:
-
 
23105
        if (value == null) {
-
 
23106
          unsetMasterAffiliateId();
-
 
23107
        } else {
-
 
23108
          setMasterAffiliateId((Long)value);
22056
        }
23109
        }
22057
        break;
23110
        break;
22058
 
23111
 
22059
      }
23112
      }
22060
    }
23113
    }
Line 22063... Line 23116...
22063
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
23116
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
22064
    }
23117
    }
22065
 
23118
 
22066
    public Object getFieldValue(_Fields field) {
23119
    public Object getFieldValue(_Fields field) {
22067
      switch (field) {
23120
      switch (field) {
22068
      case USER_ID:
23121
      case NAME:
22069
        return new Long(getUserId());
23122
        return getName();
22070
 
23123
 
22071
      case STATUS:
23124
      case URL:
22072
        return getStatus();
23125
        return getUrl();
-
 
23126
 
-
 
23127
      case MASTER_AFFILIATE_ID:
-
 
23128
        return new Long(getMasterAffiliateId());
22073
 
23129
 
22074
      }
23130
      }
22075
      throw new IllegalStateException();
23131
      throw new IllegalStateException();
22076
    }
23132
    }
22077
 
23133
 
Line 22080... Line 23136...
22080
    }
23136
    }
22081
 
23137
 
22082
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
23138
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
22083
    public boolean isSet(_Fields field) {
23139
    public boolean isSet(_Fields field) {
22084
      switch (field) {
23140
      switch (field) {
22085
      case USER_ID:
23141
      case NAME:
22086
        return isSetUserId();
23142
        return isSetName();
22087
      case STATUS:
23143
      case URL:
22088
        return isSetStatus();
23144
        return isSetUrl();
-
 
23145
      case MASTER_AFFILIATE_ID:
-
 
23146
        return isSetMasterAffiliateId();
22089
      }
23147
      }
22090
      throw new IllegalStateException();
23148
      throw new IllegalStateException();
22091
    }
23149
    }
22092
 
23150
 
22093
    public boolean isSet(int fieldID) {
23151
    public boolean isSet(int fieldID) {
Line 22096... Line 23154...
22096
 
23154
 
22097
    @Override
23155
    @Override
22098
    public boolean equals(Object that) {
23156
    public boolean equals(Object that) {
22099
      if (that == null)
23157
      if (that == null)
22100
        return false;
23158
        return false;
22101
      if (that instanceof getCartsForUser_args)
23159
      if (that instanceof createAffiliate_args)
22102
        return this.equals((getCartsForUser_args)that);
23160
        return this.equals((createAffiliate_args)that);
22103
      return false;
23161
      return false;
22104
    }
23162
    }
22105
 
23163
 
22106
    public boolean equals(getCartsForUser_args that) {
23164
    public boolean equals(createAffiliate_args that) {
22107
      if (that == null)
23165
      if (that == null)
22108
        return false;
23166
        return false;
22109
 
23167
 
22110
      boolean this_present_userId = true;
23168
      boolean this_present_name = true && this.isSetName();
22111
      boolean that_present_userId = true;
23169
      boolean that_present_name = true && that.isSetName();
22112
      if (this_present_userId || that_present_userId) {
23170
      if (this_present_name || that_present_name) {
22113
        if (!(this_present_userId && that_present_userId))
23171
        if (!(this_present_name && that_present_name))
22114
          return false;
23172
          return false;
22115
        if (this.userId != that.userId)
23173
        if (!this.name.equals(that.name))
22116
          return false;
23174
          return false;
22117
      }
23175
      }
22118
 
23176
 
22119
      boolean this_present_status = true && this.isSetStatus();
23177
      boolean this_present_url = true && this.isSetUrl();
22120
      boolean that_present_status = true && that.isSetStatus();
23178
      boolean that_present_url = true && that.isSetUrl();
22121
      if (this_present_status || that_present_status) {
23179
      if (this_present_url || that_present_url) {
22122
        if (!(this_present_status && that_present_status))
23180
        if (!(this_present_url && that_present_url))
22123
          return false;
23181
          return false;
22124
        if (!this.status.equals(that.status))
23182
        if (!this.url.equals(that.url))
-
 
23183
          return false;
-
 
23184
      }
-
 
23185
 
-
 
23186
      boolean this_present_masterAffiliateId = true;
-
 
23187
      boolean that_present_masterAffiliateId = true;
-
 
23188
      if (this_present_masterAffiliateId || that_present_masterAffiliateId) {
-
 
23189
        if (!(this_present_masterAffiliateId && that_present_masterAffiliateId))
-
 
23190
          return false;
-
 
23191
        if (this.masterAffiliateId != that.masterAffiliateId)
22125
          return false;
23192
          return false;
22126
      }
23193
      }
22127
 
23194
 
22128
      return true;
23195
      return true;
22129
    }
23196
    }
Line 22131... Line 23198...
22131
    @Override
23198
    @Override
22132
    public int hashCode() {
23199
    public int hashCode() {
22133
      return 0;
23200
      return 0;
22134
    }
23201
    }
22135
 
23202
 
22136
    public int compareTo(getCartsForUser_args other) {
23203
    public int compareTo(createAffiliate_args other) {
22137
      if (!getClass().equals(other.getClass())) {
23204
      if (!getClass().equals(other.getClass())) {
22138
        return getClass().getName().compareTo(other.getClass().getName());
23205
        return getClass().getName().compareTo(other.getClass().getName());
22139
      }
23206
      }
22140
 
23207
 
22141
      int lastComparison = 0;
23208
      int lastComparison = 0;
22142
      getCartsForUser_args typedOther = (getCartsForUser_args)other;
23209
      createAffiliate_args typedOther = (createAffiliate_args)other;
22143
 
23210
 
22144
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(isSetUserId());
23211
      lastComparison = Boolean.valueOf(isSetName()).compareTo(isSetName());
22145
      if (lastComparison != 0) {
23212
      if (lastComparison != 0) {
22146
        return lastComparison;
23213
        return lastComparison;
22147
      }
23214
      }
22148
      lastComparison = TBaseHelper.compareTo(userId, typedOther.userId);
23215
      lastComparison = TBaseHelper.compareTo(name, typedOther.name);
22149
      if (lastComparison != 0) {
23216
      if (lastComparison != 0) {
22150
        return lastComparison;
23217
        return lastComparison;
22151
      }
23218
      }
22152
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(isSetStatus());
23219
      lastComparison = Boolean.valueOf(isSetUrl()).compareTo(isSetUrl());
22153
      if (lastComparison != 0) {
23220
      if (lastComparison != 0) {
22154
        return lastComparison;
23221
        return lastComparison;
22155
      }
23222
      }
22156
      lastComparison = TBaseHelper.compareTo(status, typedOther.status);
23223
      lastComparison = TBaseHelper.compareTo(url, typedOther.url);
-
 
23224
      if (lastComparison != 0) {
-
 
23225
        return lastComparison;
-
 
23226
      }
-
 
23227
      lastComparison = Boolean.valueOf(isSetMasterAffiliateId()).compareTo(isSetMasterAffiliateId());
-
 
23228
      if (lastComparison != 0) {
-
 
23229
        return lastComparison;
-
 
23230
      }
-
 
23231
      lastComparison = TBaseHelper.compareTo(masterAffiliateId, typedOther.masterAffiliateId);
22157
      if (lastComparison != 0) {
23232
      if (lastComparison != 0) {
22158
        return lastComparison;
23233
        return lastComparison;
22159
      }
23234
      }
22160
      return 0;
23235
      return 0;
22161
    }
23236
    }
Line 22172... Line 23247...
22172
        _Fields fieldId = _Fields.findByThriftId(field.id);
23247
        _Fields fieldId = _Fields.findByThriftId(field.id);
22173
        if (fieldId == null) {
23248
        if (fieldId == null) {
22174
          TProtocolUtil.skip(iprot, field.type);
23249
          TProtocolUtil.skip(iprot, field.type);
22175
        } else {
23250
        } else {
22176
          switch (fieldId) {
23251
          switch (fieldId) {
22177
            case USER_ID:
23252
            case NAME:
22178
              if (field.type == TType.I64) {
23253
              if (field.type == TType.STRING) {
22179
                this.userId = iprot.readI64();
23254
                this.name = iprot.readString();
22180
                setUserIdIsSet(true);
-
 
22181
              } else { 
23255
              } else { 
22182
                TProtocolUtil.skip(iprot, field.type);
23256
                TProtocolUtil.skip(iprot, field.type);
22183
              }
23257
              }
22184
              break;
23258
              break;
22185
            case STATUS:
23259
            case URL:
-
 
23260
              if (field.type == TType.STRING) {
-
 
23261
                this.url = iprot.readString();
-
 
23262
              } else { 
-
 
23263
                TProtocolUtil.skip(iprot, field.type);
-
 
23264
              }
-
 
23265
              break;
-
 
23266
            case MASTER_AFFILIATE_ID:
22186
              if (field.type == TType.I32) {
23267
              if (field.type == TType.I64) {
22187
                this.status = CartStatus.findByValue(iprot.readI32());
23268
                this.masterAffiliateId = iprot.readI64();
-
 
23269
                setMasterAffiliateIdIsSet(true);
22188
              } else { 
23270
              } else { 
22189
                TProtocolUtil.skip(iprot, field.type);
23271
                TProtocolUtil.skip(iprot, field.type);
22190
              }
23272
              }
22191
              break;
23273
              break;
22192
          }
23274
          }
Line 22199... Line 23281...
22199
 
23281
 
22200
    public void write(TProtocol oprot) throws TException {
23282
    public void write(TProtocol oprot) throws TException {
22201
      validate();
23283
      validate();
22202
 
23284
 
22203
      oprot.writeStructBegin(STRUCT_DESC);
23285
      oprot.writeStructBegin(STRUCT_DESC);
22204
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
-
 
22205
      oprot.writeI64(this.userId);
-
 
22206
      oprot.writeFieldEnd();
-
 
22207
      if (this.status != null) {
23286
      if (this.name != null) {
22208
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
23287
        oprot.writeFieldBegin(NAME_FIELD_DESC);
22209
        oprot.writeI32(this.status.getValue());
23288
        oprot.writeString(this.name);
22210
        oprot.writeFieldEnd();
23289
        oprot.writeFieldEnd();
22211
      }
23290
      }
-
 
23291
      if (this.url != null) {
-
 
23292
        oprot.writeFieldBegin(URL_FIELD_DESC);
-
 
23293
        oprot.writeString(this.url);
-
 
23294
        oprot.writeFieldEnd();
-
 
23295
      }
-
 
23296
      oprot.writeFieldBegin(MASTER_AFFILIATE_ID_FIELD_DESC);
-
 
23297
      oprot.writeI64(this.masterAffiliateId);
-
 
23298
      oprot.writeFieldEnd();
22212
      oprot.writeFieldStop();
23299
      oprot.writeFieldStop();
22213
      oprot.writeStructEnd();
23300
      oprot.writeStructEnd();
22214
    }
23301
    }
22215
 
23302
 
22216
    @Override
23303
    @Override
22217
    public String toString() {
23304
    public String toString() {
22218
      StringBuilder sb = new StringBuilder("getCartsForUser_args(");
23305
      StringBuilder sb = new StringBuilder("createAffiliate_args(");
22219
      boolean first = true;
23306
      boolean first = true;
22220
 
23307
 
22221
      sb.append("userId:");
23308
      sb.append("name:");
-
 
23309
      if (this.name == null) {
-
 
23310
        sb.append("null");
-
 
23311
      } else {
22222
      sb.append(this.userId);
23312
        sb.append(this.name);
-
 
23313
      }
22223
      first = false;
23314
      first = false;
22224
      if (!first) sb.append(", ");
23315
      if (!first) sb.append(", ");
22225
      sb.append("status:");
23316
      sb.append("url:");
22226
      if (this.status == null) {
23317
      if (this.url == null) {
22227
        sb.append("null");
23318
        sb.append("null");
22228
      } else {
23319
      } else {
22229
        String status_name = status.name();
-
 
22230
        if (status_name != null) {
-
 
22231
          sb.append(status_name);
-
 
22232
          sb.append(" (");
-
 
22233
        }
-
 
22234
        sb.append(this.status);
23320
        sb.append(this.url);
22235
        if (status_name != null) {
-
 
22236
          sb.append(")");
-
 
22237
        }
-
 
22238
      }
23321
      }
22239
      first = false;
23322
      first = false;
-
 
23323
      if (!first) sb.append(", ");
-
 
23324
      sb.append("masterAffiliateId:");
-
 
23325
      sb.append(this.masterAffiliateId);
-
 
23326
      first = false;
22240
      sb.append(")");
23327
      sb.append(")");
22241
      return sb.toString();
23328
      return sb.toString();
22242
    }
23329
    }
22243
 
23330
 
22244
    public void validate() throws TException {
23331
    public void validate() throws TException {
22245
      // check for required fields
23332
      // check for required fields
22246
    }
23333
    }
22247
 
23334
 
22248
  }
23335
  }
22249
 
23336
 
22250
  public static class getCartsForUser_result implements TBase<getCartsForUser_result._Fields>, java.io.Serializable, Cloneable, Comparable<getCartsForUser_result>   {
23337
  public static class createAffiliate_result implements TBase<createAffiliate_result._Fields>, java.io.Serializable, Cloneable, Comparable<createAffiliate_result>   {
22251
    private static final TStruct STRUCT_DESC = new TStruct("getCartsForUser_result");
23338
    private static final TStruct STRUCT_DESC = new TStruct("createAffiliate_result");
22252
 
23339
 
22253
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
23340
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
22254
    private static final TField SCX_FIELD_DESC = new TField("scx", TType.STRUCT, (short)1);
23341
    private static final TField UTX_FIELD_DESC = new TField("utx", TType.STRUCT, (short)1);
22255
 
23342
 
22256
    private List<Cart> success;
23343
    private Affiliate success;
22257
    private ShoppingCartException scx;
23344
    private UserTrackerException utx;
22258
 
23345
 
22259
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23346
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22260
    public enum _Fields implements TFieldIdEnum {
23347
    public enum _Fields implements TFieldIdEnum {
22261
      SUCCESS((short)0, "success"),
23348
      SUCCESS((short)0, "success"),
22262
      SCX((short)1, "scx");
23349
      UTX((short)1, "utx");
22263
 
23350
 
22264
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
23351
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
22265
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23352
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22266
 
23353
 
22267
      static {
23354
      static {
Line 22314... Line 23401...
22314
 
23401
 
22315
    // isset id assignments
23402
    // isset id assignments
22316
 
23403
 
22317
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
23404
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
22318
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
23405
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
22319
          new ListMetaData(TType.LIST, 
-
 
22320
              new StructMetaData(TType.STRUCT, Cart.class))));
23406
          new StructMetaData(TType.STRUCT, Affiliate.class)));
22321
      put(_Fields.SCX, new FieldMetaData("scx", TFieldRequirementType.DEFAULT, 
23407
      put(_Fields.UTX, new FieldMetaData("utx", TFieldRequirementType.DEFAULT, 
22322
          new FieldValueMetaData(TType.STRUCT)));
23408
          new FieldValueMetaData(TType.STRUCT)));
22323
    }});
23409
    }});
22324
 
23410
 
22325
    static {
23411
    static {
22326
      FieldMetaData.addStructMetaDataMap(getCartsForUser_result.class, metaDataMap);
23412
      FieldMetaData.addStructMetaDataMap(createAffiliate_result.class, metaDataMap);
22327
    }
23413
    }
22328
 
23414
 
22329
    public getCartsForUser_result() {
23415
    public createAffiliate_result() {
22330
    }
23416
    }
22331
 
23417
 
22332
    public getCartsForUser_result(
23418
    public createAffiliate_result(
22333
      List<Cart> success,
23419
      Affiliate success,
22334
      ShoppingCartException scx)
23420
      UserTrackerException utx)
22335
    {
23421
    {
22336
      this();
23422
      this();
22337
      this.success = success;
23423
      this.success = success;
22338
      this.scx = scx;
23424
      this.utx = utx;
22339
    }
23425
    }
22340
 
23426
 
22341
    /**
23427
    /**
22342
     * Performs a deep copy on <i>other</i>.
23428
     * Performs a deep copy on <i>other</i>.
22343
     */
23429
     */
22344
    public getCartsForUser_result(getCartsForUser_result other) {
23430
    public createAffiliate_result(createAffiliate_result other) {
22345
      if (other.isSetSuccess()) {
23431
      if (other.isSetSuccess()) {
22346
        List<Cart> __this__success = new ArrayList<Cart>();
-
 
22347
        for (Cart other_element : other.success) {
-
 
22348
          __this__success.add(new Cart(other_element));
-
 
22349
        }
-
 
22350
        this.success = __this__success;
23432
        this.success = new Affiliate(other.success);
22351
      }
23433
      }
22352
      if (other.isSetScx()) {
23434
      if (other.isSetUtx()) {
22353
        this.scx = new ShoppingCartException(other.scx);
23435
        this.utx = new UserTrackerException(other.utx);
22354
      }
23436
      }
22355
    }
23437
    }
22356
 
23438
 
22357
    public getCartsForUser_result deepCopy() {
23439
    public createAffiliate_result deepCopy() {
22358
      return new getCartsForUser_result(this);
23440
      return new createAffiliate_result(this);
22359
    }
23441
    }
22360
 
23442
 
22361
    @Deprecated
23443
    @Deprecated
22362
    public getCartsForUser_result clone() {
23444
    public createAffiliate_result clone() {
22363
      return new getCartsForUser_result(this);
23445
      return new createAffiliate_result(this);
22364
    }
23446
    }
22365
 
23447
 
22366
    public int getSuccessSize() {
23448
    public Affiliate getSuccess() {
22367
      return (this.success == null) ? 0 : this.success.size();
23449
      return this.success;
22368
    }
23450
    }
22369
 
23451
 
22370
    public java.util.Iterator<Cart> getSuccessIterator() {
23452
    public createAffiliate_result setSuccess(Affiliate success) {
22371
      return (this.success == null) ? null : this.success.iterator();
23453
      this.success = success;
-
 
23454
      return this;
22372
    }
23455
    }
22373
 
23456
 
22374
    public void addToSuccess(Cart elem) {
23457
    public void unsetSuccess() {
-
 
23458
      this.success = null;
-
 
23459
    }
-
 
23460
 
-
 
23461
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
23462
    public boolean isSetSuccess() {
-
 
23463
      return this.success != null;
-
 
23464
    }
-
 
23465
 
-
 
23466
    public void setSuccessIsSet(boolean value) {
-
 
23467
      if (!value) {
-
 
23468
        this.success = null;
-
 
23469
      }
-
 
23470
    }
-
 
23471
 
-
 
23472
    public UserTrackerException getUtx() {
-
 
23473
      return this.utx;
-
 
23474
    }
-
 
23475
 
-
 
23476
    public createAffiliate_result setUtx(UserTrackerException utx) {
-
 
23477
      this.utx = utx;
-
 
23478
      return this;
-
 
23479
    }
-
 
23480
 
-
 
23481
    public void unsetUtx() {
-
 
23482
      this.utx = null;
-
 
23483
    }
-
 
23484
 
-
 
23485
    /** Returns true if field utx is set (has been asigned a value) and false otherwise */
-
 
23486
    public boolean isSetUtx() {
-
 
23487
      return this.utx != null;
-
 
23488
    }
-
 
23489
 
-
 
23490
    public void setUtxIsSet(boolean value) {
-
 
23491
      if (!value) {
-
 
23492
        this.utx = null;
-
 
23493
      }
-
 
23494
    }
-
 
23495
 
-
 
23496
    public void setFieldValue(_Fields field, Object value) {
-
 
23497
      switch (field) {
-
 
23498
      case SUCCESS:
-
 
23499
        if (value == null) {
-
 
23500
          unsetSuccess();
-
 
23501
        } else {
-
 
23502
          setSuccess((Affiliate)value);
-
 
23503
        }
-
 
23504
        break;
-
 
23505
 
-
 
23506
      case UTX:
-
 
23507
        if (value == null) {
-
 
23508
          unsetUtx();
-
 
23509
        } else {
-
 
23510
          setUtx((UserTrackerException)value);
-
 
23511
        }
-
 
23512
        break;
-
 
23513
 
-
 
23514
      }
-
 
23515
    }
-
 
23516
 
-
 
23517
    public void setFieldValue(int fieldID, Object value) {
-
 
23518
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
23519
    }
-
 
23520
 
-
 
23521
    public Object getFieldValue(_Fields field) {
-
 
23522
      switch (field) {
-
 
23523
      case SUCCESS:
-
 
23524
        return getSuccess();
-
 
23525
 
-
 
23526
      case UTX:
-
 
23527
        return getUtx();
-
 
23528
 
-
 
23529
      }
-
 
23530
      throw new IllegalStateException();
-
 
23531
    }
-
 
23532
 
-
 
23533
    public Object getFieldValue(int fieldId) {
-
 
23534
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
23535
    }
-
 
23536
 
-
 
23537
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
23538
    public boolean isSet(_Fields field) {
-
 
23539
      switch (field) {
-
 
23540
      case SUCCESS:
-
 
23541
        return isSetSuccess();
-
 
23542
      case UTX:
-
 
23543
        return isSetUtx();
-
 
23544
      }
-
 
23545
      throw new IllegalStateException();
-
 
23546
    }
-
 
23547
 
-
 
23548
    public boolean isSet(int fieldID) {
-
 
23549
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
23550
    }
-
 
23551
 
-
 
23552
    @Override
-
 
23553
    public boolean equals(Object that) {
-
 
23554
      if (that == null)
-
 
23555
        return false;
-
 
23556
      if (that instanceof createAffiliate_result)
-
 
23557
        return this.equals((createAffiliate_result)that);
-
 
23558
      return false;
-
 
23559
    }
-
 
23560
 
-
 
23561
    public boolean equals(createAffiliate_result that) {
-
 
23562
      if (that == null)
-
 
23563
        return false;
-
 
23564
 
-
 
23565
      boolean this_present_success = true && this.isSetSuccess();
-
 
23566
      boolean that_present_success = true && that.isSetSuccess();
-
 
23567
      if (this_present_success || that_present_success) {
-
 
23568
        if (!(this_present_success && that_present_success))
-
 
23569
          return false;
-
 
23570
        if (!this.success.equals(that.success))
-
 
23571
          return false;
-
 
23572
      }
-
 
23573
 
-
 
23574
      boolean this_present_utx = true && this.isSetUtx();
-
 
23575
      boolean that_present_utx = true && that.isSetUtx();
-
 
23576
      if (this_present_utx || that_present_utx) {
-
 
23577
        if (!(this_present_utx && that_present_utx))
-
 
23578
          return false;
-
 
23579
        if (!this.utx.equals(that.utx))
-
 
23580
          return false;
-
 
23581
      }
-
 
23582
 
-
 
23583
      return true;
-
 
23584
    }
-
 
23585
 
-
 
23586
    @Override
-
 
23587
    public int hashCode() {
-
 
23588
      return 0;
-
 
23589
    }
-
 
23590
 
-
 
23591
    public int compareTo(createAffiliate_result other) {
-
 
23592
      if (!getClass().equals(other.getClass())) {
-
 
23593
        return getClass().getName().compareTo(other.getClass().getName());
-
 
23594
      }
-
 
23595
 
-
 
23596
      int lastComparison = 0;
-
 
23597
      createAffiliate_result typedOther = (createAffiliate_result)other;
-
 
23598
 
-
 
23599
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
23600
      if (lastComparison != 0) {
-
 
23601
        return lastComparison;
-
 
23602
      }
-
 
23603
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
23604
      if (lastComparison != 0) {
-
 
23605
        return lastComparison;
-
 
23606
      }
-
 
23607
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(isSetUtx());
-
 
23608
      if (lastComparison != 0) {
-
 
23609
        return lastComparison;
-
 
23610
      }
-
 
23611
      lastComparison = TBaseHelper.compareTo(utx, typedOther.utx);
-
 
23612
      if (lastComparison != 0) {
-
 
23613
        return lastComparison;
-
 
23614
      }
-
 
23615
      return 0;
-
 
23616
    }
-
 
23617
 
-
 
23618
    public void read(TProtocol iprot) throws TException {
-
 
23619
      TField field;
-
 
23620
      iprot.readStructBegin();
-
 
23621
      while (true)
-
 
23622
      {
-
 
23623
        field = iprot.readFieldBegin();
-
 
23624
        if (field.type == TType.STOP) { 
-
 
23625
          break;
-
 
23626
        }
-
 
23627
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
23628
        if (fieldId == null) {
-
 
23629
          TProtocolUtil.skip(iprot, field.type);
-
 
23630
        } else {
-
 
23631
          switch (fieldId) {
-
 
23632
            case SUCCESS:
-
 
23633
              if (field.type == TType.STRUCT) {
-
 
23634
                this.success = new Affiliate();
-
 
23635
                this.success.read(iprot);
-
 
23636
              } else { 
-
 
23637
                TProtocolUtil.skip(iprot, field.type);
-
 
23638
              }
-
 
23639
              break;
-
 
23640
            case UTX:
-
 
23641
              if (field.type == TType.STRUCT) {
-
 
23642
                this.utx = new UserTrackerException();
-
 
23643
                this.utx.read(iprot);
-
 
23644
              } else { 
-
 
23645
                TProtocolUtil.skip(iprot, field.type);
-
 
23646
              }
-
 
23647
              break;
-
 
23648
          }
-
 
23649
          iprot.readFieldEnd();
-
 
23650
        }
-
 
23651
      }
-
 
23652
      iprot.readStructEnd();
-
 
23653
      validate();
-
 
23654
    }
-
 
23655
 
-
 
23656
    public void write(TProtocol oprot) throws TException {
-
 
23657
      oprot.writeStructBegin(STRUCT_DESC);
-
 
23658
 
-
 
23659
      if (this.isSetSuccess()) {
-
 
23660
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
23661
        this.success.write(oprot);
-
 
23662
        oprot.writeFieldEnd();
-
 
23663
      } else if (this.isSetUtx()) {
-
 
23664
        oprot.writeFieldBegin(UTX_FIELD_DESC);
-
 
23665
        this.utx.write(oprot);
-
 
23666
        oprot.writeFieldEnd();
-
 
23667
      }
-
 
23668
      oprot.writeFieldStop();
-
 
23669
      oprot.writeStructEnd();
-
 
23670
    }
-
 
23671
 
-
 
23672
    @Override
-
 
23673
    public String toString() {
-
 
23674
      StringBuilder sb = new StringBuilder("createAffiliate_result(");
-
 
23675
      boolean first = true;
-
 
23676
 
-
 
23677
      sb.append("success:");
22375
      if (this.success == null) {
23678
      if (this.success == null) {
-
 
23679
        sb.append("null");
-
 
23680
      } else {
22376
        this.success = new ArrayList<Cart>();
23681
        sb.append(this.success);
22377
      }
23682
      }
-
 
23683
      first = false;
-
 
23684
      if (!first) sb.append(", ");
-
 
23685
      sb.append("utx:");
-
 
23686
      if (this.utx == null) {
22378
      this.success.add(elem);
23687
        sb.append("null");
-
 
23688
      } else {
-
 
23689
        sb.append(this.utx);
-
 
23690
      }
-
 
23691
      first = false;
-
 
23692
      sb.append(")");
-
 
23693
      return sb.toString();
22379
    }
23694
    }
22380
 
23695
 
-
 
23696
    public void validate() throws TException {
-
 
23697
      // check for required fields
-
 
23698
    }
-
 
23699
 
-
 
23700
  }
-
 
23701
 
-
 
23702
  public static class getAffiliateById_args implements TBase<getAffiliateById_args._Fields>, java.io.Serializable, Cloneable, Comparable<getAffiliateById_args>   {
-
 
23703
    private static final TStruct STRUCT_DESC = new TStruct("getAffiliateById_args");
-
 
23704
 
-
 
23705
    private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
-
 
23706
 
-
 
23707
    private long id;
-
 
23708
 
-
 
23709
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
23710
    public enum _Fields implements TFieldIdEnum {
-
 
23711
      ID((short)1, "id");
-
 
23712
 
-
 
23713
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
23714
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
23715
 
-
 
23716
      static {
-
 
23717
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
23718
          byId.put((int)field._thriftId, field);
-
 
23719
          byName.put(field.getFieldName(), field);
-
 
23720
        }
-
 
23721
      }
-
 
23722
 
-
 
23723
      /**
-
 
23724
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
23725
       */
-
 
23726
      public static _Fields findByThriftId(int fieldId) {
-
 
23727
        return byId.get(fieldId);
-
 
23728
      }
-
 
23729
 
-
 
23730
      /**
-
 
23731
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
23732
       * if it is not found.
-
 
23733
       */
-
 
23734
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
23735
        _Fields fields = findByThriftId(fieldId);
-
 
23736
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
23737
        return fields;
-
 
23738
      }
-
 
23739
 
-
 
23740
      /**
-
 
23741
       * Find the _Fields constant that matches name, or null if its not found.
-
 
23742
       */
-
 
23743
      public static _Fields findByName(String name) {
-
 
23744
        return byName.get(name);
-
 
23745
      }
-
 
23746
 
-
 
23747
      private final short _thriftId;
-
 
23748
      private final String _fieldName;
-
 
23749
 
-
 
23750
      _Fields(short thriftId, String fieldName) {
-
 
23751
        _thriftId = thriftId;
-
 
23752
        _fieldName = fieldName;
-
 
23753
      }
-
 
23754
 
-
 
23755
      public short getThriftFieldId() {
-
 
23756
        return _thriftId;
-
 
23757
      }
-
 
23758
 
-
 
23759
      public String getFieldName() {
-
 
23760
        return _fieldName;
-
 
23761
      }
-
 
23762
    }
-
 
23763
 
-
 
23764
    // isset id assignments
-
 
23765
    private static final int __ID_ISSET_ID = 0;
-
 
23766
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
23767
 
-
 
23768
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
23769
      put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
-
 
23770
          new FieldValueMetaData(TType.I64)));
-
 
23771
    }});
-
 
23772
 
-
 
23773
    static {
-
 
23774
      FieldMetaData.addStructMetaDataMap(getAffiliateById_args.class, metaDataMap);
-
 
23775
    }
-
 
23776
 
-
 
23777
    public getAffiliateById_args() {
-
 
23778
    }
-
 
23779
 
-
 
23780
    public getAffiliateById_args(
-
 
23781
      long id)
-
 
23782
    {
-
 
23783
      this();
-
 
23784
      this.id = id;
-
 
23785
      setIdIsSet(true);
-
 
23786
    }
-
 
23787
 
-
 
23788
    /**
-
 
23789
     * Performs a deep copy on <i>other</i>.
-
 
23790
     */
-
 
23791
    public getAffiliateById_args(getAffiliateById_args other) {
-
 
23792
      __isset_bit_vector.clear();
-
 
23793
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
23794
      this.id = other.id;
-
 
23795
    }
-
 
23796
 
-
 
23797
    public getAffiliateById_args deepCopy() {
-
 
23798
      return new getAffiliateById_args(this);
-
 
23799
    }
-
 
23800
 
-
 
23801
    @Deprecated
-
 
23802
    public getAffiliateById_args clone() {
-
 
23803
      return new getAffiliateById_args(this);
-
 
23804
    }
-
 
23805
 
-
 
23806
    public long getId() {
-
 
23807
      return this.id;
-
 
23808
    }
-
 
23809
 
-
 
23810
    public getAffiliateById_args setId(long id) {
-
 
23811
      this.id = id;
-
 
23812
      setIdIsSet(true);
-
 
23813
      return this;
-
 
23814
    }
-
 
23815
 
-
 
23816
    public void unsetId() {
-
 
23817
      __isset_bit_vector.clear(__ID_ISSET_ID);
-
 
23818
    }
-
 
23819
 
-
 
23820
    /** Returns true if field id is set (has been asigned a value) and false otherwise */
-
 
23821
    public boolean isSetId() {
-
 
23822
      return __isset_bit_vector.get(__ID_ISSET_ID);
-
 
23823
    }
-
 
23824
 
-
 
23825
    public void setIdIsSet(boolean value) {
-
 
23826
      __isset_bit_vector.set(__ID_ISSET_ID, value);
-
 
23827
    }
-
 
23828
 
-
 
23829
    public void setFieldValue(_Fields field, Object value) {
-
 
23830
      switch (field) {
-
 
23831
      case ID:
-
 
23832
        if (value == null) {
-
 
23833
          unsetId();
-
 
23834
        } else {
-
 
23835
          setId((Long)value);
-
 
23836
        }
-
 
23837
        break;
-
 
23838
 
-
 
23839
      }
-
 
23840
    }
-
 
23841
 
-
 
23842
    public void setFieldValue(int fieldID, Object value) {
-
 
23843
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
23844
    }
-
 
23845
 
-
 
23846
    public Object getFieldValue(_Fields field) {
-
 
23847
      switch (field) {
-
 
23848
      case ID:
-
 
23849
        return new Long(getId());
-
 
23850
 
-
 
23851
      }
-
 
23852
      throw new IllegalStateException();
-
 
23853
    }
-
 
23854
 
-
 
23855
    public Object getFieldValue(int fieldId) {
-
 
23856
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
23857
    }
-
 
23858
 
-
 
23859
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
23860
    public boolean isSet(_Fields field) {
-
 
23861
      switch (field) {
-
 
23862
      case ID:
-
 
23863
        return isSetId();
-
 
23864
      }
-
 
23865
      throw new IllegalStateException();
-
 
23866
    }
-
 
23867
 
-
 
23868
    public boolean isSet(int fieldID) {
-
 
23869
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
23870
    }
-
 
23871
 
-
 
23872
    @Override
-
 
23873
    public boolean equals(Object that) {
-
 
23874
      if (that == null)
-
 
23875
        return false;
-
 
23876
      if (that instanceof getAffiliateById_args)
-
 
23877
        return this.equals((getAffiliateById_args)that);
-
 
23878
      return false;
-
 
23879
    }
-
 
23880
 
-
 
23881
    public boolean equals(getAffiliateById_args that) {
-
 
23882
      if (that == null)
-
 
23883
        return false;
-
 
23884
 
-
 
23885
      boolean this_present_id = true;
-
 
23886
      boolean that_present_id = true;
-
 
23887
      if (this_present_id || that_present_id) {
-
 
23888
        if (!(this_present_id && that_present_id))
-
 
23889
          return false;
-
 
23890
        if (this.id != that.id)
-
 
23891
          return false;
-
 
23892
      }
-
 
23893
 
-
 
23894
      return true;
-
 
23895
    }
-
 
23896
 
-
 
23897
    @Override
-
 
23898
    public int hashCode() {
-
 
23899
      return 0;
-
 
23900
    }
-
 
23901
 
-
 
23902
    public int compareTo(getAffiliateById_args other) {
-
 
23903
      if (!getClass().equals(other.getClass())) {
-
 
23904
        return getClass().getName().compareTo(other.getClass().getName());
-
 
23905
      }
-
 
23906
 
-
 
23907
      int lastComparison = 0;
-
 
23908
      getAffiliateById_args typedOther = (getAffiliateById_args)other;
-
 
23909
 
-
 
23910
      lastComparison = Boolean.valueOf(isSetId()).compareTo(isSetId());
-
 
23911
      if (lastComparison != 0) {
-
 
23912
        return lastComparison;
-
 
23913
      }
-
 
23914
      lastComparison = TBaseHelper.compareTo(id, typedOther.id);
-
 
23915
      if (lastComparison != 0) {
-
 
23916
        return lastComparison;
-
 
23917
      }
-
 
23918
      return 0;
-
 
23919
    }
-
 
23920
 
-
 
23921
    public void read(TProtocol iprot) throws TException {
-
 
23922
      TField field;
-
 
23923
      iprot.readStructBegin();
-
 
23924
      while (true)
-
 
23925
      {
-
 
23926
        field = iprot.readFieldBegin();
-
 
23927
        if (field.type == TType.STOP) { 
-
 
23928
          break;
-
 
23929
        }
-
 
23930
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
23931
        if (fieldId == null) {
-
 
23932
          TProtocolUtil.skip(iprot, field.type);
-
 
23933
        } else {
-
 
23934
          switch (fieldId) {
-
 
23935
            case ID:
-
 
23936
              if (field.type == TType.I64) {
-
 
23937
                this.id = iprot.readI64();
-
 
23938
                setIdIsSet(true);
-
 
23939
              } else { 
-
 
23940
                TProtocolUtil.skip(iprot, field.type);
-
 
23941
              }
-
 
23942
              break;
-
 
23943
          }
-
 
23944
          iprot.readFieldEnd();
-
 
23945
        }
-
 
23946
      }
-
 
23947
      iprot.readStructEnd();
-
 
23948
      validate();
-
 
23949
    }
-
 
23950
 
-
 
23951
    public void write(TProtocol oprot) throws TException {
-
 
23952
      validate();
-
 
23953
 
-
 
23954
      oprot.writeStructBegin(STRUCT_DESC);
-
 
23955
      oprot.writeFieldBegin(ID_FIELD_DESC);
-
 
23956
      oprot.writeI64(this.id);
-
 
23957
      oprot.writeFieldEnd();
-
 
23958
      oprot.writeFieldStop();
-
 
23959
      oprot.writeStructEnd();
-
 
23960
    }
-
 
23961
 
-
 
23962
    @Override
-
 
23963
    public String toString() {
-
 
23964
      StringBuilder sb = new StringBuilder("getAffiliateById_args(");
-
 
23965
      boolean first = true;
-
 
23966
 
-
 
23967
      sb.append("id:");
-
 
23968
      sb.append(this.id);
-
 
23969
      first = false;
-
 
23970
      sb.append(")");
-
 
23971
      return sb.toString();
-
 
23972
    }
-
 
23973
 
-
 
23974
    public void validate() throws TException {
-
 
23975
      // check for required fields
-
 
23976
    }
-
 
23977
 
-
 
23978
  }
-
 
23979
 
-
 
23980
  public static class getAffiliateById_result implements TBase<getAffiliateById_result._Fields>, java.io.Serializable, Cloneable, Comparable<getAffiliateById_result>   {
-
 
23981
    private static final TStruct STRUCT_DESC = new TStruct("getAffiliateById_result");
-
 
23982
 
-
 
23983
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
-
 
23984
    private static final TField UTX_FIELD_DESC = new TField("utx", TType.STRUCT, (short)1);
-
 
23985
 
-
 
23986
    private Affiliate success;
-
 
23987
    private UserTrackerException utx;
-
 
23988
 
-
 
23989
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
23990
    public enum _Fields implements TFieldIdEnum {
-
 
23991
      SUCCESS((short)0, "success"),
-
 
23992
      UTX((short)1, "utx");
-
 
23993
 
-
 
23994
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
23995
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
23996
 
-
 
23997
      static {
-
 
23998
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
23999
          byId.put((int)field._thriftId, field);
-
 
24000
          byName.put(field.getFieldName(), field);
-
 
24001
        }
-
 
24002
      }
-
 
24003
 
-
 
24004
      /**
-
 
24005
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
24006
       */
-
 
24007
      public static _Fields findByThriftId(int fieldId) {
-
 
24008
        return byId.get(fieldId);
-
 
24009
      }
-
 
24010
 
-
 
24011
      /**
-
 
24012
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
24013
       * if it is not found.
-
 
24014
       */
-
 
24015
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
24016
        _Fields fields = findByThriftId(fieldId);
-
 
24017
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
24018
        return fields;
-
 
24019
      }
-
 
24020
 
-
 
24021
      /**
-
 
24022
       * Find the _Fields constant that matches name, or null if its not found.
-
 
24023
       */
-
 
24024
      public static _Fields findByName(String name) {
-
 
24025
        return byName.get(name);
-
 
24026
      }
-
 
24027
 
-
 
24028
      private final short _thriftId;
-
 
24029
      private final String _fieldName;
-
 
24030
 
-
 
24031
      _Fields(short thriftId, String fieldName) {
-
 
24032
        _thriftId = thriftId;
-
 
24033
        _fieldName = fieldName;
-
 
24034
      }
-
 
24035
 
-
 
24036
      public short getThriftFieldId() {
-
 
24037
        return _thriftId;
-
 
24038
      }
-
 
24039
 
-
 
24040
      public String getFieldName() {
-
 
24041
        return _fieldName;
-
 
24042
      }
-
 
24043
    }
-
 
24044
 
-
 
24045
    // isset id assignments
-
 
24046
 
-
 
24047
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
24048
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
24049
          new StructMetaData(TType.STRUCT, Affiliate.class)));
-
 
24050
      put(_Fields.UTX, new FieldMetaData("utx", TFieldRequirementType.DEFAULT, 
-
 
24051
          new FieldValueMetaData(TType.STRUCT)));
-
 
24052
    }});
-
 
24053
 
-
 
24054
    static {
-
 
24055
      FieldMetaData.addStructMetaDataMap(getAffiliateById_result.class, metaDataMap);
-
 
24056
    }
-
 
24057
 
-
 
24058
    public getAffiliateById_result() {
-
 
24059
    }
-
 
24060
 
-
 
24061
    public getAffiliateById_result(
-
 
24062
      Affiliate success,
-
 
24063
      UserTrackerException utx)
-
 
24064
    {
-
 
24065
      this();
-
 
24066
      this.success = success;
-
 
24067
      this.utx = utx;
-
 
24068
    }
-
 
24069
 
-
 
24070
    /**
-
 
24071
     * Performs a deep copy on <i>other</i>.
-
 
24072
     */
-
 
24073
    public getAffiliateById_result(getAffiliateById_result other) {
-
 
24074
      if (other.isSetSuccess()) {
-
 
24075
        this.success = new Affiliate(other.success);
-
 
24076
      }
-
 
24077
      if (other.isSetUtx()) {
-
 
24078
        this.utx = new UserTrackerException(other.utx);
-
 
24079
      }
-
 
24080
    }
-
 
24081
 
-
 
24082
    public getAffiliateById_result deepCopy() {
-
 
24083
      return new getAffiliateById_result(this);
-
 
24084
    }
-
 
24085
 
-
 
24086
    @Deprecated
-
 
24087
    public getAffiliateById_result clone() {
-
 
24088
      return new getAffiliateById_result(this);
-
 
24089
    }
-
 
24090
 
22381
    public List<Cart> getSuccess() {
24091
    public Affiliate getSuccess() {
22382
      return this.success;
24092
      return this.success;
22383
    }
24093
    }
22384
 
24094
 
22385
    public getCartsForUser_result setSuccess(List<Cart> success) {
24095
    public getAffiliateById_result setSuccess(Affiliate success) {
22386
      this.success = success;
24096
      this.success = success;
22387
      return this;
24097
      return this;
22388
    }
24098
    }
22389
 
24099
 
22390
    public void unsetSuccess() {
24100
    public void unsetSuccess() {
Line 22400... Line 24110...
22400
      if (!value) {
24110
      if (!value) {
22401
        this.success = null;
24111
        this.success = null;
22402
      }
24112
      }
22403
    }
24113
    }
22404
 
24114
 
22405
    public ShoppingCartException getScx() {
24115
    public UserTrackerException getUtx() {
22406
      return this.scx;
24116
      return this.utx;
22407
    }
24117
    }
22408
 
24118
 
22409
    public getCartsForUser_result setScx(ShoppingCartException scx) {
24119
    public getAffiliateById_result setUtx(UserTrackerException utx) {
22410
      this.scx = scx;
24120
      this.utx = utx;
22411
      return this;
24121
      return this;
22412
    }
24122
    }
22413
 
24123
 
22414
    public void unsetScx() {
24124
    public void unsetUtx() {
22415
      this.scx = null;
24125
      this.utx = null;
22416
    }
24126
    }
22417
 
24127
 
22418
    /** Returns true if field scx is set (has been asigned a value) and false otherwise */
24128
    /** Returns true if field utx is set (has been asigned a value) and false otherwise */
22419
    public boolean isSetScx() {
24129
    public boolean isSetUtx() {
22420
      return this.scx != null;
24130
      return this.utx != null;
22421
    }
24131
    }
22422
 
24132
 
22423
    public void setScxIsSet(boolean value) {
24133
    public void setUtxIsSet(boolean value) {
22424
      if (!value) {
24134
      if (!value) {
22425
        this.scx = null;
24135
        this.utx = null;
22426
      }
24136
      }
22427
    }
24137
    }
22428
 
24138
 
22429
    public void setFieldValue(_Fields field, Object value) {
24139
    public void setFieldValue(_Fields field, Object value) {
22430
      switch (field) {
24140
      switch (field) {
22431
      case SUCCESS:
24141
      case SUCCESS:
22432
        if (value == null) {
24142
        if (value == null) {
22433
          unsetSuccess();
24143
          unsetSuccess();
22434
        } else {
24144
        } else {
22435
          setSuccess((List<Cart>)value);
24145
          setSuccess((Affiliate)value);
22436
        }
24146
        }
22437
        break;
24147
        break;
22438
 
24148
 
22439
      case SCX:
24149
      case UTX:
22440
        if (value == null) {
24150
        if (value == null) {
22441
          unsetScx();
24151
          unsetUtx();
22442
        } else {
24152
        } else {
22443
          setScx((ShoppingCartException)value);
24153
          setUtx((UserTrackerException)value);
22444
        }
24154
        }
22445
        break;
24155
        break;
22446
 
24156
 
22447
      }
24157
      }
22448
    }
24158
    }
Line 22454... Line 24164...
22454
    public Object getFieldValue(_Fields field) {
24164
    public Object getFieldValue(_Fields field) {
22455
      switch (field) {
24165
      switch (field) {
22456
      case SUCCESS:
24166
      case SUCCESS:
22457
        return getSuccess();
24167
        return getSuccess();
22458
 
24168
 
22459
      case SCX:
24169
      case UTX:
22460
        return getScx();
24170
        return getUtx();
22461
 
24171
 
22462
      }
24172
      }
22463
      throw new IllegalStateException();
24173
      throw new IllegalStateException();
22464
    }
24174
    }
22465
 
24175
 
Line 22470... Line 24180...
22470
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
24180
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
22471
    public boolean isSet(_Fields field) {
24181
    public boolean isSet(_Fields field) {
22472
      switch (field) {
24182
      switch (field) {
22473
      case SUCCESS:
24183
      case SUCCESS:
22474
        return isSetSuccess();
24184
        return isSetSuccess();
22475
      case SCX:
24185
      case UTX:
22476
        return isSetScx();
24186
        return isSetUtx();
22477
      }
24187
      }
22478
      throw new IllegalStateException();
24188
      throw new IllegalStateException();
22479
    }
24189
    }
22480
 
24190
 
22481
    public boolean isSet(int fieldID) {
24191
    public boolean isSet(int fieldID) {
Line 22484... Line 24194...
22484
 
24194
 
22485
    @Override
24195
    @Override
22486
    public boolean equals(Object that) {
24196
    public boolean equals(Object that) {
22487
      if (that == null)
24197
      if (that == null)
22488
        return false;
24198
        return false;
22489
      if (that instanceof getCartsForUser_result)
24199
      if (that instanceof getAffiliateById_result)
22490
        return this.equals((getCartsForUser_result)that);
24200
        return this.equals((getAffiliateById_result)that);
22491
      return false;
24201
      return false;
22492
    }
24202
    }
22493
 
24203
 
22494
    public boolean equals(getCartsForUser_result that) {
24204
    public boolean equals(getAffiliateById_result that) {
22495
      if (that == null)
24205
      if (that == null)
22496
        return false;
24206
        return false;
22497
 
24207
 
22498
      boolean this_present_success = true && this.isSetSuccess();
24208
      boolean this_present_success = true && this.isSetSuccess();
22499
      boolean that_present_success = true && that.isSetSuccess();
24209
      boolean that_present_success = true && that.isSetSuccess();
Line 22502... Line 24212...
22502
          return false;
24212
          return false;
22503
        if (!this.success.equals(that.success))
24213
        if (!this.success.equals(that.success))
22504
          return false;
24214
          return false;
22505
      }
24215
      }
22506
 
24216
 
22507
      boolean this_present_scx = true && this.isSetScx();
24217
      boolean this_present_utx = true && this.isSetUtx();
22508
      boolean that_present_scx = true && that.isSetScx();
24218
      boolean that_present_utx = true && that.isSetUtx();
22509
      if (this_present_scx || that_present_scx) {
24219
      if (this_present_utx || that_present_utx) {
22510
        if (!(this_present_scx && that_present_scx))
24220
        if (!(this_present_utx && that_present_utx))
22511
          return false;
24221
          return false;
22512
        if (!this.scx.equals(that.scx))
24222
        if (!this.utx.equals(that.utx))
22513
          return false;
24223
          return false;
22514
      }
24224
      }
22515
 
24225
 
22516
      return true;
24226
      return true;
22517
    }
24227
    }
Line 22519... Line 24229...
22519
    @Override
24229
    @Override
22520
    public int hashCode() {
24230
    public int hashCode() {
22521
      return 0;
24231
      return 0;
22522
    }
24232
    }
22523
 
24233
 
22524
    public int compareTo(getCartsForUser_result other) {
24234
    public int compareTo(getAffiliateById_result other) {
22525
      if (!getClass().equals(other.getClass())) {
24235
      if (!getClass().equals(other.getClass())) {
22526
        return getClass().getName().compareTo(other.getClass().getName());
24236
        return getClass().getName().compareTo(other.getClass().getName());
22527
      }
24237
      }
22528
 
24238
 
22529
      int lastComparison = 0;
24239
      int lastComparison = 0;
22530
      getCartsForUser_result typedOther = (getCartsForUser_result)other;
24240
      getAffiliateById_result typedOther = (getAffiliateById_result)other;
22531
 
24241
 
22532
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
24242
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
22533
      if (lastComparison != 0) {
24243
      if (lastComparison != 0) {
22534
        return lastComparison;
24244
        return lastComparison;
22535
      }
24245
      }
22536
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
24246
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
22537
      if (lastComparison != 0) {
24247
      if (lastComparison != 0) {
22538
        return lastComparison;
24248
        return lastComparison;
22539
      }
24249
      }
22540
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(isSetScx());
24250
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(isSetUtx());
22541
      if (lastComparison != 0) {
24251
      if (lastComparison != 0) {
22542
        return lastComparison;
24252
        return lastComparison;
22543
      }
24253
      }
22544
      lastComparison = TBaseHelper.compareTo(scx, typedOther.scx);
24254
      lastComparison = TBaseHelper.compareTo(utx, typedOther.utx);
22545
      if (lastComparison != 0) {
24255
      if (lastComparison != 0) {
22546
        return lastComparison;
24256
        return lastComparison;
22547
      }
24257
      }
22548
      return 0;
24258
      return 0;
22549
    }
24259
    }
Line 22561... Line 24271...
22561
        if (fieldId == null) {
24271
        if (fieldId == null) {
22562
          TProtocolUtil.skip(iprot, field.type);
24272
          TProtocolUtil.skip(iprot, field.type);
22563
        } else {
24273
        } else {
22564
          switch (fieldId) {
24274
          switch (fieldId) {
22565
            case SUCCESS:
24275
            case SUCCESS:
22566
              if (field.type == TType.LIST) {
24276
              if (field.type == TType.STRUCT) {
22567
                {
-
 
22568
                  TList _list28 = iprot.readListBegin();
-
 
22569
                  this.success = new ArrayList<Cart>(_list28.size);
24277
                this.success = new Affiliate();
22570
                  for (int _i29 = 0; _i29 < _list28.size; ++_i29)
-
 
22571
                  {
-
 
22572
                    Cart _elem30;
-
 
22573
                    _elem30 = new Cart();
-
 
22574
                    _elem30.read(iprot);
24278
                this.success.read(iprot);
22575
                    this.success.add(_elem30);
-
 
22576
                  }
-
 
22577
                  iprot.readListEnd();
-
 
22578
                }
-
 
22579
              } else { 
24279
              } else { 
22580
                TProtocolUtil.skip(iprot, field.type);
24280
                TProtocolUtil.skip(iprot, field.type);
22581
              }
24281
              }
22582
              break;
24282
              break;
22583
            case SCX:
24283
            case UTX:
22584
              if (field.type == TType.STRUCT) {
24284
              if (field.type == TType.STRUCT) {
22585
                this.scx = new ShoppingCartException();
24285
                this.utx = new UserTrackerException();
22586
                this.scx.read(iprot);
24286
                this.utx.read(iprot);
22587
              } else { 
24287
              } else { 
22588
                TProtocolUtil.skip(iprot, field.type);
24288
                TProtocolUtil.skip(iprot, field.type);
22589
              }
24289
              }
22590
              break;
24290
              break;
22591
          }
24291
          }
Line 22599... Line 24299...
22599
    public void write(TProtocol oprot) throws TException {
24299
    public void write(TProtocol oprot) throws TException {
22600
      oprot.writeStructBegin(STRUCT_DESC);
24300
      oprot.writeStructBegin(STRUCT_DESC);
22601
 
24301
 
22602
      if (this.isSetSuccess()) {
24302
      if (this.isSetSuccess()) {
22603
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24303
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22604
        {
-
 
22605
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
-
 
22606
          for (Cart _iter31 : this.success)
-
 
22607
          {
-
 
22608
            _iter31.write(oprot);
24304
        this.success.write(oprot);
22609
          }
-
 
22610
          oprot.writeListEnd();
-
 
22611
        }
-
 
22612
        oprot.writeFieldEnd();
24305
        oprot.writeFieldEnd();
22613
      } else if (this.isSetScx()) {
24306
      } else if (this.isSetUtx()) {
22614
        oprot.writeFieldBegin(SCX_FIELD_DESC);
24307
        oprot.writeFieldBegin(UTX_FIELD_DESC);
22615
        this.scx.write(oprot);
24308
        this.utx.write(oprot);
22616
        oprot.writeFieldEnd();
24309
        oprot.writeFieldEnd();
22617
      }
24310
      }
22618
      oprot.writeFieldStop();
24311
      oprot.writeFieldStop();
22619
      oprot.writeStructEnd();
24312
      oprot.writeStructEnd();
22620
    }
24313
    }
22621
 
24314
 
22622
    @Override
24315
    @Override
22623
    public String toString() {
24316
    public String toString() {
22624
      StringBuilder sb = new StringBuilder("getCartsForUser_result(");
24317
      StringBuilder sb = new StringBuilder("getAffiliateById_result(");
22625
      boolean first = true;
24318
      boolean first = true;
22626
 
24319
 
22627
      sb.append("success:");
24320
      sb.append("success:");
22628
      if (this.success == null) {
24321
      if (this.success == null) {
22629
        sb.append("null");
24322
        sb.append("null");
22630
      } else {
24323
      } else {
22631
        sb.append(this.success);
24324
        sb.append(this.success);
22632
      }
24325
      }
22633
      first = false;
24326
      first = false;
22634
      if (!first) sb.append(", ");
24327
      if (!first) sb.append(", ");
22635
      sb.append("scx:");
24328
      sb.append("utx:");
22636
      if (this.scx == null) {
24329
      if (this.utx == null) {
22637
        sb.append("null");
24330
        sb.append("null");
22638
      } else {
24331
      } else {
22639
        sb.append(this.scx);
24332
        sb.append(this.utx);
22640
      }
24333
      }
22641
      first = false;
24334
      first = false;
22642
      sb.append(")");
24335
      sb.append(")");
22643
      return sb.toString();
24336
      return sb.toString();
22644
    }
24337
    }
Line 22647... Line 24340...
22647
      // check for required fields
24340
      // check for required fields
22648
    }
24341
    }
22649
 
24342
 
22650
  }
24343
  }
22651
 
24344
 
22652
  public static class getCartsByStatus_args implements TBase<getCartsByStatus_args._Fields>, java.io.Serializable, Cloneable, Comparable<getCartsByStatus_args>   {
24345
  public static class getAffiliateByName_args implements TBase<getAffiliateByName_args._Fields>, java.io.Serializable, Cloneable, Comparable<getAffiliateByName_args>   {
22653
    private static final TStruct STRUCT_DESC = new TStruct("getCartsByStatus_args");
24346
    private static final TStruct STRUCT_DESC = new TStruct("getAffiliateByName_args");
22654
 
24347
 
22655
    private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)1);
24348
    private static final TField NAME_FIELD_DESC = new TField("name", TType.STRING, (short)1);
22656
 
24349
 
22657
    private CartStatus status;
24350
    private String name;
22658
 
24351
 
22659
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24352
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22660
    public enum _Fields implements TFieldIdEnum {
24353
    public enum _Fields implements TFieldIdEnum {
22661
      /**
-
 
22662
       * 
-
 
22663
       * @see CartStatus
-
 
22664
       */
-
 
22665
      STATUS((short)1, "status");
24354
      NAME((short)1, "name");
22666
 
24355
 
22667
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
24356
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
22668
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24357
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22669
 
24358
 
22670
      static {
24359
      static {
Line 22716... Line 24405...
22716
    }
24405
    }
22717
 
24406
 
22718
    // isset id assignments
24407
    // isset id assignments
22719
 
24408
 
22720
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
24409
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
22721
      put(_Fields.STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT, 
24410
      put(_Fields.NAME, new FieldMetaData("name", TFieldRequirementType.DEFAULT, 
22722
          new EnumMetaData(TType.ENUM, CartStatus.class)));
24411
          new FieldValueMetaData(TType.STRING)));
22723
    }});
24412
    }});
22724
 
24413
 
22725
    static {
24414
    static {
22726
      FieldMetaData.addStructMetaDataMap(getCartsByStatus_args.class, metaDataMap);
24415
      FieldMetaData.addStructMetaDataMap(getAffiliateByName_args.class, metaDataMap);
22727
    }
24416
    }
22728
 
24417
 
22729
    public getCartsByStatus_args() {
24418
    public getAffiliateByName_args() {
22730
    }
24419
    }
22731
 
24420
 
22732
    public getCartsByStatus_args(
24421
    public getAffiliateByName_args(
22733
      CartStatus status)
24422
      String name)
22734
    {
24423
    {
22735
      this();
24424
      this();
22736
      this.status = status;
24425
      this.name = name;
22737
    }
24426
    }
22738
 
24427
 
22739
    /**
24428
    /**
22740
     * Performs a deep copy on <i>other</i>.
24429
     * Performs a deep copy on <i>other</i>.
22741
     */
24430
     */
22742
    public getCartsByStatus_args(getCartsByStatus_args other) {
24431
    public getAffiliateByName_args(getAffiliateByName_args other) {
22743
      if (other.isSetStatus()) {
24432
      if (other.isSetName()) {
22744
        this.status = other.status;
24433
        this.name = other.name;
22745
      }
24434
      }
22746
    }
24435
    }
22747
 
24436
 
22748
    public getCartsByStatus_args deepCopy() {
24437
    public getAffiliateByName_args deepCopy() {
22749
      return new getCartsByStatus_args(this);
24438
      return new getAffiliateByName_args(this);
22750
    }
24439
    }
22751
 
24440
 
22752
    @Deprecated
24441
    @Deprecated
22753
    public getCartsByStatus_args clone() {
24442
    public getAffiliateByName_args clone() {
22754
      return new getCartsByStatus_args(this);
24443
      return new getAffiliateByName_args(this);
22755
    }
24444
    }
22756
 
24445
 
22757
    /**
-
 
22758
     * 
-
 
22759
     * @see CartStatus
-
 
22760
     */
-
 
22761
    public CartStatus getStatus() {
24446
    public String getName() {
22762
      return this.status;
24447
      return this.name;
22763
    }
24448
    }
22764
 
24449
 
22765
    /**
-
 
22766
     * 
-
 
22767
     * @see CartStatus
-
 
22768
     */
-
 
22769
    public getCartsByStatus_args setStatus(CartStatus status) {
24450
    public getAffiliateByName_args setName(String name) {
22770
      this.status = status;
24451
      this.name = name;
22771
      return this;
24452
      return this;
22772
    }
24453
    }
22773
 
24454
 
22774
    public void unsetStatus() {
24455
    public void unsetName() {
22775
      this.status = null;
24456
      this.name = null;
22776
    }
24457
    }
22777
 
24458
 
22778
    /** Returns true if field status is set (has been asigned a value) and false otherwise */
24459
    /** Returns true if field name is set (has been asigned a value) and false otherwise */
22779
    public boolean isSetStatus() {
24460
    public boolean isSetName() {
22780
      return this.status != null;
24461
      return this.name != null;
22781
    }
24462
    }
22782
 
24463
 
22783
    public void setStatusIsSet(boolean value) {
24464
    public void setNameIsSet(boolean value) {
22784
      if (!value) {
24465
      if (!value) {
22785
        this.status = null;
24466
        this.name = null;
22786
      }
24467
      }
22787
    }
24468
    }
22788
 
24469
 
22789
    public void setFieldValue(_Fields field, Object value) {
24470
    public void setFieldValue(_Fields field, Object value) {
22790
      switch (field) {
24471
      switch (field) {
22791
      case STATUS:
24472
      case NAME:
22792
        if (value == null) {
24473
        if (value == null) {
22793
          unsetStatus();
24474
          unsetName();
22794
        } else {
24475
        } else {
22795
          setStatus((CartStatus)value);
24476
          setName((String)value);
22796
        }
24477
        }
22797
        break;
24478
        break;
22798
 
24479
 
22799
      }
24480
      }
22800
    }
24481
    }
Line 22803... Line 24484...
22803
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
24484
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
22804
    }
24485
    }
22805
 
24486
 
22806
    public Object getFieldValue(_Fields field) {
24487
    public Object getFieldValue(_Fields field) {
22807
      switch (field) {
24488
      switch (field) {
22808
      case STATUS:
24489
      case NAME:
22809
        return getStatus();
24490
        return getName();
22810
 
24491
 
22811
      }
24492
      }
22812
      throw new IllegalStateException();
24493
      throw new IllegalStateException();
22813
    }
24494
    }
22814
 
24495
 
Line 22817... Line 24498...
22817
    }
24498
    }
22818
 
24499
 
22819
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
24500
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
22820
    public boolean isSet(_Fields field) {
24501
    public boolean isSet(_Fields field) {
22821
      switch (field) {
24502
      switch (field) {
22822
      case STATUS:
24503
      case NAME:
22823
        return isSetStatus();
24504
        return isSetName();
22824
      }
24505
      }
22825
      throw new IllegalStateException();
24506
      throw new IllegalStateException();
22826
    }
24507
    }
22827
 
24508
 
22828
    public boolean isSet(int fieldID) {
24509
    public boolean isSet(int fieldID) {
Line 22831... Line 24512...
22831
 
24512
 
22832
    @Override
24513
    @Override
22833
    public boolean equals(Object that) {
24514
    public boolean equals(Object that) {
22834
      if (that == null)
24515
      if (that == null)
22835
        return false;
24516
        return false;
22836
      if (that instanceof getCartsByStatus_args)
24517
      if (that instanceof getAffiliateByName_args)
22837
        return this.equals((getCartsByStatus_args)that);
24518
        return this.equals((getAffiliateByName_args)that);
22838
      return false;
24519
      return false;
22839
    }
24520
    }
22840
 
24521
 
22841
    public boolean equals(getCartsByStatus_args that) {
24522
    public boolean equals(getAffiliateByName_args that) {
22842
      if (that == null)
24523
      if (that == null)
22843
        return false;
24524
        return false;
22844
 
24525
 
22845
      boolean this_present_status = true && this.isSetStatus();
24526
      boolean this_present_name = true && this.isSetName();
22846
      boolean that_present_status = true && that.isSetStatus();
24527
      boolean that_present_name = true && that.isSetName();
22847
      if (this_present_status || that_present_status) {
24528
      if (this_present_name || that_present_name) {
22848
        if (!(this_present_status && that_present_status))
24529
        if (!(this_present_name && that_present_name))
22849
          return false;
24530
          return false;
22850
        if (!this.status.equals(that.status))
24531
        if (!this.name.equals(that.name))
22851
          return false;
24532
          return false;
22852
      }
24533
      }
22853
 
24534
 
22854
      return true;
24535
      return true;
22855
    }
24536
    }
Line 22857... Line 24538...
22857
    @Override
24538
    @Override
22858
    public int hashCode() {
24539
    public int hashCode() {
22859
      return 0;
24540
      return 0;
22860
    }
24541
    }
22861
 
24542
 
22862
    public int compareTo(getCartsByStatus_args other) {
24543
    public int compareTo(getAffiliateByName_args other) {
22863
      if (!getClass().equals(other.getClass())) {
24544
      if (!getClass().equals(other.getClass())) {
22864
        return getClass().getName().compareTo(other.getClass().getName());
24545
        return getClass().getName().compareTo(other.getClass().getName());
22865
      }
24546
      }
22866
 
24547
 
22867
      int lastComparison = 0;
24548
      int lastComparison = 0;
22868
      getCartsByStatus_args typedOther = (getCartsByStatus_args)other;
24549
      getAffiliateByName_args typedOther = (getAffiliateByName_args)other;
22869
 
24550
 
22870
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(isSetStatus());
24551
      lastComparison = Boolean.valueOf(isSetName()).compareTo(isSetName());
22871
      if (lastComparison != 0) {
24552
      if (lastComparison != 0) {
22872
        return lastComparison;
24553
        return lastComparison;
22873
      }
24554
      }
22874
      lastComparison = TBaseHelper.compareTo(status, typedOther.status);
24555
      lastComparison = TBaseHelper.compareTo(name, typedOther.name);
22875
      if (lastComparison != 0) {
24556
      if (lastComparison != 0) {
22876
        return lastComparison;
24557
        return lastComparison;
22877
      }
24558
      }
22878
      return 0;
24559
      return 0;
22879
    }
24560
    }
Line 22890... Line 24571...
22890
        _Fields fieldId = _Fields.findByThriftId(field.id);
24571
        _Fields fieldId = _Fields.findByThriftId(field.id);
22891
        if (fieldId == null) {
24572
        if (fieldId == null) {
22892
          TProtocolUtil.skip(iprot, field.type);
24573
          TProtocolUtil.skip(iprot, field.type);
22893
        } else {
24574
        } else {
22894
          switch (fieldId) {
24575
          switch (fieldId) {
22895
            case STATUS:
24576
            case NAME:
22896
              if (field.type == TType.I32) {
24577
              if (field.type == TType.STRING) {
22897
                this.status = CartStatus.findByValue(iprot.readI32());
24578
                this.name = iprot.readString();
22898
              } else { 
24579
              } else { 
22899
                TProtocolUtil.skip(iprot, field.type);
24580
                TProtocolUtil.skip(iprot, field.type);
22900
              }
24581
              }
22901
              break;
24582
              break;
22902
          }
24583
          }
Line 22909... Line 24590...
22909
 
24590
 
22910
    public void write(TProtocol oprot) throws TException {
24591
    public void write(TProtocol oprot) throws TException {
22911
      validate();
24592
      validate();
22912
 
24593
 
22913
      oprot.writeStructBegin(STRUCT_DESC);
24594
      oprot.writeStructBegin(STRUCT_DESC);
22914
      if (this.status != null) {
24595
      if (this.name != null) {
22915
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
24596
        oprot.writeFieldBegin(NAME_FIELD_DESC);
22916
        oprot.writeI32(this.status.getValue());
24597
        oprot.writeString(this.name);
22917
        oprot.writeFieldEnd();
24598
        oprot.writeFieldEnd();
22918
      }
24599
      }
22919
      oprot.writeFieldStop();
24600
      oprot.writeFieldStop();
22920
      oprot.writeStructEnd();
24601
      oprot.writeStructEnd();
22921
    }
24602
    }
22922
 
24603
 
22923
    @Override
24604
    @Override
22924
    public String toString() {
24605
    public String toString() {
22925
      StringBuilder sb = new StringBuilder("getCartsByStatus_args(");
24606
      StringBuilder sb = new StringBuilder("getAffiliateByName_args(");
22926
      boolean first = true;
24607
      boolean first = true;
22927
 
24608
 
22928
      sb.append("status:");
24609
      sb.append("name:");
22929
      if (this.status == null) {
24610
      if (this.name == null) {
22930
        sb.append("null");
24611
        sb.append("null");
22931
      } else {
24612
      } else {
22932
        String status_name = status.name();
24613
        sb.append(this.name);
-
 
24614
      }
22933
        if (status_name != null) {
24615
      first = false;
22934
          sb.append(status_name);
24616
      sb.append(")");
22935
          sb.append(" (");
24617
      return sb.toString();
-
 
24618
    }
-
 
24619
 
-
 
24620
    public void validate() throws TException {
-
 
24621
      // check for required fields
-
 
24622
    }
-
 
24623
 
-
 
24624
  }
-
 
24625
 
-
 
24626
  public static class getAffiliateByName_result implements TBase<getAffiliateByName_result._Fields>, java.io.Serializable, Cloneable, Comparable<getAffiliateByName_result>   {
-
 
24627
    private static final TStruct STRUCT_DESC = new TStruct("getAffiliateByName_result");
-
 
24628
 
-
 
24629
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
-
 
24630
    private static final TField UTX_FIELD_DESC = new TField("utx", TType.STRUCT, (short)1);
-
 
24631
 
-
 
24632
    private Affiliate success;
-
 
24633
    private UserTrackerException utx;
-
 
24634
 
-
 
24635
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
24636
    public enum _Fields implements TFieldIdEnum {
-
 
24637
      SUCCESS((short)0, "success"),
-
 
24638
      UTX((short)1, "utx");
-
 
24639
 
-
 
24640
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
24641
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
24642
 
-
 
24643
      static {
-
 
24644
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
24645
          byId.put((int)field._thriftId, field);
-
 
24646
          byName.put(field.getFieldName(), field);
22936
        }
24647
        }
-
 
24648
      }
-
 
24649
 
-
 
24650
      /**
-
 
24651
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
24652
       */
-
 
24653
      public static _Fields findByThriftId(int fieldId) {
-
 
24654
        return byId.get(fieldId);
-
 
24655
      }
-
 
24656
 
-
 
24657
      /**
-
 
24658
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
24659
       * if it is not found.
-
 
24660
       */
-
 
24661
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
24662
        _Fields fields = findByThriftId(fieldId);
-
 
24663
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
24664
        return fields;
-
 
24665
      }
-
 
24666
 
-
 
24667
      /**
-
 
24668
       * Find the _Fields constant that matches name, or null if its not found.
-
 
24669
       */
-
 
24670
      public static _Fields findByName(String name) {
-
 
24671
        return byName.get(name);
-
 
24672
      }
-
 
24673
 
-
 
24674
      private final short _thriftId;
-
 
24675
      private final String _fieldName;
-
 
24676
 
-
 
24677
      _Fields(short thriftId, String fieldName) {
-
 
24678
        _thriftId = thriftId;
-
 
24679
        _fieldName = fieldName;
-
 
24680
      }
-
 
24681
 
-
 
24682
      public short getThriftFieldId() {
-
 
24683
        return _thriftId;
-
 
24684
      }
-
 
24685
 
-
 
24686
      public String getFieldName() {
-
 
24687
        return _fieldName;
-
 
24688
      }
-
 
24689
    }
-
 
24690
 
-
 
24691
    // isset id assignments
-
 
24692
 
-
 
24693
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
24694
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
24695
          new StructMetaData(TType.STRUCT, Affiliate.class)));
-
 
24696
      put(_Fields.UTX, new FieldMetaData("utx", TFieldRequirementType.DEFAULT, 
-
 
24697
          new FieldValueMetaData(TType.STRUCT)));
-
 
24698
    }});
-
 
24699
 
-
 
24700
    static {
-
 
24701
      FieldMetaData.addStructMetaDataMap(getAffiliateByName_result.class, metaDataMap);
-
 
24702
    }
-
 
24703
 
-
 
24704
    public getAffiliateByName_result() {
-
 
24705
    }
-
 
24706
 
-
 
24707
    public getAffiliateByName_result(
-
 
24708
      Affiliate success,
-
 
24709
      UserTrackerException utx)
-
 
24710
    {
-
 
24711
      this();
-
 
24712
      this.success = success;
-
 
24713
      this.utx = utx;
-
 
24714
    }
-
 
24715
 
-
 
24716
    /**
-
 
24717
     * Performs a deep copy on <i>other</i>.
-
 
24718
     */
-
 
24719
    public getAffiliateByName_result(getAffiliateByName_result other) {
-
 
24720
      if (other.isSetSuccess()) {
-
 
24721
        this.success = new Affiliate(other.success);
-
 
24722
      }
-
 
24723
      if (other.isSetUtx()) {
-
 
24724
        this.utx = new UserTrackerException(other.utx);
-
 
24725
      }
-
 
24726
    }
-
 
24727
 
-
 
24728
    public getAffiliateByName_result deepCopy() {
-
 
24729
      return new getAffiliateByName_result(this);
-
 
24730
    }
-
 
24731
 
-
 
24732
    @Deprecated
-
 
24733
    public getAffiliateByName_result clone() {
-
 
24734
      return new getAffiliateByName_result(this);
-
 
24735
    }
-
 
24736
 
-
 
24737
    public Affiliate getSuccess() {
22937
        sb.append(this.status);
24738
      return this.success;
-
 
24739
    }
-
 
24740
 
-
 
24741
    public getAffiliateByName_result setSuccess(Affiliate success) {
-
 
24742
      this.success = success;
-
 
24743
      return this;
-
 
24744
    }
-
 
24745
 
-
 
24746
    public void unsetSuccess() {
-
 
24747
      this.success = null;
-
 
24748
    }
-
 
24749
 
-
 
24750
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
24751
    public boolean isSetSuccess() {
-
 
24752
      return this.success != null;
-
 
24753
    }
-
 
24754
 
-
 
24755
    public void setSuccessIsSet(boolean value) {
-
 
24756
      if (!value) {
-
 
24757
        this.success = null;
-
 
24758
      }
-
 
24759
    }
-
 
24760
 
-
 
24761
    public UserTrackerException getUtx() {
-
 
24762
      return this.utx;
-
 
24763
    }
-
 
24764
 
-
 
24765
    public getAffiliateByName_result setUtx(UserTrackerException utx) {
-
 
24766
      this.utx = utx;
-
 
24767
      return this;
-
 
24768
    }
-
 
24769
 
-
 
24770
    public void unsetUtx() {
-
 
24771
      this.utx = null;
-
 
24772
    }
-
 
24773
 
-
 
24774
    /** Returns true if field utx is set (has been asigned a value) and false otherwise */
-
 
24775
    public boolean isSetUtx() {
-
 
24776
      return this.utx != null;
-
 
24777
    }
-
 
24778
 
-
 
24779
    public void setUtxIsSet(boolean value) {
-
 
24780
      if (!value) {
-
 
24781
        this.utx = null;
-
 
24782
      }
-
 
24783
    }
-
 
24784
 
-
 
24785
    public void setFieldValue(_Fields field, Object value) {
-
 
24786
      switch (field) {
-
 
24787
      case SUCCESS:
22938
        if (status_name != null) {
24788
        if (value == null) {
-
 
24789
          unsetSuccess();
-
 
24790
        } else {
-
 
24791
          setSuccess((Affiliate)value);
-
 
24792
        }
-
 
24793
        break;
-
 
24794
 
-
 
24795
      case UTX:
-
 
24796
        if (value == null) {
22939
          sb.append(")");
24797
          unsetUtx();
-
 
24798
        } else {
-
 
24799
          setUtx((UserTrackerException)value);
-
 
24800
        }
-
 
24801
        break;
-
 
24802
 
-
 
24803
      }
-
 
24804
    }
-
 
24805
 
-
 
24806
    public void setFieldValue(int fieldID, Object value) {
-
 
24807
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
24808
    }
-
 
24809
 
-
 
24810
    public Object getFieldValue(_Fields field) {
-
 
24811
      switch (field) {
-
 
24812
      case SUCCESS:
-
 
24813
        return getSuccess();
-
 
24814
 
-
 
24815
      case UTX:
-
 
24816
        return getUtx();
-
 
24817
 
-
 
24818
      }
-
 
24819
      throw new IllegalStateException();
-
 
24820
    }
-
 
24821
 
-
 
24822
    public Object getFieldValue(int fieldId) {
-
 
24823
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
24824
    }
-
 
24825
 
-
 
24826
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
24827
    public boolean isSet(_Fields field) {
-
 
24828
      switch (field) {
-
 
24829
      case SUCCESS:
-
 
24830
        return isSetSuccess();
-
 
24831
      case UTX:
-
 
24832
        return isSetUtx();
-
 
24833
      }
-
 
24834
      throw new IllegalStateException();
-
 
24835
    }
-
 
24836
 
-
 
24837
    public boolean isSet(int fieldID) {
-
 
24838
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
24839
    }
-
 
24840
 
-
 
24841
    @Override
-
 
24842
    public boolean equals(Object that) {
-
 
24843
      if (that == null)
-
 
24844
        return false;
-
 
24845
      if (that instanceof getAffiliateByName_result)
-
 
24846
        return this.equals((getAffiliateByName_result)that);
-
 
24847
      return false;
-
 
24848
    }
-
 
24849
 
-
 
24850
    public boolean equals(getAffiliateByName_result that) {
-
 
24851
      if (that == null)
-
 
24852
        return false;
-
 
24853
 
-
 
24854
      boolean this_present_success = true && this.isSetSuccess();
-
 
24855
      boolean that_present_success = true && that.isSetSuccess();
-
 
24856
      if (this_present_success || that_present_success) {
-
 
24857
        if (!(this_present_success && that_present_success))
-
 
24858
          return false;
-
 
24859
        if (!this.success.equals(that.success))
-
 
24860
          return false;
-
 
24861
      }
-
 
24862
 
-
 
24863
      boolean this_present_utx = true && this.isSetUtx();
-
 
24864
      boolean that_present_utx = true && that.isSetUtx();
-
 
24865
      if (this_present_utx || that_present_utx) {
-
 
24866
        if (!(this_present_utx && that_present_utx))
-
 
24867
          return false;
-
 
24868
        if (!this.utx.equals(that.utx))
-
 
24869
          return false;
-
 
24870
      }
-
 
24871
 
-
 
24872
      return true;
-
 
24873
    }
-
 
24874
 
-
 
24875
    @Override
-
 
24876
    public int hashCode() {
-
 
24877
      return 0;
-
 
24878
    }
-
 
24879
 
-
 
24880
    public int compareTo(getAffiliateByName_result other) {
-
 
24881
      if (!getClass().equals(other.getClass())) {
-
 
24882
        return getClass().getName().compareTo(other.getClass().getName());
-
 
24883
      }
-
 
24884
 
-
 
24885
      int lastComparison = 0;
-
 
24886
      getAffiliateByName_result typedOther = (getAffiliateByName_result)other;
-
 
24887
 
-
 
24888
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
24889
      if (lastComparison != 0) {
-
 
24890
        return lastComparison;
-
 
24891
      }
-
 
24892
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
24893
      if (lastComparison != 0) {
-
 
24894
        return lastComparison;
-
 
24895
      }
-
 
24896
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(isSetUtx());
-
 
24897
      if (lastComparison != 0) {
-
 
24898
        return lastComparison;
-
 
24899
      }
-
 
24900
      lastComparison = TBaseHelper.compareTo(utx, typedOther.utx);
-
 
24901
      if (lastComparison != 0) {
-
 
24902
        return lastComparison;
-
 
24903
      }
-
 
24904
      return 0;
-
 
24905
    }
-
 
24906
 
-
 
24907
    public void read(TProtocol iprot) throws TException {
-
 
24908
      TField field;
-
 
24909
      iprot.readStructBegin();
-
 
24910
      while (true)
-
 
24911
      {
-
 
24912
        field = iprot.readFieldBegin();
-
 
24913
        if (field.type == TType.STOP) { 
-
 
24914
          break;
-
 
24915
        }
-
 
24916
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
24917
        if (fieldId == null) {
-
 
24918
          TProtocolUtil.skip(iprot, field.type);
-
 
24919
        } else {
-
 
24920
          switch (fieldId) {
-
 
24921
            case SUCCESS:
-
 
24922
              if (field.type == TType.STRUCT) {
-
 
24923
                this.success = new Affiliate();
-
 
24924
                this.success.read(iprot);
-
 
24925
              } else { 
-
 
24926
                TProtocolUtil.skip(iprot, field.type);
-
 
24927
              }
-
 
24928
              break;
-
 
24929
            case UTX:
-
 
24930
              if (field.type == TType.STRUCT) {
-
 
24931
                this.utx = new UserTrackerException();
-
 
24932
                this.utx.read(iprot);
-
 
24933
              } else { 
-
 
24934
                TProtocolUtil.skip(iprot, field.type);
-
 
24935
              }
-
 
24936
              break;
-
 
24937
          }
-
 
24938
          iprot.readFieldEnd();
22940
        }
24939
        }
22941
      }
24940
      }
-
 
24941
      iprot.readStructEnd();
-
 
24942
      validate();
-
 
24943
    }
-
 
24944
 
-
 
24945
    public void write(TProtocol oprot) throws TException {
-
 
24946
      oprot.writeStructBegin(STRUCT_DESC);
-
 
24947
 
-
 
24948
      if (this.isSetSuccess()) {
-
 
24949
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
24950
        this.success.write(oprot);
-
 
24951
        oprot.writeFieldEnd();
-
 
24952
      } else if (this.isSetUtx()) {
-
 
24953
        oprot.writeFieldBegin(UTX_FIELD_DESC);
-
 
24954
        this.utx.write(oprot);
-
 
24955
        oprot.writeFieldEnd();
-
 
24956
      }
-
 
24957
      oprot.writeFieldStop();
-
 
24958
      oprot.writeStructEnd();
-
 
24959
    }
-
 
24960
 
-
 
24961
    @Override
-
 
24962
    public String toString() {
-
 
24963
      StringBuilder sb = new StringBuilder("getAffiliateByName_result(");
-
 
24964
      boolean first = true;
-
 
24965
 
-
 
24966
      sb.append("success:");
-
 
24967
      if (this.success == null) {
-
 
24968
        sb.append("null");
-
 
24969
      } else {
-
 
24970
        sb.append(this.success);
-
 
24971
      }
-
 
24972
      first = false;
-
 
24973
      if (!first) sb.append(", ");
-
 
24974
      sb.append("utx:");
-
 
24975
      if (this.utx == null) {
-
 
24976
        sb.append("null");
-
 
24977
      } else {
-
 
24978
        sb.append(this.utx);
-
 
24979
      }
22942
      first = false;
24980
      first = false;
22943
      sb.append(")");
24981
      sb.append(")");
22944
      return sb.toString();
24982
      return sb.toString();
22945
    }
24983
    }
22946
 
24984
 
Line 22948... Line 24986...
22948
      // check for required fields
24986
      // check for required fields
22949
    }
24987
    }
22950
 
24988
 
22951
  }
24989
  }
22952
 
24990
 
-
 
24991
  public static class getAffiliatesByMasterAffiliate_args implements TBase<getAffiliatesByMasterAffiliate_args._Fields>, java.io.Serializable, Cloneable, Comparable<getAffiliatesByMasterAffiliate_args>   {
-
 
24992
    private static final TStruct STRUCT_DESC = new TStruct("getAffiliatesByMasterAffiliate_args");
-
 
24993
 
-
 
24994
    private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
-
 
24995
 
-
 
24996
    private long id;
-
 
24997
 
-
 
24998
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
24999
    public enum _Fields implements TFieldIdEnum {
-
 
25000
      ID((short)1, "id");
-
 
25001
 
-
 
25002
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
25003
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
25004
 
-
 
25005
      static {
-
 
25006
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
25007
          byId.put((int)field._thriftId, field);
-
 
25008
          byName.put(field.getFieldName(), field);
-
 
25009
        }
-
 
25010
      }
-
 
25011
 
-
 
25012
      /**
-
 
25013
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
25014
       */
-
 
25015
      public static _Fields findByThriftId(int fieldId) {
-
 
25016
        return byId.get(fieldId);
-
 
25017
      }
-
 
25018
 
-
 
25019
      /**
-
 
25020
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
25021
       * if it is not found.
-
 
25022
       */
-
 
25023
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
25024
        _Fields fields = findByThriftId(fieldId);
-
 
25025
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
25026
        return fields;
-
 
25027
      }
-
 
25028
 
-
 
25029
      /**
-
 
25030
       * Find the _Fields constant that matches name, or null if its not found.
-
 
25031
       */
-
 
25032
      public static _Fields findByName(String name) {
-
 
25033
        return byName.get(name);
-
 
25034
      }
-
 
25035
 
-
 
25036
      private final short _thriftId;
-
 
25037
      private final String _fieldName;
-
 
25038
 
-
 
25039
      _Fields(short thriftId, String fieldName) {
-
 
25040
        _thriftId = thriftId;
-
 
25041
        _fieldName = fieldName;
-
 
25042
      }
-
 
25043
 
-
 
25044
      public short getThriftFieldId() {
-
 
25045
        return _thriftId;
-
 
25046
      }
-
 
25047
 
-
 
25048
      public String getFieldName() {
-
 
25049
        return _fieldName;
-
 
25050
      }
-
 
25051
    }
-
 
25052
 
-
 
25053
    // isset id assignments
-
 
25054
    private static final int __ID_ISSET_ID = 0;
-
 
25055
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
25056
 
-
 
25057
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
25058
      put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
-
 
25059
          new FieldValueMetaData(TType.I64)));
-
 
25060
    }});
-
 
25061
 
-
 
25062
    static {
-
 
25063
      FieldMetaData.addStructMetaDataMap(getAffiliatesByMasterAffiliate_args.class, metaDataMap);
-
 
25064
    }
-
 
25065
 
-
 
25066
    public getAffiliatesByMasterAffiliate_args() {
-
 
25067
    }
-
 
25068
 
-
 
25069
    public getAffiliatesByMasterAffiliate_args(
-
 
25070
      long id)
-
 
25071
    {
-
 
25072
      this();
-
 
25073
      this.id = id;
-
 
25074
      setIdIsSet(true);
-
 
25075
    }
-
 
25076
 
-
 
25077
    /**
-
 
25078
     * Performs a deep copy on <i>other</i>.
-
 
25079
     */
-
 
25080
    public getAffiliatesByMasterAffiliate_args(getAffiliatesByMasterAffiliate_args other) {
-
 
25081
      __isset_bit_vector.clear();
-
 
25082
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
25083
      this.id = other.id;
-
 
25084
    }
-
 
25085
 
-
 
25086
    public getAffiliatesByMasterAffiliate_args deepCopy() {
-
 
25087
      return new getAffiliatesByMasterAffiliate_args(this);
-
 
25088
    }
-
 
25089
 
-
 
25090
    @Deprecated
-
 
25091
    public getAffiliatesByMasterAffiliate_args clone() {
-
 
25092
      return new getAffiliatesByMasterAffiliate_args(this);
-
 
25093
    }
-
 
25094
 
-
 
25095
    public long getId() {
-
 
25096
      return this.id;
-
 
25097
    }
-
 
25098
 
-
 
25099
    public getAffiliatesByMasterAffiliate_args setId(long id) {
-
 
25100
      this.id = id;
-
 
25101
      setIdIsSet(true);
-
 
25102
      return this;
-
 
25103
    }
-
 
25104
 
-
 
25105
    public void unsetId() {
-
 
25106
      __isset_bit_vector.clear(__ID_ISSET_ID);
-
 
25107
    }
-
 
25108
 
-
 
25109
    /** Returns true if field id is set (has been asigned a value) and false otherwise */
-
 
25110
    public boolean isSetId() {
-
 
25111
      return __isset_bit_vector.get(__ID_ISSET_ID);
-
 
25112
    }
-
 
25113
 
-
 
25114
    public void setIdIsSet(boolean value) {
-
 
25115
      __isset_bit_vector.set(__ID_ISSET_ID, value);
-
 
25116
    }
-
 
25117
 
-
 
25118
    public void setFieldValue(_Fields field, Object value) {
-
 
25119
      switch (field) {
-
 
25120
      case ID:
-
 
25121
        if (value == null) {
-
 
25122
          unsetId();
-
 
25123
        } else {
-
 
25124
          setId((Long)value);
-
 
25125
        }
-
 
25126
        break;
-
 
25127
 
-
 
25128
      }
-
 
25129
    }
-
 
25130
 
-
 
25131
    public void setFieldValue(int fieldID, Object value) {
-
 
25132
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
25133
    }
-
 
25134
 
-
 
25135
    public Object getFieldValue(_Fields field) {
-
 
25136
      switch (field) {
-
 
25137
      case ID:
-
 
25138
        return new Long(getId());
-
 
25139
 
-
 
25140
      }
-
 
25141
      throw new IllegalStateException();
-
 
25142
    }
-
 
25143
 
-
 
25144
    public Object getFieldValue(int fieldId) {
-
 
25145
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
25146
    }
-
 
25147
 
-
 
25148
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
25149
    public boolean isSet(_Fields field) {
-
 
25150
      switch (field) {
-
 
25151
      case ID:
-
 
25152
        return isSetId();
-
 
25153
      }
-
 
25154
      throw new IllegalStateException();
-
 
25155
    }
-
 
25156
 
-
 
25157
    public boolean isSet(int fieldID) {
-
 
25158
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
25159
    }
-
 
25160
 
-
 
25161
    @Override
-
 
25162
    public boolean equals(Object that) {
-
 
25163
      if (that == null)
-
 
25164
        return false;
-
 
25165
      if (that instanceof getAffiliatesByMasterAffiliate_args)
-
 
25166
        return this.equals((getAffiliatesByMasterAffiliate_args)that);
-
 
25167
      return false;
-
 
25168
    }
-
 
25169
 
-
 
25170
    public boolean equals(getAffiliatesByMasterAffiliate_args that) {
-
 
25171
      if (that == null)
-
 
25172
        return false;
-
 
25173
 
-
 
25174
      boolean this_present_id = true;
-
 
25175
      boolean that_present_id = true;
-
 
25176
      if (this_present_id || that_present_id) {
-
 
25177
        if (!(this_present_id && that_present_id))
-
 
25178
          return false;
-
 
25179
        if (this.id != that.id)
-
 
25180
          return false;
-
 
25181
      }
-
 
25182
 
-
 
25183
      return true;
-
 
25184
    }
-
 
25185
 
-
 
25186
    @Override
-
 
25187
    public int hashCode() {
-
 
25188
      return 0;
-
 
25189
    }
-
 
25190
 
-
 
25191
    public int compareTo(getAffiliatesByMasterAffiliate_args other) {
-
 
25192
      if (!getClass().equals(other.getClass())) {
-
 
25193
        return getClass().getName().compareTo(other.getClass().getName());
-
 
25194
      }
-
 
25195
 
-
 
25196
      int lastComparison = 0;
-
 
25197
      getAffiliatesByMasterAffiliate_args typedOther = (getAffiliatesByMasterAffiliate_args)other;
-
 
25198
 
-
 
25199
      lastComparison = Boolean.valueOf(isSetId()).compareTo(isSetId());
-
 
25200
      if (lastComparison != 0) {
-
 
25201
        return lastComparison;
-
 
25202
      }
-
 
25203
      lastComparison = TBaseHelper.compareTo(id, typedOther.id);
-
 
25204
      if (lastComparison != 0) {
-
 
25205
        return lastComparison;
-
 
25206
      }
-
 
25207
      return 0;
-
 
25208
    }
-
 
25209
 
-
 
25210
    public void read(TProtocol iprot) throws TException {
-
 
25211
      TField field;
-
 
25212
      iprot.readStructBegin();
-
 
25213
      while (true)
-
 
25214
      {
-
 
25215
        field = iprot.readFieldBegin();
-
 
25216
        if (field.type == TType.STOP) { 
-
 
25217
          break;
-
 
25218
        }
-
 
25219
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
25220
        if (fieldId == null) {
-
 
25221
          TProtocolUtil.skip(iprot, field.type);
-
 
25222
        } else {
-
 
25223
          switch (fieldId) {
-
 
25224
            case ID:
-
 
25225
              if (field.type == TType.I64) {
-
 
25226
                this.id = iprot.readI64();
-
 
25227
                setIdIsSet(true);
-
 
25228
              } else { 
-
 
25229
                TProtocolUtil.skip(iprot, field.type);
-
 
25230
              }
-
 
25231
              break;
-
 
25232
          }
-
 
25233
          iprot.readFieldEnd();
-
 
25234
        }
-
 
25235
      }
-
 
25236
      iprot.readStructEnd();
-
 
25237
      validate();
-
 
25238
    }
-
 
25239
 
-
 
25240
    public void write(TProtocol oprot) throws TException {
-
 
25241
      validate();
-
 
25242
 
-
 
25243
      oprot.writeStructBegin(STRUCT_DESC);
-
 
25244
      oprot.writeFieldBegin(ID_FIELD_DESC);
-
 
25245
      oprot.writeI64(this.id);
-
 
25246
      oprot.writeFieldEnd();
-
 
25247
      oprot.writeFieldStop();
-
 
25248
      oprot.writeStructEnd();
-
 
25249
    }
-
 
25250
 
-
 
25251
    @Override
-
 
25252
    public String toString() {
-
 
25253
      StringBuilder sb = new StringBuilder("getAffiliatesByMasterAffiliate_args(");
-
 
25254
      boolean first = true;
-
 
25255
 
-
 
25256
      sb.append("id:");
-
 
25257
      sb.append(this.id);
-
 
25258
      first = false;
-
 
25259
      sb.append(")");
-
 
25260
      return sb.toString();
-
 
25261
    }
-
 
25262
 
-
 
25263
    public void validate() throws TException {
-
 
25264
      // check for required fields
-
 
25265
    }
-
 
25266
 
-
 
25267
  }
-
 
25268
 
22953
  public static class getCartsByStatus_result implements TBase<getCartsByStatus_result._Fields>, java.io.Serializable, Cloneable, Comparable<getCartsByStatus_result>   {
25269
  public static class getAffiliatesByMasterAffiliate_result implements TBase<getAffiliatesByMasterAffiliate_result._Fields>, java.io.Serializable, Cloneable, Comparable<getAffiliatesByMasterAffiliate_result>   {
22954
    private static final TStruct STRUCT_DESC = new TStruct("getCartsByStatus_result");
25270
    private static final TStruct STRUCT_DESC = new TStruct("getAffiliatesByMasterAffiliate_result");
22955
 
25271
 
22956
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
25272
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
22957
    private static final TField SCX_FIELD_DESC = new TField("scx", TType.STRUCT, (short)1);
25273
    private static final TField UTX_FIELD_DESC = new TField("utx", TType.STRUCT, (short)1);
22958
 
25274
 
22959
    private List<Cart> success;
25275
    private List<Affiliate> success;
22960
    private ShoppingCartException scx;
25276
    private UserTrackerException utx;
22961
 
25277
 
22962
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25278
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22963
    public enum _Fields implements TFieldIdEnum {
25279
    public enum _Fields implements TFieldIdEnum {
22964
      SUCCESS((short)0, "success"),
25280
      SUCCESS((short)0, "success"),
22965
      SCX((short)1, "scx");
25281
      UTX((short)1, "utx");
22966
 
25282
 
22967
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
25283
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
22968
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25284
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22969
 
25285
 
22970
      static {
25286
      static {
Line 23018... Line 25334...
23018
    // isset id assignments
25334
    // isset id assignments
23019
 
25335
 
23020
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
25336
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
23021
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
25337
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
23022
          new ListMetaData(TType.LIST, 
25338
          new ListMetaData(TType.LIST, 
23023
              new StructMetaData(TType.STRUCT, Cart.class))));
25339
              new StructMetaData(TType.STRUCT, Affiliate.class))));
23024
      put(_Fields.SCX, new FieldMetaData("scx", TFieldRequirementType.DEFAULT, 
25340
      put(_Fields.UTX, new FieldMetaData("utx", TFieldRequirementType.DEFAULT, 
23025
          new FieldValueMetaData(TType.STRUCT)));
25341
          new FieldValueMetaData(TType.STRUCT)));
23026
    }});
25342
    }});
23027
 
25343
 
23028
    static {
25344
    static {
23029
      FieldMetaData.addStructMetaDataMap(getCartsByStatus_result.class, metaDataMap);
25345
      FieldMetaData.addStructMetaDataMap(getAffiliatesByMasterAffiliate_result.class, metaDataMap);
23030
    }
25346
    }
23031
 
25347
 
23032
    public getCartsByStatus_result() {
25348
    public getAffiliatesByMasterAffiliate_result() {
23033
    }
25349
    }
23034
 
25350
 
23035
    public getCartsByStatus_result(
25351
    public getAffiliatesByMasterAffiliate_result(
23036
      List<Cart> success,
25352
      List<Affiliate> success,
23037
      ShoppingCartException scx)
25353
      UserTrackerException utx)
23038
    {
25354
    {
23039
      this();
25355
      this();
23040
      this.success = success;
25356
      this.success = success;
23041
      this.scx = scx;
25357
      this.utx = utx;
23042
    }
25358
    }
23043
 
25359
 
23044
    /**
25360
    /**
23045
     * Performs a deep copy on <i>other</i>.
25361
     * Performs a deep copy on <i>other</i>.
23046
     */
25362
     */
23047
    public getCartsByStatus_result(getCartsByStatus_result other) {
25363
    public getAffiliatesByMasterAffiliate_result(getAffiliatesByMasterAffiliate_result other) {
23048
      if (other.isSetSuccess()) {
25364
      if (other.isSetSuccess()) {
23049
        List<Cart> __this__success = new ArrayList<Cart>();
25365
        List<Affiliate> __this__success = new ArrayList<Affiliate>();
23050
        for (Cart other_element : other.success) {
25366
        for (Affiliate other_element : other.success) {
23051
          __this__success.add(new Cart(other_element));
25367
          __this__success.add(new Affiliate(other_element));
23052
        }
25368
        }
23053
        this.success = __this__success;
25369
        this.success = __this__success;
23054
      }
25370
      }
23055
      if (other.isSetScx()) {
25371
      if (other.isSetUtx()) {
23056
        this.scx = new ShoppingCartException(other.scx);
25372
        this.utx = new UserTrackerException(other.utx);
23057
      }
25373
      }
23058
    }
25374
    }
23059
 
25375
 
23060
    public getCartsByStatus_result deepCopy() {
25376
    public getAffiliatesByMasterAffiliate_result deepCopy() {
23061
      return new getCartsByStatus_result(this);
25377
      return new getAffiliatesByMasterAffiliate_result(this);
23062
    }
25378
    }
23063
 
25379
 
23064
    @Deprecated
25380
    @Deprecated
23065
    public getCartsByStatus_result clone() {
25381
    public getAffiliatesByMasterAffiliate_result clone() {
23066
      return new getCartsByStatus_result(this);
25382
      return new getAffiliatesByMasterAffiliate_result(this);
23067
    }
25383
    }
23068
 
25384
 
23069
    public int getSuccessSize() {
25385
    public int getSuccessSize() {
23070
      return (this.success == null) ? 0 : this.success.size();
25386
      return (this.success == null) ? 0 : this.success.size();
23071
    }
25387
    }
23072
 
25388
 
23073
    public java.util.Iterator<Cart> getSuccessIterator() {
25389
    public java.util.Iterator<Affiliate> getSuccessIterator() {
23074
      return (this.success == null) ? null : this.success.iterator();
25390
      return (this.success == null) ? null : this.success.iterator();
23075
    }
25391
    }
23076
 
25392
 
23077
    public void addToSuccess(Cart elem) {
25393
    public void addToSuccess(Affiliate elem) {
23078
      if (this.success == null) {
25394
      if (this.success == null) {
23079
        this.success = new ArrayList<Cart>();
25395
        this.success = new ArrayList<Affiliate>();
23080
      }
25396
      }
23081
      this.success.add(elem);
25397
      this.success.add(elem);
23082
    }
25398
    }
23083
 
25399
 
23084
    public List<Cart> getSuccess() {
25400
    public List<Affiliate> getSuccess() {
23085
      return this.success;
25401
      return this.success;
23086
    }
25402
    }
23087
 
25403
 
23088
    public getCartsByStatus_result setSuccess(List<Cart> success) {
25404
    public getAffiliatesByMasterAffiliate_result setSuccess(List<Affiliate> success) {
23089
      this.success = success;
25405
      this.success = success;
23090
      return this;
25406
      return this;
23091
    }
25407
    }
23092
 
25408
 
23093
    public void unsetSuccess() {
25409
    public void unsetSuccess() {
Line 23103... Line 25419...
23103
      if (!value) {
25419
      if (!value) {
23104
        this.success = null;
25420
        this.success = null;
23105
      }
25421
      }
23106
    }
25422
    }
23107
 
25423
 
23108
    public ShoppingCartException getScx() {
25424
    public UserTrackerException getUtx() {
23109
      return this.scx;
25425
      return this.utx;
23110
    }
25426
    }
23111
 
25427
 
23112
    public getCartsByStatus_result setScx(ShoppingCartException scx) {
25428
    public getAffiliatesByMasterAffiliate_result setUtx(UserTrackerException utx) {
23113
      this.scx = scx;
25429
      this.utx = utx;
23114
      return this;
25430
      return this;
23115
    }
25431
    }
23116
 
25432
 
23117
    public void unsetScx() {
25433
    public void unsetUtx() {
23118
      this.scx = null;
25434
      this.utx = null;
23119
    }
25435
    }
23120
 
25436
 
23121
    /** Returns true if field scx is set (has been asigned a value) and false otherwise */
25437
    /** Returns true if field utx is set (has been asigned a value) and false otherwise */
23122
    public boolean isSetScx() {
25438
    public boolean isSetUtx() {
23123
      return this.scx != null;
25439
      return this.utx != null;
23124
    }
25440
    }
23125
 
25441
 
23126
    public void setScxIsSet(boolean value) {
25442
    public void setUtxIsSet(boolean value) {
23127
      if (!value) {
25443
      if (!value) {
23128
        this.scx = null;
25444
        this.utx = null;
23129
      }
25445
      }
23130
    }
25446
    }
23131
 
25447
 
23132
    public void setFieldValue(_Fields field, Object value) {
25448
    public void setFieldValue(_Fields field, Object value) {
23133
      switch (field) {
25449
      switch (field) {
23134
      case SUCCESS:
25450
      case SUCCESS:
23135
        if (value == null) {
25451
        if (value == null) {
23136
          unsetSuccess();
25452
          unsetSuccess();
23137
        } else {
25453
        } else {
23138
          setSuccess((List<Cart>)value);
25454
          setSuccess((List<Affiliate>)value);
23139
        }
25455
        }
23140
        break;
25456
        break;
23141
 
25457
 
23142
      case SCX:
25458
      case UTX:
23143
        if (value == null) {
25459
        if (value == null) {
23144
          unsetScx();
25460
          unsetUtx();
23145
        } else {
25461
        } else {
23146
          setScx((ShoppingCartException)value);
25462
          setUtx((UserTrackerException)value);
23147
        }
25463
        }
23148
        break;
25464
        break;
23149
 
25465
 
23150
      }
25466
      }
23151
    }
25467
    }
Line 23157... Line 25473...
23157
    public Object getFieldValue(_Fields field) {
25473
    public Object getFieldValue(_Fields field) {
23158
      switch (field) {
25474
      switch (field) {
23159
      case SUCCESS:
25475
      case SUCCESS:
23160
        return getSuccess();
25476
        return getSuccess();
23161
 
25477
 
23162
      case SCX:
25478
      case UTX:
23163
        return getScx();
25479
        return getUtx();
23164
 
25480
 
23165
      }
25481
      }
23166
      throw new IllegalStateException();
25482
      throw new IllegalStateException();
23167
    }
25483
    }
23168
 
25484
 
Line 23173... Line 25489...
23173
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
25489
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
23174
    public boolean isSet(_Fields field) {
25490
    public boolean isSet(_Fields field) {
23175
      switch (field) {
25491
      switch (field) {
23176
      case SUCCESS:
25492
      case SUCCESS:
23177
        return isSetSuccess();
25493
        return isSetSuccess();
23178
      case SCX:
25494
      case UTX:
23179
        return isSetScx();
25495
        return isSetUtx();
23180
      }
25496
      }
23181
      throw new IllegalStateException();
25497
      throw new IllegalStateException();
23182
    }
25498
    }
23183
 
25499
 
23184
    public boolean isSet(int fieldID) {
25500
    public boolean isSet(int fieldID) {
Line 23187... Line 25503...
23187
 
25503
 
23188
    @Override
25504
    @Override
23189
    public boolean equals(Object that) {
25505
    public boolean equals(Object that) {
23190
      if (that == null)
25506
      if (that == null)
23191
        return false;
25507
        return false;
23192
      if (that instanceof getCartsByStatus_result)
25508
      if (that instanceof getAffiliatesByMasterAffiliate_result)
23193
        return this.equals((getCartsByStatus_result)that);
25509
        return this.equals((getAffiliatesByMasterAffiliate_result)that);
23194
      return false;
25510
      return false;
23195
    }
25511
    }
23196
 
25512
 
23197
    public boolean equals(getCartsByStatus_result that) {
25513
    public boolean equals(getAffiliatesByMasterAffiliate_result that) {
23198
      if (that == null)
25514
      if (that == null)
23199
        return false;
25515
        return false;
23200
 
25516
 
23201
      boolean this_present_success = true && this.isSetSuccess();
25517
      boolean this_present_success = true && this.isSetSuccess();
23202
      boolean that_present_success = true && that.isSetSuccess();
25518
      boolean that_present_success = true && that.isSetSuccess();
Line 23205... Line 25521...
23205
          return false;
25521
          return false;
23206
        if (!this.success.equals(that.success))
25522
        if (!this.success.equals(that.success))
23207
          return false;
25523
          return false;
23208
      }
25524
      }
23209
 
25525
 
23210
      boolean this_present_scx = true && this.isSetScx();
25526
      boolean this_present_utx = true && this.isSetUtx();
23211
      boolean that_present_scx = true && that.isSetScx();
25527
      boolean that_present_utx = true && that.isSetUtx();
23212
      if (this_present_scx || that_present_scx) {
25528
      if (this_present_utx || that_present_utx) {
23213
        if (!(this_present_scx && that_present_scx))
25529
        if (!(this_present_utx && that_present_utx))
23214
          return false;
25530
          return false;
23215
        if (!this.scx.equals(that.scx))
25531
        if (!this.utx.equals(that.utx))
23216
          return false;
25532
          return false;
23217
      }
25533
      }
23218
 
25534
 
23219
      return true;
25535
      return true;
23220
    }
25536
    }
Line 23222... Line 25538...
23222
    @Override
25538
    @Override
23223
    public int hashCode() {
25539
    public int hashCode() {
23224
      return 0;
25540
      return 0;
23225
    }
25541
    }
23226
 
25542
 
23227
    public int compareTo(getCartsByStatus_result other) {
25543
    public int compareTo(getAffiliatesByMasterAffiliate_result other) {
23228
      if (!getClass().equals(other.getClass())) {
25544
      if (!getClass().equals(other.getClass())) {
23229
        return getClass().getName().compareTo(other.getClass().getName());
25545
        return getClass().getName().compareTo(other.getClass().getName());
23230
      }
25546
      }
23231
 
25547
 
23232
      int lastComparison = 0;
25548
      int lastComparison = 0;
23233
      getCartsByStatus_result typedOther = (getCartsByStatus_result)other;
25549
      getAffiliatesByMasterAffiliate_result typedOther = (getAffiliatesByMasterAffiliate_result)other;
23234
 
25550
 
23235
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
25551
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
23236
      if (lastComparison != 0) {
25552
      if (lastComparison != 0) {
23237
        return lastComparison;
25553
        return lastComparison;
23238
      }
25554
      }
23239
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
25555
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
23240
      if (lastComparison != 0) {
25556
      if (lastComparison != 0) {
23241
        return lastComparison;
25557
        return lastComparison;
23242
      }
25558
      }
23243
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(isSetScx());
25559
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(isSetUtx());
23244
      if (lastComparison != 0) {
25560
      if (lastComparison != 0) {
23245
        return lastComparison;
25561
        return lastComparison;
23246
      }
25562
      }
23247
      lastComparison = TBaseHelper.compareTo(scx, typedOther.scx);
25563
      lastComparison = TBaseHelper.compareTo(utx, typedOther.utx);
23248
      if (lastComparison != 0) {
25564
      if (lastComparison != 0) {
23249
        return lastComparison;
25565
        return lastComparison;
23250
      }
25566
      }
23251
      return 0;
25567
      return 0;
23252
    }
25568
    }
Line 23266... Line 25582...
23266
        } else {
25582
        } else {
23267
          switch (fieldId) {
25583
          switch (fieldId) {
23268
            case SUCCESS:
25584
            case SUCCESS:
23269
              if (field.type == TType.LIST) {
25585
              if (field.type == TType.LIST) {
23270
                {
25586
                {
23271
                  TList _list32 = iprot.readListBegin();
25587
                  TList _list28 = iprot.readListBegin();
23272
                  this.success = new ArrayList<Cart>(_list32.size);
25588
                  this.success = new ArrayList<Affiliate>(_list28.size);
23273
                  for (int _i33 = 0; _i33 < _list32.size; ++_i33)
25589
                  for (int _i29 = 0; _i29 < _list28.size; ++_i29)
23274
                  {
25590
                  {
23275
                    Cart _elem34;
25591
                    Affiliate _elem30;
23276
                    _elem34 = new Cart();
25592
                    _elem30 = new Affiliate();
23277
                    _elem34.read(iprot);
25593
                    _elem30.read(iprot);
23278
                    this.success.add(_elem34);
25594
                    this.success.add(_elem30);
23279
                  }
25595
                  }
23280
                  iprot.readListEnd();
25596
                  iprot.readListEnd();
23281
                }
25597
                }
23282
              } else { 
25598
              } else { 
23283
                TProtocolUtil.skip(iprot, field.type);
25599
                TProtocolUtil.skip(iprot, field.type);
23284
              }
25600
              }
23285
              break;
25601
              break;
23286
            case SCX:
25602
            case UTX:
23287
              if (field.type == TType.STRUCT) {
25603
              if (field.type == TType.STRUCT) {
23288
                this.scx = new ShoppingCartException();
25604
                this.utx = new UserTrackerException();
23289
                this.scx.read(iprot);
25605
                this.utx.read(iprot);
23290
              } else { 
25606
              } else { 
23291
                TProtocolUtil.skip(iprot, field.type);
25607
                TProtocolUtil.skip(iprot, field.type);
23292
              }
25608
              }
23293
              break;
25609
              break;
23294
          }
25610
          }
Line 23304... Line 25620...
23304
 
25620
 
23305
      if (this.isSetSuccess()) {
25621
      if (this.isSetSuccess()) {
23306
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
25622
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23307
        {
25623
        {
23308
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
25624
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
23309
          for (Cart _iter35 : this.success)
25625
          for (Affiliate _iter31 : this.success)
23310
          {
25626
          {
23311
            _iter35.write(oprot);
25627
            _iter31.write(oprot);
23312
          }
25628
          }
23313
          oprot.writeListEnd();
25629
          oprot.writeListEnd();
23314
        }
25630
        }
23315
        oprot.writeFieldEnd();
25631
        oprot.writeFieldEnd();
23316
      } else if (this.isSetScx()) {
25632
      } else if (this.isSetUtx()) {
23317
        oprot.writeFieldBegin(SCX_FIELD_DESC);
25633
        oprot.writeFieldBegin(UTX_FIELD_DESC);
23318
        this.scx.write(oprot);
25634
        this.utx.write(oprot);
23319
        oprot.writeFieldEnd();
25635
        oprot.writeFieldEnd();
23320
      }
25636
      }
23321
      oprot.writeFieldStop();
25637
      oprot.writeFieldStop();
23322
      oprot.writeStructEnd();
25638
      oprot.writeStructEnd();
23323
    }
25639
    }
23324
 
25640
 
23325
    @Override
25641
    @Override
23326
    public String toString() {
25642
    public String toString() {
23327
      StringBuilder sb = new StringBuilder("getCartsByStatus_result(");
25643
      StringBuilder sb = new StringBuilder("getAffiliatesByMasterAffiliate_result(");
23328
      boolean first = true;
25644
      boolean first = true;
23329
 
25645
 
23330
      sb.append("success:");
25646
      sb.append("success:");
23331
      if (this.success == null) {
25647
      if (this.success == null) {
23332
        sb.append("null");
25648
        sb.append("null");
23333
      } else {
25649
      } else {
23334
        sb.append(this.success);
25650
        sb.append(this.success);
23335
      }
25651
      }
23336
      first = false;
25652
      first = false;
23337
      if (!first) sb.append(", ");
25653
      if (!first) sb.append(", ");
23338
      sb.append("scx:");
25654
      sb.append("utx:");
23339
      if (this.scx == null) {
25655
      if (this.utx == null) {
23340
        sb.append("null");
25656
        sb.append("null");
23341
      } else {
25657
      } else {
23342
        sb.append(this.scx);
25658
        sb.append(this.utx);
23343
      }
25659
      }
23344
      first = false;
25660
      first = false;
23345
      sb.append(")");
25661
      sb.append(")");
23346
      return sb.toString();
25662
      return sb.toString();
23347
    }
25663
    }
Line 23350... Line 25666...
23350
      // check for required fields
25666
      // check for required fields
23351
    }
25667
    }
23352
 
25668
 
23353
  }
25669
  }
23354
 
25670
 
23355
  public static class getCartsByTime_args implements TBase<getCartsByTime_args._Fields>, java.io.Serializable, Cloneable, Comparable<getCartsByTime_args>   {
25671
  public static class createTracker_args implements TBase<createTracker_args._Fields>, java.io.Serializable, Cloneable, Comparable<createTracker_args>   {
23356
    private static final TStruct STRUCT_DESC = new TStruct("getCartsByTime_args");
25672
    private static final TStruct STRUCT_DESC = new TStruct("createTracker_args");
23357
 
25673
 
23358
    private static final TField FROM_TIME_FIELD_DESC = new TField("from_time", TType.I64, (short)1);
25674
    private static final TField AFFILIATE_ID_FIELD_DESC = new TField("affiliateId", TType.I64, (short)1);
23359
    private static final TField TO_TIME_FIELD_DESC = new TField("to_time", TType.I64, (short)2);
-
 
23360
    private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)3);
-
 
23361
 
25675
 
23362
    private long from_time;
25676
    private long affiliateId;
23363
    private long to_time;
-
 
23364
    private CartStatus status;
-
 
23365
 
25677
 
23366
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25678
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23367
    public enum _Fields implements TFieldIdEnum {
25679
    public enum _Fields implements TFieldIdEnum {
23368
      FROM_TIME((short)1, "from_time"),
25680
      AFFILIATE_ID((short)1, "affiliateId");
23369
      TO_TIME((short)2, "to_time"),
-
 
23370
      /**
-
 
23371
       * 
-
 
23372
       * @see CartStatus
-
 
23373
       */
-
 
23374
      STATUS((short)3, "status");
-
 
23375
 
25681
 
23376
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
25682
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
23377
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25683
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23378
 
25684
 
23379
      static {
25685
      static {
Line 23423... Line 25729...
23423
        return _fieldName;
25729
        return _fieldName;
23424
      }
25730
      }
23425
    }
25731
    }
23426
 
25732
 
23427
    // isset id assignments
25733
    // isset id assignments
23428
    private static final int __FROM_TIME_ISSET_ID = 0;
25734
    private static final int __AFFILIATEID_ISSET_ID = 0;
23429
    private static final int __TO_TIME_ISSET_ID = 1;
-
 
23430
    private BitSet __isset_bit_vector = new BitSet(2);
25735
    private BitSet __isset_bit_vector = new BitSet(1);
23431
 
25736
 
23432
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
25737
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
23433
      put(_Fields.FROM_TIME, new FieldMetaData("from_time", TFieldRequirementType.DEFAULT, 
25738
      put(_Fields.AFFILIATE_ID, new FieldMetaData("affiliateId", TFieldRequirementType.DEFAULT, 
23434
          new FieldValueMetaData(TType.I64)));
-
 
23435
      put(_Fields.TO_TIME, new FieldMetaData("to_time", TFieldRequirementType.DEFAULT, 
-
 
23436
          new FieldValueMetaData(TType.I64)));
25739
          new FieldValueMetaData(TType.I64)));
23437
      put(_Fields.STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT, 
-
 
23438
          new EnumMetaData(TType.ENUM, CartStatus.class)));
-
 
23439
    }});
25740
    }});
23440
 
25741
 
23441
    static {
25742
    static {
23442
      FieldMetaData.addStructMetaDataMap(getCartsByTime_args.class, metaDataMap);
25743
      FieldMetaData.addStructMetaDataMap(createTracker_args.class, metaDataMap);
23443
    }
25744
    }
23444
 
25745
 
23445
    public getCartsByTime_args() {
25746
    public createTracker_args() {
23446
    }
25747
    }
23447
 
25748
 
23448
    public getCartsByTime_args(
25749
    public createTracker_args(
23449
      long from_time,
25750
      long affiliateId)
23450
      long to_time,
-
 
23451
      CartStatus status)
-
 
23452
    {
25751
    {
23453
      this();
25752
      this();
23454
      this.from_time = from_time;
25753
      this.affiliateId = affiliateId;
23455
      setFrom_timeIsSet(true);
-
 
23456
      this.to_time = to_time;
-
 
23457
      setTo_timeIsSet(true);
25754
      setAffiliateIdIsSet(true);
23458
      this.status = status;
-
 
23459
    }
25755
    }
23460
 
25756
 
23461
    /**
25757
    /**
23462
     * Performs a deep copy on <i>other</i>.
25758
     * Performs a deep copy on <i>other</i>.
23463
     */
25759
     */
23464
    public getCartsByTime_args(getCartsByTime_args other) {
25760
    public createTracker_args(createTracker_args other) {
23465
      __isset_bit_vector.clear();
25761
      __isset_bit_vector.clear();
23466
      __isset_bit_vector.or(other.__isset_bit_vector);
25762
      __isset_bit_vector.or(other.__isset_bit_vector);
23467
      this.from_time = other.from_time;
25763
      this.affiliateId = other.affiliateId;
23468
      this.to_time = other.to_time;
-
 
23469
      if (other.isSetStatus()) {
-
 
23470
        this.status = other.status;
-
 
23471
      }
-
 
23472
    }
25764
    }
23473
 
25765
 
23474
    public getCartsByTime_args deepCopy() {
25766
    public createTracker_args deepCopy() {
23475
      return new getCartsByTime_args(this);
25767
      return new createTracker_args(this);
23476
    }
25768
    }
23477
 
25769
 
23478
    @Deprecated
25770
    @Deprecated
23479
    public getCartsByTime_args clone() {
25771
    public createTracker_args clone() {
23480
      return new getCartsByTime_args(this);
25772
      return new createTracker_args(this);
23481
    }
25773
    }
23482
 
25774
 
23483
    public long getFrom_time() {
25775
    public long getAffiliateId() {
23484
      return this.from_time;
25776
      return this.affiliateId;
23485
    }
25777
    }
23486
 
25778
 
23487
    public getCartsByTime_args setFrom_time(long from_time) {
25779
    public createTracker_args setAffiliateId(long affiliateId) {
23488
      this.from_time = from_time;
25780
      this.affiliateId = affiliateId;
23489
      setFrom_timeIsSet(true);
25781
      setAffiliateIdIsSet(true);
23490
      return this;
25782
      return this;
23491
    }
25783
    }
23492
 
25784
 
23493
    public void unsetFrom_time() {
25785
    public void unsetAffiliateId() {
23494
      __isset_bit_vector.clear(__FROM_TIME_ISSET_ID);
25786
      __isset_bit_vector.clear(__AFFILIATEID_ISSET_ID);
23495
    }
25787
    }
23496
 
25788
 
23497
    /** Returns true if field from_time is set (has been asigned a value) and false otherwise */
25789
    /** Returns true if field affiliateId is set (has been asigned a value) and false otherwise */
23498
    public boolean isSetFrom_time() {
25790
    public boolean isSetAffiliateId() {
23499
      return __isset_bit_vector.get(__FROM_TIME_ISSET_ID);
25791
      return __isset_bit_vector.get(__AFFILIATEID_ISSET_ID);
23500
    }
25792
    }
23501
 
25793
 
23502
    public void setFrom_timeIsSet(boolean value) {
25794
    public void setAffiliateIdIsSet(boolean value) {
23503
      __isset_bit_vector.set(__FROM_TIME_ISSET_ID, value);
25795
      __isset_bit_vector.set(__AFFILIATEID_ISSET_ID, value);
23504
    }
25796
    }
23505
 
25797
 
-
 
25798
    public void setFieldValue(_Fields field, Object value) {
-
 
25799
      switch (field) {
-
 
25800
      case AFFILIATE_ID:
23506
    public long getTo_time() {
25801
        if (value == null) {
23507
      return this.to_time;
25802
          unsetAffiliateId();
-
 
25803
        } else {
-
 
25804
          setAffiliateId((Long)value);
-
 
25805
        }
-
 
25806
        break;
-
 
25807
 
-
 
25808
      }
23508
    }
25809
    }
23509
 
25810
 
23510
    public getCartsByTime_args setTo_time(long to_time) {
25811
    public void setFieldValue(int fieldID, Object value) {
23511
      this.to_time = to_time;
-
 
23512
      setTo_timeIsSet(true);
25812
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
23513
      return this;
-
 
23514
    }
25813
    }
23515
 
25814
 
23516
    public void unsetTo_time() {
25815
    public Object getFieldValue(_Fields field) {
-
 
25816
      switch (field) {
-
 
25817
      case AFFILIATE_ID:
23517
      __isset_bit_vector.clear(__TO_TIME_ISSET_ID);
25818
        return new Long(getAffiliateId());
-
 
25819
 
-
 
25820
      }
-
 
25821
      throw new IllegalStateException();
23518
    }
25822
    }
23519
 
25823
 
23520
    /** Returns true if field to_time is set (has been asigned a value) and false otherwise */
-
 
23521
    public boolean isSetTo_time() {
25824
    public Object getFieldValue(int fieldId) {
23522
      return __isset_bit_vector.get(__TO_TIME_ISSET_ID);
25825
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
23523
    }
25826
    }
23524
 
25827
 
-
 
25828
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
23525
    public void setTo_timeIsSet(boolean value) {
25829
    public boolean isSet(_Fields field) {
-
 
25830
      switch (field) {
-
 
25831
      case AFFILIATE_ID:
-
 
25832
        return isSetAffiliateId();
-
 
25833
      }
23526
      __isset_bit_vector.set(__TO_TIME_ISSET_ID, value);
25834
      throw new IllegalStateException();
23527
    }
25835
    }
23528
 
25836
 
-
 
25837
    public boolean isSet(int fieldID) {
-
 
25838
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
25839
    }
-
 
25840
 
-
 
25841
    @Override
-
 
25842
    public boolean equals(Object that) {
-
 
25843
      if (that == null)
-
 
25844
        return false;
-
 
25845
      if (that instanceof createTracker_args)
-
 
25846
        return this.equals((createTracker_args)that);
-
 
25847
      return false;
-
 
25848
    }
-
 
25849
 
-
 
25850
    public boolean equals(createTracker_args that) {
-
 
25851
      if (that == null)
-
 
25852
        return false;
-
 
25853
 
-
 
25854
      boolean this_present_affiliateId = true;
-
 
25855
      boolean that_present_affiliateId = true;
-
 
25856
      if (this_present_affiliateId || that_present_affiliateId) {
-
 
25857
        if (!(this_present_affiliateId && that_present_affiliateId))
-
 
25858
          return false;
-
 
25859
        if (this.affiliateId != that.affiliateId)
-
 
25860
          return false;
-
 
25861
      }
-
 
25862
 
-
 
25863
      return true;
-
 
25864
    }
-
 
25865
 
-
 
25866
    @Override
-
 
25867
    public int hashCode() {
-
 
25868
      return 0;
-
 
25869
    }
-
 
25870
 
-
 
25871
    public int compareTo(createTracker_args other) {
-
 
25872
      if (!getClass().equals(other.getClass())) {
-
 
25873
        return getClass().getName().compareTo(other.getClass().getName());
-
 
25874
      }
-
 
25875
 
-
 
25876
      int lastComparison = 0;
-
 
25877
      createTracker_args typedOther = (createTracker_args)other;
-
 
25878
 
-
 
25879
      lastComparison = Boolean.valueOf(isSetAffiliateId()).compareTo(isSetAffiliateId());
-
 
25880
      if (lastComparison != 0) {
-
 
25881
        return lastComparison;
-
 
25882
      }
-
 
25883
      lastComparison = TBaseHelper.compareTo(affiliateId, typedOther.affiliateId);
-
 
25884
      if (lastComparison != 0) {
-
 
25885
        return lastComparison;
-
 
25886
      }
-
 
25887
      return 0;
-
 
25888
    }
-
 
25889
 
-
 
25890
    public void read(TProtocol iprot) throws TException {
-
 
25891
      TField field;
-
 
25892
      iprot.readStructBegin();
-
 
25893
      while (true)
-
 
25894
      {
-
 
25895
        field = iprot.readFieldBegin();
-
 
25896
        if (field.type == TType.STOP) { 
-
 
25897
          break;
-
 
25898
        }
-
 
25899
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
25900
        if (fieldId == null) {
-
 
25901
          TProtocolUtil.skip(iprot, field.type);
-
 
25902
        } else {
-
 
25903
          switch (fieldId) {
-
 
25904
            case AFFILIATE_ID:
-
 
25905
              if (field.type == TType.I64) {
-
 
25906
                this.affiliateId = iprot.readI64();
-
 
25907
                setAffiliateIdIsSet(true);
-
 
25908
              } else { 
-
 
25909
                TProtocolUtil.skip(iprot, field.type);
-
 
25910
              }
-
 
25911
              break;
-
 
25912
          }
-
 
25913
          iprot.readFieldEnd();
-
 
25914
        }
-
 
25915
      }
-
 
25916
      iprot.readStructEnd();
-
 
25917
      validate();
-
 
25918
    }
-
 
25919
 
-
 
25920
    public void write(TProtocol oprot) throws TException {
-
 
25921
      validate();
-
 
25922
 
-
 
25923
      oprot.writeStructBegin(STRUCT_DESC);
-
 
25924
      oprot.writeFieldBegin(AFFILIATE_ID_FIELD_DESC);
-
 
25925
      oprot.writeI64(this.affiliateId);
-
 
25926
      oprot.writeFieldEnd();
-
 
25927
      oprot.writeFieldStop();
-
 
25928
      oprot.writeStructEnd();
-
 
25929
    }
-
 
25930
 
-
 
25931
    @Override
-
 
25932
    public String toString() {
-
 
25933
      StringBuilder sb = new StringBuilder("createTracker_args(");
-
 
25934
      boolean first = true;
-
 
25935
 
-
 
25936
      sb.append("affiliateId:");
-
 
25937
      sb.append(this.affiliateId);
-
 
25938
      first = false;
-
 
25939
      sb.append(")");
-
 
25940
      return sb.toString();
-
 
25941
    }
-
 
25942
 
-
 
25943
    public void validate() throws TException {
-
 
25944
      // check for required fields
-
 
25945
    }
-
 
25946
 
-
 
25947
  }
-
 
25948
 
-
 
25949
  public static class createTracker_result implements TBase<createTracker_result._Fields>, java.io.Serializable, Cloneable, Comparable<createTracker_result>   {
-
 
25950
    private static final TStruct STRUCT_DESC = new TStruct("createTracker_result");
-
 
25951
 
-
 
25952
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
-
 
25953
    private static final TField UTX_FIELD_DESC = new TField("utx", TType.STRUCT, (short)1);
-
 
25954
 
-
 
25955
    private Tracker success;
-
 
25956
    private UserTrackerException utx;
-
 
25957
 
-
 
25958
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
25959
    public enum _Fields implements TFieldIdEnum {
-
 
25960
      SUCCESS((short)0, "success"),
-
 
25961
      UTX((short)1, "utx");
-
 
25962
 
-
 
25963
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
25964
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
25965
 
-
 
25966
      static {
-
 
25967
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
25968
          byId.put((int)field._thriftId, field);
-
 
25969
          byName.put(field.getFieldName(), field);
-
 
25970
        }
-
 
25971
      }
-
 
25972
 
23529
    /**
25973
      /**
-
 
25974
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
25975
       */
-
 
25976
      public static _Fields findByThriftId(int fieldId) {
-
 
25977
        return byId.get(fieldId);
23530
     * 
25978
      }
-
 
25979
 
-
 
25980
      /**
-
 
25981
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
25982
       * if it is not found.
-
 
25983
       */
-
 
25984
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
25985
        _Fields fields = findByThriftId(fieldId);
-
 
25986
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23531
     * @see CartStatus
25987
        return fields;
-
 
25988
      }
-
 
25989
 
-
 
25990
      /**
-
 
25991
       * Find the _Fields constant that matches name, or null if its not found.
23532
     */
25992
       */
-
 
25993
      public static _Fields findByName(String name) {
-
 
25994
        return byName.get(name);
-
 
25995
      }
-
 
25996
 
-
 
25997
      private final short _thriftId;
-
 
25998
      private final String _fieldName;
-
 
25999
 
-
 
26000
      _Fields(short thriftId, String fieldName) {
-
 
26001
        _thriftId = thriftId;
-
 
26002
        _fieldName = fieldName;
-
 
26003
      }
-
 
26004
 
-
 
26005
      public short getThriftFieldId() {
-
 
26006
        return _thriftId;
-
 
26007
      }
-
 
26008
 
23533
    public CartStatus getStatus() {
26009
      public String getFieldName() {
23534
      return this.status;
26010
        return _fieldName;
-
 
26011
      }
-
 
26012
    }
-
 
26013
 
-
 
26014
    // isset id assignments
-
 
26015
 
-
 
26016
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
26017
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
26018
          new StructMetaData(TType.STRUCT, Tracker.class)));
-
 
26019
      put(_Fields.UTX, new FieldMetaData("utx", TFieldRequirementType.DEFAULT, 
-
 
26020
          new FieldValueMetaData(TType.STRUCT)));
-
 
26021
    }});
-
 
26022
 
-
 
26023
    static {
-
 
26024
      FieldMetaData.addStructMetaDataMap(createTracker_result.class, metaDataMap);
-
 
26025
    }
-
 
26026
 
-
 
26027
    public createTracker_result() {
-
 
26028
    }
-
 
26029
 
-
 
26030
    public createTracker_result(
-
 
26031
      Tracker success,
-
 
26032
      UserTrackerException utx)
-
 
26033
    {
-
 
26034
      this();
-
 
26035
      this.success = success;
-
 
26036
      this.utx = utx;
23535
    }
26037
    }
23536
 
26038
 
23537
    /**
26039
    /**
23538
     * 
-
 
23539
     * @see CartStatus
26040
     * Performs a deep copy on <i>other</i>.
23540
     */
26041
     */
-
 
26042
    public createTracker_result(createTracker_result other) {
-
 
26043
      if (other.isSetSuccess()) {
-
 
26044
        this.success = new Tracker(other.success);
-
 
26045
      }
-
 
26046
      if (other.isSetUtx()) {
-
 
26047
        this.utx = new UserTrackerException(other.utx);
-
 
26048
      }
-
 
26049
    }
-
 
26050
 
-
 
26051
    public createTracker_result deepCopy() {
-
 
26052
      return new createTracker_result(this);
-
 
26053
    }
-
 
26054
 
-
 
26055
    @Deprecated
-
 
26056
    public createTracker_result clone() {
-
 
26057
      return new createTracker_result(this);
-
 
26058
    }
-
 
26059
 
-
 
26060
    public Tracker getSuccess() {
-
 
26061
      return this.success;
-
 
26062
    }
-
 
26063
 
23541
    public getCartsByTime_args setStatus(CartStatus status) {
26064
    public createTracker_result setSuccess(Tracker success) {
23542
      this.status = status;
26065
      this.success = success;
23543
      return this;
26066
      return this;
23544
    }
26067
    }
23545
 
26068
 
23546
    public void unsetStatus() {
26069
    public void unsetSuccess() {
23547
      this.status = null;
26070
      this.success = null;
23548
    }
26071
    }
23549
 
26072
 
23550
    /** Returns true if field status is set (has been asigned a value) and false otherwise */
26073
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
23551
    public boolean isSetStatus() {
26074
    public boolean isSetSuccess() {
23552
      return this.status != null;
26075
      return this.success != null;
23553
    }
26076
    }
23554
 
26077
 
23555
    public void setStatusIsSet(boolean value) {
26078
    public void setSuccessIsSet(boolean value) {
23556
      if (!value) {
26079
      if (!value) {
23557
        this.status = null;
26080
        this.success = null;
-
 
26081
      }
-
 
26082
    }
-
 
26083
 
-
 
26084
    public UserTrackerException getUtx() {
-
 
26085
      return this.utx;
-
 
26086
    }
-
 
26087
 
-
 
26088
    public createTracker_result setUtx(UserTrackerException utx) {
-
 
26089
      this.utx = utx;
-
 
26090
      return this;
-
 
26091
    }
-
 
26092
 
-
 
26093
    public void unsetUtx() {
-
 
26094
      this.utx = null;
-
 
26095
    }
-
 
26096
 
-
 
26097
    /** Returns true if field utx is set (has been asigned a value) and false otherwise */
-
 
26098
    public boolean isSetUtx() {
-
 
26099
      return this.utx != null;
-
 
26100
    }
-
 
26101
 
-
 
26102
    public void setUtxIsSet(boolean value) {
-
 
26103
      if (!value) {
-
 
26104
        this.utx = null;
23558
      }
26105
      }
23559
    }
26106
    }
23560
 
26107
 
23561
    public void setFieldValue(_Fields field, Object value) {
26108
    public void setFieldValue(_Fields field, Object value) {
23562
      switch (field) {
26109
      switch (field) {
23563
      case FROM_TIME:
-
 
23564
        if (value == null) {
-
 
23565
          unsetFrom_time();
-
 
23566
        } else {
-
 
23567
          setFrom_time((Long)value);
-
 
23568
        }
-
 
23569
        break;
-
 
23570
 
-
 
23571
      case TO_TIME:
26110
      case SUCCESS:
23572
        if (value == null) {
26111
        if (value == null) {
23573
          unsetTo_time();
26112
          unsetSuccess();
23574
        } else {
26113
        } else {
23575
          setTo_time((Long)value);
26114
          setSuccess((Tracker)value);
23576
        }
26115
        }
23577
        break;
26116
        break;
23578
 
26117
 
23579
      case STATUS:
26118
      case UTX:
23580
        if (value == null) {
26119
        if (value == null) {
23581
          unsetStatus();
26120
          unsetUtx();
23582
        } else {
26121
        } else {
23583
          setStatus((CartStatus)value);
26122
          setUtx((UserTrackerException)value);
23584
        }
26123
        }
23585
        break;
26124
        break;
23586
 
26125
 
23587
      }
26126
      }
23588
    }
26127
    }
Line 23591... Line 26130...
23591
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
26130
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
23592
    }
26131
    }
23593
 
26132
 
23594
    public Object getFieldValue(_Fields field) {
26133
    public Object getFieldValue(_Fields field) {
23595
      switch (field) {
26134
      switch (field) {
23596
      case FROM_TIME:
-
 
23597
        return new Long(getFrom_time());
-
 
23598
 
-
 
23599
      case TO_TIME:
26135
      case SUCCESS:
23600
        return new Long(getTo_time());
26136
        return getSuccess();
23601
 
26137
 
23602
      case STATUS:
26138
      case UTX:
23603
        return getStatus();
26139
        return getUtx();
23604
 
26140
 
23605
      }
26141
      }
23606
      throw new IllegalStateException();
26142
      throw new IllegalStateException();
23607
    }
26143
    }
23608
 
26144
 
Line 23611... Line 26147...
23611
    }
26147
    }
23612
 
26148
 
23613
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
26149
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
23614
    public boolean isSet(_Fields field) {
26150
    public boolean isSet(_Fields field) {
23615
      switch (field) {
26151
      switch (field) {
23616
      case FROM_TIME:
-
 
23617
        return isSetFrom_time();
-
 
23618
      case TO_TIME:
26152
      case SUCCESS:
23619
        return isSetTo_time();
26153
        return isSetSuccess();
23620
      case STATUS:
26154
      case UTX:
23621
        return isSetStatus();
26155
        return isSetUtx();
23622
      }
26156
      }
23623
      throw new IllegalStateException();
26157
      throw new IllegalStateException();
23624
    }
26158
    }
23625
 
26159
 
23626
    public boolean isSet(int fieldID) {
26160
    public boolean isSet(int fieldID) {
Line 23629... Line 26163...
23629
 
26163
 
23630
    @Override
26164
    @Override
23631
    public boolean equals(Object that) {
26165
    public boolean equals(Object that) {
23632
      if (that == null)
26166
      if (that == null)
23633
        return false;
26167
        return false;
23634
      if (that instanceof getCartsByTime_args)
26168
      if (that instanceof createTracker_result)
23635
        return this.equals((getCartsByTime_args)that);
26169
        return this.equals((createTracker_result)that);
23636
      return false;
26170
      return false;
23637
    }
26171
    }
23638
 
26172
 
23639
    public boolean equals(getCartsByTime_args that) {
26173
    public boolean equals(createTracker_result that) {
23640
      if (that == null)
26174
      if (that == null)
23641
        return false;
26175
        return false;
23642
 
26176
 
23643
      boolean this_present_from_time = true;
26177
      boolean this_present_success = true && this.isSetSuccess();
23644
      boolean that_present_from_time = true;
26178
      boolean that_present_success = true && that.isSetSuccess();
23645
      if (this_present_from_time || that_present_from_time) {
-
 
23646
        if (!(this_present_from_time && that_present_from_time))
-
 
23647
          return false;
-
 
23648
        if (this.from_time != that.from_time)
-
 
23649
          return false;
-
 
23650
      }
-
 
23651
 
-
 
23652
      boolean this_present_to_time = true;
-
 
23653
      boolean that_present_to_time = true;
-
 
23654
      if (this_present_to_time || that_present_to_time) {
26179
      if (this_present_success || that_present_success) {
23655
        if (!(this_present_to_time && that_present_to_time))
26180
        if (!(this_present_success && that_present_success))
23656
          return false;
26181
          return false;
23657
        if (this.to_time != that.to_time)
26182
        if (!this.success.equals(that.success))
23658
          return false;
26183
          return false;
23659
      }
26184
      }
23660
 
26185
 
23661
      boolean this_present_status = true && this.isSetStatus();
26186
      boolean this_present_utx = true && this.isSetUtx();
23662
      boolean that_present_status = true && that.isSetStatus();
26187
      boolean that_present_utx = true && that.isSetUtx();
23663
      if (this_present_status || that_present_status) {
26188
      if (this_present_utx || that_present_utx) {
23664
        if (!(this_present_status && that_present_status))
26189
        if (!(this_present_utx && that_present_utx))
23665
          return false;
26190
          return false;
23666
        if (!this.status.equals(that.status))
26191
        if (!this.utx.equals(that.utx))
23667
          return false;
26192
          return false;
23668
      }
26193
      }
23669
 
26194
 
23670
      return true;
26195
      return true;
23671
    }
26196
    }
Line 23673... Line 26198...
23673
    @Override
26198
    @Override
23674
    public int hashCode() {
26199
    public int hashCode() {
23675
      return 0;
26200
      return 0;
23676
    }
26201
    }
23677
 
26202
 
23678
    public int compareTo(getCartsByTime_args other) {
26203
    public int compareTo(createTracker_result other) {
23679
      if (!getClass().equals(other.getClass())) {
26204
      if (!getClass().equals(other.getClass())) {
23680
        return getClass().getName().compareTo(other.getClass().getName());
26205
        return getClass().getName().compareTo(other.getClass().getName());
23681
      }
26206
      }
23682
 
26207
 
23683
      int lastComparison = 0;
26208
      int lastComparison = 0;
23684
      getCartsByTime_args typedOther = (getCartsByTime_args)other;
26209
      createTracker_result typedOther = (createTracker_result)other;
23685
 
26210
 
23686
      lastComparison = Boolean.valueOf(isSetFrom_time()).compareTo(isSetFrom_time());
26211
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
23687
      if (lastComparison != 0) {
26212
      if (lastComparison != 0) {
23688
        return lastComparison;
26213
        return lastComparison;
23689
      }
26214
      }
23690
      lastComparison = TBaseHelper.compareTo(from_time, typedOther.from_time);
26215
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
23691
      if (lastComparison != 0) {
26216
      if (lastComparison != 0) {
23692
        return lastComparison;
26217
        return lastComparison;
23693
      }
26218
      }
23694
      lastComparison = Boolean.valueOf(isSetTo_time()).compareTo(isSetTo_time());
26219
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(isSetUtx());
23695
      if (lastComparison != 0) {
26220
      if (lastComparison != 0) {
23696
        return lastComparison;
26221
        return lastComparison;
23697
      }
26222
      }
23698
      lastComparison = TBaseHelper.compareTo(to_time, typedOther.to_time);
26223
      lastComparison = TBaseHelper.compareTo(utx, typedOther.utx);
23699
      if (lastComparison != 0) {
26224
      if (lastComparison != 0) {
23700
        return lastComparison;
26225
        return lastComparison;
23701
      }
26226
      }
-
 
26227
      return 0;
-
 
26228
    }
-
 
26229
 
-
 
26230
    public void read(TProtocol iprot) throws TException {
-
 
26231
      TField field;
-
 
26232
      iprot.readStructBegin();
-
 
26233
      while (true)
-
 
26234
      {
-
 
26235
        field = iprot.readFieldBegin();
-
 
26236
        if (field.type == TType.STOP) { 
-
 
26237
          break;
-
 
26238
        }
-
 
26239
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
26240
        if (fieldId == null) {
-
 
26241
          TProtocolUtil.skip(iprot, field.type);
-
 
26242
        } else {
-
 
26243
          switch (fieldId) {
-
 
26244
            case SUCCESS:
-
 
26245
              if (field.type == TType.STRUCT) {
-
 
26246
                this.success = new Tracker();
-
 
26247
                this.success.read(iprot);
-
 
26248
              } else { 
-
 
26249
                TProtocolUtil.skip(iprot, field.type);
-
 
26250
              }
-
 
26251
              break;
-
 
26252
            case UTX:
-
 
26253
              if (field.type == TType.STRUCT) {
-
 
26254
                this.utx = new UserTrackerException();
-
 
26255
                this.utx.read(iprot);
-
 
26256
              } else { 
-
 
26257
                TProtocolUtil.skip(iprot, field.type);
-
 
26258
              }
-
 
26259
              break;
-
 
26260
          }
-
 
26261
          iprot.readFieldEnd();
-
 
26262
        }
-
 
26263
      }
-
 
26264
      iprot.readStructEnd();
-
 
26265
      validate();
-
 
26266
    }
-
 
26267
 
-
 
26268
    public void write(TProtocol oprot) throws TException {
-
 
26269
      oprot.writeStructBegin(STRUCT_DESC);
-
 
26270
 
-
 
26271
      if (this.isSetSuccess()) {
-
 
26272
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
26273
        this.success.write(oprot);
-
 
26274
        oprot.writeFieldEnd();
-
 
26275
      } else if (this.isSetUtx()) {
-
 
26276
        oprot.writeFieldBegin(UTX_FIELD_DESC);
-
 
26277
        this.utx.write(oprot);
-
 
26278
        oprot.writeFieldEnd();
-
 
26279
      }
-
 
26280
      oprot.writeFieldStop();
-
 
26281
      oprot.writeStructEnd();
-
 
26282
    }
-
 
26283
 
-
 
26284
    @Override
-
 
26285
    public String toString() {
-
 
26286
      StringBuilder sb = new StringBuilder("createTracker_result(");
-
 
26287
      boolean first = true;
-
 
26288
 
-
 
26289
      sb.append("success:");
-
 
26290
      if (this.success == null) {
-
 
26291
        sb.append("null");
-
 
26292
      } else {
-
 
26293
        sb.append(this.success);
-
 
26294
      }
-
 
26295
      first = false;
-
 
26296
      if (!first) sb.append(", ");
-
 
26297
      sb.append("utx:");
-
 
26298
      if (this.utx == null) {
-
 
26299
        sb.append("null");
-
 
26300
      } else {
-
 
26301
        sb.append(this.utx);
-
 
26302
      }
-
 
26303
      first = false;
-
 
26304
      sb.append(")");
-
 
26305
      return sb.toString();
-
 
26306
    }
-
 
26307
 
-
 
26308
    public void validate() throws TException {
-
 
26309
      // check for required fields
-
 
26310
    }
-
 
26311
 
-
 
26312
  }
-
 
26313
 
-
 
26314
  public static class getTrackerById_args implements TBase<getTrackerById_args._Fields>, java.io.Serializable, Cloneable, Comparable<getTrackerById_args>   {
-
 
26315
    private static final TStruct STRUCT_DESC = new TStruct("getTrackerById_args");
-
 
26316
 
-
 
26317
    private static final TField TRACKER_ID_FIELD_DESC = new TField("trackerId", TType.I64, (short)1);
-
 
26318
 
-
 
26319
    private long trackerId;
-
 
26320
 
-
 
26321
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
26322
    public enum _Fields implements TFieldIdEnum {
-
 
26323
      TRACKER_ID((short)1, "trackerId");
-
 
26324
 
-
 
26325
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
26326
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
26327
 
-
 
26328
      static {
-
 
26329
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
26330
          byId.put((int)field._thriftId, field);
-
 
26331
          byName.put(field.getFieldName(), field);
-
 
26332
        }
-
 
26333
      }
-
 
26334
 
-
 
26335
      /**
-
 
26336
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
26337
       */
-
 
26338
      public static _Fields findByThriftId(int fieldId) {
-
 
26339
        return byId.get(fieldId);
-
 
26340
      }
-
 
26341
 
-
 
26342
      /**
-
 
26343
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
26344
       * if it is not found.
-
 
26345
       */
-
 
26346
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
26347
        _Fields fields = findByThriftId(fieldId);
-
 
26348
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
26349
        return fields;
-
 
26350
      }
-
 
26351
 
-
 
26352
      /**
-
 
26353
       * Find the _Fields constant that matches name, or null if its not found.
-
 
26354
       */
-
 
26355
      public static _Fields findByName(String name) {
-
 
26356
        return byName.get(name);
-
 
26357
      }
-
 
26358
 
-
 
26359
      private final short _thriftId;
-
 
26360
      private final String _fieldName;
-
 
26361
 
-
 
26362
      _Fields(short thriftId, String fieldName) {
-
 
26363
        _thriftId = thriftId;
-
 
26364
        _fieldName = fieldName;
-
 
26365
      }
-
 
26366
 
-
 
26367
      public short getThriftFieldId() {
-
 
26368
        return _thriftId;
-
 
26369
      }
-
 
26370
 
-
 
26371
      public String getFieldName() {
-
 
26372
        return _fieldName;
-
 
26373
      }
-
 
26374
    }
-
 
26375
 
-
 
26376
    // isset id assignments
-
 
26377
    private static final int __TRACKERID_ISSET_ID = 0;
-
 
26378
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
26379
 
-
 
26380
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
26381
      put(_Fields.TRACKER_ID, new FieldMetaData("trackerId", TFieldRequirementType.DEFAULT, 
-
 
26382
          new FieldValueMetaData(TType.I64)));
-
 
26383
    }});
-
 
26384
 
-
 
26385
    static {
-
 
26386
      FieldMetaData.addStructMetaDataMap(getTrackerById_args.class, metaDataMap);
-
 
26387
    }
-
 
26388
 
-
 
26389
    public getTrackerById_args() {
-
 
26390
    }
-
 
26391
 
-
 
26392
    public getTrackerById_args(
-
 
26393
      long trackerId)
-
 
26394
    {
-
 
26395
      this();
-
 
26396
      this.trackerId = trackerId;
-
 
26397
      setTrackerIdIsSet(true);
-
 
26398
    }
-
 
26399
 
-
 
26400
    /**
-
 
26401
     * Performs a deep copy on <i>other</i>.
-
 
26402
     */
-
 
26403
    public getTrackerById_args(getTrackerById_args other) {
-
 
26404
      __isset_bit_vector.clear();
-
 
26405
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
26406
      this.trackerId = other.trackerId;
-
 
26407
    }
-
 
26408
 
-
 
26409
    public getTrackerById_args deepCopy() {
-
 
26410
      return new getTrackerById_args(this);
-
 
26411
    }
-
 
26412
 
-
 
26413
    @Deprecated
-
 
26414
    public getTrackerById_args clone() {
-
 
26415
      return new getTrackerById_args(this);
-
 
26416
    }
-
 
26417
 
-
 
26418
    public long getTrackerId() {
-
 
26419
      return this.trackerId;
-
 
26420
    }
-
 
26421
 
-
 
26422
    public getTrackerById_args setTrackerId(long trackerId) {
-
 
26423
      this.trackerId = trackerId;
-
 
26424
      setTrackerIdIsSet(true);
-
 
26425
      return this;
-
 
26426
    }
-
 
26427
 
-
 
26428
    public void unsetTrackerId() {
-
 
26429
      __isset_bit_vector.clear(__TRACKERID_ISSET_ID);
-
 
26430
    }
-
 
26431
 
-
 
26432
    /** Returns true if field trackerId is set (has been asigned a value) and false otherwise */
-
 
26433
    public boolean isSetTrackerId() {
-
 
26434
      return __isset_bit_vector.get(__TRACKERID_ISSET_ID);
-
 
26435
    }
-
 
26436
 
-
 
26437
    public void setTrackerIdIsSet(boolean value) {
-
 
26438
      __isset_bit_vector.set(__TRACKERID_ISSET_ID, value);
-
 
26439
    }
-
 
26440
 
-
 
26441
    public void setFieldValue(_Fields field, Object value) {
-
 
26442
      switch (field) {
-
 
26443
      case TRACKER_ID:
-
 
26444
        if (value == null) {
-
 
26445
          unsetTrackerId();
-
 
26446
        } else {
-
 
26447
          setTrackerId((Long)value);
-
 
26448
        }
-
 
26449
        break;
-
 
26450
 
-
 
26451
      }
-
 
26452
    }
-
 
26453
 
-
 
26454
    public void setFieldValue(int fieldID, Object value) {
-
 
26455
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
26456
    }
-
 
26457
 
-
 
26458
    public Object getFieldValue(_Fields field) {
-
 
26459
      switch (field) {
-
 
26460
      case TRACKER_ID:
-
 
26461
        return new Long(getTrackerId());
-
 
26462
 
-
 
26463
      }
-
 
26464
      throw new IllegalStateException();
-
 
26465
    }
-
 
26466
 
-
 
26467
    public Object getFieldValue(int fieldId) {
-
 
26468
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
26469
    }
-
 
26470
 
-
 
26471
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
26472
    public boolean isSet(_Fields field) {
-
 
26473
      switch (field) {
-
 
26474
      case TRACKER_ID:
-
 
26475
        return isSetTrackerId();
-
 
26476
      }
-
 
26477
      throw new IllegalStateException();
-
 
26478
    }
-
 
26479
 
-
 
26480
    public boolean isSet(int fieldID) {
-
 
26481
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
26482
    }
-
 
26483
 
-
 
26484
    @Override
-
 
26485
    public boolean equals(Object that) {
-
 
26486
      if (that == null)
-
 
26487
        return false;
-
 
26488
      if (that instanceof getTrackerById_args)
-
 
26489
        return this.equals((getTrackerById_args)that);
-
 
26490
      return false;
-
 
26491
    }
-
 
26492
 
-
 
26493
    public boolean equals(getTrackerById_args that) {
-
 
26494
      if (that == null)
-
 
26495
        return false;
-
 
26496
 
-
 
26497
      boolean this_present_trackerId = true;
-
 
26498
      boolean that_present_trackerId = true;
-
 
26499
      if (this_present_trackerId || that_present_trackerId) {
-
 
26500
        if (!(this_present_trackerId && that_present_trackerId))
-
 
26501
          return false;
-
 
26502
        if (this.trackerId != that.trackerId)
-
 
26503
          return false;
-
 
26504
      }
-
 
26505
 
-
 
26506
      return true;
-
 
26507
    }
-
 
26508
 
-
 
26509
    @Override
-
 
26510
    public int hashCode() {
-
 
26511
      return 0;
-
 
26512
    }
-
 
26513
 
-
 
26514
    public int compareTo(getTrackerById_args other) {
-
 
26515
      if (!getClass().equals(other.getClass())) {
-
 
26516
        return getClass().getName().compareTo(other.getClass().getName());
-
 
26517
      }
-
 
26518
 
-
 
26519
      int lastComparison = 0;
-
 
26520
      getTrackerById_args typedOther = (getTrackerById_args)other;
-
 
26521
 
23702
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(isSetStatus());
26522
      lastComparison = Boolean.valueOf(isSetTrackerId()).compareTo(isSetTrackerId());
23703
      if (lastComparison != 0) {
26523
      if (lastComparison != 0) {
23704
        return lastComparison;
26524
        return lastComparison;
23705
      }
26525
      }
23706
      lastComparison = TBaseHelper.compareTo(status, typedOther.status);
26526
      lastComparison = TBaseHelper.compareTo(trackerId, typedOther.trackerId);
23707
      if (lastComparison != 0) {
26527
      if (lastComparison != 0) {
23708
        return lastComparison;
26528
        return lastComparison;
23709
      }
26529
      }
23710
      return 0;
26530
      return 0;
23711
    }
26531
    }
Line 23722... Line 26542...
23722
        _Fields fieldId = _Fields.findByThriftId(field.id);
26542
        _Fields fieldId = _Fields.findByThriftId(field.id);
23723
        if (fieldId == null) {
26543
        if (fieldId == null) {
23724
          TProtocolUtil.skip(iprot, field.type);
26544
          TProtocolUtil.skip(iprot, field.type);
23725
        } else {
26545
        } else {
23726
          switch (fieldId) {
26546
          switch (fieldId) {
23727
            case FROM_TIME:
26547
            case TRACKER_ID:
23728
              if (field.type == TType.I64) {
26548
              if (field.type == TType.I64) {
23729
                this.from_time = iprot.readI64();
26549
                this.trackerId = iprot.readI64();
23730
                setFrom_timeIsSet(true);
26550
                setTrackerIdIsSet(true);
23731
              } else { 
26551
              } else { 
23732
                TProtocolUtil.skip(iprot, field.type);
26552
                TProtocolUtil.skip(iprot, field.type);
23733
              }
26553
              }
23734
              break;
26554
              break;
-
 
26555
          }
-
 
26556
          iprot.readFieldEnd();
-
 
26557
        }
-
 
26558
      }
-
 
26559
      iprot.readStructEnd();
-
 
26560
      validate();
-
 
26561
    }
-
 
26562
 
-
 
26563
    public void write(TProtocol oprot) throws TException {
-
 
26564
      validate();
-
 
26565
 
-
 
26566
      oprot.writeStructBegin(STRUCT_DESC);
-
 
26567
      oprot.writeFieldBegin(TRACKER_ID_FIELD_DESC);
-
 
26568
      oprot.writeI64(this.trackerId);
-
 
26569
      oprot.writeFieldEnd();
-
 
26570
      oprot.writeFieldStop();
-
 
26571
      oprot.writeStructEnd();
-
 
26572
    }
-
 
26573
 
-
 
26574
    @Override
-
 
26575
    public String toString() {
-
 
26576
      StringBuilder sb = new StringBuilder("getTrackerById_args(");
-
 
26577
      boolean first = true;
-
 
26578
 
-
 
26579
      sb.append("trackerId:");
-
 
26580
      sb.append(this.trackerId);
-
 
26581
      first = false;
-
 
26582
      sb.append(")");
-
 
26583
      return sb.toString();
-
 
26584
    }
-
 
26585
 
-
 
26586
    public void validate() throws TException {
-
 
26587
      // check for required fields
-
 
26588
    }
-
 
26589
 
-
 
26590
  }
-
 
26591
 
-
 
26592
  public static class getTrackerById_result implements TBase<getTrackerById_result._Fields>, java.io.Serializable, Cloneable, Comparable<getTrackerById_result>   {
-
 
26593
    private static final TStruct STRUCT_DESC = new TStruct("getTrackerById_result");
-
 
26594
 
-
 
26595
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
-
 
26596
    private static final TField UTX_FIELD_DESC = new TField("utx", TType.STRUCT, (short)1);
-
 
26597
 
-
 
26598
    private Tracker success;
-
 
26599
    private UserTrackerException utx;
-
 
26600
 
-
 
26601
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
26602
    public enum _Fields implements TFieldIdEnum {
-
 
26603
      SUCCESS((short)0, "success"),
-
 
26604
      UTX((short)1, "utx");
-
 
26605
 
-
 
26606
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
26607
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
26608
 
-
 
26609
      static {
-
 
26610
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
26611
          byId.put((int)field._thriftId, field);
-
 
26612
          byName.put(field.getFieldName(), field);
-
 
26613
        }
-
 
26614
      }
-
 
26615
 
-
 
26616
      /**
-
 
26617
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
26618
       */
-
 
26619
      public static _Fields findByThriftId(int fieldId) {
-
 
26620
        return byId.get(fieldId);
-
 
26621
      }
-
 
26622
 
-
 
26623
      /**
-
 
26624
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
26625
       * if it is not found.
-
 
26626
       */
-
 
26627
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
26628
        _Fields fields = findByThriftId(fieldId);
-
 
26629
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
26630
        return fields;
-
 
26631
      }
-
 
26632
 
-
 
26633
      /**
-
 
26634
       * Find the _Fields constant that matches name, or null if its not found.
-
 
26635
       */
-
 
26636
      public static _Fields findByName(String name) {
-
 
26637
        return byName.get(name);
-
 
26638
      }
-
 
26639
 
-
 
26640
      private final short _thriftId;
-
 
26641
      private final String _fieldName;
-
 
26642
 
-
 
26643
      _Fields(short thriftId, String fieldName) {
-
 
26644
        _thriftId = thriftId;
-
 
26645
        _fieldName = fieldName;
-
 
26646
      }
-
 
26647
 
-
 
26648
      public short getThriftFieldId() {
-
 
26649
        return _thriftId;
-
 
26650
      }
-
 
26651
 
-
 
26652
      public String getFieldName() {
-
 
26653
        return _fieldName;
-
 
26654
      }
-
 
26655
    }
-
 
26656
 
-
 
26657
    // isset id assignments
-
 
26658
 
-
 
26659
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
26660
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
26661
          new StructMetaData(TType.STRUCT, Tracker.class)));
-
 
26662
      put(_Fields.UTX, new FieldMetaData("utx", TFieldRequirementType.DEFAULT, 
-
 
26663
          new FieldValueMetaData(TType.STRUCT)));
-
 
26664
    }});
-
 
26665
 
-
 
26666
    static {
-
 
26667
      FieldMetaData.addStructMetaDataMap(getTrackerById_result.class, metaDataMap);
-
 
26668
    }
-
 
26669
 
-
 
26670
    public getTrackerById_result() {
-
 
26671
    }
-
 
26672
 
-
 
26673
    public getTrackerById_result(
-
 
26674
      Tracker success,
-
 
26675
      UserTrackerException utx)
-
 
26676
    {
-
 
26677
      this();
-
 
26678
      this.success = success;
-
 
26679
      this.utx = utx;
-
 
26680
    }
-
 
26681
 
-
 
26682
    /**
-
 
26683
     * Performs a deep copy on <i>other</i>.
-
 
26684
     */
-
 
26685
    public getTrackerById_result(getTrackerById_result other) {
-
 
26686
      if (other.isSetSuccess()) {
-
 
26687
        this.success = new Tracker(other.success);
-
 
26688
      }
-
 
26689
      if (other.isSetUtx()) {
-
 
26690
        this.utx = new UserTrackerException(other.utx);
-
 
26691
      }
-
 
26692
    }
-
 
26693
 
-
 
26694
    public getTrackerById_result deepCopy() {
-
 
26695
      return new getTrackerById_result(this);
-
 
26696
    }
-
 
26697
 
-
 
26698
    @Deprecated
-
 
26699
    public getTrackerById_result clone() {
-
 
26700
      return new getTrackerById_result(this);
-
 
26701
    }
-
 
26702
 
-
 
26703
    public Tracker getSuccess() {
-
 
26704
      return this.success;
-
 
26705
    }
-
 
26706
 
-
 
26707
    public getTrackerById_result setSuccess(Tracker success) {
-
 
26708
      this.success = success;
-
 
26709
      return this;
-
 
26710
    }
-
 
26711
 
-
 
26712
    public void unsetSuccess() {
-
 
26713
      this.success = null;
-
 
26714
    }
-
 
26715
 
-
 
26716
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
26717
    public boolean isSetSuccess() {
-
 
26718
      return this.success != null;
-
 
26719
    }
-
 
26720
 
-
 
26721
    public void setSuccessIsSet(boolean value) {
-
 
26722
      if (!value) {
-
 
26723
        this.success = null;
-
 
26724
      }
-
 
26725
    }
-
 
26726
 
-
 
26727
    public UserTrackerException getUtx() {
-
 
26728
      return this.utx;
-
 
26729
    }
-
 
26730
 
-
 
26731
    public getTrackerById_result setUtx(UserTrackerException utx) {
-
 
26732
      this.utx = utx;
-
 
26733
      return this;
-
 
26734
    }
-
 
26735
 
-
 
26736
    public void unsetUtx() {
-
 
26737
      this.utx = null;
-
 
26738
    }
-
 
26739
 
-
 
26740
    /** Returns true if field utx is set (has been asigned a value) and false otherwise */
-
 
26741
    public boolean isSetUtx() {
-
 
26742
      return this.utx != null;
-
 
26743
    }
-
 
26744
 
-
 
26745
    public void setUtxIsSet(boolean value) {
-
 
26746
      if (!value) {
-
 
26747
        this.utx = null;
-
 
26748
      }
-
 
26749
    }
-
 
26750
 
-
 
26751
    public void setFieldValue(_Fields field, Object value) {
-
 
26752
      switch (field) {
-
 
26753
      case SUCCESS:
-
 
26754
        if (value == null) {
-
 
26755
          unsetSuccess();
-
 
26756
        } else {
-
 
26757
          setSuccess((Tracker)value);
-
 
26758
        }
-
 
26759
        break;
-
 
26760
 
-
 
26761
      case UTX:
-
 
26762
        if (value == null) {
-
 
26763
          unsetUtx();
-
 
26764
        } else {
-
 
26765
          setUtx((UserTrackerException)value);
-
 
26766
        }
-
 
26767
        break;
-
 
26768
 
-
 
26769
      }
-
 
26770
    }
-
 
26771
 
-
 
26772
    public void setFieldValue(int fieldID, Object value) {
-
 
26773
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
26774
    }
-
 
26775
 
-
 
26776
    public Object getFieldValue(_Fields field) {
-
 
26777
      switch (field) {
-
 
26778
      case SUCCESS:
-
 
26779
        return getSuccess();
-
 
26780
 
-
 
26781
      case UTX:
-
 
26782
        return getUtx();
-
 
26783
 
-
 
26784
      }
-
 
26785
      throw new IllegalStateException();
-
 
26786
    }
-
 
26787
 
-
 
26788
    public Object getFieldValue(int fieldId) {
-
 
26789
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
26790
    }
-
 
26791
 
-
 
26792
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
26793
    public boolean isSet(_Fields field) {
-
 
26794
      switch (field) {
-
 
26795
      case SUCCESS:
-
 
26796
        return isSetSuccess();
-
 
26797
      case UTX:
-
 
26798
        return isSetUtx();
-
 
26799
      }
-
 
26800
      throw new IllegalStateException();
-
 
26801
    }
-
 
26802
 
-
 
26803
    public boolean isSet(int fieldID) {
-
 
26804
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
26805
    }
-
 
26806
 
-
 
26807
    @Override
-
 
26808
    public boolean equals(Object that) {
-
 
26809
      if (that == null)
-
 
26810
        return false;
-
 
26811
      if (that instanceof getTrackerById_result)
-
 
26812
        return this.equals((getTrackerById_result)that);
-
 
26813
      return false;
-
 
26814
    }
-
 
26815
 
-
 
26816
    public boolean equals(getTrackerById_result that) {
-
 
26817
      if (that == null)
-
 
26818
        return false;
-
 
26819
 
-
 
26820
      boolean this_present_success = true && this.isSetSuccess();
-
 
26821
      boolean that_present_success = true && that.isSetSuccess();
-
 
26822
      if (this_present_success || that_present_success) {
-
 
26823
        if (!(this_present_success && that_present_success))
-
 
26824
          return false;
-
 
26825
        if (!this.success.equals(that.success))
-
 
26826
          return false;
-
 
26827
      }
-
 
26828
 
-
 
26829
      boolean this_present_utx = true && this.isSetUtx();
-
 
26830
      boolean that_present_utx = true && that.isSetUtx();
-
 
26831
      if (this_present_utx || that_present_utx) {
-
 
26832
        if (!(this_present_utx && that_present_utx))
-
 
26833
          return false;
-
 
26834
        if (!this.utx.equals(that.utx))
-
 
26835
          return false;
-
 
26836
      }
-
 
26837
 
-
 
26838
      return true;
-
 
26839
    }
-
 
26840
 
-
 
26841
    @Override
-
 
26842
    public int hashCode() {
-
 
26843
      return 0;
-
 
26844
    }
-
 
26845
 
-
 
26846
    public int compareTo(getTrackerById_result other) {
-
 
26847
      if (!getClass().equals(other.getClass())) {
-
 
26848
        return getClass().getName().compareTo(other.getClass().getName());
-
 
26849
      }
-
 
26850
 
-
 
26851
      int lastComparison = 0;
-
 
26852
      getTrackerById_result typedOther = (getTrackerById_result)other;
-
 
26853
 
-
 
26854
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
26855
      if (lastComparison != 0) {
-
 
26856
        return lastComparison;
-
 
26857
      }
-
 
26858
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
26859
      if (lastComparison != 0) {
-
 
26860
        return lastComparison;
-
 
26861
      }
-
 
26862
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(isSetUtx());
-
 
26863
      if (lastComparison != 0) {
-
 
26864
        return lastComparison;
-
 
26865
      }
-
 
26866
      lastComparison = TBaseHelper.compareTo(utx, typedOther.utx);
-
 
26867
      if (lastComparison != 0) {
-
 
26868
        return lastComparison;
-
 
26869
      }
-
 
26870
      return 0;
-
 
26871
    }
-
 
26872
 
-
 
26873
    public void read(TProtocol iprot) throws TException {
-
 
26874
      TField field;
-
 
26875
      iprot.readStructBegin();
-
 
26876
      while (true)
-
 
26877
      {
-
 
26878
        field = iprot.readFieldBegin();
-
 
26879
        if (field.type == TType.STOP) { 
-
 
26880
          break;
-
 
26881
        }
-
 
26882
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
26883
        if (fieldId == null) {
-
 
26884
          TProtocolUtil.skip(iprot, field.type);
-
 
26885
        } else {
-
 
26886
          switch (fieldId) {
23735
            case TO_TIME:
26887
            case SUCCESS:
23736
              if (field.type == TType.I64) {
26888
              if (field.type == TType.STRUCT) {
23737
                this.to_time = iprot.readI64();
26889
                this.success = new Tracker();
23738
                setTo_timeIsSet(true);
26890
                this.success.read(iprot);
23739
              } else { 
26891
              } else { 
23740
                TProtocolUtil.skip(iprot, field.type);
26892
                TProtocolUtil.skip(iprot, field.type);
23741
              }
26893
              }
23742
              break;
26894
              break;
23743
            case STATUS:
26895
            case UTX:
23744
              if (field.type == TType.I32) {
26896
              if (field.type == TType.STRUCT) {
23745
                this.status = CartStatus.findByValue(iprot.readI32());
26897
                this.utx = new UserTrackerException();
-
 
26898
                this.utx.read(iprot);
23746
              } else { 
26899
              } else { 
23747
                TProtocolUtil.skip(iprot, field.type);
26900
                TProtocolUtil.skip(iprot, field.type);
23748
              }
26901
              }
23749
              break;
26902
              break;
23750
          }
26903
          }
Line 23754... Line 26907...
23754
      iprot.readStructEnd();
26907
      iprot.readStructEnd();
23755
      validate();
26908
      validate();
23756
    }
26909
    }
23757
 
26910
 
23758
    public void write(TProtocol oprot) throws TException {
26911
    public void write(TProtocol oprot) throws TException {
23759
      validate();
-
 
23760
 
-
 
23761
      oprot.writeStructBegin(STRUCT_DESC);
26912
      oprot.writeStructBegin(STRUCT_DESC);
23762
      oprot.writeFieldBegin(FROM_TIME_FIELD_DESC);
-
 
23763
      oprot.writeI64(this.from_time);
-
 
-
 
26913
 
23764
      oprot.writeFieldEnd();
26914
      if (this.isSetSuccess()) {
23765
      oprot.writeFieldBegin(TO_TIME_FIELD_DESC);
26915
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23766
      oprot.writeI64(this.to_time);
26916
        this.success.write(oprot);
23767
      oprot.writeFieldEnd();
26917
        oprot.writeFieldEnd();
23768
      if (this.status != null) {
26918
      } else if (this.isSetUtx()) {
23769
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
26919
        oprot.writeFieldBegin(UTX_FIELD_DESC);
23770
        oprot.writeI32(this.status.getValue());
26920
        this.utx.write(oprot);
23771
        oprot.writeFieldEnd();
26921
        oprot.writeFieldEnd();
23772
      }
26922
      }
23773
      oprot.writeFieldStop();
26923
      oprot.writeFieldStop();
23774
      oprot.writeStructEnd();
26924
      oprot.writeStructEnd();
23775
    }
26925
    }
23776
 
26926
 
23777
    @Override
26927
    @Override
23778
    public String toString() {
26928
    public String toString() {
23779
      StringBuilder sb = new StringBuilder("getCartsByTime_args(");
26929
      StringBuilder sb = new StringBuilder("getTrackerById_result(");
23780
      boolean first = true;
26930
      boolean first = true;
23781
 
26931
 
23782
      sb.append("from_time:");
26932
      sb.append("success:");
23783
      sb.append(this.from_time);
-
 
23784
      first = false;
26933
      if (this.success == null) {
23785
      if (!first) sb.append(", ");
26934
        sb.append("null");
23786
      sb.append("to_time:");
26935
      } else {
23787
      sb.append(this.to_time);
26936
        sb.append(this.success);
-
 
26937
      }
23788
      first = false;
26938
      first = false;
23789
      if (!first) sb.append(", ");
26939
      if (!first) sb.append(", ");
23790
      sb.append("status:");
26940
      sb.append("utx:");
23791
      if (this.status == null) {
26941
      if (this.utx == null) {
23792
        sb.append("null");
26942
        sb.append("null");
23793
      } else {
26943
      } else {
23794
        String status_name = status.name();
26944
        sb.append(this.utx);
-
 
26945
      }
23795
        if (status_name != null) {
26946
      first = false;
23796
          sb.append(status_name);
26947
      sb.append(")");
23797
          sb.append(" (");
26948
      return sb.toString();
-
 
26949
    }
-
 
26950
 
-
 
26951
    public void validate() throws TException {
-
 
26952
      // check for required fields
-
 
26953
    }
-
 
26954
 
-
 
26955
  }
-
 
26956
 
-
 
26957
  public static class getTrackersByAffiliate_args implements TBase<getTrackersByAffiliate_args._Fields>, java.io.Serializable, Cloneable, Comparable<getTrackersByAffiliate_args>   {
-
 
26958
    private static final TStruct STRUCT_DESC = new TStruct("getTrackersByAffiliate_args");
-
 
26959
 
-
 
26960
    private static final TField AFFILIATE_ID_FIELD_DESC = new TField("affiliateId", TType.I64, (short)1);
-
 
26961
 
-
 
26962
    private long affiliateId;
-
 
26963
 
-
 
26964
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
26965
    public enum _Fields implements TFieldIdEnum {
-
 
26966
      AFFILIATE_ID((short)1, "affiliateId");
-
 
26967
 
-
 
26968
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
26969
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
26970
 
-
 
26971
      static {
-
 
26972
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
26973
          byId.put((int)field._thriftId, field);
-
 
26974
          byName.put(field.getFieldName(), field);
23798
        }
26975
        }
-
 
26976
      }
-
 
26977
 
-
 
26978
      /**
-
 
26979
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
26980
       */
-
 
26981
      public static _Fields findByThriftId(int fieldId) {
-
 
26982
        return byId.get(fieldId);
-
 
26983
      }
-
 
26984
 
-
 
26985
      /**
-
 
26986
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
26987
       * if it is not found.
-
 
26988
       */
-
 
26989
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
26990
        _Fields fields = findByThriftId(fieldId);
-
 
26991
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
26992
        return fields;
-
 
26993
      }
-
 
26994
 
-
 
26995
      /**
-
 
26996
       * Find the _Fields constant that matches name, or null if its not found.
-
 
26997
       */
-
 
26998
      public static _Fields findByName(String name) {
-
 
26999
        return byName.get(name);
-
 
27000
      }
-
 
27001
 
-
 
27002
      private final short _thriftId;
-
 
27003
      private final String _fieldName;
-
 
27004
 
-
 
27005
      _Fields(short thriftId, String fieldName) {
-
 
27006
        _thriftId = thriftId;
-
 
27007
        _fieldName = fieldName;
-
 
27008
      }
-
 
27009
 
-
 
27010
      public short getThriftFieldId() {
-
 
27011
        return _thriftId;
-
 
27012
      }
-
 
27013
 
-
 
27014
      public String getFieldName() {
-
 
27015
        return _fieldName;
-
 
27016
      }
-
 
27017
    }
-
 
27018
 
-
 
27019
    // isset id assignments
-
 
27020
    private static final int __AFFILIATEID_ISSET_ID = 0;
-
 
27021
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
27022
 
-
 
27023
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
27024
      put(_Fields.AFFILIATE_ID, new FieldMetaData("affiliateId", TFieldRequirementType.DEFAULT, 
-
 
27025
          new FieldValueMetaData(TType.I64)));
-
 
27026
    }});
-
 
27027
 
-
 
27028
    static {
-
 
27029
      FieldMetaData.addStructMetaDataMap(getTrackersByAffiliate_args.class, metaDataMap);
-
 
27030
    }
-
 
27031
 
-
 
27032
    public getTrackersByAffiliate_args() {
-
 
27033
    }
-
 
27034
 
-
 
27035
    public getTrackersByAffiliate_args(
-
 
27036
      long affiliateId)
-
 
27037
    {
-
 
27038
      this();
-
 
27039
      this.affiliateId = affiliateId;
-
 
27040
      setAffiliateIdIsSet(true);
-
 
27041
    }
-
 
27042
 
-
 
27043
    /**
-
 
27044
     * Performs a deep copy on <i>other</i>.
-
 
27045
     */
-
 
27046
    public getTrackersByAffiliate_args(getTrackersByAffiliate_args other) {
-
 
27047
      __isset_bit_vector.clear();
-
 
27048
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
27049
      this.affiliateId = other.affiliateId;
-
 
27050
    }
-
 
27051
 
-
 
27052
    public getTrackersByAffiliate_args deepCopy() {
-
 
27053
      return new getTrackersByAffiliate_args(this);
-
 
27054
    }
-
 
27055
 
-
 
27056
    @Deprecated
-
 
27057
    public getTrackersByAffiliate_args clone() {
-
 
27058
      return new getTrackersByAffiliate_args(this);
-
 
27059
    }
-
 
27060
 
-
 
27061
    public long getAffiliateId() {
-
 
27062
      return this.affiliateId;
-
 
27063
    }
-
 
27064
 
-
 
27065
    public getTrackersByAffiliate_args setAffiliateId(long affiliateId) {
-
 
27066
      this.affiliateId = affiliateId;
23799
        sb.append(this.status);
27067
      setAffiliateIdIsSet(true);
-
 
27068
      return this;
-
 
27069
    }
-
 
27070
 
-
 
27071
    public void unsetAffiliateId() {
-
 
27072
      __isset_bit_vector.clear(__AFFILIATEID_ISSET_ID);
-
 
27073
    }
-
 
27074
 
-
 
27075
    /** Returns true if field affiliateId is set (has been asigned a value) and false otherwise */
-
 
27076
    public boolean isSetAffiliateId() {
-
 
27077
      return __isset_bit_vector.get(__AFFILIATEID_ISSET_ID);
-
 
27078
    }
-
 
27079
 
-
 
27080
    public void setAffiliateIdIsSet(boolean value) {
-
 
27081
      __isset_bit_vector.set(__AFFILIATEID_ISSET_ID, value);
-
 
27082
    }
-
 
27083
 
-
 
27084
    public void setFieldValue(_Fields field, Object value) {
-
 
27085
      switch (field) {
-
 
27086
      case AFFILIATE_ID:
23800
        if (status_name != null) {
27087
        if (value == null) {
-
 
27088
          unsetAffiliateId();
-
 
27089
        } else {
-
 
27090
          setAffiliateId((Long)value);
-
 
27091
        }
-
 
27092
        break;
-
 
27093
 
-
 
27094
      }
-
 
27095
    }
-
 
27096
 
-
 
27097
    public void setFieldValue(int fieldID, Object value) {
-
 
27098
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
27099
    }
-
 
27100
 
-
 
27101
    public Object getFieldValue(_Fields field) {
-
 
27102
      switch (field) {
-
 
27103
      case AFFILIATE_ID:
-
 
27104
        return new Long(getAffiliateId());
-
 
27105
 
-
 
27106
      }
-
 
27107
      throw new IllegalStateException();
-
 
27108
    }
-
 
27109
 
-
 
27110
    public Object getFieldValue(int fieldId) {
-
 
27111
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
27112
    }
-
 
27113
 
-
 
27114
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
27115
    public boolean isSet(_Fields field) {
-
 
27116
      switch (field) {
-
 
27117
      case AFFILIATE_ID:
-
 
27118
        return isSetAffiliateId();
-
 
27119
      }
-
 
27120
      throw new IllegalStateException();
-
 
27121
    }
-
 
27122
 
-
 
27123
    public boolean isSet(int fieldID) {
-
 
27124
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
27125
    }
-
 
27126
 
-
 
27127
    @Override
-
 
27128
    public boolean equals(Object that) {
-
 
27129
      if (that == null)
-
 
27130
        return false;
-
 
27131
      if (that instanceof getTrackersByAffiliate_args)
-
 
27132
        return this.equals((getTrackersByAffiliate_args)that);
-
 
27133
      return false;
-
 
27134
    }
-
 
27135
 
-
 
27136
    public boolean equals(getTrackersByAffiliate_args that) {
-
 
27137
      if (that == null)
-
 
27138
        return false;
-
 
27139
 
-
 
27140
      boolean this_present_affiliateId = true;
-
 
27141
      boolean that_present_affiliateId = true;
-
 
27142
      if (this_present_affiliateId || that_present_affiliateId) {
-
 
27143
        if (!(this_present_affiliateId && that_present_affiliateId))
-
 
27144
          return false;
-
 
27145
        if (this.affiliateId != that.affiliateId)
-
 
27146
          return false;
-
 
27147
      }
-
 
27148
 
-
 
27149
      return true;
-
 
27150
    }
-
 
27151
 
-
 
27152
    @Override
-
 
27153
    public int hashCode() {
-
 
27154
      return 0;
-
 
27155
    }
-
 
27156
 
-
 
27157
    public int compareTo(getTrackersByAffiliate_args other) {
-
 
27158
      if (!getClass().equals(other.getClass())) {
-
 
27159
        return getClass().getName().compareTo(other.getClass().getName());
-
 
27160
      }
-
 
27161
 
-
 
27162
      int lastComparison = 0;
-
 
27163
      getTrackersByAffiliate_args typedOther = (getTrackersByAffiliate_args)other;
-
 
27164
 
-
 
27165
      lastComparison = Boolean.valueOf(isSetAffiliateId()).compareTo(isSetAffiliateId());
-
 
27166
      if (lastComparison != 0) {
-
 
27167
        return lastComparison;
-
 
27168
      }
-
 
27169
      lastComparison = TBaseHelper.compareTo(affiliateId, typedOther.affiliateId);
-
 
27170
      if (lastComparison != 0) {
-
 
27171
        return lastComparison;
-
 
27172
      }
-
 
27173
      return 0;
-
 
27174
    }
-
 
27175
 
-
 
27176
    public void read(TProtocol iprot) throws TException {
-
 
27177
      TField field;
-
 
27178
      iprot.readStructBegin();
-
 
27179
      while (true)
-
 
27180
      {
-
 
27181
        field = iprot.readFieldBegin();
-
 
27182
        if (field.type == TType.STOP) { 
-
 
27183
          break;
-
 
27184
        }
-
 
27185
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
27186
        if (fieldId == null) {
-
 
27187
          TProtocolUtil.skip(iprot, field.type);
-
 
27188
        } else {
-
 
27189
          switch (fieldId) {
-
 
27190
            case AFFILIATE_ID:
-
 
27191
              if (field.type == TType.I64) {
-
 
27192
                this.affiliateId = iprot.readI64();
-
 
27193
                setAffiliateIdIsSet(true);
-
 
27194
              } else { 
-
 
27195
                TProtocolUtil.skip(iprot, field.type);
-
 
27196
              }
-
 
27197
              break;
-
 
27198
          }
23801
          sb.append(")");
27199
          iprot.readFieldEnd();
23802
        }
27200
        }
23803
      }
27201
      }
-
 
27202
      iprot.readStructEnd();
-
 
27203
      validate();
-
 
27204
    }
-
 
27205
 
-
 
27206
    public void write(TProtocol oprot) throws TException {
-
 
27207
      validate();
-
 
27208
 
-
 
27209
      oprot.writeStructBegin(STRUCT_DESC);
-
 
27210
      oprot.writeFieldBegin(AFFILIATE_ID_FIELD_DESC);
-
 
27211
      oprot.writeI64(this.affiliateId);
-
 
27212
      oprot.writeFieldEnd();
-
 
27213
      oprot.writeFieldStop();
-
 
27214
      oprot.writeStructEnd();
-
 
27215
    }
-
 
27216
 
-
 
27217
    @Override
-
 
27218
    public String toString() {
-
 
27219
      StringBuilder sb = new StringBuilder("getTrackersByAffiliate_args(");
-
 
27220
      boolean first = true;
-
 
27221
 
-
 
27222
      sb.append("affiliateId:");
-
 
27223
      sb.append(this.affiliateId);
23804
      first = false;
27224
      first = false;
23805
      sb.append(")");
27225
      sb.append(")");
23806
      return sb.toString();
27226
      return sb.toString();
23807
    }
27227
    }
23808
 
27228
 
Line 23810... Line 27230...
23810
      // check for required fields
27230
      // check for required fields
23811
    }
27231
    }
23812
 
27232
 
23813
  }
27233
  }
23814
 
27234
 
23815
  public static class getCartsByTime_result implements TBase<getCartsByTime_result._Fields>, java.io.Serializable, Cloneable, Comparable<getCartsByTime_result>   {
27235
  public static class getTrackersByAffiliate_result implements TBase<getTrackersByAffiliate_result._Fields>, java.io.Serializable, Cloneable, Comparable<getTrackersByAffiliate_result>   {
23816
    private static final TStruct STRUCT_DESC = new TStruct("getCartsByTime_result");
27236
    private static final TStruct STRUCT_DESC = new TStruct("getTrackersByAffiliate_result");
23817
 
27237
 
23818
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
27238
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
23819
    private static final TField SCX_FIELD_DESC = new TField("scx", TType.STRUCT, (short)1);
27239
    private static final TField UTX_FIELD_DESC = new TField("utx", TType.STRUCT, (short)1);
23820
 
27240
 
23821
    private List<Cart> success;
27241
    private List<Tracker> success;
23822
    private ShoppingCartException scx;
27242
    private UserTrackerException utx;
23823
 
27243
 
23824
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27244
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23825
    public enum _Fields implements TFieldIdEnum {
27245
    public enum _Fields implements TFieldIdEnum {
23826
      SUCCESS((short)0, "success"),
27246
      SUCCESS((short)0, "success"),
23827
      SCX((short)1, "scx");
27247
      UTX((short)1, "utx");
23828
 
27248
 
23829
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
27249
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
23830
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27250
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23831
 
27251
 
23832
      static {
27252
      static {
Line 23880... Line 27300...
23880
    // isset id assignments
27300
    // isset id assignments
23881
 
27301
 
23882
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
27302
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
23883
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
27303
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
23884
          new ListMetaData(TType.LIST, 
27304
          new ListMetaData(TType.LIST, 
23885
              new StructMetaData(TType.STRUCT, Cart.class))));
27305
              new StructMetaData(TType.STRUCT, Tracker.class))));
23886
      put(_Fields.SCX, new FieldMetaData("scx", TFieldRequirementType.DEFAULT, 
27306
      put(_Fields.UTX, new FieldMetaData("utx", TFieldRequirementType.DEFAULT, 
23887
          new FieldValueMetaData(TType.STRUCT)));
27307
          new FieldValueMetaData(TType.STRUCT)));
23888
    }});
27308
    }});
23889
 
27309
 
23890
    static {
27310
    static {
23891
      FieldMetaData.addStructMetaDataMap(getCartsByTime_result.class, metaDataMap);
27311
      FieldMetaData.addStructMetaDataMap(getTrackersByAffiliate_result.class, metaDataMap);
23892
    }
27312
    }
23893
 
27313
 
23894
    public getCartsByTime_result() {
27314
    public getTrackersByAffiliate_result() {
23895
    }
27315
    }
23896
 
27316
 
23897
    public getCartsByTime_result(
27317
    public getTrackersByAffiliate_result(
23898
      List<Cart> success,
27318
      List<Tracker> success,
23899
      ShoppingCartException scx)
27319
      UserTrackerException utx)
23900
    {
27320
    {
23901
      this();
27321
      this();
23902
      this.success = success;
27322
      this.success = success;
23903
      this.scx = scx;
27323
      this.utx = utx;
23904
    }
27324
    }
23905
 
27325
 
23906
    /**
27326
    /**
23907
     * Performs a deep copy on <i>other</i>.
27327
     * Performs a deep copy on <i>other</i>.
23908
     */
27328
     */
23909
    public getCartsByTime_result(getCartsByTime_result other) {
27329
    public getTrackersByAffiliate_result(getTrackersByAffiliate_result other) {
23910
      if (other.isSetSuccess()) {
27330
      if (other.isSetSuccess()) {
23911
        List<Cart> __this__success = new ArrayList<Cart>();
27331
        List<Tracker> __this__success = new ArrayList<Tracker>();
23912
        for (Cart other_element : other.success) {
27332
        for (Tracker other_element : other.success) {
23913
          __this__success.add(new Cart(other_element));
27333
          __this__success.add(new Tracker(other_element));
23914
        }
27334
        }
23915
        this.success = __this__success;
27335
        this.success = __this__success;
23916
      }
27336
      }
23917
      if (other.isSetScx()) {
27337
      if (other.isSetUtx()) {
23918
        this.scx = new ShoppingCartException(other.scx);
27338
        this.utx = new UserTrackerException(other.utx);
23919
      }
27339
      }
23920
    }
27340
    }
23921
 
27341
 
23922
    public getCartsByTime_result deepCopy() {
27342
    public getTrackersByAffiliate_result deepCopy() {
23923
      return new getCartsByTime_result(this);
27343
      return new getTrackersByAffiliate_result(this);
23924
    }
27344
    }
23925
 
27345
 
23926
    @Deprecated
27346
    @Deprecated
23927
    public getCartsByTime_result clone() {
27347
    public getTrackersByAffiliate_result clone() {
23928
      return new getCartsByTime_result(this);
27348
      return new getTrackersByAffiliate_result(this);
23929
    }
27349
    }
23930
 
27350
 
23931
    public int getSuccessSize() {
27351
    public int getSuccessSize() {
23932
      return (this.success == null) ? 0 : this.success.size();
27352
      return (this.success == null) ? 0 : this.success.size();
23933
    }
27353
    }
23934
 
27354
 
23935
    public java.util.Iterator<Cart> getSuccessIterator() {
27355
    public java.util.Iterator<Tracker> getSuccessIterator() {
23936
      return (this.success == null) ? null : this.success.iterator();
27356
      return (this.success == null) ? null : this.success.iterator();
23937
    }
27357
    }
23938
 
27358
 
23939
    public void addToSuccess(Cart elem) {
27359
    public void addToSuccess(Tracker elem) {
23940
      if (this.success == null) {
27360
      if (this.success == null) {
23941
        this.success = new ArrayList<Cart>();
27361
        this.success = new ArrayList<Tracker>();
23942
      }
27362
      }
23943
      this.success.add(elem);
27363
      this.success.add(elem);
23944
    }
27364
    }
23945
 
27365
 
23946
    public List<Cart> getSuccess() {
27366
    public List<Tracker> getSuccess() {
23947
      return this.success;
27367
      return this.success;
23948
    }
27368
    }
23949
 
27369
 
23950
    public getCartsByTime_result setSuccess(List<Cart> success) {
27370
    public getTrackersByAffiliate_result setSuccess(List<Tracker> success) {
23951
      this.success = success;
27371
      this.success = success;
23952
      return this;
27372
      return this;
23953
    }
27373
    }
23954
 
27374
 
23955
    public void unsetSuccess() {
27375
    public void unsetSuccess() {
Line 23965... Line 27385...
23965
      if (!value) {
27385
      if (!value) {
23966
        this.success = null;
27386
        this.success = null;
23967
      }
27387
      }
23968
    }
27388
    }
23969
 
27389
 
23970
    public ShoppingCartException getScx() {
27390
    public UserTrackerException getUtx() {
23971
      return this.scx;
27391
      return this.utx;
23972
    }
27392
    }
23973
 
27393
 
23974
    public getCartsByTime_result setScx(ShoppingCartException scx) {
27394
    public getTrackersByAffiliate_result setUtx(UserTrackerException utx) {
23975
      this.scx = scx;
27395
      this.utx = utx;
23976
      return this;
27396
      return this;
23977
    }
27397
    }
23978
 
27398
 
23979
    public void unsetScx() {
27399
    public void unsetUtx() {
23980
      this.scx = null;
27400
      this.utx = null;
23981
    }
27401
    }
23982
 
27402
 
23983
    /** Returns true if field scx is set (has been asigned a value) and false otherwise */
27403
    /** Returns true if field utx is set (has been asigned a value) and false otherwise */
23984
    public boolean isSetScx() {
27404
    public boolean isSetUtx() {
23985
      return this.scx != null;
27405
      return this.utx != null;
23986
    }
27406
    }
23987
 
27407
 
23988
    public void setScxIsSet(boolean value) {
27408
    public void setUtxIsSet(boolean value) {
23989
      if (!value) {
27409
      if (!value) {
23990
        this.scx = null;
27410
        this.utx = null;
23991
      }
27411
      }
23992
    }
27412
    }
23993
 
27413
 
23994
    public void setFieldValue(_Fields field, Object value) {
27414
    public void setFieldValue(_Fields field, Object value) {
23995
      switch (field) {
27415
      switch (field) {
23996
      case SUCCESS:
27416
      case SUCCESS:
23997
        if (value == null) {
27417
        if (value == null) {
23998
          unsetSuccess();
27418
          unsetSuccess();
23999
        } else {
27419
        } else {
24000
          setSuccess((List<Cart>)value);
27420
          setSuccess((List<Tracker>)value);
24001
        }
27421
        }
24002
        break;
27422
        break;
24003
 
27423
 
24004
      case SCX:
27424
      case UTX:
24005
        if (value == null) {
27425
        if (value == null) {
24006
          unsetScx();
27426
          unsetUtx();
24007
        } else {
27427
        } else {
24008
          setScx((ShoppingCartException)value);
27428
          setUtx((UserTrackerException)value);
24009
        }
27429
        }
24010
        break;
27430
        break;
24011
 
27431
 
24012
      }
27432
      }
24013
    }
27433
    }
Line 24019... Line 27439...
24019
    public Object getFieldValue(_Fields field) {
27439
    public Object getFieldValue(_Fields field) {
24020
      switch (field) {
27440
      switch (field) {
24021
      case SUCCESS:
27441
      case SUCCESS:
24022
        return getSuccess();
27442
        return getSuccess();
24023
 
27443
 
24024
      case SCX:
27444
      case UTX:
24025
        return getScx();
27445
        return getUtx();
24026
 
27446
 
24027
      }
27447
      }
24028
      throw new IllegalStateException();
27448
      throw new IllegalStateException();
24029
    }
27449
    }
24030
 
27450
 
Line 24035... Line 27455...
24035
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
27455
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
24036
    public boolean isSet(_Fields field) {
27456
    public boolean isSet(_Fields field) {
24037
      switch (field) {
27457
      switch (field) {
24038
      case SUCCESS:
27458
      case SUCCESS:
24039
        return isSetSuccess();
27459
        return isSetSuccess();
24040
      case SCX:
27460
      case UTX:
24041
        return isSetScx();
27461
        return isSetUtx();
24042
      }
27462
      }
24043
      throw new IllegalStateException();
27463
      throw new IllegalStateException();
24044
    }
27464
    }
24045
 
27465
 
24046
    public boolean isSet(int fieldID) {
27466
    public boolean isSet(int fieldID) {
Line 24049... Line 27469...
24049
 
27469
 
24050
    @Override
27470
    @Override
24051
    public boolean equals(Object that) {
27471
    public boolean equals(Object that) {
24052
      if (that == null)
27472
      if (that == null)
24053
        return false;
27473
        return false;
24054
      if (that instanceof getCartsByTime_result)
27474
      if (that instanceof getTrackersByAffiliate_result)
24055
        return this.equals((getCartsByTime_result)that);
27475
        return this.equals((getTrackersByAffiliate_result)that);
24056
      return false;
27476
      return false;
24057
    }
27477
    }
24058
 
27478
 
24059
    public boolean equals(getCartsByTime_result that) {
27479
    public boolean equals(getTrackersByAffiliate_result that) {
24060
      if (that == null)
27480
      if (that == null)
24061
        return false;
27481
        return false;
24062
 
27482
 
24063
      boolean this_present_success = true && this.isSetSuccess();
27483
      boolean this_present_success = true && this.isSetSuccess();
24064
      boolean that_present_success = true && that.isSetSuccess();
27484
      boolean that_present_success = true && that.isSetSuccess();
Line 24067... Line 27487...
24067
          return false;
27487
          return false;
24068
        if (!this.success.equals(that.success))
27488
        if (!this.success.equals(that.success))
24069
          return false;
27489
          return false;
24070
      }
27490
      }
24071
 
27491
 
24072
      boolean this_present_scx = true && this.isSetScx();
27492
      boolean this_present_utx = true && this.isSetUtx();
24073
      boolean that_present_scx = true && that.isSetScx();
27493
      boolean that_present_utx = true && that.isSetUtx();
24074
      if (this_present_scx || that_present_scx) {
27494
      if (this_present_utx || that_present_utx) {
24075
        if (!(this_present_scx && that_present_scx))
27495
        if (!(this_present_utx && that_present_utx))
24076
          return false;
27496
          return false;
24077
        if (!this.scx.equals(that.scx))
27497
        if (!this.utx.equals(that.utx))
24078
          return false;
27498
          return false;
24079
      }
27499
      }
24080
 
27500
 
24081
      return true;
27501
      return true;
24082
    }
27502
    }
Line 24084... Line 27504...
24084
    @Override
27504
    @Override
24085
    public int hashCode() {
27505
    public int hashCode() {
24086
      return 0;
27506
      return 0;
24087
    }
27507
    }
24088
 
27508
 
24089
    public int compareTo(getCartsByTime_result other) {
27509
    public int compareTo(getTrackersByAffiliate_result other) {
24090
      if (!getClass().equals(other.getClass())) {
27510
      if (!getClass().equals(other.getClass())) {
24091
        return getClass().getName().compareTo(other.getClass().getName());
27511
        return getClass().getName().compareTo(other.getClass().getName());
24092
      }
27512
      }
24093
 
27513
 
24094
      int lastComparison = 0;
27514
      int lastComparison = 0;
24095
      getCartsByTime_result typedOther = (getCartsByTime_result)other;
27515
      getTrackersByAffiliate_result typedOther = (getTrackersByAffiliate_result)other;
24096
 
27516
 
24097
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
27517
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
24098
      if (lastComparison != 0) {
27518
      if (lastComparison != 0) {
24099
        return lastComparison;
27519
        return lastComparison;
24100
      }
27520
      }
24101
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
27521
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
24102
      if (lastComparison != 0) {
27522
      if (lastComparison != 0) {
24103
        return lastComparison;
27523
        return lastComparison;
24104
      }
27524
      }
24105
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(isSetScx());
27525
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(isSetUtx());
24106
      if (lastComparison != 0) {
27526
      if (lastComparison != 0) {
24107
        return lastComparison;
27527
        return lastComparison;
24108
      }
27528
      }
24109
      lastComparison = TBaseHelper.compareTo(scx, typedOther.scx);
27529
      lastComparison = TBaseHelper.compareTo(utx, typedOther.utx);
24110
      if (lastComparison != 0) {
27530
      if (lastComparison != 0) {
24111
        return lastComparison;
27531
        return lastComparison;
24112
      }
27532
      }
24113
      return 0;
27533
      return 0;
24114
    }
27534
    }
Line 24128... Line 27548...
24128
        } else {
27548
        } else {
24129
          switch (fieldId) {
27549
          switch (fieldId) {
24130
            case SUCCESS:
27550
            case SUCCESS:
24131
              if (field.type == TType.LIST) {
27551
              if (field.type == TType.LIST) {
24132
                {
27552
                {
24133
                  TList _list36 = iprot.readListBegin();
27553
                  TList _list32 = iprot.readListBegin();
24134
                  this.success = new ArrayList<Cart>(_list36.size);
27554
                  this.success = new ArrayList<Tracker>(_list32.size);
24135
                  for (int _i37 = 0; _i37 < _list36.size; ++_i37)
27555
                  for (int _i33 = 0; _i33 < _list32.size; ++_i33)
24136
                  {
27556
                  {
24137
                    Cart _elem38;
27557
                    Tracker _elem34;
24138
                    _elem38 = new Cart();
27558
                    _elem34 = new Tracker();
24139
                    _elem38.read(iprot);
27559
                    _elem34.read(iprot);
24140
                    this.success.add(_elem38);
27560
                    this.success.add(_elem34);
24141
                  }
27561
                  }
24142
                  iprot.readListEnd();
27562
                  iprot.readListEnd();
24143
                }
27563
                }
24144
              } else { 
27564
              } else { 
24145
                TProtocolUtil.skip(iprot, field.type);
27565
                TProtocolUtil.skip(iprot, field.type);
24146
              }
27566
              }
24147
              break;
27567
              break;
24148
            case SCX:
27568
            case UTX:
24149
              if (field.type == TType.STRUCT) {
27569
              if (field.type == TType.STRUCT) {
24150
                this.scx = new ShoppingCartException();
27570
                this.utx = new UserTrackerException();
24151
                this.scx.read(iprot);
27571
                this.utx.read(iprot);
24152
              } else { 
27572
              } else { 
24153
                TProtocolUtil.skip(iprot, field.type);
27573
                TProtocolUtil.skip(iprot, field.type);
24154
              }
27574
              }
24155
              break;
27575
              break;
24156
          }
27576
          }
Line 24166... Line 27586...
24166
 
27586
 
24167
      if (this.isSetSuccess()) {
27587
      if (this.isSetSuccess()) {
24168
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
27588
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24169
        {
27589
        {
24170
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
27590
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
24171
          for (Cart _iter39 : this.success)
27591
          for (Tracker _iter35 : this.success)
24172
          {
27592
          {
-
 
27593
            _iter35.write(oprot);
-
 
27594
          }
-
 
27595
          oprot.writeListEnd();
-
 
27596
        }
-
 
27597
        oprot.writeFieldEnd();
-
 
27598
      } else if (this.isSetUtx()) {
-
 
27599
        oprot.writeFieldBegin(UTX_FIELD_DESC);
-
 
27600
        this.utx.write(oprot);
-
 
27601
        oprot.writeFieldEnd();
-
 
27602
      }
-
 
27603
      oprot.writeFieldStop();
-
 
27604
      oprot.writeStructEnd();
-
 
27605
    }
-
 
27606
 
-
 
27607
    @Override
-
 
27608
    public String toString() {
-
 
27609
      StringBuilder sb = new StringBuilder("getTrackersByAffiliate_result(");
-
 
27610
      boolean first = true;
-
 
27611
 
-
 
27612
      sb.append("success:");
-
 
27613
      if (this.success == null) {
-
 
27614
        sb.append("null");
-
 
27615
      } else {
-
 
27616
        sb.append(this.success);
-
 
27617
      }
-
 
27618
      first = false;
-
 
27619
      if (!first) sb.append(", ");
-
 
27620
      sb.append("utx:");
-
 
27621
      if (this.utx == null) {
-
 
27622
        sb.append("null");
-
 
27623
      } else {
-
 
27624
        sb.append(this.utx);
-
 
27625
      }
-
 
27626
      first = false;
-
 
27627
      sb.append(")");
-
 
27628
      return sb.toString();
-
 
27629
    }
-
 
27630
 
-
 
27631
    public void validate() throws TException {
-
 
27632
      // check for required fields
-
 
27633
    }
-
 
27634
 
-
 
27635
  }
-
 
27636
 
-
 
27637
  public static class addTrackLog_args implements TBase<addTrackLog_args._Fields>, java.io.Serializable, Cloneable, Comparable<addTrackLog_args>   {
-
 
27638
    private static final TStruct STRUCT_DESC = new TStruct("addTrackLog_args");
-
 
27639
 
-
 
27640
    private static final TField TRACKER_ID_FIELD_DESC = new TField("trackerId", TType.I64, (short)1);
-
 
27641
    private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)2);
-
 
27642
    private static final TField EVENT_FIELD_DESC = new TField("event", TType.STRING, (short)3);
-
 
27643
    private static final TField URL_FIELD_DESC = new TField("url", TType.STRING, (short)4);
-
 
27644
    private static final TField DATA_FIELD_DESC = new TField("data", TType.STRING, (short)5);
-
 
27645
 
-
 
27646
    private long trackerId;
-
 
27647
    private long userId;
-
 
27648
    private String event;
-
 
27649
    private String url;
-
 
27650
    private String data;
-
 
27651
 
-
 
27652
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
27653
    public enum _Fields implements TFieldIdEnum {
-
 
27654
      TRACKER_ID((short)1, "trackerId"),
-
 
27655
      USER_ID((short)2, "userId"),
-
 
27656
      EVENT((short)3, "event"),
-
 
27657
      URL((short)4, "url"),
-
 
27658
      DATA((short)5, "data");
-
 
27659
 
-
 
27660
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
27661
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
27662
 
-
 
27663
      static {
-
 
27664
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
27665
          byId.put((int)field._thriftId, field);
-
 
27666
          byName.put(field.getFieldName(), field);
-
 
27667
        }
-
 
27668
      }
-
 
27669
 
-
 
27670
      /**
-
 
27671
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
27672
       */
-
 
27673
      public static _Fields findByThriftId(int fieldId) {
-
 
27674
        return byId.get(fieldId);
-
 
27675
      }
-
 
27676
 
-
 
27677
      /**
-
 
27678
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
27679
       * if it is not found.
-
 
27680
       */
-
 
27681
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
27682
        _Fields fields = findByThriftId(fieldId);
-
 
27683
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
27684
        return fields;
-
 
27685
      }
-
 
27686
 
-
 
27687
      /**
-
 
27688
       * Find the _Fields constant that matches name, or null if its not found.
-
 
27689
       */
-
 
27690
      public static _Fields findByName(String name) {
-
 
27691
        return byName.get(name);
-
 
27692
      }
-
 
27693
 
-
 
27694
      private final short _thriftId;
-
 
27695
      private final String _fieldName;
-
 
27696
 
-
 
27697
      _Fields(short thriftId, String fieldName) {
-
 
27698
        _thriftId = thriftId;
-
 
27699
        _fieldName = fieldName;
-
 
27700
      }
-
 
27701
 
-
 
27702
      public short getThriftFieldId() {
-
 
27703
        return _thriftId;
-
 
27704
      }
-
 
27705
 
-
 
27706
      public String getFieldName() {
-
 
27707
        return _fieldName;
-
 
27708
      }
-
 
27709
    }
-
 
27710
 
-
 
27711
    // isset id assignments
-
 
27712
    private static final int __TRACKERID_ISSET_ID = 0;
-
 
27713
    private static final int __USERID_ISSET_ID = 1;
-
 
27714
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
27715
 
-
 
27716
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
27717
      put(_Fields.TRACKER_ID, new FieldMetaData("trackerId", TFieldRequirementType.DEFAULT, 
-
 
27718
          new FieldValueMetaData(TType.I64)));
-
 
27719
      put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT, 
-
 
27720
          new FieldValueMetaData(TType.I64)));
-
 
27721
      put(_Fields.EVENT, new FieldMetaData("event", TFieldRequirementType.DEFAULT, 
-
 
27722
          new FieldValueMetaData(TType.STRING)));
-
 
27723
      put(_Fields.URL, new FieldMetaData("url", TFieldRequirementType.DEFAULT, 
-
 
27724
          new FieldValueMetaData(TType.STRING)));
-
 
27725
      put(_Fields.DATA, new FieldMetaData("data", TFieldRequirementType.DEFAULT, 
-
 
27726
          new FieldValueMetaData(TType.STRING)));
-
 
27727
    }});
-
 
27728
 
-
 
27729
    static {
-
 
27730
      FieldMetaData.addStructMetaDataMap(addTrackLog_args.class, metaDataMap);
-
 
27731
    }
-
 
27732
 
-
 
27733
    public addTrackLog_args() {
-
 
27734
    }
-
 
27735
 
-
 
27736
    public addTrackLog_args(
-
 
27737
      long trackerId,
-
 
27738
      long userId,
-
 
27739
      String event,
-
 
27740
      String url,
-
 
27741
      String data)
-
 
27742
    {
-
 
27743
      this();
-
 
27744
      this.trackerId = trackerId;
-
 
27745
      setTrackerIdIsSet(true);
-
 
27746
      this.userId = userId;
-
 
27747
      setUserIdIsSet(true);
-
 
27748
      this.event = event;
-
 
27749
      this.url = url;
-
 
27750
      this.data = data;
-
 
27751
    }
-
 
27752
 
-
 
27753
    /**
-
 
27754
     * Performs a deep copy on <i>other</i>.
-
 
27755
     */
-
 
27756
    public addTrackLog_args(addTrackLog_args other) {
-
 
27757
      __isset_bit_vector.clear();
-
 
27758
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
27759
      this.trackerId = other.trackerId;
-
 
27760
      this.userId = other.userId;
-
 
27761
      if (other.isSetEvent()) {
-
 
27762
        this.event = other.event;
-
 
27763
      }
-
 
27764
      if (other.isSetUrl()) {
-
 
27765
        this.url = other.url;
-
 
27766
      }
-
 
27767
      if (other.isSetData()) {
-
 
27768
        this.data = other.data;
-
 
27769
      }
-
 
27770
    }
-
 
27771
 
-
 
27772
    public addTrackLog_args deepCopy() {
-
 
27773
      return new addTrackLog_args(this);
-
 
27774
    }
-
 
27775
 
-
 
27776
    @Deprecated
-
 
27777
    public addTrackLog_args clone() {
-
 
27778
      return new addTrackLog_args(this);
-
 
27779
    }
-
 
27780
 
-
 
27781
    public long getTrackerId() {
-
 
27782
      return this.trackerId;
-
 
27783
    }
-
 
27784
 
-
 
27785
    public addTrackLog_args setTrackerId(long trackerId) {
-
 
27786
      this.trackerId = trackerId;
-
 
27787
      setTrackerIdIsSet(true);
-
 
27788
      return this;
-
 
27789
    }
-
 
27790
 
-
 
27791
    public void unsetTrackerId() {
-
 
27792
      __isset_bit_vector.clear(__TRACKERID_ISSET_ID);
-
 
27793
    }
-
 
27794
 
-
 
27795
    /** Returns true if field trackerId is set (has been asigned a value) and false otherwise */
-
 
27796
    public boolean isSetTrackerId() {
-
 
27797
      return __isset_bit_vector.get(__TRACKERID_ISSET_ID);
-
 
27798
    }
-
 
27799
 
-
 
27800
    public void setTrackerIdIsSet(boolean value) {
-
 
27801
      __isset_bit_vector.set(__TRACKERID_ISSET_ID, value);
-
 
27802
    }
-
 
27803
 
-
 
27804
    public long getUserId() {
-
 
27805
      return this.userId;
-
 
27806
    }
-
 
27807
 
-
 
27808
    public addTrackLog_args setUserId(long userId) {
-
 
27809
      this.userId = userId;
-
 
27810
      setUserIdIsSet(true);
-
 
27811
      return this;
-
 
27812
    }
-
 
27813
 
-
 
27814
    public void unsetUserId() {
-
 
27815
      __isset_bit_vector.clear(__USERID_ISSET_ID);
-
 
27816
    }
-
 
27817
 
-
 
27818
    /** Returns true if field userId is set (has been asigned a value) and false otherwise */
-
 
27819
    public boolean isSetUserId() {
-
 
27820
      return __isset_bit_vector.get(__USERID_ISSET_ID);
-
 
27821
    }
-
 
27822
 
-
 
27823
    public void setUserIdIsSet(boolean value) {
-
 
27824
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
-
 
27825
    }
-
 
27826
 
-
 
27827
    public String getEvent() {
-
 
27828
      return this.event;
-
 
27829
    }
-
 
27830
 
-
 
27831
    public addTrackLog_args setEvent(String event) {
-
 
27832
      this.event = event;
-
 
27833
      return this;
-
 
27834
    }
-
 
27835
 
-
 
27836
    public void unsetEvent() {
-
 
27837
      this.event = null;
-
 
27838
    }
-
 
27839
 
-
 
27840
    /** Returns true if field event is set (has been asigned a value) and false otherwise */
-
 
27841
    public boolean isSetEvent() {
-
 
27842
      return this.event != null;
-
 
27843
    }
-
 
27844
 
-
 
27845
    public void setEventIsSet(boolean value) {
-
 
27846
      if (!value) {
-
 
27847
        this.event = null;
-
 
27848
      }
-
 
27849
    }
-
 
27850
 
-
 
27851
    public String getUrl() {
-
 
27852
      return this.url;
-
 
27853
    }
-
 
27854
 
-
 
27855
    public addTrackLog_args setUrl(String url) {
-
 
27856
      this.url = url;
-
 
27857
      return this;
-
 
27858
    }
-
 
27859
 
-
 
27860
    public void unsetUrl() {
-
 
27861
      this.url = null;
-
 
27862
    }
-
 
27863
 
-
 
27864
    /** Returns true if field url is set (has been asigned a value) and false otherwise */
-
 
27865
    public boolean isSetUrl() {
-
 
27866
      return this.url != null;
-
 
27867
    }
-
 
27868
 
-
 
27869
    public void setUrlIsSet(boolean value) {
-
 
27870
      if (!value) {
-
 
27871
        this.url = null;
-
 
27872
      }
-
 
27873
    }
-
 
27874
 
-
 
27875
    public String getData() {
-
 
27876
      return this.data;
-
 
27877
    }
-
 
27878
 
-
 
27879
    public addTrackLog_args setData(String data) {
-
 
27880
      this.data = data;
-
 
27881
      return this;
-
 
27882
    }
-
 
27883
 
-
 
27884
    public void unsetData() {
-
 
27885
      this.data = null;
-
 
27886
    }
-
 
27887
 
-
 
27888
    /** Returns true if field data is set (has been asigned a value) and false otherwise */
-
 
27889
    public boolean isSetData() {
-
 
27890
      return this.data != null;
-
 
27891
    }
-
 
27892
 
-
 
27893
    public void setDataIsSet(boolean value) {
-
 
27894
      if (!value) {
-
 
27895
        this.data = null;
-
 
27896
      }
-
 
27897
    }
-
 
27898
 
-
 
27899
    public void setFieldValue(_Fields field, Object value) {
-
 
27900
      switch (field) {
-
 
27901
      case TRACKER_ID:
-
 
27902
        if (value == null) {
-
 
27903
          unsetTrackerId();
-
 
27904
        } else {
-
 
27905
          setTrackerId((Long)value);
-
 
27906
        }
-
 
27907
        break;
-
 
27908
 
-
 
27909
      case USER_ID:
-
 
27910
        if (value == null) {
-
 
27911
          unsetUserId();
-
 
27912
        } else {
-
 
27913
          setUserId((Long)value);
-
 
27914
        }
-
 
27915
        break;
-
 
27916
 
-
 
27917
      case EVENT:
-
 
27918
        if (value == null) {
-
 
27919
          unsetEvent();
-
 
27920
        } else {
-
 
27921
          setEvent((String)value);
-
 
27922
        }
-
 
27923
        break;
-
 
27924
 
-
 
27925
      case URL:
-
 
27926
        if (value == null) {
-
 
27927
          unsetUrl();
-
 
27928
        } else {
-
 
27929
          setUrl((String)value);
-
 
27930
        }
-
 
27931
        break;
-
 
27932
 
-
 
27933
      case DATA:
-
 
27934
        if (value == null) {
-
 
27935
          unsetData();
-
 
27936
        } else {
-
 
27937
          setData((String)value);
-
 
27938
        }
-
 
27939
        break;
-
 
27940
 
-
 
27941
      }
-
 
27942
    }
-
 
27943
 
-
 
27944
    public void setFieldValue(int fieldID, Object value) {
-
 
27945
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
27946
    }
-
 
27947
 
-
 
27948
    public Object getFieldValue(_Fields field) {
-
 
27949
      switch (field) {
-
 
27950
      case TRACKER_ID:
-
 
27951
        return new Long(getTrackerId());
-
 
27952
 
-
 
27953
      case USER_ID:
-
 
27954
        return new Long(getUserId());
-
 
27955
 
-
 
27956
      case EVENT:
-
 
27957
        return getEvent();
-
 
27958
 
-
 
27959
      case URL:
-
 
27960
        return getUrl();
-
 
27961
 
-
 
27962
      case DATA:
-
 
27963
        return getData();
-
 
27964
 
-
 
27965
      }
-
 
27966
      throw new IllegalStateException();
-
 
27967
    }
-
 
27968
 
-
 
27969
    public Object getFieldValue(int fieldId) {
-
 
27970
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
27971
    }
-
 
27972
 
-
 
27973
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
27974
    public boolean isSet(_Fields field) {
-
 
27975
      switch (field) {
-
 
27976
      case TRACKER_ID:
-
 
27977
        return isSetTrackerId();
-
 
27978
      case USER_ID:
-
 
27979
        return isSetUserId();
-
 
27980
      case EVENT:
-
 
27981
        return isSetEvent();
-
 
27982
      case URL:
-
 
27983
        return isSetUrl();
-
 
27984
      case DATA:
-
 
27985
        return isSetData();
-
 
27986
      }
-
 
27987
      throw new IllegalStateException();
-
 
27988
    }
-
 
27989
 
-
 
27990
    public boolean isSet(int fieldID) {
-
 
27991
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
27992
    }
-
 
27993
 
-
 
27994
    @Override
-
 
27995
    public boolean equals(Object that) {
-
 
27996
      if (that == null)
-
 
27997
        return false;
-
 
27998
      if (that instanceof addTrackLog_args)
-
 
27999
        return this.equals((addTrackLog_args)that);
-
 
28000
      return false;
-
 
28001
    }
-
 
28002
 
-
 
28003
    public boolean equals(addTrackLog_args that) {
-
 
28004
      if (that == null)
-
 
28005
        return false;
-
 
28006
 
-
 
28007
      boolean this_present_trackerId = true;
-
 
28008
      boolean that_present_trackerId = true;
-
 
28009
      if (this_present_trackerId || that_present_trackerId) {
-
 
28010
        if (!(this_present_trackerId && that_present_trackerId))
-
 
28011
          return false;
-
 
28012
        if (this.trackerId != that.trackerId)
-
 
28013
          return false;
-
 
28014
      }
-
 
28015
 
-
 
28016
      boolean this_present_userId = true;
-
 
28017
      boolean that_present_userId = true;
-
 
28018
      if (this_present_userId || that_present_userId) {
-
 
28019
        if (!(this_present_userId && that_present_userId))
-
 
28020
          return false;
-
 
28021
        if (this.userId != that.userId)
-
 
28022
          return false;
-
 
28023
      }
-
 
28024
 
-
 
28025
      boolean this_present_event = true && this.isSetEvent();
-
 
28026
      boolean that_present_event = true && that.isSetEvent();
-
 
28027
      if (this_present_event || that_present_event) {
-
 
28028
        if (!(this_present_event && that_present_event))
-
 
28029
          return false;
-
 
28030
        if (!this.event.equals(that.event))
-
 
28031
          return false;
-
 
28032
      }
-
 
28033
 
-
 
28034
      boolean this_present_url = true && this.isSetUrl();
-
 
28035
      boolean that_present_url = true && that.isSetUrl();
-
 
28036
      if (this_present_url || that_present_url) {
-
 
28037
        if (!(this_present_url && that_present_url))
-
 
28038
          return false;
-
 
28039
        if (!this.url.equals(that.url))
-
 
28040
          return false;
-
 
28041
      }
-
 
28042
 
-
 
28043
      boolean this_present_data = true && this.isSetData();
-
 
28044
      boolean that_present_data = true && that.isSetData();
-
 
28045
      if (this_present_data || that_present_data) {
-
 
28046
        if (!(this_present_data && that_present_data))
-
 
28047
          return false;
-
 
28048
        if (!this.data.equals(that.data))
-
 
28049
          return false;
-
 
28050
      }
-
 
28051
 
-
 
28052
      return true;
-
 
28053
    }
-
 
28054
 
-
 
28055
    @Override
-
 
28056
    public int hashCode() {
-
 
28057
      return 0;
-
 
28058
    }
-
 
28059
 
-
 
28060
    public int compareTo(addTrackLog_args other) {
-
 
28061
      if (!getClass().equals(other.getClass())) {
-
 
28062
        return getClass().getName().compareTo(other.getClass().getName());
-
 
28063
      }
-
 
28064
 
-
 
28065
      int lastComparison = 0;
-
 
28066
      addTrackLog_args typedOther = (addTrackLog_args)other;
-
 
28067
 
-
 
28068
      lastComparison = Boolean.valueOf(isSetTrackerId()).compareTo(isSetTrackerId());
-
 
28069
      if (lastComparison != 0) {
-
 
28070
        return lastComparison;
-
 
28071
      }
-
 
28072
      lastComparison = TBaseHelper.compareTo(trackerId, typedOther.trackerId);
-
 
28073
      if (lastComparison != 0) {
-
 
28074
        return lastComparison;
-
 
28075
      }
-
 
28076
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(isSetUserId());
-
 
28077
      if (lastComparison != 0) {
-
 
28078
        return lastComparison;
-
 
28079
      }
-
 
28080
      lastComparison = TBaseHelper.compareTo(userId, typedOther.userId);
-
 
28081
      if (lastComparison != 0) {
-
 
28082
        return lastComparison;
-
 
28083
      }
-
 
28084
      lastComparison = Boolean.valueOf(isSetEvent()).compareTo(isSetEvent());
-
 
28085
      if (lastComparison != 0) {
-
 
28086
        return lastComparison;
-
 
28087
      }
-
 
28088
      lastComparison = TBaseHelper.compareTo(event, typedOther.event);
-
 
28089
      if (lastComparison != 0) {
-
 
28090
        return lastComparison;
-
 
28091
      }
-
 
28092
      lastComparison = Boolean.valueOf(isSetUrl()).compareTo(isSetUrl());
-
 
28093
      if (lastComparison != 0) {
-
 
28094
        return lastComparison;
-
 
28095
      }
-
 
28096
      lastComparison = TBaseHelper.compareTo(url, typedOther.url);
-
 
28097
      if (lastComparison != 0) {
-
 
28098
        return lastComparison;
-
 
28099
      }
-
 
28100
      lastComparison = Boolean.valueOf(isSetData()).compareTo(isSetData());
-
 
28101
      if (lastComparison != 0) {
-
 
28102
        return lastComparison;
-
 
28103
      }
-
 
28104
      lastComparison = TBaseHelper.compareTo(data, typedOther.data);
-
 
28105
      if (lastComparison != 0) {
-
 
28106
        return lastComparison;
-
 
28107
      }
-
 
28108
      return 0;
-
 
28109
    }
-
 
28110
 
-
 
28111
    public void read(TProtocol iprot) throws TException {
-
 
28112
      TField field;
-
 
28113
      iprot.readStructBegin();
-
 
28114
      while (true)
-
 
28115
      {
-
 
28116
        field = iprot.readFieldBegin();
-
 
28117
        if (field.type == TType.STOP) { 
-
 
28118
          break;
-
 
28119
        }
-
 
28120
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
28121
        if (fieldId == null) {
-
 
28122
          TProtocolUtil.skip(iprot, field.type);
-
 
28123
        } else {
-
 
28124
          switch (fieldId) {
-
 
28125
            case TRACKER_ID:
-
 
28126
              if (field.type == TType.I64) {
-
 
28127
                this.trackerId = iprot.readI64();
-
 
28128
                setTrackerIdIsSet(true);
-
 
28129
              } else { 
-
 
28130
                TProtocolUtil.skip(iprot, field.type);
-
 
28131
              }
-
 
28132
              break;
-
 
28133
            case USER_ID:
-
 
28134
              if (field.type == TType.I64) {
-
 
28135
                this.userId = iprot.readI64();
-
 
28136
                setUserIdIsSet(true);
-
 
28137
              } else { 
-
 
28138
                TProtocolUtil.skip(iprot, field.type);
-
 
28139
              }
-
 
28140
              break;
-
 
28141
            case EVENT:
-
 
28142
              if (field.type == TType.STRING) {
-
 
28143
                this.event = iprot.readString();
-
 
28144
              } else { 
-
 
28145
                TProtocolUtil.skip(iprot, field.type);
-
 
28146
              }
-
 
28147
              break;
-
 
28148
            case URL:
-
 
28149
              if (field.type == TType.STRING) {
-
 
28150
                this.url = iprot.readString();
-
 
28151
              } else { 
-
 
28152
                TProtocolUtil.skip(iprot, field.type);
-
 
28153
              }
-
 
28154
              break;
-
 
28155
            case DATA:
-
 
28156
              if (field.type == TType.STRING) {
-
 
28157
                this.data = iprot.readString();
-
 
28158
              } else { 
-
 
28159
                TProtocolUtil.skip(iprot, field.type);
-
 
28160
              }
-
 
28161
              break;
-
 
28162
          }
-
 
28163
          iprot.readFieldEnd();
-
 
28164
        }
-
 
28165
      }
-
 
28166
      iprot.readStructEnd();
-
 
28167
      validate();
-
 
28168
    }
-
 
28169
 
-
 
28170
    public void write(TProtocol oprot) throws TException {
-
 
28171
      validate();
-
 
28172
 
-
 
28173
      oprot.writeStructBegin(STRUCT_DESC);
-
 
28174
      oprot.writeFieldBegin(TRACKER_ID_FIELD_DESC);
-
 
28175
      oprot.writeI64(this.trackerId);
-
 
28176
      oprot.writeFieldEnd();
-
 
28177
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
-
 
28178
      oprot.writeI64(this.userId);
-
 
28179
      oprot.writeFieldEnd();
-
 
28180
      if (this.event != null) {
-
 
28181
        oprot.writeFieldBegin(EVENT_FIELD_DESC);
-
 
28182
        oprot.writeString(this.event);
-
 
28183
        oprot.writeFieldEnd();
-
 
28184
      }
-
 
28185
      if (this.url != null) {
-
 
28186
        oprot.writeFieldBegin(URL_FIELD_DESC);
-
 
28187
        oprot.writeString(this.url);
-
 
28188
        oprot.writeFieldEnd();
-
 
28189
      }
-
 
28190
      if (this.data != null) {
-
 
28191
        oprot.writeFieldBegin(DATA_FIELD_DESC);
-
 
28192
        oprot.writeString(this.data);
-
 
28193
        oprot.writeFieldEnd();
-
 
28194
      }
-
 
28195
      oprot.writeFieldStop();
-
 
28196
      oprot.writeStructEnd();
-
 
28197
    }
-
 
28198
 
-
 
28199
    @Override
-
 
28200
    public String toString() {
-
 
28201
      StringBuilder sb = new StringBuilder("addTrackLog_args(");
-
 
28202
      boolean first = true;
-
 
28203
 
-
 
28204
      sb.append("trackerId:");
-
 
28205
      sb.append(this.trackerId);
-
 
28206
      first = false;
-
 
28207
      if (!first) sb.append(", ");
-
 
28208
      sb.append("userId:");
-
 
28209
      sb.append(this.userId);
-
 
28210
      first = false;
-
 
28211
      if (!first) sb.append(", ");
-
 
28212
      sb.append("event:");
-
 
28213
      if (this.event == null) {
-
 
28214
        sb.append("null");
-
 
28215
      } else {
-
 
28216
        sb.append(this.event);
-
 
28217
      }
-
 
28218
      first = false;
-
 
28219
      if (!first) sb.append(", ");
-
 
28220
      sb.append("url:");
-
 
28221
      if (this.url == null) {
-
 
28222
        sb.append("null");
-
 
28223
      } else {
-
 
28224
        sb.append(this.url);
-
 
28225
      }
-
 
28226
      first = false;
-
 
28227
      if (!first) sb.append(", ");
-
 
28228
      sb.append("data:");
-
 
28229
      if (this.data == null) {
-
 
28230
        sb.append("null");
-
 
28231
      } else {
-
 
28232
        sb.append(this.data);
-
 
28233
      }
-
 
28234
      first = false;
-
 
28235
      sb.append(")");
-
 
28236
      return sb.toString();
-
 
28237
    }
-
 
28238
 
-
 
28239
    public void validate() throws TException {
-
 
28240
      // check for required fields
-
 
28241
    }
-
 
28242
 
-
 
28243
  }
-
 
28244
 
-
 
28245
  public static class addTrackLog_result implements TBase<addTrackLog_result._Fields>, java.io.Serializable, Cloneable, Comparable<addTrackLog_result>   {
-
 
28246
    private static final TStruct STRUCT_DESC = new TStruct("addTrackLog_result");
-
 
28247
 
-
 
28248
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I64, (short)0);
-
 
28249
    private static final TField UTX_FIELD_DESC = new TField("utx", TType.STRUCT, (short)1);
-
 
28250
 
-
 
28251
    private long success;
-
 
28252
    private UserTrackerException utx;
-
 
28253
 
-
 
28254
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
28255
    public enum _Fields implements TFieldIdEnum {
-
 
28256
      SUCCESS((short)0, "success"),
-
 
28257
      UTX((short)1, "utx");
-
 
28258
 
-
 
28259
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
28260
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
28261
 
-
 
28262
      static {
-
 
28263
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
28264
          byId.put((int)field._thriftId, field);
-
 
28265
          byName.put(field.getFieldName(), field);
-
 
28266
        }
-
 
28267
      }
-
 
28268
 
-
 
28269
      /**
-
 
28270
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
28271
       */
-
 
28272
      public static _Fields findByThriftId(int fieldId) {
-
 
28273
        return byId.get(fieldId);
-
 
28274
      }
-
 
28275
 
-
 
28276
      /**
-
 
28277
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
28278
       * if it is not found.
-
 
28279
       */
-
 
28280
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
28281
        _Fields fields = findByThriftId(fieldId);
-
 
28282
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
28283
        return fields;
-
 
28284
      }
-
 
28285
 
-
 
28286
      /**
-
 
28287
       * Find the _Fields constant that matches name, or null if its not found.
-
 
28288
       */
-
 
28289
      public static _Fields findByName(String name) {
-
 
28290
        return byName.get(name);
-
 
28291
      }
-
 
28292
 
-
 
28293
      private final short _thriftId;
-
 
28294
      private final String _fieldName;
-
 
28295
 
-
 
28296
      _Fields(short thriftId, String fieldName) {
-
 
28297
        _thriftId = thriftId;
-
 
28298
        _fieldName = fieldName;
-
 
28299
      }
-
 
28300
 
-
 
28301
      public short getThriftFieldId() {
-
 
28302
        return _thriftId;
-
 
28303
      }
-
 
28304
 
-
 
28305
      public String getFieldName() {
-
 
28306
        return _fieldName;
-
 
28307
      }
-
 
28308
    }
-
 
28309
 
-
 
28310
    // isset id assignments
-
 
28311
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
28312
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
28313
 
-
 
28314
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
28315
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
28316
          new FieldValueMetaData(TType.I64)));
-
 
28317
      put(_Fields.UTX, new FieldMetaData("utx", TFieldRequirementType.DEFAULT, 
-
 
28318
          new FieldValueMetaData(TType.STRUCT)));
-
 
28319
    }});
-
 
28320
 
-
 
28321
    static {
-
 
28322
      FieldMetaData.addStructMetaDataMap(addTrackLog_result.class, metaDataMap);
-
 
28323
    }
-
 
28324
 
-
 
28325
    public addTrackLog_result() {
-
 
28326
    }
-
 
28327
 
-
 
28328
    public addTrackLog_result(
-
 
28329
      long success,
-
 
28330
      UserTrackerException utx)
-
 
28331
    {
-
 
28332
      this();
-
 
28333
      this.success = success;
-
 
28334
      setSuccessIsSet(true);
-
 
28335
      this.utx = utx;
-
 
28336
    }
-
 
28337
 
-
 
28338
    /**
-
 
28339
     * Performs a deep copy on <i>other</i>.
-
 
28340
     */
-
 
28341
    public addTrackLog_result(addTrackLog_result other) {
-
 
28342
      __isset_bit_vector.clear();
-
 
28343
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
28344
      this.success = other.success;
-
 
28345
      if (other.isSetUtx()) {
-
 
28346
        this.utx = new UserTrackerException(other.utx);
-
 
28347
      }
-
 
28348
    }
-
 
28349
 
-
 
28350
    public addTrackLog_result deepCopy() {
-
 
28351
      return new addTrackLog_result(this);
-
 
28352
    }
-
 
28353
 
-
 
28354
    @Deprecated
-
 
28355
    public addTrackLog_result clone() {
-
 
28356
      return new addTrackLog_result(this);
-
 
28357
    }
-
 
28358
 
-
 
28359
    public long getSuccess() {
-
 
28360
      return this.success;
-
 
28361
    }
-
 
28362
 
-
 
28363
    public addTrackLog_result setSuccess(long success) {
-
 
28364
      this.success = success;
-
 
28365
      setSuccessIsSet(true);
-
 
28366
      return this;
-
 
28367
    }
-
 
28368
 
-
 
28369
    public void unsetSuccess() {
-
 
28370
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
28371
    }
-
 
28372
 
-
 
28373
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
28374
    public boolean isSetSuccess() {
-
 
28375
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
28376
    }
-
 
28377
 
-
 
28378
    public void setSuccessIsSet(boolean value) {
-
 
28379
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
28380
    }
-
 
28381
 
-
 
28382
    public UserTrackerException getUtx() {
-
 
28383
      return this.utx;
-
 
28384
    }
-
 
28385
 
-
 
28386
    public addTrackLog_result setUtx(UserTrackerException utx) {
-
 
28387
      this.utx = utx;
-
 
28388
      return this;
-
 
28389
    }
-
 
28390
 
-
 
28391
    public void unsetUtx() {
-
 
28392
      this.utx = null;
-
 
28393
    }
-
 
28394
 
-
 
28395
    /** Returns true if field utx is set (has been asigned a value) and false otherwise */
-
 
28396
    public boolean isSetUtx() {
-
 
28397
      return this.utx != null;
-
 
28398
    }
-
 
28399
 
-
 
28400
    public void setUtxIsSet(boolean value) {
-
 
28401
      if (!value) {
-
 
28402
        this.utx = null;
-
 
28403
      }
-
 
28404
    }
-
 
28405
 
-
 
28406
    public void setFieldValue(_Fields field, Object value) {
-
 
28407
      switch (field) {
-
 
28408
      case SUCCESS:
-
 
28409
        if (value == null) {
-
 
28410
          unsetSuccess();
-
 
28411
        } else {
-
 
28412
          setSuccess((Long)value);
-
 
28413
        }
-
 
28414
        break;
-
 
28415
 
-
 
28416
      case UTX:
-
 
28417
        if (value == null) {
-
 
28418
          unsetUtx();
-
 
28419
        } else {
-
 
28420
          setUtx((UserTrackerException)value);
-
 
28421
        }
-
 
28422
        break;
-
 
28423
 
-
 
28424
      }
-
 
28425
    }
-
 
28426
 
-
 
28427
    public void setFieldValue(int fieldID, Object value) {
-
 
28428
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
28429
    }
-
 
28430
 
-
 
28431
    public Object getFieldValue(_Fields field) {
-
 
28432
      switch (field) {
-
 
28433
      case SUCCESS:
-
 
28434
        return new Long(getSuccess());
-
 
28435
 
-
 
28436
      case UTX:
-
 
28437
        return getUtx();
-
 
28438
 
-
 
28439
      }
-
 
28440
      throw new IllegalStateException();
-
 
28441
    }
-
 
28442
 
-
 
28443
    public Object getFieldValue(int fieldId) {
-
 
28444
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
28445
    }
-
 
28446
 
-
 
28447
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
28448
    public boolean isSet(_Fields field) {
-
 
28449
      switch (field) {
-
 
28450
      case SUCCESS:
-
 
28451
        return isSetSuccess();
-
 
28452
      case UTX:
-
 
28453
        return isSetUtx();
-
 
28454
      }
-
 
28455
      throw new IllegalStateException();
-
 
28456
    }
-
 
28457
 
-
 
28458
    public boolean isSet(int fieldID) {
-
 
28459
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
28460
    }
-
 
28461
 
-
 
28462
    @Override
-
 
28463
    public boolean equals(Object that) {
-
 
28464
      if (that == null)
-
 
28465
        return false;
-
 
28466
      if (that instanceof addTrackLog_result)
-
 
28467
        return this.equals((addTrackLog_result)that);
-
 
28468
      return false;
-
 
28469
    }
-
 
28470
 
-
 
28471
    public boolean equals(addTrackLog_result that) {
-
 
28472
      if (that == null)
-
 
28473
        return false;
-
 
28474
 
-
 
28475
      boolean this_present_success = true;
-
 
28476
      boolean that_present_success = true;
-
 
28477
      if (this_present_success || that_present_success) {
-
 
28478
        if (!(this_present_success && that_present_success))
-
 
28479
          return false;
-
 
28480
        if (this.success != that.success)
-
 
28481
          return false;
-
 
28482
      }
-
 
28483
 
-
 
28484
      boolean this_present_utx = true && this.isSetUtx();
-
 
28485
      boolean that_present_utx = true && that.isSetUtx();
-
 
28486
      if (this_present_utx || that_present_utx) {
-
 
28487
        if (!(this_present_utx && that_present_utx))
-
 
28488
          return false;
-
 
28489
        if (!this.utx.equals(that.utx))
-
 
28490
          return false;
-
 
28491
      }
-
 
28492
 
-
 
28493
      return true;
-
 
28494
    }
-
 
28495
 
-
 
28496
    @Override
-
 
28497
    public int hashCode() {
-
 
28498
      return 0;
-
 
28499
    }
-
 
28500
 
-
 
28501
    public int compareTo(addTrackLog_result other) {
-
 
28502
      if (!getClass().equals(other.getClass())) {
-
 
28503
        return getClass().getName().compareTo(other.getClass().getName());
-
 
28504
      }
-
 
28505
 
-
 
28506
      int lastComparison = 0;
-
 
28507
      addTrackLog_result typedOther = (addTrackLog_result)other;
-
 
28508
 
-
 
28509
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
28510
      if (lastComparison != 0) {
-
 
28511
        return lastComparison;
-
 
28512
      }
-
 
28513
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
28514
      if (lastComparison != 0) {
-
 
28515
        return lastComparison;
-
 
28516
      }
-
 
28517
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(isSetUtx());
-
 
28518
      if (lastComparison != 0) {
-
 
28519
        return lastComparison;
-
 
28520
      }
-
 
28521
      lastComparison = TBaseHelper.compareTo(utx, typedOther.utx);
-
 
28522
      if (lastComparison != 0) {
-
 
28523
        return lastComparison;
-
 
28524
      }
-
 
28525
      return 0;
-
 
28526
    }
-
 
28527
 
-
 
28528
    public void read(TProtocol iprot) throws TException {
-
 
28529
      TField field;
-
 
28530
      iprot.readStructBegin();
-
 
28531
      while (true)
-
 
28532
      {
-
 
28533
        field = iprot.readFieldBegin();
-
 
28534
        if (field.type == TType.STOP) { 
-
 
28535
          break;
-
 
28536
        }
-
 
28537
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
28538
        if (fieldId == null) {
-
 
28539
          TProtocolUtil.skip(iprot, field.type);
-
 
28540
        } else {
-
 
28541
          switch (fieldId) {
-
 
28542
            case SUCCESS:
-
 
28543
              if (field.type == TType.I64) {
-
 
28544
                this.success = iprot.readI64();
-
 
28545
                setSuccessIsSet(true);
-
 
28546
              } else { 
-
 
28547
                TProtocolUtil.skip(iprot, field.type);
-
 
28548
              }
-
 
28549
              break;
-
 
28550
            case UTX:
-
 
28551
              if (field.type == TType.STRUCT) {
-
 
28552
                this.utx = new UserTrackerException();
-
 
28553
                this.utx.read(iprot);
-
 
28554
              } else { 
-
 
28555
                TProtocolUtil.skip(iprot, field.type);
-
 
28556
              }
-
 
28557
              break;
-
 
28558
          }
-
 
28559
          iprot.readFieldEnd();
-
 
28560
        }
-
 
28561
      }
-
 
28562
      iprot.readStructEnd();
-
 
28563
      validate();
-
 
28564
    }
-
 
28565
 
-
 
28566
    public void write(TProtocol oprot) throws TException {
-
 
28567
      oprot.writeStructBegin(STRUCT_DESC);
-
 
28568
 
-
 
28569
      if (this.isSetSuccess()) {
-
 
28570
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
28571
        oprot.writeI64(this.success);
-
 
28572
        oprot.writeFieldEnd();
-
 
28573
      } else if (this.isSetUtx()) {
-
 
28574
        oprot.writeFieldBegin(UTX_FIELD_DESC);
-
 
28575
        this.utx.write(oprot);
-
 
28576
        oprot.writeFieldEnd();
-
 
28577
      }
-
 
28578
      oprot.writeFieldStop();
-
 
28579
      oprot.writeStructEnd();
-
 
28580
    }
-
 
28581
 
-
 
28582
    @Override
-
 
28583
    public String toString() {
-
 
28584
      StringBuilder sb = new StringBuilder("addTrackLog_result(");
-
 
28585
      boolean first = true;
-
 
28586
 
-
 
28587
      sb.append("success:");
-
 
28588
      sb.append(this.success);
-
 
28589
      first = false;
-
 
28590
      if (!first) sb.append(", ");
-
 
28591
      sb.append("utx:");
-
 
28592
      if (this.utx == null) {
-
 
28593
        sb.append("null");
-
 
28594
      } else {
-
 
28595
        sb.append(this.utx);
-
 
28596
      }
-
 
28597
      first = false;
-
 
28598
      sb.append(")");
-
 
28599
      return sb.toString();
-
 
28600
    }
-
 
28601
 
-
 
28602
    public void validate() throws TException {
-
 
28603
      // check for required fields
-
 
28604
    }
-
 
28605
 
-
 
28606
  }
-
 
28607
 
-
 
28608
  public static class getTrackLogById_args implements TBase<getTrackLogById_args._Fields>, java.io.Serializable, Cloneable, Comparable<getTrackLogById_args>   {
-
 
28609
    private static final TStruct STRUCT_DESC = new TStruct("getTrackLogById_args");
-
 
28610
 
-
 
28611
    private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
-
 
28612
 
-
 
28613
    private long id;
-
 
28614
 
-
 
28615
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
28616
    public enum _Fields implements TFieldIdEnum {
-
 
28617
      ID((short)1, "id");
-
 
28618
 
-
 
28619
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
28620
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
28621
 
-
 
28622
      static {
-
 
28623
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
28624
          byId.put((int)field._thriftId, field);
-
 
28625
          byName.put(field.getFieldName(), field);
-
 
28626
        }
-
 
28627
      }
-
 
28628
 
-
 
28629
      /**
-
 
28630
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
28631
       */
-
 
28632
      public static _Fields findByThriftId(int fieldId) {
-
 
28633
        return byId.get(fieldId);
-
 
28634
      }
-
 
28635
 
-
 
28636
      /**
-
 
28637
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
28638
       * if it is not found.
-
 
28639
       */
-
 
28640
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
28641
        _Fields fields = findByThriftId(fieldId);
-
 
28642
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
28643
        return fields;
-
 
28644
      }
-
 
28645
 
-
 
28646
      /**
-
 
28647
       * Find the _Fields constant that matches name, or null if its not found.
-
 
28648
       */
-
 
28649
      public static _Fields findByName(String name) {
-
 
28650
        return byName.get(name);
-
 
28651
      }
-
 
28652
 
-
 
28653
      private final short _thriftId;
-
 
28654
      private final String _fieldName;
-
 
28655
 
-
 
28656
      _Fields(short thriftId, String fieldName) {
-
 
28657
        _thriftId = thriftId;
-
 
28658
        _fieldName = fieldName;
-
 
28659
      }
-
 
28660
 
-
 
28661
      public short getThriftFieldId() {
-
 
28662
        return _thriftId;
-
 
28663
      }
-
 
28664
 
-
 
28665
      public String getFieldName() {
-
 
28666
        return _fieldName;
-
 
28667
      }
-
 
28668
    }
-
 
28669
 
-
 
28670
    // isset id assignments
-
 
28671
    private static final int __ID_ISSET_ID = 0;
-
 
28672
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
28673
 
-
 
28674
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
28675
      put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
-
 
28676
          new FieldValueMetaData(TType.I64)));
-
 
28677
    }});
-
 
28678
 
-
 
28679
    static {
-
 
28680
      FieldMetaData.addStructMetaDataMap(getTrackLogById_args.class, metaDataMap);
-
 
28681
    }
-
 
28682
 
-
 
28683
    public getTrackLogById_args() {
-
 
28684
    }
-
 
28685
 
-
 
28686
    public getTrackLogById_args(
-
 
28687
      long id)
-
 
28688
    {
-
 
28689
      this();
-
 
28690
      this.id = id;
-
 
28691
      setIdIsSet(true);
-
 
28692
    }
-
 
28693
 
-
 
28694
    /**
-
 
28695
     * Performs a deep copy on <i>other</i>.
-
 
28696
     */
-
 
28697
    public getTrackLogById_args(getTrackLogById_args other) {
-
 
28698
      __isset_bit_vector.clear();
-
 
28699
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
28700
      this.id = other.id;
-
 
28701
    }
-
 
28702
 
-
 
28703
    public getTrackLogById_args deepCopy() {
-
 
28704
      return new getTrackLogById_args(this);
-
 
28705
    }
-
 
28706
 
-
 
28707
    @Deprecated
-
 
28708
    public getTrackLogById_args clone() {
-
 
28709
      return new getTrackLogById_args(this);
-
 
28710
    }
-
 
28711
 
-
 
28712
    public long getId() {
-
 
28713
      return this.id;
-
 
28714
    }
-
 
28715
 
-
 
28716
    public getTrackLogById_args setId(long id) {
-
 
28717
      this.id = id;
-
 
28718
      setIdIsSet(true);
-
 
28719
      return this;
-
 
28720
    }
-
 
28721
 
-
 
28722
    public void unsetId() {
-
 
28723
      __isset_bit_vector.clear(__ID_ISSET_ID);
-
 
28724
    }
-
 
28725
 
-
 
28726
    /** Returns true if field id is set (has been asigned a value) and false otherwise */
-
 
28727
    public boolean isSetId() {
-
 
28728
      return __isset_bit_vector.get(__ID_ISSET_ID);
-
 
28729
    }
-
 
28730
 
-
 
28731
    public void setIdIsSet(boolean value) {
-
 
28732
      __isset_bit_vector.set(__ID_ISSET_ID, value);
-
 
28733
    }
-
 
28734
 
-
 
28735
    public void setFieldValue(_Fields field, Object value) {
-
 
28736
      switch (field) {
-
 
28737
      case ID:
-
 
28738
        if (value == null) {
-
 
28739
          unsetId();
-
 
28740
        } else {
-
 
28741
          setId((Long)value);
-
 
28742
        }
-
 
28743
        break;
-
 
28744
 
-
 
28745
      }
-
 
28746
    }
-
 
28747
 
-
 
28748
    public void setFieldValue(int fieldID, Object value) {
-
 
28749
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
28750
    }
-
 
28751
 
-
 
28752
    public Object getFieldValue(_Fields field) {
-
 
28753
      switch (field) {
-
 
28754
      case ID:
-
 
28755
        return new Long(getId());
-
 
28756
 
-
 
28757
      }
-
 
28758
      throw new IllegalStateException();
-
 
28759
    }
-
 
28760
 
-
 
28761
    public Object getFieldValue(int fieldId) {
-
 
28762
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
28763
    }
-
 
28764
 
-
 
28765
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
28766
    public boolean isSet(_Fields field) {
-
 
28767
      switch (field) {
-
 
28768
      case ID:
-
 
28769
        return isSetId();
-
 
28770
      }
-
 
28771
      throw new IllegalStateException();
-
 
28772
    }
-
 
28773
 
-
 
28774
    public boolean isSet(int fieldID) {
-
 
28775
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
28776
    }
-
 
28777
 
-
 
28778
    @Override
-
 
28779
    public boolean equals(Object that) {
-
 
28780
      if (that == null)
-
 
28781
        return false;
-
 
28782
      if (that instanceof getTrackLogById_args)
-
 
28783
        return this.equals((getTrackLogById_args)that);
-
 
28784
      return false;
-
 
28785
    }
-
 
28786
 
-
 
28787
    public boolean equals(getTrackLogById_args that) {
-
 
28788
      if (that == null)
-
 
28789
        return false;
-
 
28790
 
-
 
28791
      boolean this_present_id = true;
-
 
28792
      boolean that_present_id = true;
-
 
28793
      if (this_present_id || that_present_id) {
-
 
28794
        if (!(this_present_id && that_present_id))
-
 
28795
          return false;
-
 
28796
        if (this.id != that.id)
-
 
28797
          return false;
-
 
28798
      }
-
 
28799
 
-
 
28800
      return true;
-
 
28801
    }
-
 
28802
 
-
 
28803
    @Override
-
 
28804
    public int hashCode() {
-
 
28805
      return 0;
-
 
28806
    }
-
 
28807
 
-
 
28808
    public int compareTo(getTrackLogById_args other) {
-
 
28809
      if (!getClass().equals(other.getClass())) {
-
 
28810
        return getClass().getName().compareTo(other.getClass().getName());
-
 
28811
      }
-
 
28812
 
-
 
28813
      int lastComparison = 0;
-
 
28814
      getTrackLogById_args typedOther = (getTrackLogById_args)other;
-
 
28815
 
-
 
28816
      lastComparison = Boolean.valueOf(isSetId()).compareTo(isSetId());
-
 
28817
      if (lastComparison != 0) {
-
 
28818
        return lastComparison;
-
 
28819
      }
-
 
28820
      lastComparison = TBaseHelper.compareTo(id, typedOther.id);
-
 
28821
      if (lastComparison != 0) {
-
 
28822
        return lastComparison;
-
 
28823
      }
-
 
28824
      return 0;
-
 
28825
    }
-
 
28826
 
-
 
28827
    public void read(TProtocol iprot) throws TException {
-
 
28828
      TField field;
-
 
28829
      iprot.readStructBegin();
-
 
28830
      while (true)
-
 
28831
      {
-
 
28832
        field = iprot.readFieldBegin();
-
 
28833
        if (field.type == TType.STOP) { 
-
 
28834
          break;
-
 
28835
        }
-
 
28836
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
28837
        if (fieldId == null) {
-
 
28838
          TProtocolUtil.skip(iprot, field.type);
-
 
28839
        } else {
-
 
28840
          switch (fieldId) {
-
 
28841
            case ID:
-
 
28842
              if (field.type == TType.I64) {
-
 
28843
                this.id = iprot.readI64();
-
 
28844
                setIdIsSet(true);
-
 
28845
              } else { 
-
 
28846
                TProtocolUtil.skip(iprot, field.type);
-
 
28847
              }
-
 
28848
              break;
-
 
28849
          }
-
 
28850
          iprot.readFieldEnd();
-
 
28851
        }
-
 
28852
      }
-
 
28853
      iprot.readStructEnd();
-
 
28854
      validate();
-
 
28855
    }
-
 
28856
 
-
 
28857
    public void write(TProtocol oprot) throws TException {
-
 
28858
      validate();
-
 
28859
 
-
 
28860
      oprot.writeStructBegin(STRUCT_DESC);
-
 
28861
      oprot.writeFieldBegin(ID_FIELD_DESC);
-
 
28862
      oprot.writeI64(this.id);
-
 
28863
      oprot.writeFieldEnd();
-
 
28864
      oprot.writeFieldStop();
-
 
28865
      oprot.writeStructEnd();
-
 
28866
    }
-
 
28867
 
-
 
28868
    @Override
-
 
28869
    public String toString() {
-
 
28870
      StringBuilder sb = new StringBuilder("getTrackLogById_args(");
-
 
28871
      boolean first = true;
-
 
28872
 
-
 
28873
      sb.append("id:");
-
 
28874
      sb.append(this.id);
-
 
28875
      first = false;
-
 
28876
      sb.append(")");
-
 
28877
      return sb.toString();
-
 
28878
    }
-
 
28879
 
-
 
28880
    public void validate() throws TException {
-
 
28881
      // check for required fields
-
 
28882
    }
-
 
28883
 
-
 
28884
  }
-
 
28885
 
-
 
28886
  public static class getTrackLogById_result implements TBase<getTrackLogById_result._Fields>, java.io.Serializable, Cloneable, Comparable<getTrackLogById_result>   {
-
 
28887
    private static final TStruct STRUCT_DESC = new TStruct("getTrackLogById_result");
-
 
28888
 
-
 
28889
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
-
 
28890
    private static final TField UTX_FIELD_DESC = new TField("utx", TType.STRUCT, (short)1);
-
 
28891
 
-
 
28892
    private TrackLog success;
-
 
28893
    private UserTrackerException utx;
-
 
28894
 
-
 
28895
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
28896
    public enum _Fields implements TFieldIdEnum {
-
 
28897
      SUCCESS((short)0, "success"),
-
 
28898
      UTX((short)1, "utx");
-
 
28899
 
-
 
28900
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
28901
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
28902
 
-
 
28903
      static {
-
 
28904
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
28905
          byId.put((int)field._thriftId, field);
-
 
28906
          byName.put(field.getFieldName(), field);
-
 
28907
        }
-
 
28908
      }
-
 
28909
 
-
 
28910
      /**
-
 
28911
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
28912
       */
-
 
28913
      public static _Fields findByThriftId(int fieldId) {
-
 
28914
        return byId.get(fieldId);
-
 
28915
      }
-
 
28916
 
-
 
28917
      /**
-
 
28918
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
28919
       * if it is not found.
-
 
28920
       */
-
 
28921
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
28922
        _Fields fields = findByThriftId(fieldId);
-
 
28923
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
28924
        return fields;
-
 
28925
      }
-
 
28926
 
-
 
28927
      /**
-
 
28928
       * Find the _Fields constant that matches name, or null if its not found.
-
 
28929
       */
-
 
28930
      public static _Fields findByName(String name) {
-
 
28931
        return byName.get(name);
-
 
28932
      }
-
 
28933
 
-
 
28934
      private final short _thriftId;
-
 
28935
      private final String _fieldName;
-
 
28936
 
-
 
28937
      _Fields(short thriftId, String fieldName) {
-
 
28938
        _thriftId = thriftId;
-
 
28939
        _fieldName = fieldName;
-
 
28940
      }
-
 
28941
 
-
 
28942
      public short getThriftFieldId() {
-
 
28943
        return _thriftId;
-
 
28944
      }
-
 
28945
 
-
 
28946
      public String getFieldName() {
-
 
28947
        return _fieldName;
-
 
28948
      }
-
 
28949
    }
-
 
28950
 
-
 
28951
    // isset id assignments
-
 
28952
 
-
 
28953
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
28954
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
28955
          new StructMetaData(TType.STRUCT, TrackLog.class)));
-
 
28956
      put(_Fields.UTX, new FieldMetaData("utx", TFieldRequirementType.DEFAULT, 
-
 
28957
          new FieldValueMetaData(TType.STRUCT)));
-
 
28958
    }});
-
 
28959
 
-
 
28960
    static {
-
 
28961
      FieldMetaData.addStructMetaDataMap(getTrackLogById_result.class, metaDataMap);
-
 
28962
    }
-
 
28963
 
-
 
28964
    public getTrackLogById_result() {
-
 
28965
    }
-
 
28966
 
-
 
28967
    public getTrackLogById_result(
-
 
28968
      TrackLog success,
-
 
28969
      UserTrackerException utx)
-
 
28970
    {
-
 
28971
      this();
-
 
28972
      this.success = success;
-
 
28973
      this.utx = utx;
-
 
28974
    }
-
 
28975
 
-
 
28976
    /**
-
 
28977
     * Performs a deep copy on <i>other</i>.
-
 
28978
     */
-
 
28979
    public getTrackLogById_result(getTrackLogById_result other) {
-
 
28980
      if (other.isSetSuccess()) {
-
 
28981
        this.success = new TrackLog(other.success);
-
 
28982
      }
-
 
28983
      if (other.isSetUtx()) {
-
 
28984
        this.utx = new UserTrackerException(other.utx);
-
 
28985
      }
-
 
28986
    }
-
 
28987
 
-
 
28988
    public getTrackLogById_result deepCopy() {
-
 
28989
      return new getTrackLogById_result(this);
-
 
28990
    }
-
 
28991
 
-
 
28992
    @Deprecated
-
 
28993
    public getTrackLogById_result clone() {
-
 
28994
      return new getTrackLogById_result(this);
-
 
28995
    }
-
 
28996
 
-
 
28997
    public TrackLog getSuccess() {
-
 
28998
      return this.success;
-
 
28999
    }
-
 
29000
 
-
 
29001
    public getTrackLogById_result setSuccess(TrackLog success) {
-
 
29002
      this.success = success;
-
 
29003
      return this;
-
 
29004
    }
-
 
29005
 
-
 
29006
    public void unsetSuccess() {
-
 
29007
      this.success = null;
-
 
29008
    }
-
 
29009
 
-
 
29010
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
29011
    public boolean isSetSuccess() {
-
 
29012
      return this.success != null;
-
 
29013
    }
-
 
29014
 
-
 
29015
    public void setSuccessIsSet(boolean value) {
-
 
29016
      if (!value) {
-
 
29017
        this.success = null;
-
 
29018
      }
-
 
29019
    }
-
 
29020
 
-
 
29021
    public UserTrackerException getUtx() {
-
 
29022
      return this.utx;
-
 
29023
    }
-
 
29024
 
-
 
29025
    public getTrackLogById_result setUtx(UserTrackerException utx) {
-
 
29026
      this.utx = utx;
-
 
29027
      return this;
-
 
29028
    }
-
 
29029
 
-
 
29030
    public void unsetUtx() {
-
 
29031
      this.utx = null;
-
 
29032
    }
-
 
29033
 
-
 
29034
    /** Returns true if field utx is set (has been asigned a value) and false otherwise */
-
 
29035
    public boolean isSetUtx() {
-
 
29036
      return this.utx != null;
-
 
29037
    }
-
 
29038
 
-
 
29039
    public void setUtxIsSet(boolean value) {
-
 
29040
      if (!value) {
-
 
29041
        this.utx = null;
-
 
29042
      }
-
 
29043
    }
-
 
29044
 
-
 
29045
    public void setFieldValue(_Fields field, Object value) {
-
 
29046
      switch (field) {
-
 
29047
      case SUCCESS:
-
 
29048
        if (value == null) {
-
 
29049
          unsetSuccess();
-
 
29050
        } else {
-
 
29051
          setSuccess((TrackLog)value);
-
 
29052
        }
-
 
29053
        break;
-
 
29054
 
-
 
29055
      case UTX:
-
 
29056
        if (value == null) {
-
 
29057
          unsetUtx();
-
 
29058
        } else {
-
 
29059
          setUtx((UserTrackerException)value);
-
 
29060
        }
-
 
29061
        break;
-
 
29062
 
-
 
29063
      }
-
 
29064
    }
-
 
29065
 
-
 
29066
    public void setFieldValue(int fieldID, Object value) {
-
 
29067
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
29068
    }
-
 
29069
 
-
 
29070
    public Object getFieldValue(_Fields field) {
-
 
29071
      switch (field) {
-
 
29072
      case SUCCESS:
-
 
29073
        return getSuccess();
-
 
29074
 
-
 
29075
      case UTX:
-
 
29076
        return getUtx();
-
 
29077
 
-
 
29078
      }
-
 
29079
      throw new IllegalStateException();
-
 
29080
    }
-
 
29081
 
-
 
29082
    public Object getFieldValue(int fieldId) {
-
 
29083
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
29084
    }
-
 
29085
 
-
 
29086
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
29087
    public boolean isSet(_Fields field) {
-
 
29088
      switch (field) {
-
 
29089
      case SUCCESS:
-
 
29090
        return isSetSuccess();
-
 
29091
      case UTX:
-
 
29092
        return isSetUtx();
-
 
29093
      }
-
 
29094
      throw new IllegalStateException();
-
 
29095
    }
-
 
29096
 
-
 
29097
    public boolean isSet(int fieldID) {
-
 
29098
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
29099
    }
-
 
29100
 
-
 
29101
    @Override
-
 
29102
    public boolean equals(Object that) {
-
 
29103
      if (that == null)
-
 
29104
        return false;
-
 
29105
      if (that instanceof getTrackLogById_result)
-
 
29106
        return this.equals((getTrackLogById_result)that);
-
 
29107
      return false;
-
 
29108
    }
-
 
29109
 
-
 
29110
    public boolean equals(getTrackLogById_result that) {
-
 
29111
      if (that == null)
-
 
29112
        return false;
-
 
29113
 
-
 
29114
      boolean this_present_success = true && this.isSetSuccess();
-
 
29115
      boolean that_present_success = true && that.isSetSuccess();
-
 
29116
      if (this_present_success || that_present_success) {
-
 
29117
        if (!(this_present_success && that_present_success))
-
 
29118
          return false;
-
 
29119
        if (!this.success.equals(that.success))
-
 
29120
          return false;
-
 
29121
      }
-
 
29122
 
-
 
29123
      boolean this_present_utx = true && this.isSetUtx();
-
 
29124
      boolean that_present_utx = true && that.isSetUtx();
-
 
29125
      if (this_present_utx || that_present_utx) {
-
 
29126
        if (!(this_present_utx && that_present_utx))
-
 
29127
          return false;
-
 
29128
        if (!this.utx.equals(that.utx))
-
 
29129
          return false;
-
 
29130
      }
-
 
29131
 
-
 
29132
      return true;
-
 
29133
    }
-
 
29134
 
-
 
29135
    @Override
-
 
29136
    public int hashCode() {
-
 
29137
      return 0;
-
 
29138
    }
-
 
29139
 
-
 
29140
    public int compareTo(getTrackLogById_result other) {
-
 
29141
      if (!getClass().equals(other.getClass())) {
-
 
29142
        return getClass().getName().compareTo(other.getClass().getName());
-
 
29143
      }
-
 
29144
 
-
 
29145
      int lastComparison = 0;
-
 
29146
      getTrackLogById_result typedOther = (getTrackLogById_result)other;
-
 
29147
 
-
 
29148
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
29149
      if (lastComparison != 0) {
-
 
29150
        return lastComparison;
-
 
29151
      }
-
 
29152
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
29153
      if (lastComparison != 0) {
-
 
29154
        return lastComparison;
-
 
29155
      }
-
 
29156
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(isSetUtx());
-
 
29157
      if (lastComparison != 0) {
-
 
29158
        return lastComparison;
-
 
29159
      }
-
 
29160
      lastComparison = TBaseHelper.compareTo(utx, typedOther.utx);
-
 
29161
      if (lastComparison != 0) {
-
 
29162
        return lastComparison;
-
 
29163
      }
-
 
29164
      return 0;
-
 
29165
    }
-
 
29166
 
-
 
29167
    public void read(TProtocol iprot) throws TException {
-
 
29168
      TField field;
-
 
29169
      iprot.readStructBegin();
-
 
29170
      while (true)
-
 
29171
      {
-
 
29172
        field = iprot.readFieldBegin();
-
 
29173
        if (field.type == TType.STOP) { 
-
 
29174
          break;
-
 
29175
        }
-
 
29176
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
29177
        if (fieldId == null) {
-
 
29178
          TProtocolUtil.skip(iprot, field.type);
-
 
29179
        } else {
-
 
29180
          switch (fieldId) {
-
 
29181
            case SUCCESS:
-
 
29182
              if (field.type == TType.STRUCT) {
-
 
29183
                this.success = new TrackLog();
-
 
29184
                this.success.read(iprot);
-
 
29185
              } else { 
-
 
29186
                TProtocolUtil.skip(iprot, field.type);
-
 
29187
              }
-
 
29188
              break;
-
 
29189
            case UTX:
-
 
29190
              if (field.type == TType.STRUCT) {
-
 
29191
                this.utx = new UserTrackerException();
-
 
29192
                this.utx.read(iprot);
-
 
29193
              } else { 
-
 
29194
                TProtocolUtil.skip(iprot, field.type);
-
 
29195
              }
-
 
29196
              break;
-
 
29197
          }
-
 
29198
          iprot.readFieldEnd();
-
 
29199
        }
-
 
29200
      }
-
 
29201
      iprot.readStructEnd();
-
 
29202
      validate();
-
 
29203
    }
-
 
29204
 
-
 
29205
    public void write(TProtocol oprot) throws TException {
-
 
29206
      oprot.writeStructBegin(STRUCT_DESC);
-
 
29207
 
-
 
29208
      if (this.isSetSuccess()) {
-
 
29209
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
29210
        this.success.write(oprot);
-
 
29211
        oprot.writeFieldEnd();
-
 
29212
      } else if (this.isSetUtx()) {
-
 
29213
        oprot.writeFieldBegin(UTX_FIELD_DESC);
-
 
29214
        this.utx.write(oprot);
-
 
29215
        oprot.writeFieldEnd();
-
 
29216
      }
-
 
29217
      oprot.writeFieldStop();
-
 
29218
      oprot.writeStructEnd();
-
 
29219
    }
-
 
29220
 
-
 
29221
    @Override
-
 
29222
    public String toString() {
-
 
29223
      StringBuilder sb = new StringBuilder("getTrackLogById_result(");
-
 
29224
      boolean first = true;
-
 
29225
 
-
 
29226
      sb.append("success:");
-
 
29227
      if (this.success == null) {
-
 
29228
        sb.append("null");
-
 
29229
      } else {
-
 
29230
        sb.append(this.success);
-
 
29231
      }
-
 
29232
      first = false;
-
 
29233
      if (!first) sb.append(", ");
-
 
29234
      sb.append("utx:");
-
 
29235
      if (this.utx == null) {
-
 
29236
        sb.append("null");
-
 
29237
      } else {
-
 
29238
        sb.append(this.utx);
-
 
29239
      }
-
 
29240
      first = false;
-
 
29241
      sb.append(")");
-
 
29242
      return sb.toString();
-
 
29243
    }
-
 
29244
 
-
 
29245
    public void validate() throws TException {
-
 
29246
      // check for required fields
-
 
29247
    }
-
 
29248
 
-
 
29249
  }
-
 
29250
 
-
 
29251
  public static class getTrackLogsByTracker_args implements TBase<getTrackLogsByTracker_args._Fields>, java.io.Serializable, Cloneable, Comparable<getTrackLogsByTracker_args>   {
-
 
29252
    private static final TStruct STRUCT_DESC = new TStruct("getTrackLogsByTracker_args");
-
 
29253
 
-
 
29254
    private static final TField TRACKER_ID_FIELD_DESC = new TField("trackerId", TType.I64, (short)1);
-
 
29255
 
-
 
29256
    private long trackerId;
-
 
29257
 
-
 
29258
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
29259
    public enum _Fields implements TFieldIdEnum {
-
 
29260
      TRACKER_ID((short)1, "trackerId");
-
 
29261
 
-
 
29262
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
29263
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
29264
 
-
 
29265
      static {
-
 
29266
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
29267
          byId.put((int)field._thriftId, field);
-
 
29268
          byName.put(field.getFieldName(), field);
-
 
29269
        }
-
 
29270
      }
-
 
29271
 
-
 
29272
      /**
-
 
29273
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
29274
       */
-
 
29275
      public static _Fields findByThriftId(int fieldId) {
-
 
29276
        return byId.get(fieldId);
-
 
29277
      }
-
 
29278
 
-
 
29279
      /**
-
 
29280
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
29281
       * if it is not found.
-
 
29282
       */
-
 
29283
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
29284
        _Fields fields = findByThriftId(fieldId);
-
 
29285
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
29286
        return fields;
-
 
29287
      }
-
 
29288
 
-
 
29289
      /**
-
 
29290
       * Find the _Fields constant that matches name, or null if its not found.
-
 
29291
       */
-
 
29292
      public static _Fields findByName(String name) {
-
 
29293
        return byName.get(name);
-
 
29294
      }
-
 
29295
 
-
 
29296
      private final short _thriftId;
-
 
29297
      private final String _fieldName;
-
 
29298
 
-
 
29299
      _Fields(short thriftId, String fieldName) {
-
 
29300
        _thriftId = thriftId;
-
 
29301
        _fieldName = fieldName;
-
 
29302
      }
-
 
29303
 
-
 
29304
      public short getThriftFieldId() {
-
 
29305
        return _thriftId;
-
 
29306
      }
-
 
29307
 
-
 
29308
      public String getFieldName() {
-
 
29309
        return _fieldName;
-
 
29310
      }
-
 
29311
    }
-
 
29312
 
-
 
29313
    // isset id assignments
-
 
29314
    private static final int __TRACKERID_ISSET_ID = 0;
-
 
29315
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
29316
 
-
 
29317
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
29318
      put(_Fields.TRACKER_ID, new FieldMetaData("trackerId", TFieldRequirementType.DEFAULT, 
-
 
29319
          new FieldValueMetaData(TType.I64)));
-
 
29320
    }});
-
 
29321
 
-
 
29322
    static {
-
 
29323
      FieldMetaData.addStructMetaDataMap(getTrackLogsByTracker_args.class, metaDataMap);
-
 
29324
    }
-
 
29325
 
-
 
29326
    public getTrackLogsByTracker_args() {
-
 
29327
    }
-
 
29328
 
-
 
29329
    public getTrackLogsByTracker_args(
-
 
29330
      long trackerId)
-
 
29331
    {
-
 
29332
      this();
-
 
29333
      this.trackerId = trackerId;
-
 
29334
      setTrackerIdIsSet(true);
-
 
29335
    }
-
 
29336
 
-
 
29337
    /**
-
 
29338
     * Performs a deep copy on <i>other</i>.
-
 
29339
     */
-
 
29340
    public getTrackLogsByTracker_args(getTrackLogsByTracker_args other) {
-
 
29341
      __isset_bit_vector.clear();
-
 
29342
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
29343
      this.trackerId = other.trackerId;
-
 
29344
    }
-
 
29345
 
-
 
29346
    public getTrackLogsByTracker_args deepCopy() {
-
 
29347
      return new getTrackLogsByTracker_args(this);
-
 
29348
    }
-
 
29349
 
-
 
29350
    @Deprecated
-
 
29351
    public getTrackLogsByTracker_args clone() {
-
 
29352
      return new getTrackLogsByTracker_args(this);
-
 
29353
    }
-
 
29354
 
-
 
29355
    public long getTrackerId() {
-
 
29356
      return this.trackerId;
-
 
29357
    }
-
 
29358
 
-
 
29359
    public getTrackLogsByTracker_args setTrackerId(long trackerId) {
-
 
29360
      this.trackerId = trackerId;
-
 
29361
      setTrackerIdIsSet(true);
-
 
29362
      return this;
-
 
29363
    }
-
 
29364
 
-
 
29365
    public void unsetTrackerId() {
-
 
29366
      __isset_bit_vector.clear(__TRACKERID_ISSET_ID);
-
 
29367
    }
-
 
29368
 
-
 
29369
    /** Returns true if field trackerId is set (has been asigned a value) and false otherwise */
-
 
29370
    public boolean isSetTrackerId() {
-
 
29371
      return __isset_bit_vector.get(__TRACKERID_ISSET_ID);
-
 
29372
    }
-
 
29373
 
-
 
29374
    public void setTrackerIdIsSet(boolean value) {
-
 
29375
      __isset_bit_vector.set(__TRACKERID_ISSET_ID, value);
-
 
29376
    }
-
 
29377
 
-
 
29378
    public void setFieldValue(_Fields field, Object value) {
-
 
29379
      switch (field) {
-
 
29380
      case TRACKER_ID:
-
 
29381
        if (value == null) {
-
 
29382
          unsetTrackerId();
-
 
29383
        } else {
-
 
29384
          setTrackerId((Long)value);
-
 
29385
        }
-
 
29386
        break;
-
 
29387
 
-
 
29388
      }
-
 
29389
    }
-
 
29390
 
-
 
29391
    public void setFieldValue(int fieldID, Object value) {
-
 
29392
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
29393
    }
-
 
29394
 
-
 
29395
    public Object getFieldValue(_Fields field) {
-
 
29396
      switch (field) {
-
 
29397
      case TRACKER_ID:
-
 
29398
        return new Long(getTrackerId());
-
 
29399
 
-
 
29400
      }
-
 
29401
      throw new IllegalStateException();
-
 
29402
    }
-
 
29403
 
-
 
29404
    public Object getFieldValue(int fieldId) {
-
 
29405
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
29406
    }
-
 
29407
 
-
 
29408
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
29409
    public boolean isSet(_Fields field) {
-
 
29410
      switch (field) {
-
 
29411
      case TRACKER_ID:
-
 
29412
        return isSetTrackerId();
-
 
29413
      }
-
 
29414
      throw new IllegalStateException();
-
 
29415
    }
-
 
29416
 
-
 
29417
    public boolean isSet(int fieldID) {
-
 
29418
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
29419
    }
-
 
29420
 
-
 
29421
    @Override
-
 
29422
    public boolean equals(Object that) {
-
 
29423
      if (that == null)
-
 
29424
        return false;
-
 
29425
      if (that instanceof getTrackLogsByTracker_args)
-
 
29426
        return this.equals((getTrackLogsByTracker_args)that);
-
 
29427
      return false;
-
 
29428
    }
-
 
29429
 
-
 
29430
    public boolean equals(getTrackLogsByTracker_args that) {
-
 
29431
      if (that == null)
-
 
29432
        return false;
-
 
29433
 
-
 
29434
      boolean this_present_trackerId = true;
-
 
29435
      boolean that_present_trackerId = true;
-
 
29436
      if (this_present_trackerId || that_present_trackerId) {
-
 
29437
        if (!(this_present_trackerId && that_present_trackerId))
-
 
29438
          return false;
-
 
29439
        if (this.trackerId != that.trackerId)
-
 
29440
          return false;
-
 
29441
      }
-
 
29442
 
-
 
29443
      return true;
-
 
29444
    }
-
 
29445
 
-
 
29446
    @Override
-
 
29447
    public int hashCode() {
-
 
29448
      return 0;
-
 
29449
    }
-
 
29450
 
-
 
29451
    public int compareTo(getTrackLogsByTracker_args other) {
-
 
29452
      if (!getClass().equals(other.getClass())) {
-
 
29453
        return getClass().getName().compareTo(other.getClass().getName());
-
 
29454
      }
-
 
29455
 
-
 
29456
      int lastComparison = 0;
-
 
29457
      getTrackLogsByTracker_args typedOther = (getTrackLogsByTracker_args)other;
-
 
29458
 
-
 
29459
      lastComparison = Boolean.valueOf(isSetTrackerId()).compareTo(isSetTrackerId());
-
 
29460
      if (lastComparison != 0) {
-
 
29461
        return lastComparison;
-
 
29462
      }
-
 
29463
      lastComparison = TBaseHelper.compareTo(trackerId, typedOther.trackerId);
-
 
29464
      if (lastComparison != 0) {
-
 
29465
        return lastComparison;
-
 
29466
      }
-
 
29467
      return 0;
-
 
29468
    }
-
 
29469
 
-
 
29470
    public void read(TProtocol iprot) throws TException {
-
 
29471
      TField field;
-
 
29472
      iprot.readStructBegin();
-
 
29473
      while (true)
-
 
29474
      {
-
 
29475
        field = iprot.readFieldBegin();
-
 
29476
        if (field.type == TType.STOP) { 
-
 
29477
          break;
-
 
29478
        }
-
 
29479
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
29480
        if (fieldId == null) {
-
 
29481
          TProtocolUtil.skip(iprot, field.type);
-
 
29482
        } else {
-
 
29483
          switch (fieldId) {
-
 
29484
            case TRACKER_ID:
-
 
29485
              if (field.type == TType.I64) {
-
 
29486
                this.trackerId = iprot.readI64();
-
 
29487
                setTrackerIdIsSet(true);
-
 
29488
              } else { 
-
 
29489
                TProtocolUtil.skip(iprot, field.type);
-
 
29490
              }
-
 
29491
              break;
-
 
29492
          }
-
 
29493
          iprot.readFieldEnd();
-
 
29494
        }
-
 
29495
      }
-
 
29496
      iprot.readStructEnd();
-
 
29497
      validate();
-
 
29498
    }
-
 
29499
 
-
 
29500
    public void write(TProtocol oprot) throws TException {
-
 
29501
      validate();
-
 
29502
 
-
 
29503
      oprot.writeStructBegin(STRUCT_DESC);
-
 
29504
      oprot.writeFieldBegin(TRACKER_ID_FIELD_DESC);
-
 
29505
      oprot.writeI64(this.trackerId);
-
 
29506
      oprot.writeFieldEnd();
-
 
29507
      oprot.writeFieldStop();
-
 
29508
      oprot.writeStructEnd();
-
 
29509
    }
-
 
29510
 
-
 
29511
    @Override
-
 
29512
    public String toString() {
-
 
29513
      StringBuilder sb = new StringBuilder("getTrackLogsByTracker_args(");
-
 
29514
      boolean first = true;
-
 
29515
 
-
 
29516
      sb.append("trackerId:");
-
 
29517
      sb.append(this.trackerId);
-
 
29518
      first = false;
-
 
29519
      sb.append(")");
-
 
29520
      return sb.toString();
-
 
29521
    }
-
 
29522
 
-
 
29523
    public void validate() throws TException {
-
 
29524
      // check for required fields
-
 
29525
    }
-
 
29526
 
-
 
29527
  }
-
 
29528
 
-
 
29529
  public static class getTrackLogsByTracker_result implements TBase<getTrackLogsByTracker_result._Fields>, java.io.Serializable, Cloneable, Comparable<getTrackLogsByTracker_result>   {
-
 
29530
    private static final TStruct STRUCT_DESC = new TStruct("getTrackLogsByTracker_result");
-
 
29531
 
-
 
29532
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
-
 
29533
    private static final TField UTX_FIELD_DESC = new TField("utx", TType.STRUCT, (short)1);
-
 
29534
 
-
 
29535
    private List<TrackLog> success;
-
 
29536
    private UserTrackerException utx;
-
 
29537
 
-
 
29538
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
29539
    public enum _Fields implements TFieldIdEnum {
-
 
29540
      SUCCESS((short)0, "success"),
-
 
29541
      UTX((short)1, "utx");
-
 
29542
 
-
 
29543
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
29544
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
29545
 
-
 
29546
      static {
-
 
29547
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
29548
          byId.put((int)field._thriftId, field);
-
 
29549
          byName.put(field.getFieldName(), field);
-
 
29550
        }
-
 
29551
      }
-
 
29552
 
-
 
29553
      /**
-
 
29554
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
29555
       */
-
 
29556
      public static _Fields findByThriftId(int fieldId) {
-
 
29557
        return byId.get(fieldId);
-
 
29558
      }
-
 
29559
 
-
 
29560
      /**
-
 
29561
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
29562
       * if it is not found.
-
 
29563
       */
-
 
29564
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
29565
        _Fields fields = findByThriftId(fieldId);
-
 
29566
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
29567
        return fields;
-
 
29568
      }
-
 
29569
 
-
 
29570
      /**
-
 
29571
       * Find the _Fields constant that matches name, or null if its not found.
-
 
29572
       */
-
 
29573
      public static _Fields findByName(String name) {
-
 
29574
        return byName.get(name);
-
 
29575
      }
-
 
29576
 
-
 
29577
      private final short _thriftId;
-
 
29578
      private final String _fieldName;
-
 
29579
 
-
 
29580
      _Fields(short thriftId, String fieldName) {
-
 
29581
        _thriftId = thriftId;
-
 
29582
        _fieldName = fieldName;
-
 
29583
      }
-
 
29584
 
-
 
29585
      public short getThriftFieldId() {
-
 
29586
        return _thriftId;
-
 
29587
      }
-
 
29588
 
-
 
29589
      public String getFieldName() {
-
 
29590
        return _fieldName;
-
 
29591
      }
-
 
29592
    }
-
 
29593
 
-
 
29594
    // isset id assignments
-
 
29595
 
-
 
29596
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
29597
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
29598
          new ListMetaData(TType.LIST, 
-
 
29599
              new StructMetaData(TType.STRUCT, TrackLog.class))));
-
 
29600
      put(_Fields.UTX, new FieldMetaData("utx", TFieldRequirementType.DEFAULT, 
-
 
29601
          new FieldValueMetaData(TType.STRUCT)));
-
 
29602
    }});
-
 
29603
 
-
 
29604
    static {
-
 
29605
      FieldMetaData.addStructMetaDataMap(getTrackLogsByTracker_result.class, metaDataMap);
-
 
29606
    }
-
 
29607
 
-
 
29608
    public getTrackLogsByTracker_result() {
-
 
29609
    }
-
 
29610
 
-
 
29611
    public getTrackLogsByTracker_result(
-
 
29612
      List<TrackLog> success,
-
 
29613
      UserTrackerException utx)
-
 
29614
    {
-
 
29615
      this();
-
 
29616
      this.success = success;
-
 
29617
      this.utx = utx;
-
 
29618
    }
-
 
29619
 
-
 
29620
    /**
-
 
29621
     * Performs a deep copy on <i>other</i>.
-
 
29622
     */
-
 
29623
    public getTrackLogsByTracker_result(getTrackLogsByTracker_result other) {
-
 
29624
      if (other.isSetSuccess()) {
-
 
29625
        List<TrackLog> __this__success = new ArrayList<TrackLog>();
-
 
29626
        for (TrackLog other_element : other.success) {
-
 
29627
          __this__success.add(new TrackLog(other_element));
-
 
29628
        }
-
 
29629
        this.success = __this__success;
-
 
29630
      }
-
 
29631
      if (other.isSetUtx()) {
-
 
29632
        this.utx = new UserTrackerException(other.utx);
-
 
29633
      }
-
 
29634
    }
-
 
29635
 
-
 
29636
    public getTrackLogsByTracker_result deepCopy() {
-
 
29637
      return new getTrackLogsByTracker_result(this);
-
 
29638
    }
-
 
29639
 
-
 
29640
    @Deprecated
-
 
29641
    public getTrackLogsByTracker_result clone() {
-
 
29642
      return new getTrackLogsByTracker_result(this);
-
 
29643
    }
-
 
29644
 
-
 
29645
    public int getSuccessSize() {
-
 
29646
      return (this.success == null) ? 0 : this.success.size();
-
 
29647
    }
-
 
29648
 
-
 
29649
    public java.util.Iterator<TrackLog> getSuccessIterator() {
-
 
29650
      return (this.success == null) ? null : this.success.iterator();
-
 
29651
    }
-
 
29652
 
-
 
29653
    public void addToSuccess(TrackLog elem) {
-
 
29654
      if (this.success == null) {
-
 
29655
        this.success = new ArrayList<TrackLog>();
-
 
29656
      }
-
 
29657
      this.success.add(elem);
-
 
29658
    }
-
 
29659
 
-
 
29660
    public List<TrackLog> getSuccess() {
-
 
29661
      return this.success;
-
 
29662
    }
-
 
29663
 
-
 
29664
    public getTrackLogsByTracker_result setSuccess(List<TrackLog> success) {
-
 
29665
      this.success = success;
-
 
29666
      return this;
-
 
29667
    }
-
 
29668
 
-
 
29669
    public void unsetSuccess() {
-
 
29670
      this.success = null;
-
 
29671
    }
-
 
29672
 
-
 
29673
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
29674
    public boolean isSetSuccess() {
-
 
29675
      return this.success != null;
-
 
29676
    }
-
 
29677
 
-
 
29678
    public void setSuccessIsSet(boolean value) {
-
 
29679
      if (!value) {
-
 
29680
        this.success = null;
-
 
29681
      }
-
 
29682
    }
-
 
29683
 
-
 
29684
    public UserTrackerException getUtx() {
-
 
29685
      return this.utx;
-
 
29686
    }
-
 
29687
 
-
 
29688
    public getTrackLogsByTracker_result setUtx(UserTrackerException utx) {
-
 
29689
      this.utx = utx;
-
 
29690
      return this;
-
 
29691
    }
-
 
29692
 
-
 
29693
    public void unsetUtx() {
-
 
29694
      this.utx = null;
-
 
29695
    }
-
 
29696
 
-
 
29697
    /** Returns true if field utx is set (has been asigned a value) and false otherwise */
-
 
29698
    public boolean isSetUtx() {
-
 
29699
      return this.utx != null;
-
 
29700
    }
-
 
29701
 
-
 
29702
    public void setUtxIsSet(boolean value) {
-
 
29703
      if (!value) {
-
 
29704
        this.utx = null;
-
 
29705
      }
-
 
29706
    }
-
 
29707
 
-
 
29708
    public void setFieldValue(_Fields field, Object value) {
-
 
29709
      switch (field) {
-
 
29710
      case SUCCESS:
-
 
29711
        if (value == null) {
-
 
29712
          unsetSuccess();
-
 
29713
        } else {
-
 
29714
          setSuccess((List<TrackLog>)value);
-
 
29715
        }
-
 
29716
        break;
-
 
29717
 
-
 
29718
      case UTX:
-
 
29719
        if (value == null) {
-
 
29720
          unsetUtx();
-
 
29721
        } else {
-
 
29722
          setUtx((UserTrackerException)value);
-
 
29723
        }
-
 
29724
        break;
-
 
29725
 
-
 
29726
      }
-
 
29727
    }
-
 
29728
 
-
 
29729
    public void setFieldValue(int fieldID, Object value) {
-
 
29730
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
29731
    }
-
 
29732
 
-
 
29733
    public Object getFieldValue(_Fields field) {
-
 
29734
      switch (field) {
-
 
29735
      case SUCCESS:
-
 
29736
        return getSuccess();
-
 
29737
 
-
 
29738
      case UTX:
-
 
29739
        return getUtx();
-
 
29740
 
-
 
29741
      }
-
 
29742
      throw new IllegalStateException();
-
 
29743
    }
-
 
29744
 
-
 
29745
    public Object getFieldValue(int fieldId) {
-
 
29746
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
29747
    }
-
 
29748
 
-
 
29749
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
29750
    public boolean isSet(_Fields field) {
-
 
29751
      switch (field) {
-
 
29752
      case SUCCESS:
-
 
29753
        return isSetSuccess();
-
 
29754
      case UTX:
-
 
29755
        return isSetUtx();
-
 
29756
      }
-
 
29757
      throw new IllegalStateException();
-
 
29758
    }
-
 
29759
 
-
 
29760
    public boolean isSet(int fieldID) {
-
 
29761
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
29762
    }
-
 
29763
 
-
 
29764
    @Override
-
 
29765
    public boolean equals(Object that) {
-
 
29766
      if (that == null)
-
 
29767
        return false;
-
 
29768
      if (that instanceof getTrackLogsByTracker_result)
-
 
29769
        return this.equals((getTrackLogsByTracker_result)that);
-
 
29770
      return false;
-
 
29771
    }
-
 
29772
 
-
 
29773
    public boolean equals(getTrackLogsByTracker_result that) {
-
 
29774
      if (that == null)
-
 
29775
        return false;
-
 
29776
 
-
 
29777
      boolean this_present_success = true && this.isSetSuccess();
-
 
29778
      boolean that_present_success = true && that.isSetSuccess();
-
 
29779
      if (this_present_success || that_present_success) {
-
 
29780
        if (!(this_present_success && that_present_success))
-
 
29781
          return false;
-
 
29782
        if (!this.success.equals(that.success))
-
 
29783
          return false;
-
 
29784
      }
-
 
29785
 
-
 
29786
      boolean this_present_utx = true && this.isSetUtx();
-
 
29787
      boolean that_present_utx = true && that.isSetUtx();
-
 
29788
      if (this_present_utx || that_present_utx) {
-
 
29789
        if (!(this_present_utx && that_present_utx))
-
 
29790
          return false;
-
 
29791
        if (!this.utx.equals(that.utx))
-
 
29792
          return false;
-
 
29793
      }
-
 
29794
 
-
 
29795
      return true;
-
 
29796
    }
-
 
29797
 
-
 
29798
    @Override
-
 
29799
    public int hashCode() {
-
 
29800
      return 0;
-
 
29801
    }
-
 
29802
 
-
 
29803
    public int compareTo(getTrackLogsByTracker_result other) {
-
 
29804
      if (!getClass().equals(other.getClass())) {
-
 
29805
        return getClass().getName().compareTo(other.getClass().getName());
-
 
29806
      }
-
 
29807
 
-
 
29808
      int lastComparison = 0;
-
 
29809
      getTrackLogsByTracker_result typedOther = (getTrackLogsByTracker_result)other;
-
 
29810
 
-
 
29811
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
29812
      if (lastComparison != 0) {
-
 
29813
        return lastComparison;
-
 
29814
      }
-
 
29815
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
29816
      if (lastComparison != 0) {
-
 
29817
        return lastComparison;
-
 
29818
      }
-
 
29819
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(isSetUtx());
-
 
29820
      if (lastComparison != 0) {
-
 
29821
        return lastComparison;
-
 
29822
      }
-
 
29823
      lastComparison = TBaseHelper.compareTo(utx, typedOther.utx);
-
 
29824
      if (lastComparison != 0) {
-
 
29825
        return lastComparison;
-
 
29826
      }
-
 
29827
      return 0;
-
 
29828
    }
-
 
29829
 
-
 
29830
    public void read(TProtocol iprot) throws TException {
-
 
29831
      TField field;
-
 
29832
      iprot.readStructBegin();
-
 
29833
      while (true)
-
 
29834
      {
-
 
29835
        field = iprot.readFieldBegin();
-
 
29836
        if (field.type == TType.STOP) { 
-
 
29837
          break;
-
 
29838
        }
-
 
29839
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
29840
        if (fieldId == null) {
-
 
29841
          TProtocolUtil.skip(iprot, field.type);
-
 
29842
        } else {
-
 
29843
          switch (fieldId) {
-
 
29844
            case SUCCESS:
-
 
29845
              if (field.type == TType.LIST) {
-
 
29846
                {
-
 
29847
                  TList _list36 = iprot.readListBegin();
-
 
29848
                  this.success = new ArrayList<TrackLog>(_list36.size);
-
 
29849
                  for (int _i37 = 0; _i37 < _list36.size; ++_i37)
-
 
29850
                  {
-
 
29851
                    TrackLog _elem38;
-
 
29852
                    _elem38 = new TrackLog();
-
 
29853
                    _elem38.read(iprot);
-
 
29854
                    this.success.add(_elem38);
-
 
29855
                  }
-
 
29856
                  iprot.readListEnd();
-
 
29857
                }
-
 
29858
              } else { 
-
 
29859
                TProtocolUtil.skip(iprot, field.type);
-
 
29860
              }
-
 
29861
              break;
-
 
29862
            case UTX:
-
 
29863
              if (field.type == TType.STRUCT) {
-
 
29864
                this.utx = new UserTrackerException();
-
 
29865
                this.utx.read(iprot);
-
 
29866
              } else { 
-
 
29867
                TProtocolUtil.skip(iprot, field.type);
-
 
29868
              }
-
 
29869
              break;
-
 
29870
          }
-
 
29871
          iprot.readFieldEnd();
-
 
29872
        }
-
 
29873
      }
-
 
29874
      iprot.readStructEnd();
-
 
29875
      validate();
-
 
29876
    }
-
 
29877
 
-
 
29878
    public void write(TProtocol oprot) throws TException {
-
 
29879
      oprot.writeStructBegin(STRUCT_DESC);
-
 
29880
 
-
 
29881
      if (this.isSetSuccess()) {
-
 
29882
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
29883
        {
-
 
29884
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
-
 
29885
          for (TrackLog _iter39 : this.success)
-
 
29886
          {
24173
            _iter39.write(oprot);
29887
            _iter39.write(oprot);
-
 
29888
          }
-
 
29889
          oprot.writeListEnd();
-
 
29890
        }
-
 
29891
        oprot.writeFieldEnd();
-
 
29892
      } else if (this.isSetUtx()) {
-
 
29893
        oprot.writeFieldBegin(UTX_FIELD_DESC);
-
 
29894
        this.utx.write(oprot);
-
 
29895
        oprot.writeFieldEnd();
-
 
29896
      }
-
 
29897
      oprot.writeFieldStop();
-
 
29898
      oprot.writeStructEnd();
-
 
29899
    }
-
 
29900
 
-
 
29901
    @Override
-
 
29902
    public String toString() {
-
 
29903
      StringBuilder sb = new StringBuilder("getTrackLogsByTracker_result(");
-
 
29904
      boolean first = true;
-
 
29905
 
-
 
29906
      sb.append("success:");
-
 
29907
      if (this.success == null) {
-
 
29908
        sb.append("null");
-
 
29909
      } else {
-
 
29910
        sb.append(this.success);
-
 
29911
      }
-
 
29912
      first = false;
-
 
29913
      if (!first) sb.append(", ");
-
 
29914
      sb.append("utx:");
-
 
29915
      if (this.utx == null) {
-
 
29916
        sb.append("null");
-
 
29917
      } else {
-
 
29918
        sb.append(this.utx);
-
 
29919
      }
-
 
29920
      first = false;
-
 
29921
      sb.append(")");
-
 
29922
      return sb.toString();
-
 
29923
    }
-
 
29924
 
-
 
29925
    public void validate() throws TException {
-
 
29926
      // check for required fields
-
 
29927
    }
-
 
29928
 
-
 
29929
  }
-
 
29930
 
-
 
29931
  public static class getTrackLogsByUser_args implements TBase<getTrackLogsByUser_args._Fields>, java.io.Serializable, Cloneable, Comparable<getTrackLogsByUser_args>   {
-
 
29932
    private static final TStruct STRUCT_DESC = new TStruct("getTrackLogsByUser_args");
-
 
29933
 
-
 
29934
    private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)1);
-
 
29935
 
-
 
29936
    private long userId;
-
 
29937
 
-
 
29938
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
29939
    public enum _Fields implements TFieldIdEnum {
-
 
29940
      USER_ID((short)1, "userId");
-
 
29941
 
-
 
29942
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
29943
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
29944
 
-
 
29945
      static {
-
 
29946
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
29947
          byId.put((int)field._thriftId, field);
-
 
29948
          byName.put(field.getFieldName(), field);
-
 
29949
        }
-
 
29950
      }
-
 
29951
 
-
 
29952
      /**
-
 
29953
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
29954
       */
-
 
29955
      public static _Fields findByThriftId(int fieldId) {
-
 
29956
        return byId.get(fieldId);
-
 
29957
      }
-
 
29958
 
-
 
29959
      /**
-
 
29960
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
29961
       * if it is not found.
-
 
29962
       */
-
 
29963
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
29964
        _Fields fields = findByThriftId(fieldId);
-
 
29965
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
29966
        return fields;
-
 
29967
      }
-
 
29968
 
-
 
29969
      /**
-
 
29970
       * Find the _Fields constant that matches name, or null if its not found.
-
 
29971
       */
-
 
29972
      public static _Fields findByName(String name) {
-
 
29973
        return byName.get(name);
-
 
29974
      }
-
 
29975
 
-
 
29976
      private final short _thriftId;
-
 
29977
      private final String _fieldName;
-
 
29978
 
-
 
29979
      _Fields(short thriftId, String fieldName) {
-
 
29980
        _thriftId = thriftId;
-
 
29981
        _fieldName = fieldName;
-
 
29982
      }
-
 
29983
 
-
 
29984
      public short getThriftFieldId() {
-
 
29985
        return _thriftId;
-
 
29986
      }
-
 
29987
 
-
 
29988
      public String getFieldName() {
-
 
29989
        return _fieldName;
-
 
29990
      }
-
 
29991
    }
-
 
29992
 
-
 
29993
    // isset id assignments
-
 
29994
    private static final int __USERID_ISSET_ID = 0;
-
 
29995
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
29996
 
-
 
29997
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
29998
      put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT, 
-
 
29999
          new FieldValueMetaData(TType.I64)));
-
 
30000
    }});
-
 
30001
 
-
 
30002
    static {
-
 
30003
      FieldMetaData.addStructMetaDataMap(getTrackLogsByUser_args.class, metaDataMap);
-
 
30004
    }
-
 
30005
 
-
 
30006
    public getTrackLogsByUser_args() {
-
 
30007
    }
-
 
30008
 
-
 
30009
    public getTrackLogsByUser_args(
-
 
30010
      long userId)
-
 
30011
    {
-
 
30012
      this();
-
 
30013
      this.userId = userId;
-
 
30014
      setUserIdIsSet(true);
-
 
30015
    }
-
 
30016
 
-
 
30017
    /**
-
 
30018
     * Performs a deep copy on <i>other</i>.
-
 
30019
     */
-
 
30020
    public getTrackLogsByUser_args(getTrackLogsByUser_args other) {
-
 
30021
      __isset_bit_vector.clear();
-
 
30022
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
30023
      this.userId = other.userId;
-
 
30024
    }
-
 
30025
 
-
 
30026
    public getTrackLogsByUser_args deepCopy() {
-
 
30027
      return new getTrackLogsByUser_args(this);
-
 
30028
    }
-
 
30029
 
-
 
30030
    @Deprecated
-
 
30031
    public getTrackLogsByUser_args clone() {
-
 
30032
      return new getTrackLogsByUser_args(this);
-
 
30033
    }
-
 
30034
 
-
 
30035
    public long getUserId() {
-
 
30036
      return this.userId;
-
 
30037
    }
-
 
30038
 
-
 
30039
    public getTrackLogsByUser_args setUserId(long userId) {
-
 
30040
      this.userId = userId;
-
 
30041
      setUserIdIsSet(true);
-
 
30042
      return this;
-
 
30043
    }
-
 
30044
 
-
 
30045
    public void unsetUserId() {
-
 
30046
      __isset_bit_vector.clear(__USERID_ISSET_ID);
-
 
30047
    }
-
 
30048
 
-
 
30049
    /** Returns true if field userId is set (has been asigned a value) and false otherwise */
-
 
30050
    public boolean isSetUserId() {
-
 
30051
      return __isset_bit_vector.get(__USERID_ISSET_ID);
-
 
30052
    }
-
 
30053
 
-
 
30054
    public void setUserIdIsSet(boolean value) {
-
 
30055
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
-
 
30056
    }
-
 
30057
 
-
 
30058
    public void setFieldValue(_Fields field, Object value) {
-
 
30059
      switch (field) {
-
 
30060
      case USER_ID:
-
 
30061
        if (value == null) {
-
 
30062
          unsetUserId();
-
 
30063
        } else {
-
 
30064
          setUserId((Long)value);
-
 
30065
        }
-
 
30066
        break;
-
 
30067
 
-
 
30068
      }
-
 
30069
    }
-
 
30070
 
-
 
30071
    public void setFieldValue(int fieldID, Object value) {
-
 
30072
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
30073
    }
-
 
30074
 
-
 
30075
    public Object getFieldValue(_Fields field) {
-
 
30076
      switch (field) {
-
 
30077
      case USER_ID:
-
 
30078
        return new Long(getUserId());
-
 
30079
 
-
 
30080
      }
-
 
30081
      throw new IllegalStateException();
-
 
30082
    }
-
 
30083
 
-
 
30084
    public Object getFieldValue(int fieldId) {
-
 
30085
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
30086
    }
-
 
30087
 
-
 
30088
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
30089
    public boolean isSet(_Fields field) {
-
 
30090
      switch (field) {
-
 
30091
      case USER_ID:
-
 
30092
        return isSetUserId();
-
 
30093
      }
-
 
30094
      throw new IllegalStateException();
-
 
30095
    }
-
 
30096
 
-
 
30097
    public boolean isSet(int fieldID) {
-
 
30098
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
30099
    }
-
 
30100
 
-
 
30101
    @Override
-
 
30102
    public boolean equals(Object that) {
-
 
30103
      if (that == null)
-
 
30104
        return false;
-
 
30105
      if (that instanceof getTrackLogsByUser_args)
-
 
30106
        return this.equals((getTrackLogsByUser_args)that);
-
 
30107
      return false;
-
 
30108
    }
-
 
30109
 
-
 
30110
    public boolean equals(getTrackLogsByUser_args that) {
-
 
30111
      if (that == null)
-
 
30112
        return false;
-
 
30113
 
-
 
30114
      boolean this_present_userId = true;
-
 
30115
      boolean that_present_userId = true;
-
 
30116
      if (this_present_userId || that_present_userId) {
-
 
30117
        if (!(this_present_userId && that_present_userId))
-
 
30118
          return false;
-
 
30119
        if (this.userId != that.userId)
-
 
30120
          return false;
-
 
30121
      }
-
 
30122
 
-
 
30123
      return true;
-
 
30124
    }
-
 
30125
 
-
 
30126
    @Override
-
 
30127
    public int hashCode() {
-
 
30128
      return 0;
-
 
30129
    }
-
 
30130
 
-
 
30131
    public int compareTo(getTrackLogsByUser_args other) {
-
 
30132
      if (!getClass().equals(other.getClass())) {
-
 
30133
        return getClass().getName().compareTo(other.getClass().getName());
-
 
30134
      }
-
 
30135
 
-
 
30136
      int lastComparison = 0;
-
 
30137
      getTrackLogsByUser_args typedOther = (getTrackLogsByUser_args)other;
-
 
30138
 
-
 
30139
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(isSetUserId());
-
 
30140
      if (lastComparison != 0) {
-
 
30141
        return lastComparison;
-
 
30142
      }
-
 
30143
      lastComparison = TBaseHelper.compareTo(userId, typedOther.userId);
-
 
30144
      if (lastComparison != 0) {
-
 
30145
        return lastComparison;
-
 
30146
      }
-
 
30147
      return 0;
-
 
30148
    }
-
 
30149
 
-
 
30150
    public void read(TProtocol iprot) throws TException {
-
 
30151
      TField field;
-
 
30152
      iprot.readStructBegin();
-
 
30153
      while (true)
-
 
30154
      {
-
 
30155
        field = iprot.readFieldBegin();
-
 
30156
        if (field.type == TType.STOP) { 
-
 
30157
          break;
-
 
30158
        }
-
 
30159
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
30160
        if (fieldId == null) {
-
 
30161
          TProtocolUtil.skip(iprot, field.type);
-
 
30162
        } else {
-
 
30163
          switch (fieldId) {
-
 
30164
            case USER_ID:
-
 
30165
              if (field.type == TType.I64) {
-
 
30166
                this.userId = iprot.readI64();
-
 
30167
                setUserIdIsSet(true);
-
 
30168
              } else { 
-
 
30169
                TProtocolUtil.skip(iprot, field.type);
-
 
30170
              }
-
 
30171
              break;
-
 
30172
          }
-
 
30173
          iprot.readFieldEnd();
-
 
30174
        }
-
 
30175
      }
-
 
30176
      iprot.readStructEnd();
-
 
30177
      validate();
-
 
30178
    }
-
 
30179
 
-
 
30180
    public void write(TProtocol oprot) throws TException {
-
 
30181
      validate();
-
 
30182
 
-
 
30183
      oprot.writeStructBegin(STRUCT_DESC);
-
 
30184
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
-
 
30185
      oprot.writeI64(this.userId);
-
 
30186
      oprot.writeFieldEnd();
-
 
30187
      oprot.writeFieldStop();
-
 
30188
      oprot.writeStructEnd();
-
 
30189
    }
-
 
30190
 
-
 
30191
    @Override
-
 
30192
    public String toString() {
-
 
30193
      StringBuilder sb = new StringBuilder("getTrackLogsByUser_args(");
-
 
30194
      boolean first = true;
-
 
30195
 
-
 
30196
      sb.append("userId:");
-
 
30197
      sb.append(this.userId);
-
 
30198
      first = false;
-
 
30199
      sb.append(")");
-
 
30200
      return sb.toString();
-
 
30201
    }
-
 
30202
 
-
 
30203
    public void validate() throws TException {
-
 
30204
      // check for required fields
-
 
30205
    }
-
 
30206
 
-
 
30207
  }
-
 
30208
 
-
 
30209
  public static class getTrackLogsByUser_result implements TBase<getTrackLogsByUser_result._Fields>, java.io.Serializable, Cloneable, Comparable<getTrackLogsByUser_result>   {
-
 
30210
    private static final TStruct STRUCT_DESC = new TStruct("getTrackLogsByUser_result");
-
 
30211
 
-
 
30212
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
-
 
30213
    private static final TField UTX_FIELD_DESC = new TField("utx", TType.STRUCT, (short)1);
-
 
30214
 
-
 
30215
    private List<TrackLog> success;
-
 
30216
    private UserTrackerException utx;
-
 
30217
 
-
 
30218
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
30219
    public enum _Fields implements TFieldIdEnum {
-
 
30220
      SUCCESS((short)0, "success"),
-
 
30221
      UTX((short)1, "utx");
-
 
30222
 
-
 
30223
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
30224
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
30225
 
-
 
30226
      static {
-
 
30227
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
30228
          byId.put((int)field._thriftId, field);
-
 
30229
          byName.put(field.getFieldName(), field);
-
 
30230
        }
-
 
30231
      }
-
 
30232
 
-
 
30233
      /**
-
 
30234
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
30235
       */
-
 
30236
      public static _Fields findByThriftId(int fieldId) {
-
 
30237
        return byId.get(fieldId);
-
 
30238
      }
-
 
30239
 
-
 
30240
      /**
-
 
30241
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
30242
       * if it is not found.
-
 
30243
       */
-
 
30244
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
30245
        _Fields fields = findByThriftId(fieldId);
-
 
30246
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
30247
        return fields;
-
 
30248
      }
-
 
30249
 
-
 
30250
      /**
-
 
30251
       * Find the _Fields constant that matches name, or null if its not found.
-
 
30252
       */
-
 
30253
      public static _Fields findByName(String name) {
-
 
30254
        return byName.get(name);
-
 
30255
      }
-
 
30256
 
-
 
30257
      private final short _thriftId;
-
 
30258
      private final String _fieldName;
-
 
30259
 
-
 
30260
      _Fields(short thriftId, String fieldName) {
-
 
30261
        _thriftId = thriftId;
-
 
30262
        _fieldName = fieldName;
-
 
30263
      }
-
 
30264
 
-
 
30265
      public short getThriftFieldId() {
-
 
30266
        return _thriftId;
-
 
30267
      }
-
 
30268
 
-
 
30269
      public String getFieldName() {
-
 
30270
        return _fieldName;
-
 
30271
      }
-
 
30272
    }
-
 
30273
 
-
 
30274
    // isset id assignments
-
 
30275
 
-
 
30276
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
30277
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
30278
          new ListMetaData(TType.LIST, 
-
 
30279
              new StructMetaData(TType.STRUCT, TrackLog.class))));
-
 
30280
      put(_Fields.UTX, new FieldMetaData("utx", TFieldRequirementType.DEFAULT, 
-
 
30281
          new FieldValueMetaData(TType.STRUCT)));
-
 
30282
    }});
-
 
30283
 
-
 
30284
    static {
-
 
30285
      FieldMetaData.addStructMetaDataMap(getTrackLogsByUser_result.class, metaDataMap);
-
 
30286
    }
-
 
30287
 
-
 
30288
    public getTrackLogsByUser_result() {
-
 
30289
    }
-
 
30290
 
-
 
30291
    public getTrackLogsByUser_result(
-
 
30292
      List<TrackLog> success,
-
 
30293
      UserTrackerException utx)
-
 
30294
    {
-
 
30295
      this();
-
 
30296
      this.success = success;
-
 
30297
      this.utx = utx;
-
 
30298
    }
-
 
30299
 
-
 
30300
    /**
-
 
30301
     * Performs a deep copy on <i>other</i>.
-
 
30302
     */
-
 
30303
    public getTrackLogsByUser_result(getTrackLogsByUser_result other) {
-
 
30304
      if (other.isSetSuccess()) {
-
 
30305
        List<TrackLog> __this__success = new ArrayList<TrackLog>();
-
 
30306
        for (TrackLog other_element : other.success) {
-
 
30307
          __this__success.add(new TrackLog(other_element));
-
 
30308
        }
-
 
30309
        this.success = __this__success;
-
 
30310
      }
-
 
30311
      if (other.isSetUtx()) {
-
 
30312
        this.utx = new UserTrackerException(other.utx);
-
 
30313
      }
-
 
30314
    }
-
 
30315
 
-
 
30316
    public getTrackLogsByUser_result deepCopy() {
-
 
30317
      return new getTrackLogsByUser_result(this);
-
 
30318
    }
-
 
30319
 
-
 
30320
    @Deprecated
-
 
30321
    public getTrackLogsByUser_result clone() {
-
 
30322
      return new getTrackLogsByUser_result(this);
-
 
30323
    }
-
 
30324
 
-
 
30325
    public int getSuccessSize() {
-
 
30326
      return (this.success == null) ? 0 : this.success.size();
-
 
30327
    }
-
 
30328
 
-
 
30329
    public java.util.Iterator<TrackLog> getSuccessIterator() {
-
 
30330
      return (this.success == null) ? null : this.success.iterator();
-
 
30331
    }
-
 
30332
 
-
 
30333
    public void addToSuccess(TrackLog elem) {
-
 
30334
      if (this.success == null) {
-
 
30335
        this.success = new ArrayList<TrackLog>();
-
 
30336
      }
-
 
30337
      this.success.add(elem);
-
 
30338
    }
-
 
30339
 
-
 
30340
    public List<TrackLog> getSuccess() {
-
 
30341
      return this.success;
-
 
30342
    }
-
 
30343
 
-
 
30344
    public getTrackLogsByUser_result setSuccess(List<TrackLog> success) {
-
 
30345
      this.success = success;
-
 
30346
      return this;
-
 
30347
    }
-
 
30348
 
-
 
30349
    public void unsetSuccess() {
-
 
30350
      this.success = null;
-
 
30351
    }
-
 
30352
 
-
 
30353
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
30354
    public boolean isSetSuccess() {
-
 
30355
      return this.success != null;
-
 
30356
    }
-
 
30357
 
-
 
30358
    public void setSuccessIsSet(boolean value) {
-
 
30359
      if (!value) {
-
 
30360
        this.success = null;
-
 
30361
      }
-
 
30362
    }
-
 
30363
 
-
 
30364
    public UserTrackerException getUtx() {
-
 
30365
      return this.utx;
-
 
30366
    }
-
 
30367
 
-
 
30368
    public getTrackLogsByUser_result setUtx(UserTrackerException utx) {
-
 
30369
      this.utx = utx;
-
 
30370
      return this;
-
 
30371
    }
-
 
30372
 
-
 
30373
    public void unsetUtx() {
-
 
30374
      this.utx = null;
-
 
30375
    }
-
 
30376
 
-
 
30377
    /** Returns true if field utx is set (has been asigned a value) and false otherwise */
-
 
30378
    public boolean isSetUtx() {
-
 
30379
      return this.utx != null;
-
 
30380
    }
-
 
30381
 
-
 
30382
    public void setUtxIsSet(boolean value) {
-
 
30383
      if (!value) {
-
 
30384
        this.utx = null;
-
 
30385
      }
-
 
30386
    }
-
 
30387
 
-
 
30388
    public void setFieldValue(_Fields field, Object value) {
-
 
30389
      switch (field) {
-
 
30390
      case SUCCESS:
-
 
30391
        if (value == null) {
-
 
30392
          unsetSuccess();
-
 
30393
        } else {
-
 
30394
          setSuccess((List<TrackLog>)value);
-
 
30395
        }
-
 
30396
        break;
-
 
30397
 
-
 
30398
      case UTX:
-
 
30399
        if (value == null) {
-
 
30400
          unsetUtx();
-
 
30401
        } else {
-
 
30402
          setUtx((UserTrackerException)value);
-
 
30403
        }
-
 
30404
        break;
-
 
30405
 
-
 
30406
      }
-
 
30407
    }
-
 
30408
 
-
 
30409
    public void setFieldValue(int fieldID, Object value) {
-
 
30410
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
30411
    }
-
 
30412
 
-
 
30413
    public Object getFieldValue(_Fields field) {
-
 
30414
      switch (field) {
-
 
30415
      case SUCCESS:
-
 
30416
        return getSuccess();
-
 
30417
 
-
 
30418
      case UTX:
-
 
30419
        return getUtx();
-
 
30420
 
-
 
30421
      }
-
 
30422
      throw new IllegalStateException();
-
 
30423
    }
-
 
30424
 
-
 
30425
    public Object getFieldValue(int fieldId) {
-
 
30426
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
30427
    }
-
 
30428
 
-
 
30429
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
30430
    public boolean isSet(_Fields field) {
-
 
30431
      switch (field) {
-
 
30432
      case SUCCESS:
-
 
30433
        return isSetSuccess();
-
 
30434
      case UTX:
-
 
30435
        return isSetUtx();
-
 
30436
      }
-
 
30437
      throw new IllegalStateException();
-
 
30438
    }
-
 
30439
 
-
 
30440
    public boolean isSet(int fieldID) {
-
 
30441
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
30442
    }
-
 
30443
 
-
 
30444
    @Override
-
 
30445
    public boolean equals(Object that) {
-
 
30446
      if (that == null)
-
 
30447
        return false;
-
 
30448
      if (that instanceof getTrackLogsByUser_result)
-
 
30449
        return this.equals((getTrackLogsByUser_result)that);
-
 
30450
      return false;
-
 
30451
    }
-
 
30452
 
-
 
30453
    public boolean equals(getTrackLogsByUser_result that) {
-
 
30454
      if (that == null)
-
 
30455
        return false;
-
 
30456
 
-
 
30457
      boolean this_present_success = true && this.isSetSuccess();
-
 
30458
      boolean that_present_success = true && that.isSetSuccess();
-
 
30459
      if (this_present_success || that_present_success) {
-
 
30460
        if (!(this_present_success && that_present_success))
-
 
30461
          return false;
-
 
30462
        if (!this.success.equals(that.success))
-
 
30463
          return false;
-
 
30464
      }
-
 
30465
 
-
 
30466
      boolean this_present_utx = true && this.isSetUtx();
-
 
30467
      boolean that_present_utx = true && that.isSetUtx();
-
 
30468
      if (this_present_utx || that_present_utx) {
-
 
30469
        if (!(this_present_utx && that_present_utx))
-
 
30470
          return false;
-
 
30471
        if (!this.utx.equals(that.utx))
-
 
30472
          return false;
-
 
30473
      }
-
 
30474
 
-
 
30475
      return true;
-
 
30476
    }
-
 
30477
 
-
 
30478
    @Override
-
 
30479
    public int hashCode() {
-
 
30480
      return 0;
-
 
30481
    }
-
 
30482
 
-
 
30483
    public int compareTo(getTrackLogsByUser_result other) {
-
 
30484
      if (!getClass().equals(other.getClass())) {
-
 
30485
        return getClass().getName().compareTo(other.getClass().getName());
-
 
30486
      }
-
 
30487
 
-
 
30488
      int lastComparison = 0;
-
 
30489
      getTrackLogsByUser_result typedOther = (getTrackLogsByUser_result)other;
-
 
30490
 
-
 
30491
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
30492
      if (lastComparison != 0) {
-
 
30493
        return lastComparison;
-
 
30494
      }
-
 
30495
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
30496
      if (lastComparison != 0) {
-
 
30497
        return lastComparison;
-
 
30498
      }
-
 
30499
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(isSetUtx());
-
 
30500
      if (lastComparison != 0) {
-
 
30501
        return lastComparison;
-
 
30502
      }
-
 
30503
      lastComparison = TBaseHelper.compareTo(utx, typedOther.utx);
-
 
30504
      if (lastComparison != 0) {
-
 
30505
        return lastComparison;
-
 
30506
      }
-
 
30507
      return 0;
-
 
30508
    }
-
 
30509
 
-
 
30510
    public void read(TProtocol iprot) throws TException {
-
 
30511
      TField field;
-
 
30512
      iprot.readStructBegin();
-
 
30513
      while (true)
-
 
30514
      {
-
 
30515
        field = iprot.readFieldBegin();
-
 
30516
        if (field.type == TType.STOP) { 
-
 
30517
          break;
-
 
30518
        }
-
 
30519
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
30520
        if (fieldId == null) {
-
 
30521
          TProtocolUtil.skip(iprot, field.type);
-
 
30522
        } else {
-
 
30523
          switch (fieldId) {
-
 
30524
            case SUCCESS:
-
 
30525
              if (field.type == TType.LIST) {
-
 
30526
                {
-
 
30527
                  TList _list40 = iprot.readListBegin();
-
 
30528
                  this.success = new ArrayList<TrackLog>(_list40.size);
-
 
30529
                  for (int _i41 = 0; _i41 < _list40.size; ++_i41)
-
 
30530
                  {
-
 
30531
                    TrackLog _elem42;
-
 
30532
                    _elem42 = new TrackLog();
-
 
30533
                    _elem42.read(iprot);
-
 
30534
                    this.success.add(_elem42);
-
 
30535
                  }
-
 
30536
                  iprot.readListEnd();
-
 
30537
                }
-
 
30538
              } else { 
-
 
30539
                TProtocolUtil.skip(iprot, field.type);
-
 
30540
              }
-
 
30541
              break;
-
 
30542
            case UTX:
-
 
30543
              if (field.type == TType.STRUCT) {
-
 
30544
                this.utx = new UserTrackerException();
-
 
30545
                this.utx.read(iprot);
-
 
30546
              } else { 
-
 
30547
                TProtocolUtil.skip(iprot, field.type);
-
 
30548
              }
-
 
30549
              break;
-
 
30550
          }
-
 
30551
          iprot.readFieldEnd();
-
 
30552
        }
-
 
30553
      }
-
 
30554
      iprot.readStructEnd();
-
 
30555
      validate();
-
 
30556
    }
-
 
30557
 
-
 
30558
    public void write(TProtocol oprot) throws TException {
-
 
30559
      oprot.writeStructBegin(STRUCT_DESC);
-
 
30560
 
-
 
30561
      if (this.isSetSuccess()) {
-
 
30562
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
30563
        {
-
 
30564
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
-
 
30565
          for (TrackLog _iter43 : this.success)
-
 
30566
          {
-
 
30567
            _iter43.write(oprot);
-
 
30568
          }
-
 
30569
          oprot.writeListEnd();
-
 
30570
        }
-
 
30571
        oprot.writeFieldEnd();
-
 
30572
      } else if (this.isSetUtx()) {
-
 
30573
        oprot.writeFieldBegin(UTX_FIELD_DESC);
-
 
30574
        this.utx.write(oprot);
-
 
30575
        oprot.writeFieldEnd();
-
 
30576
      }
-
 
30577
      oprot.writeFieldStop();
-
 
30578
      oprot.writeStructEnd();
-
 
30579
    }
-
 
30580
 
-
 
30581
    @Override
-
 
30582
    public String toString() {
-
 
30583
      StringBuilder sb = new StringBuilder("getTrackLogsByUser_result(");
-
 
30584
      boolean first = true;
-
 
30585
 
-
 
30586
      sb.append("success:");
-
 
30587
      if (this.success == null) {
-
 
30588
        sb.append("null");
-
 
30589
      } else {
-
 
30590
        sb.append(this.success);
-
 
30591
      }
-
 
30592
      first = false;
-
 
30593
      if (!first) sb.append(", ");
-
 
30594
      sb.append("utx:");
-
 
30595
      if (this.utx == null) {
-
 
30596
        sb.append("null");
-
 
30597
      } else {
-
 
30598
        sb.append(this.utx);
-
 
30599
      }
-
 
30600
      first = false;
-
 
30601
      sb.append(")");
-
 
30602
      return sb.toString();
-
 
30603
    }
-
 
30604
 
-
 
30605
    public void validate() throws TException {
-
 
30606
      // check for required fields
-
 
30607
    }
-
 
30608
 
-
 
30609
  }
-
 
30610
 
-
 
30611
  public static class getTrackLogs_args implements TBase<getTrackLogs_args._Fields>, java.io.Serializable, Cloneable, Comparable<getTrackLogs_args>   {
-
 
30612
    private static final TStruct STRUCT_DESC = new TStruct("getTrackLogs_args");
-
 
30613
 
-
 
30614
    private static final TField TRACKER_ID_FIELD_DESC = new TField("trackerId", TType.I64, (short)1);
-
 
30615
    private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)2);
-
 
30616
    private static final TField EVENT_FIELD_DESC = new TField("event", TType.STRING, (short)3);
-
 
30617
    private static final TField URL_FIELD_DESC = new TField("url", TType.STRING, (short)4);
-
 
30618
 
-
 
30619
    private long trackerId;
-
 
30620
    private long userId;
-
 
30621
    private String event;
-
 
30622
    private String url;
-
 
30623
 
-
 
30624
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
30625
    public enum _Fields implements TFieldIdEnum {
-
 
30626
      TRACKER_ID((short)1, "trackerId"),
-
 
30627
      USER_ID((short)2, "userId"),
-
 
30628
      EVENT((short)3, "event"),
-
 
30629
      URL((short)4, "url");
-
 
30630
 
-
 
30631
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
30632
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
30633
 
-
 
30634
      static {
-
 
30635
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
30636
          byId.put((int)field._thriftId, field);
-
 
30637
          byName.put(field.getFieldName(), field);
-
 
30638
        }
-
 
30639
      }
-
 
30640
 
-
 
30641
      /**
-
 
30642
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
30643
       */
-
 
30644
      public static _Fields findByThriftId(int fieldId) {
-
 
30645
        return byId.get(fieldId);
-
 
30646
      }
-
 
30647
 
-
 
30648
      /**
-
 
30649
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
30650
       * if it is not found.
-
 
30651
       */
-
 
30652
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
30653
        _Fields fields = findByThriftId(fieldId);
-
 
30654
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
30655
        return fields;
-
 
30656
      }
-
 
30657
 
-
 
30658
      /**
-
 
30659
       * Find the _Fields constant that matches name, or null if its not found.
-
 
30660
       */
-
 
30661
      public static _Fields findByName(String name) {
-
 
30662
        return byName.get(name);
-
 
30663
      }
-
 
30664
 
-
 
30665
      private final short _thriftId;
-
 
30666
      private final String _fieldName;
-
 
30667
 
-
 
30668
      _Fields(short thriftId, String fieldName) {
-
 
30669
        _thriftId = thriftId;
-
 
30670
        _fieldName = fieldName;
-
 
30671
      }
-
 
30672
 
-
 
30673
      public short getThriftFieldId() {
-
 
30674
        return _thriftId;
-
 
30675
      }
-
 
30676
 
-
 
30677
      public String getFieldName() {
-
 
30678
        return _fieldName;
-
 
30679
      }
-
 
30680
    }
-
 
30681
 
-
 
30682
    // isset id assignments
-
 
30683
    private static final int __TRACKERID_ISSET_ID = 0;
-
 
30684
    private static final int __USERID_ISSET_ID = 1;
-
 
30685
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
30686
 
-
 
30687
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
30688
      put(_Fields.TRACKER_ID, new FieldMetaData("trackerId", TFieldRequirementType.DEFAULT, 
-
 
30689
          new FieldValueMetaData(TType.I64)));
-
 
30690
      put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT, 
-
 
30691
          new FieldValueMetaData(TType.I64)));
-
 
30692
      put(_Fields.EVENT, new FieldMetaData("event", TFieldRequirementType.DEFAULT, 
-
 
30693
          new FieldValueMetaData(TType.STRING)));
-
 
30694
      put(_Fields.URL, new FieldMetaData("url", TFieldRequirementType.DEFAULT, 
-
 
30695
          new FieldValueMetaData(TType.STRING)));
-
 
30696
    }});
-
 
30697
 
-
 
30698
    static {
-
 
30699
      FieldMetaData.addStructMetaDataMap(getTrackLogs_args.class, metaDataMap);
-
 
30700
    }
-
 
30701
 
-
 
30702
    public getTrackLogs_args() {
-
 
30703
    }
-
 
30704
 
-
 
30705
    public getTrackLogs_args(
-
 
30706
      long trackerId,
-
 
30707
      long userId,
-
 
30708
      String event,
-
 
30709
      String url)
-
 
30710
    {
-
 
30711
      this();
-
 
30712
      this.trackerId = trackerId;
-
 
30713
      setTrackerIdIsSet(true);
-
 
30714
      this.userId = userId;
-
 
30715
      setUserIdIsSet(true);
-
 
30716
      this.event = event;
-
 
30717
      this.url = url;
-
 
30718
    }
-
 
30719
 
-
 
30720
    /**
-
 
30721
     * Performs a deep copy on <i>other</i>.
-
 
30722
     */
-
 
30723
    public getTrackLogs_args(getTrackLogs_args other) {
-
 
30724
      __isset_bit_vector.clear();
-
 
30725
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
30726
      this.trackerId = other.trackerId;
-
 
30727
      this.userId = other.userId;
-
 
30728
      if (other.isSetEvent()) {
-
 
30729
        this.event = other.event;
-
 
30730
      }
-
 
30731
      if (other.isSetUrl()) {
-
 
30732
        this.url = other.url;
-
 
30733
      }
-
 
30734
    }
-
 
30735
 
-
 
30736
    public getTrackLogs_args deepCopy() {
-
 
30737
      return new getTrackLogs_args(this);
-
 
30738
    }
-
 
30739
 
-
 
30740
    @Deprecated
-
 
30741
    public getTrackLogs_args clone() {
-
 
30742
      return new getTrackLogs_args(this);
-
 
30743
    }
-
 
30744
 
-
 
30745
    public long getTrackerId() {
-
 
30746
      return this.trackerId;
-
 
30747
    }
-
 
30748
 
-
 
30749
    public getTrackLogs_args setTrackerId(long trackerId) {
-
 
30750
      this.trackerId = trackerId;
-
 
30751
      setTrackerIdIsSet(true);
-
 
30752
      return this;
-
 
30753
    }
-
 
30754
 
-
 
30755
    public void unsetTrackerId() {
-
 
30756
      __isset_bit_vector.clear(__TRACKERID_ISSET_ID);
-
 
30757
    }
-
 
30758
 
-
 
30759
    /** Returns true if field trackerId is set (has been asigned a value) and false otherwise */
-
 
30760
    public boolean isSetTrackerId() {
-
 
30761
      return __isset_bit_vector.get(__TRACKERID_ISSET_ID);
-
 
30762
    }
-
 
30763
 
-
 
30764
    public void setTrackerIdIsSet(boolean value) {
-
 
30765
      __isset_bit_vector.set(__TRACKERID_ISSET_ID, value);
-
 
30766
    }
-
 
30767
 
-
 
30768
    public long getUserId() {
-
 
30769
      return this.userId;
-
 
30770
    }
-
 
30771
 
-
 
30772
    public getTrackLogs_args setUserId(long userId) {
-
 
30773
      this.userId = userId;
-
 
30774
      setUserIdIsSet(true);
-
 
30775
      return this;
-
 
30776
    }
-
 
30777
 
-
 
30778
    public void unsetUserId() {
-
 
30779
      __isset_bit_vector.clear(__USERID_ISSET_ID);
-
 
30780
    }
-
 
30781
 
-
 
30782
    /** Returns true if field userId is set (has been asigned a value) and false otherwise */
-
 
30783
    public boolean isSetUserId() {
-
 
30784
      return __isset_bit_vector.get(__USERID_ISSET_ID);
-
 
30785
    }
-
 
30786
 
-
 
30787
    public void setUserIdIsSet(boolean value) {
-
 
30788
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
-
 
30789
    }
-
 
30790
 
-
 
30791
    public String getEvent() {
-
 
30792
      return this.event;
-
 
30793
    }
-
 
30794
 
-
 
30795
    public getTrackLogs_args setEvent(String event) {
-
 
30796
      this.event = event;
-
 
30797
      return this;
-
 
30798
    }
-
 
30799
 
-
 
30800
    public void unsetEvent() {
-
 
30801
      this.event = null;
-
 
30802
    }
-
 
30803
 
-
 
30804
    /** Returns true if field event is set (has been asigned a value) and false otherwise */
-
 
30805
    public boolean isSetEvent() {
-
 
30806
      return this.event != null;
-
 
30807
    }
-
 
30808
 
-
 
30809
    public void setEventIsSet(boolean value) {
-
 
30810
      if (!value) {
-
 
30811
        this.event = null;
-
 
30812
      }
-
 
30813
    }
-
 
30814
 
-
 
30815
    public String getUrl() {
-
 
30816
      return this.url;
-
 
30817
    }
-
 
30818
 
-
 
30819
    public getTrackLogs_args setUrl(String url) {
-
 
30820
      this.url = url;
-
 
30821
      return this;
-
 
30822
    }
-
 
30823
 
-
 
30824
    public void unsetUrl() {
-
 
30825
      this.url = null;
-
 
30826
    }
-
 
30827
 
-
 
30828
    /** Returns true if field url is set (has been asigned a value) and false otherwise */
-
 
30829
    public boolean isSetUrl() {
-
 
30830
      return this.url != null;
-
 
30831
    }
-
 
30832
 
-
 
30833
    public void setUrlIsSet(boolean value) {
-
 
30834
      if (!value) {
-
 
30835
        this.url = null;
-
 
30836
      }
-
 
30837
    }
-
 
30838
 
-
 
30839
    public void setFieldValue(_Fields field, Object value) {
-
 
30840
      switch (field) {
-
 
30841
      case TRACKER_ID:
-
 
30842
        if (value == null) {
-
 
30843
          unsetTrackerId();
-
 
30844
        } else {
-
 
30845
          setTrackerId((Long)value);
-
 
30846
        }
-
 
30847
        break;
-
 
30848
 
-
 
30849
      case USER_ID:
-
 
30850
        if (value == null) {
-
 
30851
          unsetUserId();
-
 
30852
        } else {
-
 
30853
          setUserId((Long)value);
-
 
30854
        }
-
 
30855
        break;
-
 
30856
 
-
 
30857
      case EVENT:
-
 
30858
        if (value == null) {
-
 
30859
          unsetEvent();
-
 
30860
        } else {
-
 
30861
          setEvent((String)value);
-
 
30862
        }
-
 
30863
        break;
-
 
30864
 
-
 
30865
      case URL:
-
 
30866
        if (value == null) {
-
 
30867
          unsetUrl();
-
 
30868
        } else {
-
 
30869
          setUrl((String)value);
-
 
30870
        }
-
 
30871
        break;
-
 
30872
 
-
 
30873
      }
-
 
30874
    }
-
 
30875
 
-
 
30876
    public void setFieldValue(int fieldID, Object value) {
-
 
30877
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
30878
    }
-
 
30879
 
-
 
30880
    public Object getFieldValue(_Fields field) {
-
 
30881
      switch (field) {
-
 
30882
      case TRACKER_ID:
-
 
30883
        return new Long(getTrackerId());
-
 
30884
 
-
 
30885
      case USER_ID:
-
 
30886
        return new Long(getUserId());
-
 
30887
 
-
 
30888
      case EVENT:
-
 
30889
        return getEvent();
-
 
30890
 
-
 
30891
      case URL:
-
 
30892
        return getUrl();
-
 
30893
 
-
 
30894
      }
-
 
30895
      throw new IllegalStateException();
-
 
30896
    }
-
 
30897
 
-
 
30898
    public Object getFieldValue(int fieldId) {
-
 
30899
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
30900
    }
-
 
30901
 
-
 
30902
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
30903
    public boolean isSet(_Fields field) {
-
 
30904
      switch (field) {
-
 
30905
      case TRACKER_ID:
-
 
30906
        return isSetTrackerId();
-
 
30907
      case USER_ID:
-
 
30908
        return isSetUserId();
-
 
30909
      case EVENT:
-
 
30910
        return isSetEvent();
-
 
30911
      case URL:
-
 
30912
        return isSetUrl();
-
 
30913
      }
-
 
30914
      throw new IllegalStateException();
-
 
30915
    }
-
 
30916
 
-
 
30917
    public boolean isSet(int fieldID) {
-
 
30918
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
30919
    }
-
 
30920
 
-
 
30921
    @Override
-
 
30922
    public boolean equals(Object that) {
-
 
30923
      if (that == null)
-
 
30924
        return false;
-
 
30925
      if (that instanceof getTrackLogs_args)
-
 
30926
        return this.equals((getTrackLogs_args)that);
-
 
30927
      return false;
-
 
30928
    }
-
 
30929
 
-
 
30930
    public boolean equals(getTrackLogs_args that) {
-
 
30931
      if (that == null)
-
 
30932
        return false;
-
 
30933
 
-
 
30934
      boolean this_present_trackerId = true;
-
 
30935
      boolean that_present_trackerId = true;
-
 
30936
      if (this_present_trackerId || that_present_trackerId) {
-
 
30937
        if (!(this_present_trackerId && that_present_trackerId))
-
 
30938
          return false;
-
 
30939
        if (this.trackerId != that.trackerId)
-
 
30940
          return false;
-
 
30941
      }
-
 
30942
 
-
 
30943
      boolean this_present_userId = true;
-
 
30944
      boolean that_present_userId = true;
-
 
30945
      if (this_present_userId || that_present_userId) {
-
 
30946
        if (!(this_present_userId && that_present_userId))
-
 
30947
          return false;
-
 
30948
        if (this.userId != that.userId)
-
 
30949
          return false;
-
 
30950
      }
-
 
30951
 
-
 
30952
      boolean this_present_event = true && this.isSetEvent();
-
 
30953
      boolean that_present_event = true && that.isSetEvent();
-
 
30954
      if (this_present_event || that_present_event) {
-
 
30955
        if (!(this_present_event && that_present_event))
-
 
30956
          return false;
-
 
30957
        if (!this.event.equals(that.event))
-
 
30958
          return false;
-
 
30959
      }
-
 
30960
 
-
 
30961
      boolean this_present_url = true && this.isSetUrl();
-
 
30962
      boolean that_present_url = true && that.isSetUrl();
-
 
30963
      if (this_present_url || that_present_url) {
-
 
30964
        if (!(this_present_url && that_present_url))
-
 
30965
          return false;
-
 
30966
        if (!this.url.equals(that.url))
-
 
30967
          return false;
-
 
30968
      }
-
 
30969
 
-
 
30970
      return true;
-
 
30971
    }
-
 
30972
 
-
 
30973
    @Override
-
 
30974
    public int hashCode() {
-
 
30975
      return 0;
-
 
30976
    }
-
 
30977
 
-
 
30978
    public int compareTo(getTrackLogs_args other) {
-
 
30979
      if (!getClass().equals(other.getClass())) {
-
 
30980
        return getClass().getName().compareTo(other.getClass().getName());
-
 
30981
      }
-
 
30982
 
-
 
30983
      int lastComparison = 0;
-
 
30984
      getTrackLogs_args typedOther = (getTrackLogs_args)other;
-
 
30985
 
-
 
30986
      lastComparison = Boolean.valueOf(isSetTrackerId()).compareTo(isSetTrackerId());
-
 
30987
      if (lastComparison != 0) {
-
 
30988
        return lastComparison;
-
 
30989
      }
-
 
30990
      lastComparison = TBaseHelper.compareTo(trackerId, typedOther.trackerId);
-
 
30991
      if (lastComparison != 0) {
-
 
30992
        return lastComparison;
-
 
30993
      }
-
 
30994
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(isSetUserId());
-
 
30995
      if (lastComparison != 0) {
-
 
30996
        return lastComparison;
-
 
30997
      }
-
 
30998
      lastComparison = TBaseHelper.compareTo(userId, typedOther.userId);
-
 
30999
      if (lastComparison != 0) {
-
 
31000
        return lastComparison;
-
 
31001
      }
-
 
31002
      lastComparison = Boolean.valueOf(isSetEvent()).compareTo(isSetEvent());
-
 
31003
      if (lastComparison != 0) {
-
 
31004
        return lastComparison;
-
 
31005
      }
-
 
31006
      lastComparison = TBaseHelper.compareTo(event, typedOther.event);
-
 
31007
      if (lastComparison != 0) {
-
 
31008
        return lastComparison;
-
 
31009
      }
-
 
31010
      lastComparison = Boolean.valueOf(isSetUrl()).compareTo(isSetUrl());
-
 
31011
      if (lastComparison != 0) {
-
 
31012
        return lastComparison;
-
 
31013
      }
-
 
31014
      lastComparison = TBaseHelper.compareTo(url, typedOther.url);
-
 
31015
      if (lastComparison != 0) {
-
 
31016
        return lastComparison;
-
 
31017
      }
-
 
31018
      return 0;
-
 
31019
    }
-
 
31020
 
-
 
31021
    public void read(TProtocol iprot) throws TException {
-
 
31022
      TField field;
-
 
31023
      iprot.readStructBegin();
-
 
31024
      while (true)
-
 
31025
      {
-
 
31026
        field = iprot.readFieldBegin();
-
 
31027
        if (field.type == TType.STOP) { 
-
 
31028
          break;
-
 
31029
        }
-
 
31030
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
31031
        if (fieldId == null) {
-
 
31032
          TProtocolUtil.skip(iprot, field.type);
-
 
31033
        } else {
-
 
31034
          switch (fieldId) {
-
 
31035
            case TRACKER_ID:
-
 
31036
              if (field.type == TType.I64) {
-
 
31037
                this.trackerId = iprot.readI64();
-
 
31038
                setTrackerIdIsSet(true);
-
 
31039
              } else { 
-
 
31040
                TProtocolUtil.skip(iprot, field.type);
-
 
31041
              }
-
 
31042
              break;
-
 
31043
            case USER_ID:
-
 
31044
              if (field.type == TType.I64) {
-
 
31045
                this.userId = iprot.readI64();
-
 
31046
                setUserIdIsSet(true);
-
 
31047
              } else { 
-
 
31048
                TProtocolUtil.skip(iprot, field.type);
-
 
31049
              }
-
 
31050
              break;
-
 
31051
            case EVENT:
-
 
31052
              if (field.type == TType.STRING) {
-
 
31053
                this.event = iprot.readString();
-
 
31054
              } else { 
-
 
31055
                TProtocolUtil.skip(iprot, field.type);
-
 
31056
              }
-
 
31057
              break;
-
 
31058
            case URL:
-
 
31059
              if (field.type == TType.STRING) {
-
 
31060
                this.url = iprot.readString();
-
 
31061
              } else { 
-
 
31062
                TProtocolUtil.skip(iprot, field.type);
-
 
31063
              }
-
 
31064
              break;
-
 
31065
          }
-
 
31066
          iprot.readFieldEnd();
-
 
31067
        }
-
 
31068
      }
-
 
31069
      iprot.readStructEnd();
-
 
31070
      validate();
-
 
31071
    }
-
 
31072
 
-
 
31073
    public void write(TProtocol oprot) throws TException {
-
 
31074
      validate();
-
 
31075
 
-
 
31076
      oprot.writeStructBegin(STRUCT_DESC);
-
 
31077
      oprot.writeFieldBegin(TRACKER_ID_FIELD_DESC);
-
 
31078
      oprot.writeI64(this.trackerId);
-
 
31079
      oprot.writeFieldEnd();
-
 
31080
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
-
 
31081
      oprot.writeI64(this.userId);
-
 
31082
      oprot.writeFieldEnd();
-
 
31083
      if (this.event != null) {
-
 
31084
        oprot.writeFieldBegin(EVENT_FIELD_DESC);
-
 
31085
        oprot.writeString(this.event);
-
 
31086
        oprot.writeFieldEnd();
-
 
31087
      }
-
 
31088
      if (this.url != null) {
-
 
31089
        oprot.writeFieldBegin(URL_FIELD_DESC);
-
 
31090
        oprot.writeString(this.url);
-
 
31091
        oprot.writeFieldEnd();
-
 
31092
      }
-
 
31093
      oprot.writeFieldStop();
-
 
31094
      oprot.writeStructEnd();
-
 
31095
    }
-
 
31096
 
-
 
31097
    @Override
-
 
31098
    public String toString() {
-
 
31099
      StringBuilder sb = new StringBuilder("getTrackLogs_args(");
-
 
31100
      boolean first = true;
-
 
31101
 
-
 
31102
      sb.append("trackerId:");
-
 
31103
      sb.append(this.trackerId);
-
 
31104
      first = false;
-
 
31105
      if (!first) sb.append(", ");
-
 
31106
      sb.append("userId:");
-
 
31107
      sb.append(this.userId);
-
 
31108
      first = false;
-
 
31109
      if (!first) sb.append(", ");
-
 
31110
      sb.append("event:");
-
 
31111
      if (this.event == null) {
-
 
31112
        sb.append("null");
-
 
31113
      } else {
-
 
31114
        sb.append(this.event);
-
 
31115
      }
-
 
31116
      first = false;
-
 
31117
      if (!first) sb.append(", ");
-
 
31118
      sb.append("url:");
-
 
31119
      if (this.url == null) {
-
 
31120
        sb.append("null");
-
 
31121
      } else {
-
 
31122
        sb.append(this.url);
-
 
31123
      }
-
 
31124
      first = false;
-
 
31125
      sb.append(")");
-
 
31126
      return sb.toString();
-
 
31127
    }
-
 
31128
 
-
 
31129
    public void validate() throws TException {
-
 
31130
      // check for required fields
-
 
31131
    }
-
 
31132
 
-
 
31133
  }
-
 
31134
 
-
 
31135
  public static class getTrackLogs_result implements TBase<getTrackLogs_result._Fields>, java.io.Serializable, Cloneable, Comparable<getTrackLogs_result>   {
-
 
31136
    private static final TStruct STRUCT_DESC = new TStruct("getTrackLogs_result");
-
 
31137
 
-
 
31138
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
-
 
31139
    private static final TField UTX_FIELD_DESC = new TField("utx", TType.STRUCT, (short)1);
-
 
31140
 
-
 
31141
    private List<TrackLog> success;
-
 
31142
    private UserTrackerException utx;
-
 
31143
 
-
 
31144
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
31145
    public enum _Fields implements TFieldIdEnum {
-
 
31146
      SUCCESS((short)0, "success"),
-
 
31147
      UTX((short)1, "utx");
-
 
31148
 
-
 
31149
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
31150
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
31151
 
-
 
31152
      static {
-
 
31153
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
31154
          byId.put((int)field._thriftId, field);
-
 
31155
          byName.put(field.getFieldName(), field);
-
 
31156
        }
-
 
31157
      }
-
 
31158
 
-
 
31159
      /**
-
 
31160
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
31161
       */
-
 
31162
      public static _Fields findByThriftId(int fieldId) {
-
 
31163
        return byId.get(fieldId);
-
 
31164
      }
-
 
31165
 
-
 
31166
      /**
-
 
31167
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
31168
       * if it is not found.
-
 
31169
       */
-
 
31170
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
31171
        _Fields fields = findByThriftId(fieldId);
-
 
31172
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
31173
        return fields;
-
 
31174
      }
-
 
31175
 
-
 
31176
      /**
-
 
31177
       * Find the _Fields constant that matches name, or null if its not found.
-
 
31178
       */
-
 
31179
      public static _Fields findByName(String name) {
-
 
31180
        return byName.get(name);
-
 
31181
      }
-
 
31182
 
-
 
31183
      private final short _thriftId;
-
 
31184
      private final String _fieldName;
-
 
31185
 
-
 
31186
      _Fields(short thriftId, String fieldName) {
-
 
31187
        _thriftId = thriftId;
-
 
31188
        _fieldName = fieldName;
-
 
31189
      }
-
 
31190
 
-
 
31191
      public short getThriftFieldId() {
-
 
31192
        return _thriftId;
-
 
31193
      }
-
 
31194
 
-
 
31195
      public String getFieldName() {
-
 
31196
        return _fieldName;
-
 
31197
      }
-
 
31198
    }
-
 
31199
 
-
 
31200
    // isset id assignments
-
 
31201
 
-
 
31202
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
31203
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
31204
          new ListMetaData(TType.LIST, 
-
 
31205
              new StructMetaData(TType.STRUCT, TrackLog.class))));
-
 
31206
      put(_Fields.UTX, new FieldMetaData("utx", TFieldRequirementType.DEFAULT, 
-
 
31207
          new FieldValueMetaData(TType.STRUCT)));
-
 
31208
    }});
-
 
31209
 
-
 
31210
    static {
-
 
31211
      FieldMetaData.addStructMetaDataMap(getTrackLogs_result.class, metaDataMap);
-
 
31212
    }
-
 
31213
 
-
 
31214
    public getTrackLogs_result() {
-
 
31215
    }
-
 
31216
 
-
 
31217
    public getTrackLogs_result(
-
 
31218
      List<TrackLog> success,
-
 
31219
      UserTrackerException utx)
-
 
31220
    {
-
 
31221
      this();
-
 
31222
      this.success = success;
-
 
31223
      this.utx = utx;
-
 
31224
    }
-
 
31225
 
-
 
31226
    /**
-
 
31227
     * Performs a deep copy on <i>other</i>.
-
 
31228
     */
-
 
31229
    public getTrackLogs_result(getTrackLogs_result other) {
-
 
31230
      if (other.isSetSuccess()) {
-
 
31231
        List<TrackLog> __this__success = new ArrayList<TrackLog>();
-
 
31232
        for (TrackLog other_element : other.success) {
-
 
31233
          __this__success.add(new TrackLog(other_element));
-
 
31234
        }
-
 
31235
        this.success = __this__success;
-
 
31236
      }
-
 
31237
      if (other.isSetUtx()) {
-
 
31238
        this.utx = new UserTrackerException(other.utx);
-
 
31239
      }
-
 
31240
    }
-
 
31241
 
-
 
31242
    public getTrackLogs_result deepCopy() {
-
 
31243
      return new getTrackLogs_result(this);
-
 
31244
    }
-
 
31245
 
-
 
31246
    @Deprecated
-
 
31247
    public getTrackLogs_result clone() {
-
 
31248
      return new getTrackLogs_result(this);
-
 
31249
    }
-
 
31250
 
-
 
31251
    public int getSuccessSize() {
-
 
31252
      return (this.success == null) ? 0 : this.success.size();
-
 
31253
    }
-
 
31254
 
-
 
31255
    public java.util.Iterator<TrackLog> getSuccessIterator() {
-
 
31256
      return (this.success == null) ? null : this.success.iterator();
-
 
31257
    }
-
 
31258
 
-
 
31259
    public void addToSuccess(TrackLog elem) {
-
 
31260
      if (this.success == null) {
-
 
31261
        this.success = new ArrayList<TrackLog>();
-
 
31262
      }
-
 
31263
      this.success.add(elem);
-
 
31264
    }
-
 
31265
 
-
 
31266
    public List<TrackLog> getSuccess() {
-
 
31267
      return this.success;
-
 
31268
    }
-
 
31269
 
-
 
31270
    public getTrackLogs_result setSuccess(List<TrackLog> success) {
-
 
31271
      this.success = success;
-
 
31272
      return this;
-
 
31273
    }
-
 
31274
 
-
 
31275
    public void unsetSuccess() {
-
 
31276
      this.success = null;
-
 
31277
    }
-
 
31278
 
-
 
31279
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
31280
    public boolean isSetSuccess() {
-
 
31281
      return this.success != null;
-
 
31282
    }
-
 
31283
 
-
 
31284
    public void setSuccessIsSet(boolean value) {
-
 
31285
      if (!value) {
-
 
31286
        this.success = null;
-
 
31287
      }
-
 
31288
    }
-
 
31289
 
-
 
31290
    public UserTrackerException getUtx() {
-
 
31291
      return this.utx;
-
 
31292
    }
-
 
31293
 
-
 
31294
    public getTrackLogs_result setUtx(UserTrackerException utx) {
-
 
31295
      this.utx = utx;
-
 
31296
      return this;
-
 
31297
    }
-
 
31298
 
-
 
31299
    public void unsetUtx() {
-
 
31300
      this.utx = null;
-
 
31301
    }
-
 
31302
 
-
 
31303
    /** Returns true if field utx is set (has been asigned a value) and false otherwise */
-
 
31304
    public boolean isSetUtx() {
-
 
31305
      return this.utx != null;
-
 
31306
    }
-
 
31307
 
-
 
31308
    public void setUtxIsSet(boolean value) {
-
 
31309
      if (!value) {
-
 
31310
        this.utx = null;
-
 
31311
      }
-
 
31312
    }
-
 
31313
 
-
 
31314
    public void setFieldValue(_Fields field, Object value) {
-
 
31315
      switch (field) {
-
 
31316
      case SUCCESS:
-
 
31317
        if (value == null) {
-
 
31318
          unsetSuccess();
-
 
31319
        } else {
-
 
31320
          setSuccess((List<TrackLog>)value);
-
 
31321
        }
-
 
31322
        break;
-
 
31323
 
-
 
31324
      case UTX:
-
 
31325
        if (value == null) {
-
 
31326
          unsetUtx();
-
 
31327
        } else {
-
 
31328
          setUtx((UserTrackerException)value);
-
 
31329
        }
-
 
31330
        break;
-
 
31331
 
-
 
31332
      }
-
 
31333
    }
-
 
31334
 
-
 
31335
    public void setFieldValue(int fieldID, Object value) {
-
 
31336
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
31337
    }
-
 
31338
 
-
 
31339
    public Object getFieldValue(_Fields field) {
-
 
31340
      switch (field) {
-
 
31341
      case SUCCESS:
-
 
31342
        return getSuccess();
-
 
31343
 
-
 
31344
      case UTX:
-
 
31345
        return getUtx();
-
 
31346
 
-
 
31347
      }
-
 
31348
      throw new IllegalStateException();
-
 
31349
    }
-
 
31350
 
-
 
31351
    public Object getFieldValue(int fieldId) {
-
 
31352
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
31353
    }
-
 
31354
 
-
 
31355
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
31356
    public boolean isSet(_Fields field) {
-
 
31357
      switch (field) {
-
 
31358
      case SUCCESS:
-
 
31359
        return isSetSuccess();
-
 
31360
      case UTX:
-
 
31361
        return isSetUtx();
-
 
31362
      }
-
 
31363
      throw new IllegalStateException();
-
 
31364
    }
-
 
31365
 
-
 
31366
    public boolean isSet(int fieldID) {
-
 
31367
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
31368
    }
-
 
31369
 
-
 
31370
    @Override
-
 
31371
    public boolean equals(Object that) {
-
 
31372
      if (that == null)
-
 
31373
        return false;
-
 
31374
      if (that instanceof getTrackLogs_result)
-
 
31375
        return this.equals((getTrackLogs_result)that);
-
 
31376
      return false;
-
 
31377
    }
-
 
31378
 
-
 
31379
    public boolean equals(getTrackLogs_result that) {
-
 
31380
      if (that == null)
-
 
31381
        return false;
-
 
31382
 
-
 
31383
      boolean this_present_success = true && this.isSetSuccess();
-
 
31384
      boolean that_present_success = true && that.isSetSuccess();
-
 
31385
      if (this_present_success || that_present_success) {
-
 
31386
        if (!(this_present_success && that_present_success))
-
 
31387
          return false;
-
 
31388
        if (!this.success.equals(that.success))
-
 
31389
          return false;
-
 
31390
      }
-
 
31391
 
-
 
31392
      boolean this_present_utx = true && this.isSetUtx();
-
 
31393
      boolean that_present_utx = true && that.isSetUtx();
-
 
31394
      if (this_present_utx || that_present_utx) {
-
 
31395
        if (!(this_present_utx && that_present_utx))
-
 
31396
          return false;
-
 
31397
        if (!this.utx.equals(that.utx))
-
 
31398
          return false;
-
 
31399
      }
-
 
31400
 
-
 
31401
      return true;
-
 
31402
    }
-
 
31403
 
-
 
31404
    @Override
-
 
31405
    public int hashCode() {
-
 
31406
      return 0;
-
 
31407
    }
-
 
31408
 
-
 
31409
    public int compareTo(getTrackLogs_result other) {
-
 
31410
      if (!getClass().equals(other.getClass())) {
-
 
31411
        return getClass().getName().compareTo(other.getClass().getName());
-
 
31412
      }
-
 
31413
 
-
 
31414
      int lastComparison = 0;
-
 
31415
      getTrackLogs_result typedOther = (getTrackLogs_result)other;
-
 
31416
 
-
 
31417
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
31418
      if (lastComparison != 0) {
-
 
31419
        return lastComparison;
-
 
31420
      }
-
 
31421
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
31422
      if (lastComparison != 0) {
-
 
31423
        return lastComparison;
-
 
31424
      }
-
 
31425
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(isSetUtx());
-
 
31426
      if (lastComparison != 0) {
-
 
31427
        return lastComparison;
-
 
31428
      }
-
 
31429
      lastComparison = TBaseHelper.compareTo(utx, typedOther.utx);
-
 
31430
      if (lastComparison != 0) {
-
 
31431
        return lastComparison;
-
 
31432
      }
-
 
31433
      return 0;
-
 
31434
    }
-
 
31435
 
-
 
31436
    public void read(TProtocol iprot) throws TException {
-
 
31437
      TField field;
-
 
31438
      iprot.readStructBegin();
-
 
31439
      while (true)
-
 
31440
      {
-
 
31441
        field = iprot.readFieldBegin();
-
 
31442
        if (field.type == TType.STOP) { 
-
 
31443
          break;
-
 
31444
        }
-
 
31445
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
31446
        if (fieldId == null) {
-
 
31447
          TProtocolUtil.skip(iprot, field.type);
-
 
31448
        } else {
-
 
31449
          switch (fieldId) {
-
 
31450
            case SUCCESS:
-
 
31451
              if (field.type == TType.LIST) {
-
 
31452
                {
-
 
31453
                  TList _list44 = iprot.readListBegin();
-
 
31454
                  this.success = new ArrayList<TrackLog>(_list44.size);
-
 
31455
                  for (int _i45 = 0; _i45 < _list44.size; ++_i45)
-
 
31456
                  {
-
 
31457
                    TrackLog _elem46;
-
 
31458
                    _elem46 = new TrackLog();
-
 
31459
                    _elem46.read(iprot);
-
 
31460
                    this.success.add(_elem46);
-
 
31461
                  }
-
 
31462
                  iprot.readListEnd();
-
 
31463
                }
-
 
31464
              } else { 
-
 
31465
                TProtocolUtil.skip(iprot, field.type);
-
 
31466
              }
-
 
31467
              break;
-
 
31468
            case UTX:
-
 
31469
              if (field.type == TType.STRUCT) {
-
 
31470
                this.utx = new UserTrackerException();
-
 
31471
                this.utx.read(iprot);
-
 
31472
              } else { 
-
 
31473
                TProtocolUtil.skip(iprot, field.type);
-
 
31474
              }
-
 
31475
              break;
-
 
31476
          }
-
 
31477
          iprot.readFieldEnd();
-
 
31478
        }
-
 
31479
      }
-
 
31480
      iprot.readStructEnd();
-
 
31481
      validate();
-
 
31482
    }
-
 
31483
 
-
 
31484
    public void write(TProtocol oprot) throws TException {
-
 
31485
      oprot.writeStructBegin(STRUCT_DESC);
-
 
31486
 
-
 
31487
      if (this.isSetSuccess()) {
-
 
31488
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
31489
        {
-
 
31490
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
-
 
31491
          for (TrackLog _iter47 : this.success)
-
 
31492
          {
-
 
31493
            _iter47.write(oprot);
-
 
31494
          }
-
 
31495
          oprot.writeListEnd();
-
 
31496
        }
-
 
31497
        oprot.writeFieldEnd();
-
 
31498
      } else if (this.isSetUtx()) {
-
 
31499
        oprot.writeFieldBegin(UTX_FIELD_DESC);
-
 
31500
        this.utx.write(oprot);
-
 
31501
        oprot.writeFieldEnd();
-
 
31502
      }
-
 
31503
      oprot.writeFieldStop();
-
 
31504
      oprot.writeStructEnd();
-
 
31505
    }
-
 
31506
 
-
 
31507
    @Override
-
 
31508
    public String toString() {
-
 
31509
      StringBuilder sb = new StringBuilder("getTrackLogs_result(");
-
 
31510
      boolean first = true;
-
 
31511
 
-
 
31512
      sb.append("success:");
-
 
31513
      if (this.success == null) {
-
 
31514
        sb.append("null");
-
 
31515
      } else {
-
 
31516
        sb.append(this.success);
-
 
31517
      }
-
 
31518
      first = false;
-
 
31519
      if (!first) sb.append(", ");
-
 
31520
      sb.append("utx:");
-
 
31521
      if (this.utx == null) {
-
 
31522
        sb.append("null");
-
 
31523
      } else {
-
 
31524
        sb.append(this.utx);
-
 
31525
      }
-
 
31526
      first = false;
-
 
31527
      sb.append(")");
-
 
31528
      return sb.toString();
-
 
31529
    }
-
 
31530
 
-
 
31531
    public void validate() throws TException {
-
 
31532
      // check for required fields
-
 
31533
    }
-
 
31534
 
-
 
31535
  }
-
 
31536
 
-
 
31537
  public static class createCart_args implements TBase<createCart_args._Fields>, java.io.Serializable, Cloneable, Comparable<createCart_args>   {
-
 
31538
    private static final TStruct STRUCT_DESC = new TStruct("createCart_args");
-
 
31539
 
-
 
31540
    private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)1);
-
 
31541
 
-
 
31542
    private long userId;
-
 
31543
 
-
 
31544
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
31545
    public enum _Fields implements TFieldIdEnum {
-
 
31546
      USER_ID((short)1, "userId");
-
 
31547
 
-
 
31548
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
31549
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
31550
 
-
 
31551
      static {
-
 
31552
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
31553
          byId.put((int)field._thriftId, field);
-
 
31554
          byName.put(field.getFieldName(), field);
-
 
31555
        }
-
 
31556
      }
-
 
31557
 
-
 
31558
      /**
-
 
31559
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
31560
       */
-
 
31561
      public static _Fields findByThriftId(int fieldId) {
-
 
31562
        return byId.get(fieldId);
-
 
31563
      }
-
 
31564
 
-
 
31565
      /**
-
 
31566
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
31567
       * if it is not found.
-
 
31568
       */
-
 
31569
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
31570
        _Fields fields = findByThriftId(fieldId);
-
 
31571
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
31572
        return fields;
-
 
31573
      }
-
 
31574
 
-
 
31575
      /**
-
 
31576
       * Find the _Fields constant that matches name, or null if its not found.
-
 
31577
       */
-
 
31578
      public static _Fields findByName(String name) {
-
 
31579
        return byName.get(name);
-
 
31580
      }
-
 
31581
 
-
 
31582
      private final short _thriftId;
-
 
31583
      private final String _fieldName;
-
 
31584
 
-
 
31585
      _Fields(short thriftId, String fieldName) {
-
 
31586
        _thriftId = thriftId;
-
 
31587
        _fieldName = fieldName;
-
 
31588
      }
-
 
31589
 
-
 
31590
      public short getThriftFieldId() {
-
 
31591
        return _thriftId;
-
 
31592
      }
-
 
31593
 
-
 
31594
      public String getFieldName() {
-
 
31595
        return _fieldName;
-
 
31596
      }
-
 
31597
    }
-
 
31598
 
-
 
31599
    // isset id assignments
-
 
31600
    private static final int __USERID_ISSET_ID = 0;
-
 
31601
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
31602
 
-
 
31603
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
31604
      put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT, 
-
 
31605
          new FieldValueMetaData(TType.I64)));
-
 
31606
    }});
-
 
31607
 
-
 
31608
    static {
-
 
31609
      FieldMetaData.addStructMetaDataMap(createCart_args.class, metaDataMap);
-
 
31610
    }
-
 
31611
 
-
 
31612
    public createCart_args() {
-
 
31613
    }
-
 
31614
 
-
 
31615
    public createCart_args(
-
 
31616
      long userId)
-
 
31617
    {
-
 
31618
      this();
-
 
31619
      this.userId = userId;
-
 
31620
      setUserIdIsSet(true);
-
 
31621
    }
-
 
31622
 
-
 
31623
    /**
-
 
31624
     * Performs a deep copy on <i>other</i>.
-
 
31625
     */
-
 
31626
    public createCart_args(createCart_args other) {
-
 
31627
      __isset_bit_vector.clear();
-
 
31628
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
31629
      this.userId = other.userId;
-
 
31630
    }
-
 
31631
 
-
 
31632
    public createCart_args deepCopy() {
-
 
31633
      return new createCart_args(this);
-
 
31634
    }
-
 
31635
 
-
 
31636
    @Deprecated
-
 
31637
    public createCart_args clone() {
-
 
31638
      return new createCart_args(this);
-
 
31639
    }
-
 
31640
 
-
 
31641
    public long getUserId() {
-
 
31642
      return this.userId;
-
 
31643
    }
-
 
31644
 
-
 
31645
    public createCart_args setUserId(long userId) {
-
 
31646
      this.userId = userId;
-
 
31647
      setUserIdIsSet(true);
-
 
31648
      return this;
-
 
31649
    }
-
 
31650
 
-
 
31651
    public void unsetUserId() {
-
 
31652
      __isset_bit_vector.clear(__USERID_ISSET_ID);
-
 
31653
    }
-
 
31654
 
-
 
31655
    /** Returns true if field userId is set (has been asigned a value) and false otherwise */
-
 
31656
    public boolean isSetUserId() {
-
 
31657
      return __isset_bit_vector.get(__USERID_ISSET_ID);
-
 
31658
    }
-
 
31659
 
-
 
31660
    public void setUserIdIsSet(boolean value) {
-
 
31661
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
-
 
31662
    }
-
 
31663
 
-
 
31664
    public void setFieldValue(_Fields field, Object value) {
-
 
31665
      switch (field) {
-
 
31666
      case USER_ID:
-
 
31667
        if (value == null) {
-
 
31668
          unsetUserId();
-
 
31669
        } else {
-
 
31670
          setUserId((Long)value);
-
 
31671
        }
-
 
31672
        break;
-
 
31673
 
-
 
31674
      }
-
 
31675
    }
-
 
31676
 
-
 
31677
    public void setFieldValue(int fieldID, Object value) {
-
 
31678
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
31679
    }
-
 
31680
 
-
 
31681
    public Object getFieldValue(_Fields field) {
-
 
31682
      switch (field) {
-
 
31683
      case USER_ID:
-
 
31684
        return new Long(getUserId());
-
 
31685
 
-
 
31686
      }
-
 
31687
      throw new IllegalStateException();
-
 
31688
    }
-
 
31689
 
-
 
31690
    public Object getFieldValue(int fieldId) {
-
 
31691
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
31692
    }
-
 
31693
 
-
 
31694
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
31695
    public boolean isSet(_Fields field) {
-
 
31696
      switch (field) {
-
 
31697
      case USER_ID:
-
 
31698
        return isSetUserId();
-
 
31699
      }
-
 
31700
      throw new IllegalStateException();
-
 
31701
    }
-
 
31702
 
-
 
31703
    public boolean isSet(int fieldID) {
-
 
31704
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
31705
    }
-
 
31706
 
-
 
31707
    @Override
-
 
31708
    public boolean equals(Object that) {
-
 
31709
      if (that == null)
-
 
31710
        return false;
-
 
31711
      if (that instanceof createCart_args)
-
 
31712
        return this.equals((createCart_args)that);
-
 
31713
      return false;
-
 
31714
    }
-
 
31715
 
-
 
31716
    public boolean equals(createCart_args that) {
-
 
31717
      if (that == null)
-
 
31718
        return false;
-
 
31719
 
-
 
31720
      boolean this_present_userId = true;
-
 
31721
      boolean that_present_userId = true;
-
 
31722
      if (this_present_userId || that_present_userId) {
-
 
31723
        if (!(this_present_userId && that_present_userId))
-
 
31724
          return false;
-
 
31725
        if (this.userId != that.userId)
-
 
31726
          return false;
-
 
31727
      }
-
 
31728
 
-
 
31729
      return true;
-
 
31730
    }
-
 
31731
 
-
 
31732
    @Override
-
 
31733
    public int hashCode() {
-
 
31734
      return 0;
-
 
31735
    }
-
 
31736
 
-
 
31737
    public int compareTo(createCart_args other) {
-
 
31738
      if (!getClass().equals(other.getClass())) {
-
 
31739
        return getClass().getName().compareTo(other.getClass().getName());
-
 
31740
      }
-
 
31741
 
-
 
31742
      int lastComparison = 0;
-
 
31743
      createCart_args typedOther = (createCart_args)other;
-
 
31744
 
-
 
31745
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(isSetUserId());
-
 
31746
      if (lastComparison != 0) {
-
 
31747
        return lastComparison;
-
 
31748
      }
-
 
31749
      lastComparison = TBaseHelper.compareTo(userId, typedOther.userId);
-
 
31750
      if (lastComparison != 0) {
-
 
31751
        return lastComparison;
-
 
31752
      }
-
 
31753
      return 0;
-
 
31754
    }
-
 
31755
 
-
 
31756
    public void read(TProtocol iprot) throws TException {
-
 
31757
      TField field;
-
 
31758
      iprot.readStructBegin();
-
 
31759
      while (true)
-
 
31760
      {
-
 
31761
        field = iprot.readFieldBegin();
-
 
31762
        if (field.type == TType.STOP) { 
-
 
31763
          break;
-
 
31764
        }
-
 
31765
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
31766
        if (fieldId == null) {
-
 
31767
          TProtocolUtil.skip(iprot, field.type);
-
 
31768
        } else {
-
 
31769
          switch (fieldId) {
-
 
31770
            case USER_ID:
-
 
31771
              if (field.type == TType.I64) {
-
 
31772
                this.userId = iprot.readI64();
-
 
31773
                setUserIdIsSet(true);
-
 
31774
              } else { 
-
 
31775
                TProtocolUtil.skip(iprot, field.type);
-
 
31776
              }
-
 
31777
              break;
-
 
31778
          }
-
 
31779
          iprot.readFieldEnd();
-
 
31780
        }
-
 
31781
      }
-
 
31782
      iprot.readStructEnd();
-
 
31783
      validate();
-
 
31784
    }
-
 
31785
 
-
 
31786
    public void write(TProtocol oprot) throws TException {
-
 
31787
      validate();
-
 
31788
 
-
 
31789
      oprot.writeStructBegin(STRUCT_DESC);
-
 
31790
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
-
 
31791
      oprot.writeI64(this.userId);
-
 
31792
      oprot.writeFieldEnd();
-
 
31793
      oprot.writeFieldStop();
-
 
31794
      oprot.writeStructEnd();
-
 
31795
    }
-
 
31796
 
-
 
31797
    @Override
-
 
31798
    public String toString() {
-
 
31799
      StringBuilder sb = new StringBuilder("createCart_args(");
-
 
31800
      boolean first = true;
-
 
31801
 
-
 
31802
      sb.append("userId:");
-
 
31803
      sb.append(this.userId);
-
 
31804
      first = false;
-
 
31805
      sb.append(")");
-
 
31806
      return sb.toString();
-
 
31807
    }
-
 
31808
 
-
 
31809
    public void validate() throws TException {
-
 
31810
      // check for required fields
-
 
31811
    }
-
 
31812
 
-
 
31813
  }
-
 
31814
 
-
 
31815
  public static class createCart_result implements TBase<createCart_result._Fields>, java.io.Serializable, Cloneable, Comparable<createCart_result>   {
-
 
31816
    private static final TStruct STRUCT_DESC = new TStruct("createCart_result");
-
 
31817
 
-
 
31818
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I64, (short)0);
-
 
31819
    private static final TField SCX_FIELD_DESC = new TField("scx", TType.STRUCT, (short)1);
-
 
31820
 
-
 
31821
    private long success;
-
 
31822
    private ShoppingCartException scx;
-
 
31823
 
-
 
31824
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
31825
    public enum _Fields implements TFieldIdEnum {
-
 
31826
      SUCCESS((short)0, "success"),
-
 
31827
      SCX((short)1, "scx");
-
 
31828
 
-
 
31829
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
31830
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
31831
 
-
 
31832
      static {
-
 
31833
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
31834
          byId.put((int)field._thriftId, field);
-
 
31835
          byName.put(field.getFieldName(), field);
-
 
31836
        }
-
 
31837
      }
-
 
31838
 
-
 
31839
      /**
-
 
31840
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
31841
       */
-
 
31842
      public static _Fields findByThriftId(int fieldId) {
-
 
31843
        return byId.get(fieldId);
-
 
31844
      }
-
 
31845
 
-
 
31846
      /**
-
 
31847
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
31848
       * if it is not found.
-
 
31849
       */
-
 
31850
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
31851
        _Fields fields = findByThriftId(fieldId);
-
 
31852
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
31853
        return fields;
-
 
31854
      }
-
 
31855
 
-
 
31856
      /**
-
 
31857
       * Find the _Fields constant that matches name, or null if its not found.
-
 
31858
       */
-
 
31859
      public static _Fields findByName(String name) {
-
 
31860
        return byName.get(name);
-
 
31861
      }
-
 
31862
 
-
 
31863
      private final short _thriftId;
-
 
31864
      private final String _fieldName;
-
 
31865
 
-
 
31866
      _Fields(short thriftId, String fieldName) {
-
 
31867
        _thriftId = thriftId;
-
 
31868
        _fieldName = fieldName;
-
 
31869
      }
-
 
31870
 
-
 
31871
      public short getThriftFieldId() {
-
 
31872
        return _thriftId;
-
 
31873
      }
-
 
31874
 
-
 
31875
      public String getFieldName() {
-
 
31876
        return _fieldName;
-
 
31877
      }
-
 
31878
    }
-
 
31879
 
-
 
31880
    // isset id assignments
-
 
31881
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
31882
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
31883
 
-
 
31884
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
31885
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
31886
          new FieldValueMetaData(TType.I64)));
-
 
31887
      put(_Fields.SCX, new FieldMetaData("scx", TFieldRequirementType.DEFAULT, 
-
 
31888
          new FieldValueMetaData(TType.STRUCT)));
-
 
31889
    }});
-
 
31890
 
-
 
31891
    static {
-
 
31892
      FieldMetaData.addStructMetaDataMap(createCart_result.class, metaDataMap);
-
 
31893
    }
-
 
31894
 
-
 
31895
    public createCart_result() {
-
 
31896
    }
-
 
31897
 
-
 
31898
    public createCart_result(
-
 
31899
      long success,
-
 
31900
      ShoppingCartException scx)
-
 
31901
    {
-
 
31902
      this();
-
 
31903
      this.success = success;
-
 
31904
      setSuccessIsSet(true);
-
 
31905
      this.scx = scx;
-
 
31906
    }
-
 
31907
 
-
 
31908
    /**
-
 
31909
     * Performs a deep copy on <i>other</i>.
-
 
31910
     */
-
 
31911
    public createCart_result(createCart_result other) {
-
 
31912
      __isset_bit_vector.clear();
-
 
31913
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
31914
      this.success = other.success;
-
 
31915
      if (other.isSetScx()) {
-
 
31916
        this.scx = new ShoppingCartException(other.scx);
-
 
31917
      }
-
 
31918
    }
-
 
31919
 
-
 
31920
    public createCart_result deepCopy() {
-
 
31921
      return new createCart_result(this);
-
 
31922
    }
-
 
31923
 
-
 
31924
    @Deprecated
-
 
31925
    public createCart_result clone() {
-
 
31926
      return new createCart_result(this);
-
 
31927
    }
-
 
31928
 
-
 
31929
    public long getSuccess() {
-
 
31930
      return this.success;
-
 
31931
    }
-
 
31932
 
-
 
31933
    public createCart_result setSuccess(long success) {
-
 
31934
      this.success = success;
-
 
31935
      setSuccessIsSet(true);
-
 
31936
      return this;
-
 
31937
    }
-
 
31938
 
-
 
31939
    public void unsetSuccess() {
-
 
31940
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
31941
    }
-
 
31942
 
-
 
31943
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
31944
    public boolean isSetSuccess() {
-
 
31945
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
31946
    }
-
 
31947
 
-
 
31948
    public void setSuccessIsSet(boolean value) {
-
 
31949
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
31950
    }
-
 
31951
 
-
 
31952
    public ShoppingCartException getScx() {
-
 
31953
      return this.scx;
-
 
31954
    }
-
 
31955
 
-
 
31956
    public createCart_result setScx(ShoppingCartException scx) {
-
 
31957
      this.scx = scx;
-
 
31958
      return this;
-
 
31959
    }
-
 
31960
 
-
 
31961
    public void unsetScx() {
-
 
31962
      this.scx = null;
-
 
31963
    }
-
 
31964
 
-
 
31965
    /** Returns true if field scx is set (has been asigned a value) and false otherwise */
-
 
31966
    public boolean isSetScx() {
-
 
31967
      return this.scx != null;
-
 
31968
    }
-
 
31969
 
-
 
31970
    public void setScxIsSet(boolean value) {
-
 
31971
      if (!value) {
-
 
31972
        this.scx = null;
-
 
31973
      }
-
 
31974
    }
-
 
31975
 
-
 
31976
    public void setFieldValue(_Fields field, Object value) {
-
 
31977
      switch (field) {
-
 
31978
      case SUCCESS:
-
 
31979
        if (value == null) {
-
 
31980
          unsetSuccess();
-
 
31981
        } else {
-
 
31982
          setSuccess((Long)value);
-
 
31983
        }
-
 
31984
        break;
-
 
31985
 
-
 
31986
      case SCX:
-
 
31987
        if (value == null) {
-
 
31988
          unsetScx();
-
 
31989
        } else {
-
 
31990
          setScx((ShoppingCartException)value);
-
 
31991
        }
-
 
31992
        break;
-
 
31993
 
-
 
31994
      }
-
 
31995
    }
-
 
31996
 
-
 
31997
    public void setFieldValue(int fieldID, Object value) {
-
 
31998
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
31999
    }
-
 
32000
 
-
 
32001
    public Object getFieldValue(_Fields field) {
-
 
32002
      switch (field) {
-
 
32003
      case SUCCESS:
-
 
32004
        return new Long(getSuccess());
-
 
32005
 
-
 
32006
      case SCX:
-
 
32007
        return getScx();
-
 
32008
 
-
 
32009
      }
-
 
32010
      throw new IllegalStateException();
-
 
32011
    }
-
 
32012
 
-
 
32013
    public Object getFieldValue(int fieldId) {
-
 
32014
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
32015
    }
-
 
32016
 
-
 
32017
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
32018
    public boolean isSet(_Fields field) {
-
 
32019
      switch (field) {
-
 
32020
      case SUCCESS:
-
 
32021
        return isSetSuccess();
-
 
32022
      case SCX:
-
 
32023
        return isSetScx();
-
 
32024
      }
-
 
32025
      throw new IllegalStateException();
-
 
32026
    }
-
 
32027
 
-
 
32028
    public boolean isSet(int fieldID) {
-
 
32029
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
32030
    }
-
 
32031
 
-
 
32032
    @Override
-
 
32033
    public boolean equals(Object that) {
-
 
32034
      if (that == null)
-
 
32035
        return false;
-
 
32036
      if (that instanceof createCart_result)
-
 
32037
        return this.equals((createCart_result)that);
-
 
32038
      return false;
-
 
32039
    }
-
 
32040
 
-
 
32041
    public boolean equals(createCart_result that) {
-
 
32042
      if (that == null)
-
 
32043
        return false;
-
 
32044
 
-
 
32045
      boolean this_present_success = true;
-
 
32046
      boolean that_present_success = true;
-
 
32047
      if (this_present_success || that_present_success) {
-
 
32048
        if (!(this_present_success && that_present_success))
-
 
32049
          return false;
-
 
32050
        if (this.success != that.success)
-
 
32051
          return false;
-
 
32052
      }
-
 
32053
 
-
 
32054
      boolean this_present_scx = true && this.isSetScx();
-
 
32055
      boolean that_present_scx = true && that.isSetScx();
-
 
32056
      if (this_present_scx || that_present_scx) {
-
 
32057
        if (!(this_present_scx && that_present_scx))
-
 
32058
          return false;
-
 
32059
        if (!this.scx.equals(that.scx))
-
 
32060
          return false;
-
 
32061
      }
-
 
32062
 
-
 
32063
      return true;
-
 
32064
    }
-
 
32065
 
-
 
32066
    @Override
-
 
32067
    public int hashCode() {
-
 
32068
      return 0;
-
 
32069
    }
-
 
32070
 
-
 
32071
    public int compareTo(createCart_result other) {
-
 
32072
      if (!getClass().equals(other.getClass())) {
-
 
32073
        return getClass().getName().compareTo(other.getClass().getName());
-
 
32074
      }
-
 
32075
 
-
 
32076
      int lastComparison = 0;
-
 
32077
      createCart_result typedOther = (createCart_result)other;
-
 
32078
 
-
 
32079
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
32080
      if (lastComparison != 0) {
-
 
32081
        return lastComparison;
-
 
32082
      }
-
 
32083
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
32084
      if (lastComparison != 0) {
-
 
32085
        return lastComparison;
-
 
32086
      }
-
 
32087
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(isSetScx());
-
 
32088
      if (lastComparison != 0) {
-
 
32089
        return lastComparison;
-
 
32090
      }
-
 
32091
      lastComparison = TBaseHelper.compareTo(scx, typedOther.scx);
-
 
32092
      if (lastComparison != 0) {
-
 
32093
        return lastComparison;
-
 
32094
      }
-
 
32095
      return 0;
-
 
32096
    }
-
 
32097
 
-
 
32098
    public void read(TProtocol iprot) throws TException {
-
 
32099
      TField field;
-
 
32100
      iprot.readStructBegin();
-
 
32101
      while (true)
-
 
32102
      {
-
 
32103
        field = iprot.readFieldBegin();
-
 
32104
        if (field.type == TType.STOP) { 
-
 
32105
          break;
-
 
32106
        }
-
 
32107
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
32108
        if (fieldId == null) {
-
 
32109
          TProtocolUtil.skip(iprot, field.type);
-
 
32110
        } else {
-
 
32111
          switch (fieldId) {
-
 
32112
            case SUCCESS:
-
 
32113
              if (field.type == TType.I64) {
-
 
32114
                this.success = iprot.readI64();
-
 
32115
                setSuccessIsSet(true);
-
 
32116
              } else { 
-
 
32117
                TProtocolUtil.skip(iprot, field.type);
-
 
32118
              }
-
 
32119
              break;
-
 
32120
            case SCX:
-
 
32121
              if (field.type == TType.STRUCT) {
-
 
32122
                this.scx = new ShoppingCartException();
-
 
32123
                this.scx.read(iprot);
-
 
32124
              } else { 
-
 
32125
                TProtocolUtil.skip(iprot, field.type);
-
 
32126
              }
-
 
32127
              break;
-
 
32128
          }
-
 
32129
          iprot.readFieldEnd();
-
 
32130
        }
-
 
32131
      }
-
 
32132
      iprot.readStructEnd();
-
 
32133
      validate();
-
 
32134
    }
-
 
32135
 
-
 
32136
    public void write(TProtocol oprot) throws TException {
-
 
32137
      oprot.writeStructBegin(STRUCT_DESC);
-
 
32138
 
-
 
32139
      if (this.isSetSuccess()) {
-
 
32140
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
32141
        oprot.writeI64(this.success);
-
 
32142
        oprot.writeFieldEnd();
-
 
32143
      } else if (this.isSetScx()) {
-
 
32144
        oprot.writeFieldBegin(SCX_FIELD_DESC);
-
 
32145
        this.scx.write(oprot);
-
 
32146
        oprot.writeFieldEnd();
-
 
32147
      }
-
 
32148
      oprot.writeFieldStop();
-
 
32149
      oprot.writeStructEnd();
-
 
32150
    }
-
 
32151
 
-
 
32152
    @Override
-
 
32153
    public String toString() {
-
 
32154
      StringBuilder sb = new StringBuilder("createCart_result(");
-
 
32155
      boolean first = true;
-
 
32156
 
-
 
32157
      sb.append("success:");
-
 
32158
      sb.append(this.success);
-
 
32159
      first = false;
-
 
32160
      if (!first) sb.append(", ");
-
 
32161
      sb.append("scx:");
-
 
32162
      if (this.scx == null) {
-
 
32163
        sb.append("null");
-
 
32164
      } else {
-
 
32165
        sb.append(this.scx);
-
 
32166
      }
-
 
32167
      first = false;
-
 
32168
      sb.append(")");
-
 
32169
      return sb.toString();
-
 
32170
    }
-
 
32171
 
-
 
32172
    public void validate() throws TException {
-
 
32173
      // check for required fields
-
 
32174
    }
-
 
32175
 
-
 
32176
  }
-
 
32177
 
-
 
32178
  public static class getCurrentCart_args implements TBase<getCurrentCart_args._Fields>, java.io.Serializable, Cloneable, Comparable<getCurrentCart_args>   {
-
 
32179
    private static final TStruct STRUCT_DESC = new TStruct("getCurrentCart_args");
-
 
32180
 
-
 
32181
    private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)1);
-
 
32182
 
-
 
32183
    private long userId;
-
 
32184
 
-
 
32185
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
32186
    public enum _Fields implements TFieldIdEnum {
-
 
32187
      USER_ID((short)1, "userId");
-
 
32188
 
-
 
32189
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
32190
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
32191
 
-
 
32192
      static {
-
 
32193
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
32194
          byId.put((int)field._thriftId, field);
-
 
32195
          byName.put(field.getFieldName(), field);
-
 
32196
        }
-
 
32197
      }
-
 
32198
 
-
 
32199
      /**
-
 
32200
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
32201
       */
-
 
32202
      public static _Fields findByThriftId(int fieldId) {
-
 
32203
        return byId.get(fieldId);
-
 
32204
      }
-
 
32205
 
-
 
32206
      /**
-
 
32207
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
32208
       * if it is not found.
-
 
32209
       */
-
 
32210
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
32211
        _Fields fields = findByThriftId(fieldId);
-
 
32212
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
32213
        return fields;
-
 
32214
      }
-
 
32215
 
-
 
32216
      /**
-
 
32217
       * Find the _Fields constant that matches name, or null if its not found.
-
 
32218
       */
-
 
32219
      public static _Fields findByName(String name) {
-
 
32220
        return byName.get(name);
-
 
32221
      }
-
 
32222
 
-
 
32223
      private final short _thriftId;
-
 
32224
      private final String _fieldName;
-
 
32225
 
-
 
32226
      _Fields(short thriftId, String fieldName) {
-
 
32227
        _thriftId = thriftId;
-
 
32228
        _fieldName = fieldName;
-
 
32229
      }
-
 
32230
 
-
 
32231
      public short getThriftFieldId() {
-
 
32232
        return _thriftId;
-
 
32233
      }
-
 
32234
 
-
 
32235
      public String getFieldName() {
-
 
32236
        return _fieldName;
-
 
32237
      }
-
 
32238
    }
-
 
32239
 
-
 
32240
    // isset id assignments
-
 
32241
    private static final int __USERID_ISSET_ID = 0;
-
 
32242
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
32243
 
-
 
32244
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
32245
      put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT, 
-
 
32246
          new FieldValueMetaData(TType.I64)));
-
 
32247
    }});
-
 
32248
 
-
 
32249
    static {
-
 
32250
      FieldMetaData.addStructMetaDataMap(getCurrentCart_args.class, metaDataMap);
-
 
32251
    }
-
 
32252
 
-
 
32253
    public getCurrentCart_args() {
-
 
32254
    }
-
 
32255
 
-
 
32256
    public getCurrentCart_args(
-
 
32257
      long userId)
-
 
32258
    {
-
 
32259
      this();
-
 
32260
      this.userId = userId;
-
 
32261
      setUserIdIsSet(true);
-
 
32262
    }
-
 
32263
 
-
 
32264
    /**
-
 
32265
     * Performs a deep copy on <i>other</i>.
-
 
32266
     */
-
 
32267
    public getCurrentCart_args(getCurrentCart_args other) {
-
 
32268
      __isset_bit_vector.clear();
-
 
32269
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
32270
      this.userId = other.userId;
-
 
32271
    }
-
 
32272
 
-
 
32273
    public getCurrentCart_args deepCopy() {
-
 
32274
      return new getCurrentCart_args(this);
-
 
32275
    }
-
 
32276
 
-
 
32277
    @Deprecated
-
 
32278
    public getCurrentCart_args clone() {
-
 
32279
      return new getCurrentCart_args(this);
-
 
32280
    }
-
 
32281
 
-
 
32282
    public long getUserId() {
-
 
32283
      return this.userId;
-
 
32284
    }
-
 
32285
 
-
 
32286
    public getCurrentCart_args setUserId(long userId) {
-
 
32287
      this.userId = userId;
-
 
32288
      setUserIdIsSet(true);
-
 
32289
      return this;
-
 
32290
    }
-
 
32291
 
-
 
32292
    public void unsetUserId() {
-
 
32293
      __isset_bit_vector.clear(__USERID_ISSET_ID);
-
 
32294
    }
-
 
32295
 
-
 
32296
    /** Returns true if field userId is set (has been asigned a value) and false otherwise */
-
 
32297
    public boolean isSetUserId() {
-
 
32298
      return __isset_bit_vector.get(__USERID_ISSET_ID);
-
 
32299
    }
-
 
32300
 
-
 
32301
    public void setUserIdIsSet(boolean value) {
-
 
32302
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
-
 
32303
    }
-
 
32304
 
-
 
32305
    public void setFieldValue(_Fields field, Object value) {
-
 
32306
      switch (field) {
-
 
32307
      case USER_ID:
-
 
32308
        if (value == null) {
-
 
32309
          unsetUserId();
-
 
32310
        } else {
-
 
32311
          setUserId((Long)value);
-
 
32312
        }
-
 
32313
        break;
-
 
32314
 
-
 
32315
      }
-
 
32316
    }
-
 
32317
 
-
 
32318
    public void setFieldValue(int fieldID, Object value) {
-
 
32319
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
32320
    }
-
 
32321
 
-
 
32322
    public Object getFieldValue(_Fields field) {
-
 
32323
      switch (field) {
-
 
32324
      case USER_ID:
-
 
32325
        return new Long(getUserId());
-
 
32326
 
-
 
32327
      }
-
 
32328
      throw new IllegalStateException();
-
 
32329
    }
-
 
32330
 
-
 
32331
    public Object getFieldValue(int fieldId) {
-
 
32332
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
32333
    }
-
 
32334
 
-
 
32335
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
32336
    public boolean isSet(_Fields field) {
-
 
32337
      switch (field) {
-
 
32338
      case USER_ID:
-
 
32339
        return isSetUserId();
-
 
32340
      }
-
 
32341
      throw new IllegalStateException();
-
 
32342
    }
-
 
32343
 
-
 
32344
    public boolean isSet(int fieldID) {
-
 
32345
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
32346
    }
-
 
32347
 
-
 
32348
    @Override
-
 
32349
    public boolean equals(Object that) {
-
 
32350
      if (that == null)
-
 
32351
        return false;
-
 
32352
      if (that instanceof getCurrentCart_args)
-
 
32353
        return this.equals((getCurrentCart_args)that);
-
 
32354
      return false;
-
 
32355
    }
-
 
32356
 
-
 
32357
    public boolean equals(getCurrentCart_args that) {
-
 
32358
      if (that == null)
-
 
32359
        return false;
-
 
32360
 
-
 
32361
      boolean this_present_userId = true;
-
 
32362
      boolean that_present_userId = true;
-
 
32363
      if (this_present_userId || that_present_userId) {
-
 
32364
        if (!(this_present_userId && that_present_userId))
-
 
32365
          return false;
-
 
32366
        if (this.userId != that.userId)
-
 
32367
          return false;
-
 
32368
      }
-
 
32369
 
-
 
32370
      return true;
-
 
32371
    }
-
 
32372
 
-
 
32373
    @Override
-
 
32374
    public int hashCode() {
-
 
32375
      return 0;
-
 
32376
    }
-
 
32377
 
-
 
32378
    public int compareTo(getCurrentCart_args other) {
-
 
32379
      if (!getClass().equals(other.getClass())) {
-
 
32380
        return getClass().getName().compareTo(other.getClass().getName());
-
 
32381
      }
-
 
32382
 
-
 
32383
      int lastComparison = 0;
-
 
32384
      getCurrentCart_args typedOther = (getCurrentCart_args)other;
-
 
32385
 
-
 
32386
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(isSetUserId());
-
 
32387
      if (lastComparison != 0) {
-
 
32388
        return lastComparison;
-
 
32389
      }
-
 
32390
      lastComparison = TBaseHelper.compareTo(userId, typedOther.userId);
-
 
32391
      if (lastComparison != 0) {
-
 
32392
        return lastComparison;
-
 
32393
      }
-
 
32394
      return 0;
-
 
32395
    }
-
 
32396
 
-
 
32397
    public void read(TProtocol iprot) throws TException {
-
 
32398
      TField field;
-
 
32399
      iprot.readStructBegin();
-
 
32400
      while (true)
-
 
32401
      {
-
 
32402
        field = iprot.readFieldBegin();
-
 
32403
        if (field.type == TType.STOP) { 
-
 
32404
          break;
-
 
32405
        }
-
 
32406
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
32407
        if (fieldId == null) {
-
 
32408
          TProtocolUtil.skip(iprot, field.type);
-
 
32409
        } else {
-
 
32410
          switch (fieldId) {
-
 
32411
            case USER_ID:
-
 
32412
              if (field.type == TType.I64) {
-
 
32413
                this.userId = iprot.readI64();
-
 
32414
                setUserIdIsSet(true);
-
 
32415
              } else { 
-
 
32416
                TProtocolUtil.skip(iprot, field.type);
-
 
32417
              }
-
 
32418
              break;
-
 
32419
          }
-
 
32420
          iprot.readFieldEnd();
-
 
32421
        }
-
 
32422
      }
-
 
32423
      iprot.readStructEnd();
-
 
32424
      validate();
-
 
32425
    }
-
 
32426
 
-
 
32427
    public void write(TProtocol oprot) throws TException {
-
 
32428
      validate();
-
 
32429
 
-
 
32430
      oprot.writeStructBegin(STRUCT_DESC);
-
 
32431
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
-
 
32432
      oprot.writeI64(this.userId);
-
 
32433
      oprot.writeFieldEnd();
-
 
32434
      oprot.writeFieldStop();
-
 
32435
      oprot.writeStructEnd();
-
 
32436
    }
-
 
32437
 
-
 
32438
    @Override
-
 
32439
    public String toString() {
-
 
32440
      StringBuilder sb = new StringBuilder("getCurrentCart_args(");
-
 
32441
      boolean first = true;
-
 
32442
 
-
 
32443
      sb.append("userId:");
-
 
32444
      sb.append(this.userId);
-
 
32445
      first = false;
-
 
32446
      sb.append(")");
-
 
32447
      return sb.toString();
-
 
32448
    }
-
 
32449
 
-
 
32450
    public void validate() throws TException {
-
 
32451
      // check for required fields
-
 
32452
    }
-
 
32453
 
-
 
32454
  }
-
 
32455
 
-
 
32456
  public static class getCurrentCart_result implements TBase<getCurrentCart_result._Fields>, java.io.Serializable, Cloneable, Comparable<getCurrentCart_result>   {
-
 
32457
    private static final TStruct STRUCT_DESC = new TStruct("getCurrentCart_result");
-
 
32458
 
-
 
32459
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
-
 
32460
    private static final TField SCX_FIELD_DESC = new TField("scx", TType.STRUCT, (short)1);
-
 
32461
 
-
 
32462
    private Cart success;
-
 
32463
    private ShoppingCartException scx;
-
 
32464
 
-
 
32465
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
32466
    public enum _Fields implements TFieldIdEnum {
-
 
32467
      SUCCESS((short)0, "success"),
-
 
32468
      SCX((short)1, "scx");
-
 
32469
 
-
 
32470
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
32471
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
32472
 
-
 
32473
      static {
-
 
32474
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
32475
          byId.put((int)field._thriftId, field);
-
 
32476
          byName.put(field.getFieldName(), field);
-
 
32477
        }
-
 
32478
      }
-
 
32479
 
-
 
32480
      /**
-
 
32481
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
32482
       */
-
 
32483
      public static _Fields findByThriftId(int fieldId) {
-
 
32484
        return byId.get(fieldId);
-
 
32485
      }
-
 
32486
 
-
 
32487
      /**
-
 
32488
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
32489
       * if it is not found.
-
 
32490
       */
-
 
32491
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
32492
        _Fields fields = findByThriftId(fieldId);
-
 
32493
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
32494
        return fields;
-
 
32495
      }
-
 
32496
 
-
 
32497
      /**
-
 
32498
       * Find the _Fields constant that matches name, or null if its not found.
-
 
32499
       */
-
 
32500
      public static _Fields findByName(String name) {
-
 
32501
        return byName.get(name);
-
 
32502
      }
-
 
32503
 
-
 
32504
      private final short _thriftId;
-
 
32505
      private final String _fieldName;
-
 
32506
 
-
 
32507
      _Fields(short thriftId, String fieldName) {
-
 
32508
        _thriftId = thriftId;
-
 
32509
        _fieldName = fieldName;
-
 
32510
      }
-
 
32511
 
-
 
32512
      public short getThriftFieldId() {
-
 
32513
        return _thriftId;
-
 
32514
      }
-
 
32515
 
-
 
32516
      public String getFieldName() {
-
 
32517
        return _fieldName;
-
 
32518
      }
-
 
32519
    }
-
 
32520
 
-
 
32521
    // isset id assignments
-
 
32522
 
-
 
32523
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
32524
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
32525
          new StructMetaData(TType.STRUCT, Cart.class)));
-
 
32526
      put(_Fields.SCX, new FieldMetaData("scx", TFieldRequirementType.DEFAULT, 
-
 
32527
          new FieldValueMetaData(TType.STRUCT)));
-
 
32528
    }});
-
 
32529
 
-
 
32530
    static {
-
 
32531
      FieldMetaData.addStructMetaDataMap(getCurrentCart_result.class, metaDataMap);
-
 
32532
    }
-
 
32533
 
-
 
32534
    public getCurrentCart_result() {
-
 
32535
    }
-
 
32536
 
-
 
32537
    public getCurrentCart_result(
-
 
32538
      Cart success,
-
 
32539
      ShoppingCartException scx)
-
 
32540
    {
-
 
32541
      this();
-
 
32542
      this.success = success;
-
 
32543
      this.scx = scx;
-
 
32544
    }
-
 
32545
 
-
 
32546
    /**
-
 
32547
     * Performs a deep copy on <i>other</i>.
-
 
32548
     */
-
 
32549
    public getCurrentCart_result(getCurrentCart_result other) {
-
 
32550
      if (other.isSetSuccess()) {
-
 
32551
        this.success = new Cart(other.success);
-
 
32552
      }
-
 
32553
      if (other.isSetScx()) {
-
 
32554
        this.scx = new ShoppingCartException(other.scx);
-
 
32555
      }
-
 
32556
    }
-
 
32557
 
-
 
32558
    public getCurrentCart_result deepCopy() {
-
 
32559
      return new getCurrentCart_result(this);
-
 
32560
    }
-
 
32561
 
-
 
32562
    @Deprecated
-
 
32563
    public getCurrentCart_result clone() {
-
 
32564
      return new getCurrentCart_result(this);
-
 
32565
    }
-
 
32566
 
-
 
32567
    public Cart getSuccess() {
-
 
32568
      return this.success;
-
 
32569
    }
-
 
32570
 
-
 
32571
    public getCurrentCart_result setSuccess(Cart success) {
-
 
32572
      this.success = success;
-
 
32573
      return this;
-
 
32574
    }
-
 
32575
 
-
 
32576
    public void unsetSuccess() {
-
 
32577
      this.success = null;
-
 
32578
    }
-
 
32579
 
-
 
32580
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
32581
    public boolean isSetSuccess() {
-
 
32582
      return this.success != null;
-
 
32583
    }
-
 
32584
 
-
 
32585
    public void setSuccessIsSet(boolean value) {
-
 
32586
      if (!value) {
-
 
32587
        this.success = null;
-
 
32588
      }
-
 
32589
    }
-
 
32590
 
-
 
32591
    public ShoppingCartException getScx() {
-
 
32592
      return this.scx;
-
 
32593
    }
-
 
32594
 
-
 
32595
    public getCurrentCart_result setScx(ShoppingCartException scx) {
-
 
32596
      this.scx = scx;
-
 
32597
      return this;
-
 
32598
    }
-
 
32599
 
-
 
32600
    public void unsetScx() {
-
 
32601
      this.scx = null;
-
 
32602
    }
-
 
32603
 
-
 
32604
    /** Returns true if field scx is set (has been asigned a value) and false otherwise */
-
 
32605
    public boolean isSetScx() {
-
 
32606
      return this.scx != null;
-
 
32607
    }
-
 
32608
 
-
 
32609
    public void setScxIsSet(boolean value) {
-
 
32610
      if (!value) {
-
 
32611
        this.scx = null;
-
 
32612
      }
-
 
32613
    }
-
 
32614
 
-
 
32615
    public void setFieldValue(_Fields field, Object value) {
-
 
32616
      switch (field) {
-
 
32617
      case SUCCESS:
-
 
32618
        if (value == null) {
-
 
32619
          unsetSuccess();
-
 
32620
        } else {
-
 
32621
          setSuccess((Cart)value);
-
 
32622
        }
-
 
32623
        break;
-
 
32624
 
-
 
32625
      case SCX:
-
 
32626
        if (value == null) {
-
 
32627
          unsetScx();
-
 
32628
        } else {
-
 
32629
          setScx((ShoppingCartException)value);
-
 
32630
        }
-
 
32631
        break;
-
 
32632
 
-
 
32633
      }
-
 
32634
    }
-
 
32635
 
-
 
32636
    public void setFieldValue(int fieldID, Object value) {
-
 
32637
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
32638
    }
-
 
32639
 
-
 
32640
    public Object getFieldValue(_Fields field) {
-
 
32641
      switch (field) {
-
 
32642
      case SUCCESS:
-
 
32643
        return getSuccess();
-
 
32644
 
-
 
32645
      case SCX:
-
 
32646
        return getScx();
-
 
32647
 
-
 
32648
      }
-
 
32649
      throw new IllegalStateException();
-
 
32650
    }
-
 
32651
 
-
 
32652
    public Object getFieldValue(int fieldId) {
-
 
32653
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
32654
    }
-
 
32655
 
-
 
32656
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
32657
    public boolean isSet(_Fields field) {
-
 
32658
      switch (field) {
-
 
32659
      case SUCCESS:
-
 
32660
        return isSetSuccess();
-
 
32661
      case SCX:
-
 
32662
        return isSetScx();
-
 
32663
      }
-
 
32664
      throw new IllegalStateException();
-
 
32665
    }
-
 
32666
 
-
 
32667
    public boolean isSet(int fieldID) {
-
 
32668
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
32669
    }
-
 
32670
 
-
 
32671
    @Override
-
 
32672
    public boolean equals(Object that) {
-
 
32673
      if (that == null)
-
 
32674
        return false;
-
 
32675
      if (that instanceof getCurrentCart_result)
-
 
32676
        return this.equals((getCurrentCart_result)that);
-
 
32677
      return false;
-
 
32678
    }
-
 
32679
 
-
 
32680
    public boolean equals(getCurrentCart_result that) {
-
 
32681
      if (that == null)
-
 
32682
        return false;
-
 
32683
 
-
 
32684
      boolean this_present_success = true && this.isSetSuccess();
-
 
32685
      boolean that_present_success = true && that.isSetSuccess();
-
 
32686
      if (this_present_success || that_present_success) {
-
 
32687
        if (!(this_present_success && that_present_success))
-
 
32688
          return false;
-
 
32689
        if (!this.success.equals(that.success))
-
 
32690
          return false;
-
 
32691
      }
-
 
32692
 
-
 
32693
      boolean this_present_scx = true && this.isSetScx();
-
 
32694
      boolean that_present_scx = true && that.isSetScx();
-
 
32695
      if (this_present_scx || that_present_scx) {
-
 
32696
        if (!(this_present_scx && that_present_scx))
-
 
32697
          return false;
-
 
32698
        if (!this.scx.equals(that.scx))
-
 
32699
          return false;
-
 
32700
      }
-
 
32701
 
-
 
32702
      return true;
-
 
32703
    }
-
 
32704
 
-
 
32705
    @Override
-
 
32706
    public int hashCode() {
-
 
32707
      return 0;
-
 
32708
    }
-
 
32709
 
-
 
32710
    public int compareTo(getCurrentCart_result other) {
-
 
32711
      if (!getClass().equals(other.getClass())) {
-
 
32712
        return getClass().getName().compareTo(other.getClass().getName());
-
 
32713
      }
-
 
32714
 
-
 
32715
      int lastComparison = 0;
-
 
32716
      getCurrentCart_result typedOther = (getCurrentCart_result)other;
-
 
32717
 
-
 
32718
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
32719
      if (lastComparison != 0) {
-
 
32720
        return lastComparison;
-
 
32721
      }
-
 
32722
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
32723
      if (lastComparison != 0) {
-
 
32724
        return lastComparison;
-
 
32725
      }
-
 
32726
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(isSetScx());
-
 
32727
      if (lastComparison != 0) {
-
 
32728
        return lastComparison;
-
 
32729
      }
-
 
32730
      lastComparison = TBaseHelper.compareTo(scx, typedOther.scx);
-
 
32731
      if (lastComparison != 0) {
-
 
32732
        return lastComparison;
-
 
32733
      }
-
 
32734
      return 0;
-
 
32735
    }
-
 
32736
 
-
 
32737
    public void read(TProtocol iprot) throws TException {
-
 
32738
      TField field;
-
 
32739
      iprot.readStructBegin();
-
 
32740
      while (true)
-
 
32741
      {
-
 
32742
        field = iprot.readFieldBegin();
-
 
32743
        if (field.type == TType.STOP) { 
-
 
32744
          break;
-
 
32745
        }
-
 
32746
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
32747
        if (fieldId == null) {
-
 
32748
          TProtocolUtil.skip(iprot, field.type);
-
 
32749
        } else {
-
 
32750
          switch (fieldId) {
-
 
32751
            case SUCCESS:
-
 
32752
              if (field.type == TType.STRUCT) {
-
 
32753
                this.success = new Cart();
-
 
32754
                this.success.read(iprot);
-
 
32755
              } else { 
-
 
32756
                TProtocolUtil.skip(iprot, field.type);
-
 
32757
              }
-
 
32758
              break;
-
 
32759
            case SCX:
-
 
32760
              if (field.type == TType.STRUCT) {
-
 
32761
                this.scx = new ShoppingCartException();
-
 
32762
                this.scx.read(iprot);
-
 
32763
              } else { 
-
 
32764
                TProtocolUtil.skip(iprot, field.type);
-
 
32765
              }
-
 
32766
              break;
-
 
32767
          }
-
 
32768
          iprot.readFieldEnd();
-
 
32769
        }
-
 
32770
      }
-
 
32771
      iprot.readStructEnd();
-
 
32772
      validate();
-
 
32773
    }
-
 
32774
 
-
 
32775
    public void write(TProtocol oprot) throws TException {
-
 
32776
      oprot.writeStructBegin(STRUCT_DESC);
-
 
32777
 
-
 
32778
      if (this.isSetSuccess()) {
-
 
32779
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
32780
        this.success.write(oprot);
-
 
32781
        oprot.writeFieldEnd();
-
 
32782
      } else if (this.isSetScx()) {
-
 
32783
        oprot.writeFieldBegin(SCX_FIELD_DESC);
-
 
32784
        this.scx.write(oprot);
-
 
32785
        oprot.writeFieldEnd();
-
 
32786
      }
-
 
32787
      oprot.writeFieldStop();
-
 
32788
      oprot.writeStructEnd();
-
 
32789
    }
-
 
32790
 
-
 
32791
    @Override
-
 
32792
    public String toString() {
-
 
32793
      StringBuilder sb = new StringBuilder("getCurrentCart_result(");
-
 
32794
      boolean first = true;
-
 
32795
 
-
 
32796
      sb.append("success:");
-
 
32797
      if (this.success == null) {
-
 
32798
        sb.append("null");
-
 
32799
      } else {
-
 
32800
        sb.append(this.success);
-
 
32801
      }
-
 
32802
      first = false;
-
 
32803
      if (!first) sb.append(", ");
-
 
32804
      sb.append("scx:");
-
 
32805
      if (this.scx == null) {
-
 
32806
        sb.append("null");
-
 
32807
      } else {
-
 
32808
        sb.append(this.scx);
-
 
32809
      }
-
 
32810
      first = false;
-
 
32811
      sb.append(")");
-
 
32812
      return sb.toString();
-
 
32813
    }
-
 
32814
 
-
 
32815
    public void validate() throws TException {
-
 
32816
      // check for required fields
-
 
32817
    }
-
 
32818
 
-
 
32819
  }
-
 
32820
 
-
 
32821
  public static class getCart_args implements TBase<getCart_args._Fields>, java.io.Serializable, Cloneable, Comparable<getCart_args>   {
-
 
32822
    private static final TStruct STRUCT_DESC = new TStruct("getCart_args");
-
 
32823
 
-
 
32824
    private static final TField CART_ID_FIELD_DESC = new TField("cartId", TType.I64, (short)1);
-
 
32825
 
-
 
32826
    private long cartId;
-
 
32827
 
-
 
32828
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
32829
    public enum _Fields implements TFieldIdEnum {
-
 
32830
      CART_ID((short)1, "cartId");
-
 
32831
 
-
 
32832
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
32833
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
32834
 
-
 
32835
      static {
-
 
32836
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
32837
          byId.put((int)field._thriftId, field);
-
 
32838
          byName.put(field.getFieldName(), field);
-
 
32839
        }
-
 
32840
      }
-
 
32841
 
-
 
32842
      /**
-
 
32843
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
32844
       */
-
 
32845
      public static _Fields findByThriftId(int fieldId) {
-
 
32846
        return byId.get(fieldId);
-
 
32847
      }
-
 
32848
 
-
 
32849
      /**
-
 
32850
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
32851
       * if it is not found.
-
 
32852
       */
-
 
32853
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
32854
        _Fields fields = findByThriftId(fieldId);
-
 
32855
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
32856
        return fields;
-
 
32857
      }
-
 
32858
 
-
 
32859
      /**
-
 
32860
       * Find the _Fields constant that matches name, or null if its not found.
-
 
32861
       */
-
 
32862
      public static _Fields findByName(String name) {
-
 
32863
        return byName.get(name);
-
 
32864
      }
-
 
32865
 
-
 
32866
      private final short _thriftId;
-
 
32867
      private final String _fieldName;
-
 
32868
 
-
 
32869
      _Fields(short thriftId, String fieldName) {
-
 
32870
        _thriftId = thriftId;
-
 
32871
        _fieldName = fieldName;
-
 
32872
      }
-
 
32873
 
-
 
32874
      public short getThriftFieldId() {
-
 
32875
        return _thriftId;
-
 
32876
      }
-
 
32877
 
-
 
32878
      public String getFieldName() {
-
 
32879
        return _fieldName;
-
 
32880
      }
-
 
32881
    }
-
 
32882
 
-
 
32883
    // isset id assignments
-
 
32884
    private static final int __CARTID_ISSET_ID = 0;
-
 
32885
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
32886
 
-
 
32887
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
32888
      put(_Fields.CART_ID, new FieldMetaData("cartId", TFieldRequirementType.DEFAULT, 
-
 
32889
          new FieldValueMetaData(TType.I64)));
-
 
32890
    }});
-
 
32891
 
-
 
32892
    static {
-
 
32893
      FieldMetaData.addStructMetaDataMap(getCart_args.class, metaDataMap);
-
 
32894
    }
-
 
32895
 
-
 
32896
    public getCart_args() {
-
 
32897
    }
-
 
32898
 
-
 
32899
    public getCart_args(
-
 
32900
      long cartId)
-
 
32901
    {
-
 
32902
      this();
-
 
32903
      this.cartId = cartId;
-
 
32904
      setCartIdIsSet(true);
-
 
32905
    }
-
 
32906
 
-
 
32907
    /**
-
 
32908
     * Performs a deep copy on <i>other</i>.
-
 
32909
     */
-
 
32910
    public getCart_args(getCart_args other) {
-
 
32911
      __isset_bit_vector.clear();
-
 
32912
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
32913
      this.cartId = other.cartId;
-
 
32914
    }
-
 
32915
 
-
 
32916
    public getCart_args deepCopy() {
-
 
32917
      return new getCart_args(this);
-
 
32918
    }
-
 
32919
 
-
 
32920
    @Deprecated
-
 
32921
    public getCart_args clone() {
-
 
32922
      return new getCart_args(this);
-
 
32923
    }
-
 
32924
 
-
 
32925
    public long getCartId() {
-
 
32926
      return this.cartId;
-
 
32927
    }
-
 
32928
 
-
 
32929
    public getCart_args setCartId(long cartId) {
-
 
32930
      this.cartId = cartId;
-
 
32931
      setCartIdIsSet(true);
-
 
32932
      return this;
-
 
32933
    }
-
 
32934
 
-
 
32935
    public void unsetCartId() {
-
 
32936
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
-
 
32937
    }
-
 
32938
 
-
 
32939
    /** Returns true if field cartId is set (has been asigned a value) and false otherwise */
-
 
32940
    public boolean isSetCartId() {
-
 
32941
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
-
 
32942
    }
-
 
32943
 
-
 
32944
    public void setCartIdIsSet(boolean value) {
-
 
32945
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
-
 
32946
    }
-
 
32947
 
-
 
32948
    public void setFieldValue(_Fields field, Object value) {
-
 
32949
      switch (field) {
-
 
32950
      case CART_ID:
-
 
32951
        if (value == null) {
-
 
32952
          unsetCartId();
-
 
32953
        } else {
-
 
32954
          setCartId((Long)value);
-
 
32955
        }
-
 
32956
        break;
-
 
32957
 
-
 
32958
      }
-
 
32959
    }
-
 
32960
 
-
 
32961
    public void setFieldValue(int fieldID, Object value) {
-
 
32962
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
32963
    }
-
 
32964
 
-
 
32965
    public Object getFieldValue(_Fields field) {
-
 
32966
      switch (field) {
-
 
32967
      case CART_ID:
-
 
32968
        return new Long(getCartId());
-
 
32969
 
-
 
32970
      }
-
 
32971
      throw new IllegalStateException();
-
 
32972
    }
-
 
32973
 
-
 
32974
    public Object getFieldValue(int fieldId) {
-
 
32975
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
32976
    }
-
 
32977
 
-
 
32978
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
32979
    public boolean isSet(_Fields field) {
-
 
32980
      switch (field) {
-
 
32981
      case CART_ID:
-
 
32982
        return isSetCartId();
-
 
32983
      }
-
 
32984
      throw new IllegalStateException();
-
 
32985
    }
-
 
32986
 
-
 
32987
    public boolean isSet(int fieldID) {
-
 
32988
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
32989
    }
-
 
32990
 
-
 
32991
    @Override
-
 
32992
    public boolean equals(Object that) {
-
 
32993
      if (that == null)
-
 
32994
        return false;
-
 
32995
      if (that instanceof getCart_args)
-
 
32996
        return this.equals((getCart_args)that);
-
 
32997
      return false;
-
 
32998
    }
-
 
32999
 
-
 
33000
    public boolean equals(getCart_args that) {
-
 
33001
      if (that == null)
-
 
33002
        return false;
-
 
33003
 
-
 
33004
      boolean this_present_cartId = true;
-
 
33005
      boolean that_present_cartId = true;
-
 
33006
      if (this_present_cartId || that_present_cartId) {
-
 
33007
        if (!(this_present_cartId && that_present_cartId))
-
 
33008
          return false;
-
 
33009
        if (this.cartId != that.cartId)
-
 
33010
          return false;
-
 
33011
      }
-
 
33012
 
-
 
33013
      return true;
-
 
33014
    }
-
 
33015
 
-
 
33016
    @Override
-
 
33017
    public int hashCode() {
-
 
33018
      return 0;
-
 
33019
    }
-
 
33020
 
-
 
33021
    public int compareTo(getCart_args other) {
-
 
33022
      if (!getClass().equals(other.getClass())) {
-
 
33023
        return getClass().getName().compareTo(other.getClass().getName());
-
 
33024
      }
-
 
33025
 
-
 
33026
      int lastComparison = 0;
-
 
33027
      getCart_args typedOther = (getCart_args)other;
-
 
33028
 
-
 
33029
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(isSetCartId());
-
 
33030
      if (lastComparison != 0) {
-
 
33031
        return lastComparison;
-
 
33032
      }
-
 
33033
      lastComparison = TBaseHelper.compareTo(cartId, typedOther.cartId);
-
 
33034
      if (lastComparison != 0) {
-
 
33035
        return lastComparison;
-
 
33036
      }
-
 
33037
      return 0;
-
 
33038
    }
-
 
33039
 
-
 
33040
    public void read(TProtocol iprot) throws TException {
-
 
33041
      TField field;
-
 
33042
      iprot.readStructBegin();
-
 
33043
      while (true)
-
 
33044
      {
-
 
33045
        field = iprot.readFieldBegin();
-
 
33046
        if (field.type == TType.STOP) { 
-
 
33047
          break;
-
 
33048
        }
-
 
33049
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
33050
        if (fieldId == null) {
-
 
33051
          TProtocolUtil.skip(iprot, field.type);
-
 
33052
        } else {
-
 
33053
          switch (fieldId) {
-
 
33054
            case CART_ID:
-
 
33055
              if (field.type == TType.I64) {
-
 
33056
                this.cartId = iprot.readI64();
-
 
33057
                setCartIdIsSet(true);
-
 
33058
              } else { 
-
 
33059
                TProtocolUtil.skip(iprot, field.type);
-
 
33060
              }
-
 
33061
              break;
-
 
33062
          }
-
 
33063
          iprot.readFieldEnd();
-
 
33064
        }
-
 
33065
      }
-
 
33066
      iprot.readStructEnd();
-
 
33067
      validate();
-
 
33068
    }
-
 
33069
 
-
 
33070
    public void write(TProtocol oprot) throws TException {
-
 
33071
      validate();
-
 
33072
 
-
 
33073
      oprot.writeStructBegin(STRUCT_DESC);
-
 
33074
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
-
 
33075
      oprot.writeI64(this.cartId);
-
 
33076
      oprot.writeFieldEnd();
-
 
33077
      oprot.writeFieldStop();
-
 
33078
      oprot.writeStructEnd();
-
 
33079
    }
-
 
33080
 
-
 
33081
    @Override
-
 
33082
    public String toString() {
-
 
33083
      StringBuilder sb = new StringBuilder("getCart_args(");
-
 
33084
      boolean first = true;
-
 
33085
 
-
 
33086
      sb.append("cartId:");
-
 
33087
      sb.append(this.cartId);
-
 
33088
      first = false;
-
 
33089
      sb.append(")");
-
 
33090
      return sb.toString();
-
 
33091
    }
-
 
33092
 
-
 
33093
    public void validate() throws TException {
-
 
33094
      // check for required fields
-
 
33095
    }
-
 
33096
 
-
 
33097
  }
-
 
33098
 
-
 
33099
  public static class getCart_result implements TBase<getCart_result._Fields>, java.io.Serializable, Cloneable, Comparable<getCart_result>   {
-
 
33100
    private static final TStruct STRUCT_DESC = new TStruct("getCart_result");
-
 
33101
 
-
 
33102
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
-
 
33103
    private static final TField SCX_FIELD_DESC = new TField("scx", TType.STRUCT, (short)1);
-
 
33104
 
-
 
33105
    private Cart success;
-
 
33106
    private ShoppingCartException scx;
-
 
33107
 
-
 
33108
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
33109
    public enum _Fields implements TFieldIdEnum {
-
 
33110
      SUCCESS((short)0, "success"),
-
 
33111
      SCX((short)1, "scx");
-
 
33112
 
-
 
33113
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
33114
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
33115
 
-
 
33116
      static {
-
 
33117
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
33118
          byId.put((int)field._thriftId, field);
-
 
33119
          byName.put(field.getFieldName(), field);
-
 
33120
        }
-
 
33121
      }
-
 
33122
 
-
 
33123
      /**
-
 
33124
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
33125
       */
-
 
33126
      public static _Fields findByThriftId(int fieldId) {
-
 
33127
        return byId.get(fieldId);
-
 
33128
      }
-
 
33129
 
-
 
33130
      /**
-
 
33131
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
33132
       * if it is not found.
-
 
33133
       */
-
 
33134
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
33135
        _Fields fields = findByThriftId(fieldId);
-
 
33136
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
33137
        return fields;
-
 
33138
      }
-
 
33139
 
-
 
33140
      /**
-
 
33141
       * Find the _Fields constant that matches name, or null if its not found.
-
 
33142
       */
-
 
33143
      public static _Fields findByName(String name) {
-
 
33144
        return byName.get(name);
-
 
33145
      }
-
 
33146
 
-
 
33147
      private final short _thriftId;
-
 
33148
      private final String _fieldName;
-
 
33149
 
-
 
33150
      _Fields(short thriftId, String fieldName) {
-
 
33151
        _thriftId = thriftId;
-
 
33152
        _fieldName = fieldName;
-
 
33153
      }
-
 
33154
 
-
 
33155
      public short getThriftFieldId() {
-
 
33156
        return _thriftId;
-
 
33157
      }
-
 
33158
 
-
 
33159
      public String getFieldName() {
-
 
33160
        return _fieldName;
-
 
33161
      }
-
 
33162
    }
-
 
33163
 
-
 
33164
    // isset id assignments
-
 
33165
 
-
 
33166
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
33167
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
33168
          new StructMetaData(TType.STRUCT, Cart.class)));
-
 
33169
      put(_Fields.SCX, new FieldMetaData("scx", TFieldRequirementType.DEFAULT, 
-
 
33170
          new FieldValueMetaData(TType.STRUCT)));
-
 
33171
    }});
-
 
33172
 
-
 
33173
    static {
-
 
33174
      FieldMetaData.addStructMetaDataMap(getCart_result.class, metaDataMap);
-
 
33175
    }
-
 
33176
 
-
 
33177
    public getCart_result() {
-
 
33178
    }
-
 
33179
 
-
 
33180
    public getCart_result(
-
 
33181
      Cart success,
-
 
33182
      ShoppingCartException scx)
-
 
33183
    {
-
 
33184
      this();
-
 
33185
      this.success = success;
-
 
33186
      this.scx = scx;
-
 
33187
    }
-
 
33188
 
-
 
33189
    /**
-
 
33190
     * Performs a deep copy on <i>other</i>.
-
 
33191
     */
-
 
33192
    public getCart_result(getCart_result other) {
-
 
33193
      if (other.isSetSuccess()) {
-
 
33194
        this.success = new Cart(other.success);
-
 
33195
      }
-
 
33196
      if (other.isSetScx()) {
-
 
33197
        this.scx = new ShoppingCartException(other.scx);
-
 
33198
      }
-
 
33199
    }
-
 
33200
 
-
 
33201
    public getCart_result deepCopy() {
-
 
33202
      return new getCart_result(this);
-
 
33203
    }
-
 
33204
 
-
 
33205
    @Deprecated
-
 
33206
    public getCart_result clone() {
-
 
33207
      return new getCart_result(this);
-
 
33208
    }
-
 
33209
 
-
 
33210
    public Cart getSuccess() {
-
 
33211
      return this.success;
-
 
33212
    }
-
 
33213
 
-
 
33214
    public getCart_result setSuccess(Cart success) {
-
 
33215
      this.success = success;
-
 
33216
      return this;
-
 
33217
    }
-
 
33218
 
-
 
33219
    public void unsetSuccess() {
-
 
33220
      this.success = null;
-
 
33221
    }
-
 
33222
 
-
 
33223
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
33224
    public boolean isSetSuccess() {
-
 
33225
      return this.success != null;
-
 
33226
    }
-
 
33227
 
-
 
33228
    public void setSuccessIsSet(boolean value) {
-
 
33229
      if (!value) {
-
 
33230
        this.success = null;
-
 
33231
      }
-
 
33232
    }
-
 
33233
 
-
 
33234
    public ShoppingCartException getScx() {
-
 
33235
      return this.scx;
-
 
33236
    }
-
 
33237
 
-
 
33238
    public getCart_result setScx(ShoppingCartException scx) {
-
 
33239
      this.scx = scx;
-
 
33240
      return this;
-
 
33241
    }
-
 
33242
 
-
 
33243
    public void unsetScx() {
-
 
33244
      this.scx = null;
-
 
33245
    }
-
 
33246
 
-
 
33247
    /** Returns true if field scx is set (has been asigned a value) and false otherwise */
-
 
33248
    public boolean isSetScx() {
-
 
33249
      return this.scx != null;
-
 
33250
    }
-
 
33251
 
-
 
33252
    public void setScxIsSet(boolean value) {
-
 
33253
      if (!value) {
-
 
33254
        this.scx = null;
-
 
33255
      }
-
 
33256
    }
-
 
33257
 
-
 
33258
    public void setFieldValue(_Fields field, Object value) {
-
 
33259
      switch (field) {
-
 
33260
      case SUCCESS:
-
 
33261
        if (value == null) {
-
 
33262
          unsetSuccess();
-
 
33263
        } else {
-
 
33264
          setSuccess((Cart)value);
-
 
33265
        }
-
 
33266
        break;
-
 
33267
 
-
 
33268
      case SCX:
-
 
33269
        if (value == null) {
-
 
33270
          unsetScx();
-
 
33271
        } else {
-
 
33272
          setScx((ShoppingCartException)value);
-
 
33273
        }
-
 
33274
        break;
-
 
33275
 
-
 
33276
      }
-
 
33277
    }
-
 
33278
 
-
 
33279
    public void setFieldValue(int fieldID, Object value) {
-
 
33280
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
33281
    }
-
 
33282
 
-
 
33283
    public Object getFieldValue(_Fields field) {
-
 
33284
      switch (field) {
-
 
33285
      case SUCCESS:
-
 
33286
        return getSuccess();
-
 
33287
 
-
 
33288
      case SCX:
-
 
33289
        return getScx();
-
 
33290
 
-
 
33291
      }
-
 
33292
      throw new IllegalStateException();
-
 
33293
    }
-
 
33294
 
-
 
33295
    public Object getFieldValue(int fieldId) {
-
 
33296
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
33297
    }
-
 
33298
 
-
 
33299
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
33300
    public boolean isSet(_Fields field) {
-
 
33301
      switch (field) {
-
 
33302
      case SUCCESS:
-
 
33303
        return isSetSuccess();
-
 
33304
      case SCX:
-
 
33305
        return isSetScx();
-
 
33306
      }
-
 
33307
      throw new IllegalStateException();
-
 
33308
    }
-
 
33309
 
-
 
33310
    public boolean isSet(int fieldID) {
-
 
33311
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
33312
    }
-
 
33313
 
-
 
33314
    @Override
-
 
33315
    public boolean equals(Object that) {
-
 
33316
      if (that == null)
-
 
33317
        return false;
-
 
33318
      if (that instanceof getCart_result)
-
 
33319
        return this.equals((getCart_result)that);
-
 
33320
      return false;
-
 
33321
    }
-
 
33322
 
-
 
33323
    public boolean equals(getCart_result that) {
-
 
33324
      if (that == null)
-
 
33325
        return false;
-
 
33326
 
-
 
33327
      boolean this_present_success = true && this.isSetSuccess();
-
 
33328
      boolean that_present_success = true && that.isSetSuccess();
-
 
33329
      if (this_present_success || that_present_success) {
-
 
33330
        if (!(this_present_success && that_present_success))
-
 
33331
          return false;
-
 
33332
        if (!this.success.equals(that.success))
-
 
33333
          return false;
-
 
33334
      }
-
 
33335
 
-
 
33336
      boolean this_present_scx = true && this.isSetScx();
-
 
33337
      boolean that_present_scx = true && that.isSetScx();
-
 
33338
      if (this_present_scx || that_present_scx) {
-
 
33339
        if (!(this_present_scx && that_present_scx))
-
 
33340
          return false;
-
 
33341
        if (!this.scx.equals(that.scx))
-
 
33342
          return false;
-
 
33343
      }
-
 
33344
 
-
 
33345
      return true;
-
 
33346
    }
-
 
33347
 
-
 
33348
    @Override
-
 
33349
    public int hashCode() {
-
 
33350
      return 0;
-
 
33351
    }
-
 
33352
 
-
 
33353
    public int compareTo(getCart_result other) {
-
 
33354
      if (!getClass().equals(other.getClass())) {
-
 
33355
        return getClass().getName().compareTo(other.getClass().getName());
-
 
33356
      }
-
 
33357
 
-
 
33358
      int lastComparison = 0;
-
 
33359
      getCart_result typedOther = (getCart_result)other;
-
 
33360
 
-
 
33361
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
33362
      if (lastComparison != 0) {
-
 
33363
        return lastComparison;
-
 
33364
      }
-
 
33365
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
33366
      if (lastComparison != 0) {
-
 
33367
        return lastComparison;
-
 
33368
      }
-
 
33369
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(isSetScx());
-
 
33370
      if (lastComparison != 0) {
-
 
33371
        return lastComparison;
-
 
33372
      }
-
 
33373
      lastComparison = TBaseHelper.compareTo(scx, typedOther.scx);
-
 
33374
      if (lastComparison != 0) {
-
 
33375
        return lastComparison;
-
 
33376
      }
-
 
33377
      return 0;
-
 
33378
    }
-
 
33379
 
-
 
33380
    public void read(TProtocol iprot) throws TException {
-
 
33381
      TField field;
-
 
33382
      iprot.readStructBegin();
-
 
33383
      while (true)
-
 
33384
      {
-
 
33385
        field = iprot.readFieldBegin();
-
 
33386
        if (field.type == TType.STOP) { 
-
 
33387
          break;
-
 
33388
        }
-
 
33389
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
33390
        if (fieldId == null) {
-
 
33391
          TProtocolUtil.skip(iprot, field.type);
-
 
33392
        } else {
-
 
33393
          switch (fieldId) {
-
 
33394
            case SUCCESS:
-
 
33395
              if (field.type == TType.STRUCT) {
-
 
33396
                this.success = new Cart();
-
 
33397
                this.success.read(iprot);
-
 
33398
              } else { 
-
 
33399
                TProtocolUtil.skip(iprot, field.type);
-
 
33400
              }
-
 
33401
              break;
-
 
33402
            case SCX:
-
 
33403
              if (field.type == TType.STRUCT) {
-
 
33404
                this.scx = new ShoppingCartException();
-
 
33405
                this.scx.read(iprot);
-
 
33406
              } else { 
-
 
33407
                TProtocolUtil.skip(iprot, field.type);
-
 
33408
              }
-
 
33409
              break;
-
 
33410
          }
-
 
33411
          iprot.readFieldEnd();
-
 
33412
        }
-
 
33413
      }
-
 
33414
      iprot.readStructEnd();
-
 
33415
      validate();
-
 
33416
    }
-
 
33417
 
-
 
33418
    public void write(TProtocol oprot) throws TException {
-
 
33419
      oprot.writeStructBegin(STRUCT_DESC);
-
 
33420
 
-
 
33421
      if (this.isSetSuccess()) {
-
 
33422
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
33423
        this.success.write(oprot);
-
 
33424
        oprot.writeFieldEnd();
-
 
33425
      } else if (this.isSetScx()) {
-
 
33426
        oprot.writeFieldBegin(SCX_FIELD_DESC);
-
 
33427
        this.scx.write(oprot);
-
 
33428
        oprot.writeFieldEnd();
-
 
33429
      }
-
 
33430
      oprot.writeFieldStop();
-
 
33431
      oprot.writeStructEnd();
-
 
33432
    }
-
 
33433
 
-
 
33434
    @Override
-
 
33435
    public String toString() {
-
 
33436
      StringBuilder sb = new StringBuilder("getCart_result(");
-
 
33437
      boolean first = true;
-
 
33438
 
-
 
33439
      sb.append("success:");
-
 
33440
      if (this.success == null) {
-
 
33441
        sb.append("null");
-
 
33442
      } else {
-
 
33443
        sb.append(this.success);
-
 
33444
      }
-
 
33445
      first = false;
-
 
33446
      if (!first) sb.append(", ");
-
 
33447
      sb.append("scx:");
-
 
33448
      if (this.scx == null) {
-
 
33449
        sb.append("null");
-
 
33450
      } else {
-
 
33451
        sb.append(this.scx);
-
 
33452
      }
-
 
33453
      first = false;
-
 
33454
      sb.append(")");
-
 
33455
      return sb.toString();
-
 
33456
    }
-
 
33457
 
-
 
33458
    public void validate() throws TException {
-
 
33459
      // check for required fields
-
 
33460
    }
-
 
33461
 
-
 
33462
  }
-
 
33463
 
-
 
33464
  public static class getCartsForUser_args implements TBase<getCartsForUser_args._Fields>, java.io.Serializable, Cloneable, Comparable<getCartsForUser_args>   {
-
 
33465
    private static final TStruct STRUCT_DESC = new TStruct("getCartsForUser_args");
-
 
33466
 
-
 
33467
    private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)1);
-
 
33468
    private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)2);
-
 
33469
 
-
 
33470
    private long userId;
-
 
33471
    private CartStatus status;
-
 
33472
 
-
 
33473
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
33474
    public enum _Fields implements TFieldIdEnum {
-
 
33475
      USER_ID((short)1, "userId"),
-
 
33476
      /**
-
 
33477
       * 
-
 
33478
       * @see CartStatus
-
 
33479
       */
-
 
33480
      STATUS((short)2, "status");
-
 
33481
 
-
 
33482
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
33483
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
33484
 
-
 
33485
      static {
-
 
33486
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
33487
          byId.put((int)field._thriftId, field);
-
 
33488
          byName.put(field.getFieldName(), field);
-
 
33489
        }
-
 
33490
      }
-
 
33491
 
-
 
33492
      /**
-
 
33493
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
33494
       */
-
 
33495
      public static _Fields findByThriftId(int fieldId) {
-
 
33496
        return byId.get(fieldId);
-
 
33497
      }
-
 
33498
 
-
 
33499
      /**
-
 
33500
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
33501
       * if it is not found.
-
 
33502
       */
-
 
33503
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
33504
        _Fields fields = findByThriftId(fieldId);
-
 
33505
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
33506
        return fields;
-
 
33507
      }
-
 
33508
 
-
 
33509
      /**
-
 
33510
       * Find the _Fields constant that matches name, or null if its not found.
-
 
33511
       */
-
 
33512
      public static _Fields findByName(String name) {
-
 
33513
        return byName.get(name);
-
 
33514
      }
-
 
33515
 
-
 
33516
      private final short _thriftId;
-
 
33517
      private final String _fieldName;
-
 
33518
 
-
 
33519
      _Fields(short thriftId, String fieldName) {
-
 
33520
        _thriftId = thriftId;
-
 
33521
        _fieldName = fieldName;
-
 
33522
      }
-
 
33523
 
-
 
33524
      public short getThriftFieldId() {
-
 
33525
        return _thriftId;
-
 
33526
      }
-
 
33527
 
-
 
33528
      public String getFieldName() {
-
 
33529
        return _fieldName;
-
 
33530
      }
-
 
33531
    }
-
 
33532
 
-
 
33533
    // isset id assignments
-
 
33534
    private static final int __USERID_ISSET_ID = 0;
-
 
33535
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
33536
 
-
 
33537
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
33538
      put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT, 
-
 
33539
          new FieldValueMetaData(TType.I64)));
-
 
33540
      put(_Fields.STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT, 
-
 
33541
          new EnumMetaData(TType.ENUM, CartStatus.class)));
-
 
33542
    }});
-
 
33543
 
-
 
33544
    static {
-
 
33545
      FieldMetaData.addStructMetaDataMap(getCartsForUser_args.class, metaDataMap);
-
 
33546
    }
-
 
33547
 
-
 
33548
    public getCartsForUser_args() {
-
 
33549
    }
-
 
33550
 
-
 
33551
    public getCartsForUser_args(
-
 
33552
      long userId,
-
 
33553
      CartStatus status)
-
 
33554
    {
-
 
33555
      this();
-
 
33556
      this.userId = userId;
-
 
33557
      setUserIdIsSet(true);
-
 
33558
      this.status = status;
-
 
33559
    }
-
 
33560
 
-
 
33561
    /**
-
 
33562
     * Performs a deep copy on <i>other</i>.
-
 
33563
     */
-
 
33564
    public getCartsForUser_args(getCartsForUser_args other) {
-
 
33565
      __isset_bit_vector.clear();
-
 
33566
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
33567
      this.userId = other.userId;
-
 
33568
      if (other.isSetStatus()) {
-
 
33569
        this.status = other.status;
-
 
33570
      }
-
 
33571
    }
-
 
33572
 
-
 
33573
    public getCartsForUser_args deepCopy() {
-
 
33574
      return new getCartsForUser_args(this);
-
 
33575
    }
-
 
33576
 
-
 
33577
    @Deprecated
-
 
33578
    public getCartsForUser_args clone() {
-
 
33579
      return new getCartsForUser_args(this);
-
 
33580
    }
-
 
33581
 
-
 
33582
    public long getUserId() {
-
 
33583
      return this.userId;
-
 
33584
    }
-
 
33585
 
-
 
33586
    public getCartsForUser_args setUserId(long userId) {
-
 
33587
      this.userId = userId;
-
 
33588
      setUserIdIsSet(true);
-
 
33589
      return this;
-
 
33590
    }
-
 
33591
 
-
 
33592
    public void unsetUserId() {
-
 
33593
      __isset_bit_vector.clear(__USERID_ISSET_ID);
-
 
33594
    }
-
 
33595
 
-
 
33596
    /** Returns true if field userId is set (has been asigned a value) and false otherwise */
-
 
33597
    public boolean isSetUserId() {
-
 
33598
      return __isset_bit_vector.get(__USERID_ISSET_ID);
-
 
33599
    }
-
 
33600
 
-
 
33601
    public void setUserIdIsSet(boolean value) {
-
 
33602
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
-
 
33603
    }
-
 
33604
 
-
 
33605
    /**
-
 
33606
     * 
-
 
33607
     * @see CartStatus
-
 
33608
     */
-
 
33609
    public CartStatus getStatus() {
-
 
33610
      return this.status;
-
 
33611
    }
-
 
33612
 
-
 
33613
    /**
-
 
33614
     * 
-
 
33615
     * @see CartStatus
-
 
33616
     */
-
 
33617
    public getCartsForUser_args setStatus(CartStatus status) {
-
 
33618
      this.status = status;
-
 
33619
      return this;
-
 
33620
    }
-
 
33621
 
-
 
33622
    public void unsetStatus() {
-
 
33623
      this.status = null;
-
 
33624
    }
-
 
33625
 
-
 
33626
    /** Returns true if field status is set (has been asigned a value) and false otherwise */
-
 
33627
    public boolean isSetStatus() {
-
 
33628
      return this.status != null;
-
 
33629
    }
-
 
33630
 
-
 
33631
    public void setStatusIsSet(boolean value) {
-
 
33632
      if (!value) {
-
 
33633
        this.status = null;
-
 
33634
      }
-
 
33635
    }
-
 
33636
 
-
 
33637
    public void setFieldValue(_Fields field, Object value) {
-
 
33638
      switch (field) {
-
 
33639
      case USER_ID:
-
 
33640
        if (value == null) {
-
 
33641
          unsetUserId();
-
 
33642
        } else {
-
 
33643
          setUserId((Long)value);
-
 
33644
        }
-
 
33645
        break;
-
 
33646
 
-
 
33647
      case STATUS:
-
 
33648
        if (value == null) {
-
 
33649
          unsetStatus();
-
 
33650
        } else {
-
 
33651
          setStatus((CartStatus)value);
-
 
33652
        }
-
 
33653
        break;
-
 
33654
 
-
 
33655
      }
-
 
33656
    }
-
 
33657
 
-
 
33658
    public void setFieldValue(int fieldID, Object value) {
-
 
33659
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
33660
    }
-
 
33661
 
-
 
33662
    public Object getFieldValue(_Fields field) {
-
 
33663
      switch (field) {
-
 
33664
      case USER_ID:
-
 
33665
        return new Long(getUserId());
-
 
33666
 
-
 
33667
      case STATUS:
-
 
33668
        return getStatus();
-
 
33669
 
-
 
33670
      }
-
 
33671
      throw new IllegalStateException();
-
 
33672
    }
-
 
33673
 
-
 
33674
    public Object getFieldValue(int fieldId) {
-
 
33675
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
33676
    }
-
 
33677
 
-
 
33678
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
33679
    public boolean isSet(_Fields field) {
-
 
33680
      switch (field) {
-
 
33681
      case USER_ID:
-
 
33682
        return isSetUserId();
-
 
33683
      case STATUS:
-
 
33684
        return isSetStatus();
-
 
33685
      }
-
 
33686
      throw new IllegalStateException();
-
 
33687
    }
-
 
33688
 
-
 
33689
    public boolean isSet(int fieldID) {
-
 
33690
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
33691
    }
-
 
33692
 
-
 
33693
    @Override
-
 
33694
    public boolean equals(Object that) {
-
 
33695
      if (that == null)
-
 
33696
        return false;
-
 
33697
      if (that instanceof getCartsForUser_args)
-
 
33698
        return this.equals((getCartsForUser_args)that);
-
 
33699
      return false;
-
 
33700
    }
-
 
33701
 
-
 
33702
    public boolean equals(getCartsForUser_args that) {
-
 
33703
      if (that == null)
-
 
33704
        return false;
-
 
33705
 
-
 
33706
      boolean this_present_userId = true;
-
 
33707
      boolean that_present_userId = true;
-
 
33708
      if (this_present_userId || that_present_userId) {
-
 
33709
        if (!(this_present_userId && that_present_userId))
-
 
33710
          return false;
-
 
33711
        if (this.userId != that.userId)
-
 
33712
          return false;
-
 
33713
      }
-
 
33714
 
-
 
33715
      boolean this_present_status = true && this.isSetStatus();
-
 
33716
      boolean that_present_status = true && that.isSetStatus();
-
 
33717
      if (this_present_status || that_present_status) {
-
 
33718
        if (!(this_present_status && that_present_status))
-
 
33719
          return false;
-
 
33720
        if (!this.status.equals(that.status))
-
 
33721
          return false;
-
 
33722
      }
-
 
33723
 
-
 
33724
      return true;
-
 
33725
    }
-
 
33726
 
-
 
33727
    @Override
-
 
33728
    public int hashCode() {
-
 
33729
      return 0;
-
 
33730
    }
-
 
33731
 
-
 
33732
    public int compareTo(getCartsForUser_args other) {
-
 
33733
      if (!getClass().equals(other.getClass())) {
-
 
33734
        return getClass().getName().compareTo(other.getClass().getName());
-
 
33735
      }
-
 
33736
 
-
 
33737
      int lastComparison = 0;
-
 
33738
      getCartsForUser_args typedOther = (getCartsForUser_args)other;
-
 
33739
 
-
 
33740
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(isSetUserId());
-
 
33741
      if (lastComparison != 0) {
-
 
33742
        return lastComparison;
-
 
33743
      }
-
 
33744
      lastComparison = TBaseHelper.compareTo(userId, typedOther.userId);
-
 
33745
      if (lastComparison != 0) {
-
 
33746
        return lastComparison;
-
 
33747
      }
-
 
33748
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(isSetStatus());
-
 
33749
      if (lastComparison != 0) {
-
 
33750
        return lastComparison;
-
 
33751
      }
-
 
33752
      lastComparison = TBaseHelper.compareTo(status, typedOther.status);
-
 
33753
      if (lastComparison != 0) {
-
 
33754
        return lastComparison;
-
 
33755
      }
-
 
33756
      return 0;
-
 
33757
    }
-
 
33758
 
-
 
33759
    public void read(TProtocol iprot) throws TException {
-
 
33760
      TField field;
-
 
33761
      iprot.readStructBegin();
-
 
33762
      while (true)
-
 
33763
      {
-
 
33764
        field = iprot.readFieldBegin();
-
 
33765
        if (field.type == TType.STOP) { 
-
 
33766
          break;
-
 
33767
        }
-
 
33768
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
33769
        if (fieldId == null) {
-
 
33770
          TProtocolUtil.skip(iprot, field.type);
-
 
33771
        } else {
-
 
33772
          switch (fieldId) {
-
 
33773
            case USER_ID:
-
 
33774
              if (field.type == TType.I64) {
-
 
33775
                this.userId = iprot.readI64();
-
 
33776
                setUserIdIsSet(true);
-
 
33777
              } else { 
-
 
33778
                TProtocolUtil.skip(iprot, field.type);
-
 
33779
              }
-
 
33780
              break;
-
 
33781
            case STATUS:
-
 
33782
              if (field.type == TType.I32) {
-
 
33783
                this.status = CartStatus.findByValue(iprot.readI32());
-
 
33784
              } else { 
-
 
33785
                TProtocolUtil.skip(iprot, field.type);
-
 
33786
              }
-
 
33787
              break;
-
 
33788
          }
-
 
33789
          iprot.readFieldEnd();
-
 
33790
        }
-
 
33791
      }
-
 
33792
      iprot.readStructEnd();
-
 
33793
      validate();
-
 
33794
    }
-
 
33795
 
-
 
33796
    public void write(TProtocol oprot) throws TException {
-
 
33797
      validate();
-
 
33798
 
-
 
33799
      oprot.writeStructBegin(STRUCT_DESC);
-
 
33800
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
-
 
33801
      oprot.writeI64(this.userId);
-
 
33802
      oprot.writeFieldEnd();
-
 
33803
      if (this.status != null) {
-
 
33804
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
-
 
33805
        oprot.writeI32(this.status.getValue());
-
 
33806
        oprot.writeFieldEnd();
-
 
33807
      }
-
 
33808
      oprot.writeFieldStop();
-
 
33809
      oprot.writeStructEnd();
-
 
33810
    }
-
 
33811
 
-
 
33812
    @Override
-
 
33813
    public String toString() {
-
 
33814
      StringBuilder sb = new StringBuilder("getCartsForUser_args(");
-
 
33815
      boolean first = true;
-
 
33816
 
-
 
33817
      sb.append("userId:");
-
 
33818
      sb.append(this.userId);
-
 
33819
      first = false;
-
 
33820
      if (!first) sb.append(", ");
-
 
33821
      sb.append("status:");
-
 
33822
      if (this.status == null) {
-
 
33823
        sb.append("null");
-
 
33824
      } else {
-
 
33825
        String status_name = status.name();
-
 
33826
        if (status_name != null) {
-
 
33827
          sb.append(status_name);
-
 
33828
          sb.append(" (");
-
 
33829
        }
-
 
33830
        sb.append(this.status);
-
 
33831
        if (status_name != null) {
-
 
33832
          sb.append(")");
-
 
33833
        }
-
 
33834
      }
-
 
33835
      first = false;
-
 
33836
      sb.append(")");
-
 
33837
      return sb.toString();
-
 
33838
    }
-
 
33839
 
-
 
33840
    public void validate() throws TException {
-
 
33841
      // check for required fields
-
 
33842
    }
-
 
33843
 
-
 
33844
  }
-
 
33845
 
-
 
33846
  public static class getCartsForUser_result implements TBase<getCartsForUser_result._Fields>, java.io.Serializable, Cloneable, Comparable<getCartsForUser_result>   {
-
 
33847
    private static final TStruct STRUCT_DESC = new TStruct("getCartsForUser_result");
-
 
33848
 
-
 
33849
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
-
 
33850
    private static final TField SCX_FIELD_DESC = new TField("scx", TType.STRUCT, (short)1);
-
 
33851
 
-
 
33852
    private List<Cart> success;
-
 
33853
    private ShoppingCartException scx;
-
 
33854
 
-
 
33855
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
33856
    public enum _Fields implements TFieldIdEnum {
-
 
33857
      SUCCESS((short)0, "success"),
-
 
33858
      SCX((short)1, "scx");
-
 
33859
 
-
 
33860
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
33861
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
33862
 
-
 
33863
      static {
-
 
33864
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
33865
          byId.put((int)field._thriftId, field);
-
 
33866
          byName.put(field.getFieldName(), field);
-
 
33867
        }
-
 
33868
      }
-
 
33869
 
-
 
33870
      /**
-
 
33871
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
33872
       */
-
 
33873
      public static _Fields findByThriftId(int fieldId) {
-
 
33874
        return byId.get(fieldId);
-
 
33875
      }
-
 
33876
 
-
 
33877
      /**
-
 
33878
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
33879
       * if it is not found.
-
 
33880
       */
-
 
33881
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
33882
        _Fields fields = findByThriftId(fieldId);
-
 
33883
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
33884
        return fields;
-
 
33885
      }
-
 
33886
 
-
 
33887
      /**
-
 
33888
       * Find the _Fields constant that matches name, or null if its not found.
-
 
33889
       */
-
 
33890
      public static _Fields findByName(String name) {
-
 
33891
        return byName.get(name);
-
 
33892
      }
-
 
33893
 
-
 
33894
      private final short _thriftId;
-
 
33895
      private final String _fieldName;
-
 
33896
 
-
 
33897
      _Fields(short thriftId, String fieldName) {
-
 
33898
        _thriftId = thriftId;
-
 
33899
        _fieldName = fieldName;
-
 
33900
      }
-
 
33901
 
-
 
33902
      public short getThriftFieldId() {
-
 
33903
        return _thriftId;
-
 
33904
      }
-
 
33905
 
-
 
33906
      public String getFieldName() {
-
 
33907
        return _fieldName;
-
 
33908
      }
-
 
33909
    }
-
 
33910
 
-
 
33911
    // isset id assignments
-
 
33912
 
-
 
33913
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
33914
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
33915
          new ListMetaData(TType.LIST, 
-
 
33916
              new StructMetaData(TType.STRUCT, Cart.class))));
-
 
33917
      put(_Fields.SCX, new FieldMetaData("scx", TFieldRequirementType.DEFAULT, 
-
 
33918
          new FieldValueMetaData(TType.STRUCT)));
-
 
33919
    }});
-
 
33920
 
-
 
33921
    static {
-
 
33922
      FieldMetaData.addStructMetaDataMap(getCartsForUser_result.class, metaDataMap);
-
 
33923
    }
-
 
33924
 
-
 
33925
    public getCartsForUser_result() {
-
 
33926
    }
-
 
33927
 
-
 
33928
    public getCartsForUser_result(
-
 
33929
      List<Cart> success,
-
 
33930
      ShoppingCartException scx)
-
 
33931
    {
-
 
33932
      this();
-
 
33933
      this.success = success;
-
 
33934
      this.scx = scx;
-
 
33935
    }
-
 
33936
 
-
 
33937
    /**
-
 
33938
     * Performs a deep copy on <i>other</i>.
-
 
33939
     */
-
 
33940
    public getCartsForUser_result(getCartsForUser_result other) {
-
 
33941
      if (other.isSetSuccess()) {
-
 
33942
        List<Cart> __this__success = new ArrayList<Cart>();
-
 
33943
        for (Cart other_element : other.success) {
-
 
33944
          __this__success.add(new Cart(other_element));
-
 
33945
        }
-
 
33946
        this.success = __this__success;
-
 
33947
      }
-
 
33948
      if (other.isSetScx()) {
-
 
33949
        this.scx = new ShoppingCartException(other.scx);
-
 
33950
      }
-
 
33951
    }
-
 
33952
 
-
 
33953
    public getCartsForUser_result deepCopy() {
-
 
33954
      return new getCartsForUser_result(this);
-
 
33955
    }
-
 
33956
 
-
 
33957
    @Deprecated
-
 
33958
    public getCartsForUser_result clone() {
-
 
33959
      return new getCartsForUser_result(this);
-
 
33960
    }
-
 
33961
 
-
 
33962
    public int getSuccessSize() {
-
 
33963
      return (this.success == null) ? 0 : this.success.size();
-
 
33964
    }
-
 
33965
 
-
 
33966
    public java.util.Iterator<Cart> getSuccessIterator() {
-
 
33967
      return (this.success == null) ? null : this.success.iterator();
-
 
33968
    }
-
 
33969
 
-
 
33970
    public void addToSuccess(Cart elem) {
-
 
33971
      if (this.success == null) {
-
 
33972
        this.success = new ArrayList<Cart>();
-
 
33973
      }
-
 
33974
      this.success.add(elem);
-
 
33975
    }
-
 
33976
 
-
 
33977
    public List<Cart> getSuccess() {
-
 
33978
      return this.success;
-
 
33979
    }
-
 
33980
 
-
 
33981
    public getCartsForUser_result setSuccess(List<Cart> success) {
-
 
33982
      this.success = success;
-
 
33983
      return this;
-
 
33984
    }
-
 
33985
 
-
 
33986
    public void unsetSuccess() {
-
 
33987
      this.success = null;
-
 
33988
    }
-
 
33989
 
-
 
33990
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
33991
    public boolean isSetSuccess() {
-
 
33992
      return this.success != null;
-
 
33993
    }
-
 
33994
 
-
 
33995
    public void setSuccessIsSet(boolean value) {
-
 
33996
      if (!value) {
-
 
33997
        this.success = null;
-
 
33998
      }
-
 
33999
    }
-
 
34000
 
-
 
34001
    public ShoppingCartException getScx() {
-
 
34002
      return this.scx;
-
 
34003
    }
-
 
34004
 
-
 
34005
    public getCartsForUser_result setScx(ShoppingCartException scx) {
-
 
34006
      this.scx = scx;
-
 
34007
      return this;
-
 
34008
    }
-
 
34009
 
-
 
34010
    public void unsetScx() {
-
 
34011
      this.scx = null;
-
 
34012
    }
-
 
34013
 
-
 
34014
    /** Returns true if field scx is set (has been asigned a value) and false otherwise */
-
 
34015
    public boolean isSetScx() {
-
 
34016
      return this.scx != null;
-
 
34017
    }
-
 
34018
 
-
 
34019
    public void setScxIsSet(boolean value) {
-
 
34020
      if (!value) {
-
 
34021
        this.scx = null;
-
 
34022
      }
-
 
34023
    }
-
 
34024
 
-
 
34025
    public void setFieldValue(_Fields field, Object value) {
-
 
34026
      switch (field) {
-
 
34027
      case SUCCESS:
-
 
34028
        if (value == null) {
-
 
34029
          unsetSuccess();
-
 
34030
        } else {
-
 
34031
          setSuccess((List<Cart>)value);
-
 
34032
        }
-
 
34033
        break;
-
 
34034
 
-
 
34035
      case SCX:
-
 
34036
        if (value == null) {
-
 
34037
          unsetScx();
-
 
34038
        } else {
-
 
34039
          setScx((ShoppingCartException)value);
-
 
34040
        }
-
 
34041
        break;
-
 
34042
 
-
 
34043
      }
-
 
34044
    }
-
 
34045
 
-
 
34046
    public void setFieldValue(int fieldID, Object value) {
-
 
34047
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
34048
    }
-
 
34049
 
-
 
34050
    public Object getFieldValue(_Fields field) {
-
 
34051
      switch (field) {
-
 
34052
      case SUCCESS:
-
 
34053
        return getSuccess();
-
 
34054
 
-
 
34055
      case SCX:
-
 
34056
        return getScx();
-
 
34057
 
-
 
34058
      }
-
 
34059
      throw new IllegalStateException();
-
 
34060
    }
-
 
34061
 
-
 
34062
    public Object getFieldValue(int fieldId) {
-
 
34063
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
34064
    }
-
 
34065
 
-
 
34066
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
34067
    public boolean isSet(_Fields field) {
-
 
34068
      switch (field) {
-
 
34069
      case SUCCESS:
-
 
34070
        return isSetSuccess();
-
 
34071
      case SCX:
-
 
34072
        return isSetScx();
-
 
34073
      }
-
 
34074
      throw new IllegalStateException();
-
 
34075
    }
-
 
34076
 
-
 
34077
    public boolean isSet(int fieldID) {
-
 
34078
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
34079
    }
-
 
34080
 
-
 
34081
    @Override
-
 
34082
    public boolean equals(Object that) {
-
 
34083
      if (that == null)
-
 
34084
        return false;
-
 
34085
      if (that instanceof getCartsForUser_result)
-
 
34086
        return this.equals((getCartsForUser_result)that);
-
 
34087
      return false;
-
 
34088
    }
-
 
34089
 
-
 
34090
    public boolean equals(getCartsForUser_result that) {
-
 
34091
      if (that == null)
-
 
34092
        return false;
-
 
34093
 
-
 
34094
      boolean this_present_success = true && this.isSetSuccess();
-
 
34095
      boolean that_present_success = true && that.isSetSuccess();
-
 
34096
      if (this_present_success || that_present_success) {
-
 
34097
        if (!(this_present_success && that_present_success))
-
 
34098
          return false;
-
 
34099
        if (!this.success.equals(that.success))
-
 
34100
          return false;
-
 
34101
      }
-
 
34102
 
-
 
34103
      boolean this_present_scx = true && this.isSetScx();
-
 
34104
      boolean that_present_scx = true && that.isSetScx();
-
 
34105
      if (this_present_scx || that_present_scx) {
-
 
34106
        if (!(this_present_scx && that_present_scx))
-
 
34107
          return false;
-
 
34108
        if (!this.scx.equals(that.scx))
-
 
34109
          return false;
-
 
34110
      }
-
 
34111
 
-
 
34112
      return true;
-
 
34113
    }
-
 
34114
 
-
 
34115
    @Override
-
 
34116
    public int hashCode() {
-
 
34117
      return 0;
-
 
34118
    }
-
 
34119
 
-
 
34120
    public int compareTo(getCartsForUser_result other) {
-
 
34121
      if (!getClass().equals(other.getClass())) {
-
 
34122
        return getClass().getName().compareTo(other.getClass().getName());
-
 
34123
      }
-
 
34124
 
-
 
34125
      int lastComparison = 0;
-
 
34126
      getCartsForUser_result typedOther = (getCartsForUser_result)other;
-
 
34127
 
-
 
34128
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
34129
      if (lastComparison != 0) {
-
 
34130
        return lastComparison;
-
 
34131
      }
-
 
34132
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
34133
      if (lastComparison != 0) {
-
 
34134
        return lastComparison;
-
 
34135
      }
-
 
34136
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(isSetScx());
-
 
34137
      if (lastComparison != 0) {
-
 
34138
        return lastComparison;
-
 
34139
      }
-
 
34140
      lastComparison = TBaseHelper.compareTo(scx, typedOther.scx);
-
 
34141
      if (lastComparison != 0) {
-
 
34142
        return lastComparison;
-
 
34143
      }
-
 
34144
      return 0;
-
 
34145
    }
-
 
34146
 
-
 
34147
    public void read(TProtocol iprot) throws TException {
-
 
34148
      TField field;
-
 
34149
      iprot.readStructBegin();
-
 
34150
      while (true)
-
 
34151
      {
-
 
34152
        field = iprot.readFieldBegin();
-
 
34153
        if (field.type == TType.STOP) { 
-
 
34154
          break;
-
 
34155
        }
-
 
34156
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
34157
        if (fieldId == null) {
-
 
34158
          TProtocolUtil.skip(iprot, field.type);
-
 
34159
        } else {
-
 
34160
          switch (fieldId) {
-
 
34161
            case SUCCESS:
-
 
34162
              if (field.type == TType.LIST) {
-
 
34163
                {
-
 
34164
                  TList _list48 = iprot.readListBegin();
-
 
34165
                  this.success = new ArrayList<Cart>(_list48.size);
-
 
34166
                  for (int _i49 = 0; _i49 < _list48.size; ++_i49)
-
 
34167
                  {
-
 
34168
                    Cart _elem50;
-
 
34169
                    _elem50 = new Cart();
-
 
34170
                    _elem50.read(iprot);
-
 
34171
                    this.success.add(_elem50);
-
 
34172
                  }
-
 
34173
                  iprot.readListEnd();
-
 
34174
                }
-
 
34175
              } else { 
-
 
34176
                TProtocolUtil.skip(iprot, field.type);
-
 
34177
              }
-
 
34178
              break;
-
 
34179
            case SCX:
-
 
34180
              if (field.type == TType.STRUCT) {
-
 
34181
                this.scx = new ShoppingCartException();
-
 
34182
                this.scx.read(iprot);
-
 
34183
              } else { 
-
 
34184
                TProtocolUtil.skip(iprot, field.type);
-
 
34185
              }
-
 
34186
              break;
-
 
34187
          }
-
 
34188
          iprot.readFieldEnd();
-
 
34189
        }
-
 
34190
      }
-
 
34191
      iprot.readStructEnd();
-
 
34192
      validate();
-
 
34193
    }
-
 
34194
 
-
 
34195
    public void write(TProtocol oprot) throws TException {
-
 
34196
      oprot.writeStructBegin(STRUCT_DESC);
-
 
34197
 
-
 
34198
      if (this.isSetSuccess()) {
-
 
34199
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
34200
        {
-
 
34201
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
-
 
34202
          for (Cart _iter51 : this.success)
-
 
34203
          {
-
 
34204
            _iter51.write(oprot);
-
 
34205
          }
-
 
34206
          oprot.writeListEnd();
-
 
34207
        }
-
 
34208
        oprot.writeFieldEnd();
-
 
34209
      } else if (this.isSetScx()) {
-
 
34210
        oprot.writeFieldBegin(SCX_FIELD_DESC);
-
 
34211
        this.scx.write(oprot);
-
 
34212
        oprot.writeFieldEnd();
-
 
34213
      }
-
 
34214
      oprot.writeFieldStop();
-
 
34215
      oprot.writeStructEnd();
-
 
34216
    }
-
 
34217
 
-
 
34218
    @Override
-
 
34219
    public String toString() {
-
 
34220
      StringBuilder sb = new StringBuilder("getCartsForUser_result(");
-
 
34221
      boolean first = true;
-
 
34222
 
-
 
34223
      sb.append("success:");
-
 
34224
      if (this.success == null) {
-
 
34225
        sb.append("null");
-
 
34226
      } else {
-
 
34227
        sb.append(this.success);
-
 
34228
      }
-
 
34229
      first = false;
-
 
34230
      if (!first) sb.append(", ");
-
 
34231
      sb.append("scx:");
-
 
34232
      if (this.scx == null) {
-
 
34233
        sb.append("null");
-
 
34234
      } else {
-
 
34235
        sb.append(this.scx);
-
 
34236
      }
-
 
34237
      first = false;
-
 
34238
      sb.append(")");
-
 
34239
      return sb.toString();
-
 
34240
    }
-
 
34241
 
-
 
34242
    public void validate() throws TException {
-
 
34243
      // check for required fields
-
 
34244
    }
-
 
34245
 
-
 
34246
  }
-
 
34247
 
-
 
34248
  public static class getCartsByStatus_args implements TBase<getCartsByStatus_args._Fields>, java.io.Serializable, Cloneable, Comparable<getCartsByStatus_args>   {
-
 
34249
    private static final TStruct STRUCT_DESC = new TStruct("getCartsByStatus_args");
-
 
34250
 
-
 
34251
    private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)1);
-
 
34252
 
-
 
34253
    private CartStatus status;
-
 
34254
 
-
 
34255
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
34256
    public enum _Fields implements TFieldIdEnum {
-
 
34257
      /**
-
 
34258
       * 
-
 
34259
       * @see CartStatus
-
 
34260
       */
-
 
34261
      STATUS((short)1, "status");
-
 
34262
 
-
 
34263
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
34264
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
34265
 
-
 
34266
      static {
-
 
34267
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
34268
          byId.put((int)field._thriftId, field);
-
 
34269
          byName.put(field.getFieldName(), field);
-
 
34270
        }
-
 
34271
      }
-
 
34272
 
-
 
34273
      /**
-
 
34274
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
34275
       */
-
 
34276
      public static _Fields findByThriftId(int fieldId) {
-
 
34277
        return byId.get(fieldId);
-
 
34278
      }
-
 
34279
 
-
 
34280
      /**
-
 
34281
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
34282
       * if it is not found.
-
 
34283
       */
-
 
34284
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
34285
        _Fields fields = findByThriftId(fieldId);
-
 
34286
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
34287
        return fields;
-
 
34288
      }
-
 
34289
 
-
 
34290
      /**
-
 
34291
       * Find the _Fields constant that matches name, or null if its not found.
-
 
34292
       */
-
 
34293
      public static _Fields findByName(String name) {
-
 
34294
        return byName.get(name);
-
 
34295
      }
-
 
34296
 
-
 
34297
      private final short _thriftId;
-
 
34298
      private final String _fieldName;
-
 
34299
 
-
 
34300
      _Fields(short thriftId, String fieldName) {
-
 
34301
        _thriftId = thriftId;
-
 
34302
        _fieldName = fieldName;
-
 
34303
      }
-
 
34304
 
-
 
34305
      public short getThriftFieldId() {
-
 
34306
        return _thriftId;
-
 
34307
      }
-
 
34308
 
-
 
34309
      public String getFieldName() {
-
 
34310
        return _fieldName;
-
 
34311
      }
-
 
34312
    }
-
 
34313
 
-
 
34314
    // isset id assignments
-
 
34315
 
-
 
34316
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
34317
      put(_Fields.STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT, 
-
 
34318
          new EnumMetaData(TType.ENUM, CartStatus.class)));
-
 
34319
    }});
-
 
34320
 
-
 
34321
    static {
-
 
34322
      FieldMetaData.addStructMetaDataMap(getCartsByStatus_args.class, metaDataMap);
-
 
34323
    }
-
 
34324
 
-
 
34325
    public getCartsByStatus_args() {
-
 
34326
    }
-
 
34327
 
-
 
34328
    public getCartsByStatus_args(
-
 
34329
      CartStatus status)
-
 
34330
    {
-
 
34331
      this();
-
 
34332
      this.status = status;
-
 
34333
    }
-
 
34334
 
-
 
34335
    /**
-
 
34336
     * Performs a deep copy on <i>other</i>.
-
 
34337
     */
-
 
34338
    public getCartsByStatus_args(getCartsByStatus_args other) {
-
 
34339
      if (other.isSetStatus()) {
-
 
34340
        this.status = other.status;
-
 
34341
      }
-
 
34342
    }
-
 
34343
 
-
 
34344
    public getCartsByStatus_args deepCopy() {
-
 
34345
      return new getCartsByStatus_args(this);
-
 
34346
    }
-
 
34347
 
-
 
34348
    @Deprecated
-
 
34349
    public getCartsByStatus_args clone() {
-
 
34350
      return new getCartsByStatus_args(this);
-
 
34351
    }
-
 
34352
 
-
 
34353
    /**
-
 
34354
     * 
-
 
34355
     * @see CartStatus
-
 
34356
     */
-
 
34357
    public CartStatus getStatus() {
-
 
34358
      return this.status;
-
 
34359
    }
-
 
34360
 
-
 
34361
    /**
-
 
34362
     * 
-
 
34363
     * @see CartStatus
-
 
34364
     */
-
 
34365
    public getCartsByStatus_args setStatus(CartStatus status) {
-
 
34366
      this.status = status;
-
 
34367
      return this;
-
 
34368
    }
-
 
34369
 
-
 
34370
    public void unsetStatus() {
-
 
34371
      this.status = null;
-
 
34372
    }
-
 
34373
 
-
 
34374
    /** Returns true if field status is set (has been asigned a value) and false otherwise */
-
 
34375
    public boolean isSetStatus() {
-
 
34376
      return this.status != null;
-
 
34377
    }
-
 
34378
 
-
 
34379
    public void setStatusIsSet(boolean value) {
-
 
34380
      if (!value) {
-
 
34381
        this.status = null;
-
 
34382
      }
-
 
34383
    }
-
 
34384
 
-
 
34385
    public void setFieldValue(_Fields field, Object value) {
-
 
34386
      switch (field) {
-
 
34387
      case STATUS:
-
 
34388
        if (value == null) {
-
 
34389
          unsetStatus();
-
 
34390
        } else {
-
 
34391
          setStatus((CartStatus)value);
-
 
34392
        }
-
 
34393
        break;
-
 
34394
 
-
 
34395
      }
-
 
34396
    }
-
 
34397
 
-
 
34398
    public void setFieldValue(int fieldID, Object value) {
-
 
34399
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
34400
    }
-
 
34401
 
-
 
34402
    public Object getFieldValue(_Fields field) {
-
 
34403
      switch (field) {
-
 
34404
      case STATUS:
-
 
34405
        return getStatus();
-
 
34406
 
-
 
34407
      }
-
 
34408
      throw new IllegalStateException();
-
 
34409
    }
-
 
34410
 
-
 
34411
    public Object getFieldValue(int fieldId) {
-
 
34412
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
34413
    }
-
 
34414
 
-
 
34415
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
34416
    public boolean isSet(_Fields field) {
-
 
34417
      switch (field) {
-
 
34418
      case STATUS:
-
 
34419
        return isSetStatus();
-
 
34420
      }
-
 
34421
      throw new IllegalStateException();
-
 
34422
    }
-
 
34423
 
-
 
34424
    public boolean isSet(int fieldID) {
-
 
34425
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
34426
    }
-
 
34427
 
-
 
34428
    @Override
-
 
34429
    public boolean equals(Object that) {
-
 
34430
      if (that == null)
-
 
34431
        return false;
-
 
34432
      if (that instanceof getCartsByStatus_args)
-
 
34433
        return this.equals((getCartsByStatus_args)that);
-
 
34434
      return false;
-
 
34435
    }
-
 
34436
 
-
 
34437
    public boolean equals(getCartsByStatus_args that) {
-
 
34438
      if (that == null)
-
 
34439
        return false;
-
 
34440
 
-
 
34441
      boolean this_present_status = true && this.isSetStatus();
-
 
34442
      boolean that_present_status = true && that.isSetStatus();
-
 
34443
      if (this_present_status || that_present_status) {
-
 
34444
        if (!(this_present_status && that_present_status))
-
 
34445
          return false;
-
 
34446
        if (!this.status.equals(that.status))
-
 
34447
          return false;
-
 
34448
      }
-
 
34449
 
-
 
34450
      return true;
-
 
34451
    }
-
 
34452
 
-
 
34453
    @Override
-
 
34454
    public int hashCode() {
-
 
34455
      return 0;
-
 
34456
    }
-
 
34457
 
-
 
34458
    public int compareTo(getCartsByStatus_args other) {
-
 
34459
      if (!getClass().equals(other.getClass())) {
-
 
34460
        return getClass().getName().compareTo(other.getClass().getName());
-
 
34461
      }
-
 
34462
 
-
 
34463
      int lastComparison = 0;
-
 
34464
      getCartsByStatus_args typedOther = (getCartsByStatus_args)other;
-
 
34465
 
-
 
34466
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(isSetStatus());
-
 
34467
      if (lastComparison != 0) {
-
 
34468
        return lastComparison;
-
 
34469
      }
-
 
34470
      lastComparison = TBaseHelper.compareTo(status, typedOther.status);
-
 
34471
      if (lastComparison != 0) {
-
 
34472
        return lastComparison;
-
 
34473
      }
-
 
34474
      return 0;
-
 
34475
    }
-
 
34476
 
-
 
34477
    public void read(TProtocol iprot) throws TException {
-
 
34478
      TField field;
-
 
34479
      iprot.readStructBegin();
-
 
34480
      while (true)
-
 
34481
      {
-
 
34482
        field = iprot.readFieldBegin();
-
 
34483
        if (field.type == TType.STOP) { 
-
 
34484
          break;
-
 
34485
        }
-
 
34486
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
34487
        if (fieldId == null) {
-
 
34488
          TProtocolUtil.skip(iprot, field.type);
-
 
34489
        } else {
-
 
34490
          switch (fieldId) {
-
 
34491
            case STATUS:
-
 
34492
              if (field.type == TType.I32) {
-
 
34493
                this.status = CartStatus.findByValue(iprot.readI32());
-
 
34494
              } else { 
-
 
34495
                TProtocolUtil.skip(iprot, field.type);
-
 
34496
              }
-
 
34497
              break;
-
 
34498
          }
-
 
34499
          iprot.readFieldEnd();
-
 
34500
        }
-
 
34501
      }
-
 
34502
      iprot.readStructEnd();
-
 
34503
      validate();
-
 
34504
    }
-
 
34505
 
-
 
34506
    public void write(TProtocol oprot) throws TException {
-
 
34507
      validate();
-
 
34508
 
-
 
34509
      oprot.writeStructBegin(STRUCT_DESC);
-
 
34510
      if (this.status != null) {
-
 
34511
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
-
 
34512
        oprot.writeI32(this.status.getValue());
-
 
34513
        oprot.writeFieldEnd();
-
 
34514
      }
-
 
34515
      oprot.writeFieldStop();
-
 
34516
      oprot.writeStructEnd();
-
 
34517
    }
-
 
34518
 
-
 
34519
    @Override
-
 
34520
    public String toString() {
-
 
34521
      StringBuilder sb = new StringBuilder("getCartsByStatus_args(");
-
 
34522
      boolean first = true;
-
 
34523
 
-
 
34524
      sb.append("status:");
-
 
34525
      if (this.status == null) {
-
 
34526
        sb.append("null");
-
 
34527
      } else {
-
 
34528
        String status_name = status.name();
-
 
34529
        if (status_name != null) {
-
 
34530
          sb.append(status_name);
-
 
34531
          sb.append(" (");
-
 
34532
        }
-
 
34533
        sb.append(this.status);
-
 
34534
        if (status_name != null) {
-
 
34535
          sb.append(")");
-
 
34536
        }
-
 
34537
      }
-
 
34538
      first = false;
-
 
34539
      sb.append(")");
-
 
34540
      return sb.toString();
-
 
34541
    }
-
 
34542
 
-
 
34543
    public void validate() throws TException {
-
 
34544
      // check for required fields
-
 
34545
    }
-
 
34546
 
-
 
34547
  }
-
 
34548
 
-
 
34549
  public static class getCartsByStatus_result implements TBase<getCartsByStatus_result._Fields>, java.io.Serializable, Cloneable, Comparable<getCartsByStatus_result>   {
-
 
34550
    private static final TStruct STRUCT_DESC = new TStruct("getCartsByStatus_result");
-
 
34551
 
-
 
34552
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
-
 
34553
    private static final TField SCX_FIELD_DESC = new TField("scx", TType.STRUCT, (short)1);
-
 
34554
 
-
 
34555
    private List<Cart> success;
-
 
34556
    private ShoppingCartException scx;
-
 
34557
 
-
 
34558
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
34559
    public enum _Fields implements TFieldIdEnum {
-
 
34560
      SUCCESS((short)0, "success"),
-
 
34561
      SCX((short)1, "scx");
-
 
34562
 
-
 
34563
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
34564
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
34565
 
-
 
34566
      static {
-
 
34567
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
34568
          byId.put((int)field._thriftId, field);
-
 
34569
          byName.put(field.getFieldName(), field);
-
 
34570
        }
-
 
34571
      }
-
 
34572
 
-
 
34573
      /**
-
 
34574
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
34575
       */
-
 
34576
      public static _Fields findByThriftId(int fieldId) {
-
 
34577
        return byId.get(fieldId);
-
 
34578
      }
-
 
34579
 
-
 
34580
      /**
-
 
34581
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
34582
       * if it is not found.
-
 
34583
       */
-
 
34584
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
34585
        _Fields fields = findByThriftId(fieldId);
-
 
34586
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
34587
        return fields;
-
 
34588
      }
-
 
34589
 
-
 
34590
      /**
-
 
34591
       * Find the _Fields constant that matches name, or null if its not found.
-
 
34592
       */
-
 
34593
      public static _Fields findByName(String name) {
-
 
34594
        return byName.get(name);
-
 
34595
      }
-
 
34596
 
-
 
34597
      private final short _thriftId;
-
 
34598
      private final String _fieldName;
-
 
34599
 
-
 
34600
      _Fields(short thriftId, String fieldName) {
-
 
34601
        _thriftId = thriftId;
-
 
34602
        _fieldName = fieldName;
-
 
34603
      }
-
 
34604
 
-
 
34605
      public short getThriftFieldId() {
-
 
34606
        return _thriftId;
-
 
34607
      }
-
 
34608
 
-
 
34609
      public String getFieldName() {
-
 
34610
        return _fieldName;
-
 
34611
      }
-
 
34612
    }
-
 
34613
 
-
 
34614
    // isset id assignments
-
 
34615
 
-
 
34616
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
34617
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
34618
          new ListMetaData(TType.LIST, 
-
 
34619
              new StructMetaData(TType.STRUCT, Cart.class))));
-
 
34620
      put(_Fields.SCX, new FieldMetaData("scx", TFieldRequirementType.DEFAULT, 
-
 
34621
          new FieldValueMetaData(TType.STRUCT)));
-
 
34622
    }});
-
 
34623
 
-
 
34624
    static {
-
 
34625
      FieldMetaData.addStructMetaDataMap(getCartsByStatus_result.class, metaDataMap);
-
 
34626
    }
-
 
34627
 
-
 
34628
    public getCartsByStatus_result() {
-
 
34629
    }
-
 
34630
 
-
 
34631
    public getCartsByStatus_result(
-
 
34632
      List<Cart> success,
-
 
34633
      ShoppingCartException scx)
-
 
34634
    {
-
 
34635
      this();
-
 
34636
      this.success = success;
-
 
34637
      this.scx = scx;
-
 
34638
    }
-
 
34639
 
-
 
34640
    /**
-
 
34641
     * Performs a deep copy on <i>other</i>.
-
 
34642
     */
-
 
34643
    public getCartsByStatus_result(getCartsByStatus_result other) {
-
 
34644
      if (other.isSetSuccess()) {
-
 
34645
        List<Cart> __this__success = new ArrayList<Cart>();
-
 
34646
        for (Cart other_element : other.success) {
-
 
34647
          __this__success.add(new Cart(other_element));
-
 
34648
        }
-
 
34649
        this.success = __this__success;
-
 
34650
      }
-
 
34651
      if (other.isSetScx()) {
-
 
34652
        this.scx = new ShoppingCartException(other.scx);
-
 
34653
      }
-
 
34654
    }
-
 
34655
 
-
 
34656
    public getCartsByStatus_result deepCopy() {
-
 
34657
      return new getCartsByStatus_result(this);
-
 
34658
    }
-
 
34659
 
-
 
34660
    @Deprecated
-
 
34661
    public getCartsByStatus_result clone() {
-
 
34662
      return new getCartsByStatus_result(this);
-
 
34663
    }
-
 
34664
 
-
 
34665
    public int getSuccessSize() {
-
 
34666
      return (this.success == null) ? 0 : this.success.size();
-
 
34667
    }
-
 
34668
 
-
 
34669
    public java.util.Iterator<Cart> getSuccessIterator() {
-
 
34670
      return (this.success == null) ? null : this.success.iterator();
-
 
34671
    }
-
 
34672
 
-
 
34673
    public void addToSuccess(Cart elem) {
-
 
34674
      if (this.success == null) {
-
 
34675
        this.success = new ArrayList<Cart>();
-
 
34676
      }
-
 
34677
      this.success.add(elem);
-
 
34678
    }
-
 
34679
 
-
 
34680
    public List<Cart> getSuccess() {
-
 
34681
      return this.success;
-
 
34682
    }
-
 
34683
 
-
 
34684
    public getCartsByStatus_result setSuccess(List<Cart> success) {
-
 
34685
      this.success = success;
-
 
34686
      return this;
-
 
34687
    }
-
 
34688
 
-
 
34689
    public void unsetSuccess() {
-
 
34690
      this.success = null;
-
 
34691
    }
-
 
34692
 
-
 
34693
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
34694
    public boolean isSetSuccess() {
-
 
34695
      return this.success != null;
-
 
34696
    }
-
 
34697
 
-
 
34698
    public void setSuccessIsSet(boolean value) {
-
 
34699
      if (!value) {
-
 
34700
        this.success = null;
-
 
34701
      }
-
 
34702
    }
-
 
34703
 
-
 
34704
    public ShoppingCartException getScx() {
-
 
34705
      return this.scx;
-
 
34706
    }
-
 
34707
 
-
 
34708
    public getCartsByStatus_result setScx(ShoppingCartException scx) {
-
 
34709
      this.scx = scx;
-
 
34710
      return this;
-
 
34711
    }
-
 
34712
 
-
 
34713
    public void unsetScx() {
-
 
34714
      this.scx = null;
-
 
34715
    }
-
 
34716
 
-
 
34717
    /** Returns true if field scx is set (has been asigned a value) and false otherwise */
-
 
34718
    public boolean isSetScx() {
-
 
34719
      return this.scx != null;
-
 
34720
    }
-
 
34721
 
-
 
34722
    public void setScxIsSet(boolean value) {
-
 
34723
      if (!value) {
-
 
34724
        this.scx = null;
-
 
34725
      }
-
 
34726
    }
-
 
34727
 
-
 
34728
    public void setFieldValue(_Fields field, Object value) {
-
 
34729
      switch (field) {
-
 
34730
      case SUCCESS:
-
 
34731
        if (value == null) {
-
 
34732
          unsetSuccess();
-
 
34733
        } else {
-
 
34734
          setSuccess((List<Cart>)value);
-
 
34735
        }
-
 
34736
        break;
-
 
34737
 
-
 
34738
      case SCX:
-
 
34739
        if (value == null) {
-
 
34740
          unsetScx();
-
 
34741
        } else {
-
 
34742
          setScx((ShoppingCartException)value);
-
 
34743
        }
-
 
34744
        break;
-
 
34745
 
-
 
34746
      }
-
 
34747
    }
-
 
34748
 
-
 
34749
    public void setFieldValue(int fieldID, Object value) {
-
 
34750
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
34751
    }
-
 
34752
 
-
 
34753
    public Object getFieldValue(_Fields field) {
-
 
34754
      switch (field) {
-
 
34755
      case SUCCESS:
-
 
34756
        return getSuccess();
-
 
34757
 
-
 
34758
      case SCX:
-
 
34759
        return getScx();
-
 
34760
 
-
 
34761
      }
-
 
34762
      throw new IllegalStateException();
-
 
34763
    }
-
 
34764
 
-
 
34765
    public Object getFieldValue(int fieldId) {
-
 
34766
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
34767
    }
-
 
34768
 
-
 
34769
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
34770
    public boolean isSet(_Fields field) {
-
 
34771
      switch (field) {
-
 
34772
      case SUCCESS:
-
 
34773
        return isSetSuccess();
-
 
34774
      case SCX:
-
 
34775
        return isSetScx();
-
 
34776
      }
-
 
34777
      throw new IllegalStateException();
-
 
34778
    }
-
 
34779
 
-
 
34780
    public boolean isSet(int fieldID) {
-
 
34781
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
34782
    }
-
 
34783
 
-
 
34784
    @Override
-
 
34785
    public boolean equals(Object that) {
-
 
34786
      if (that == null)
-
 
34787
        return false;
-
 
34788
      if (that instanceof getCartsByStatus_result)
-
 
34789
        return this.equals((getCartsByStatus_result)that);
-
 
34790
      return false;
-
 
34791
    }
-
 
34792
 
-
 
34793
    public boolean equals(getCartsByStatus_result that) {
-
 
34794
      if (that == null)
-
 
34795
        return false;
-
 
34796
 
-
 
34797
      boolean this_present_success = true && this.isSetSuccess();
-
 
34798
      boolean that_present_success = true && that.isSetSuccess();
-
 
34799
      if (this_present_success || that_present_success) {
-
 
34800
        if (!(this_present_success && that_present_success))
-
 
34801
          return false;
-
 
34802
        if (!this.success.equals(that.success))
-
 
34803
          return false;
-
 
34804
      }
-
 
34805
 
-
 
34806
      boolean this_present_scx = true && this.isSetScx();
-
 
34807
      boolean that_present_scx = true && that.isSetScx();
-
 
34808
      if (this_present_scx || that_present_scx) {
-
 
34809
        if (!(this_present_scx && that_present_scx))
-
 
34810
          return false;
-
 
34811
        if (!this.scx.equals(that.scx))
-
 
34812
          return false;
-
 
34813
      }
-
 
34814
 
-
 
34815
      return true;
-
 
34816
    }
-
 
34817
 
-
 
34818
    @Override
-
 
34819
    public int hashCode() {
-
 
34820
      return 0;
-
 
34821
    }
-
 
34822
 
-
 
34823
    public int compareTo(getCartsByStatus_result other) {
-
 
34824
      if (!getClass().equals(other.getClass())) {
-
 
34825
        return getClass().getName().compareTo(other.getClass().getName());
-
 
34826
      }
-
 
34827
 
-
 
34828
      int lastComparison = 0;
-
 
34829
      getCartsByStatus_result typedOther = (getCartsByStatus_result)other;
-
 
34830
 
-
 
34831
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
34832
      if (lastComparison != 0) {
-
 
34833
        return lastComparison;
-
 
34834
      }
-
 
34835
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
34836
      if (lastComparison != 0) {
-
 
34837
        return lastComparison;
-
 
34838
      }
-
 
34839
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(isSetScx());
-
 
34840
      if (lastComparison != 0) {
-
 
34841
        return lastComparison;
-
 
34842
      }
-
 
34843
      lastComparison = TBaseHelper.compareTo(scx, typedOther.scx);
-
 
34844
      if (lastComparison != 0) {
-
 
34845
        return lastComparison;
-
 
34846
      }
-
 
34847
      return 0;
-
 
34848
    }
-
 
34849
 
-
 
34850
    public void read(TProtocol iprot) throws TException {
-
 
34851
      TField field;
-
 
34852
      iprot.readStructBegin();
-
 
34853
      while (true)
-
 
34854
      {
-
 
34855
        field = iprot.readFieldBegin();
-
 
34856
        if (field.type == TType.STOP) { 
-
 
34857
          break;
-
 
34858
        }
-
 
34859
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
34860
        if (fieldId == null) {
-
 
34861
          TProtocolUtil.skip(iprot, field.type);
-
 
34862
        } else {
-
 
34863
          switch (fieldId) {
-
 
34864
            case SUCCESS:
-
 
34865
              if (field.type == TType.LIST) {
-
 
34866
                {
-
 
34867
                  TList _list52 = iprot.readListBegin();
-
 
34868
                  this.success = new ArrayList<Cart>(_list52.size);
-
 
34869
                  for (int _i53 = 0; _i53 < _list52.size; ++_i53)
-
 
34870
                  {
-
 
34871
                    Cart _elem54;
-
 
34872
                    _elem54 = new Cart();
-
 
34873
                    _elem54.read(iprot);
-
 
34874
                    this.success.add(_elem54);
-
 
34875
                  }
-
 
34876
                  iprot.readListEnd();
-
 
34877
                }
-
 
34878
              } else { 
-
 
34879
                TProtocolUtil.skip(iprot, field.type);
-
 
34880
              }
-
 
34881
              break;
-
 
34882
            case SCX:
-
 
34883
              if (field.type == TType.STRUCT) {
-
 
34884
                this.scx = new ShoppingCartException();
-
 
34885
                this.scx.read(iprot);
-
 
34886
              } else { 
-
 
34887
                TProtocolUtil.skip(iprot, field.type);
-
 
34888
              }
-
 
34889
              break;
-
 
34890
          }
-
 
34891
          iprot.readFieldEnd();
-
 
34892
        }
-
 
34893
      }
-
 
34894
      iprot.readStructEnd();
-
 
34895
      validate();
-
 
34896
    }
-
 
34897
 
-
 
34898
    public void write(TProtocol oprot) throws TException {
-
 
34899
      oprot.writeStructBegin(STRUCT_DESC);
-
 
34900
 
-
 
34901
      if (this.isSetSuccess()) {
-
 
34902
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
34903
        {
-
 
34904
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
-
 
34905
          for (Cart _iter55 : this.success)
-
 
34906
          {
-
 
34907
            _iter55.write(oprot);
-
 
34908
          }
-
 
34909
          oprot.writeListEnd();
-
 
34910
        }
-
 
34911
        oprot.writeFieldEnd();
-
 
34912
      } else if (this.isSetScx()) {
-
 
34913
        oprot.writeFieldBegin(SCX_FIELD_DESC);
-
 
34914
        this.scx.write(oprot);
-
 
34915
        oprot.writeFieldEnd();
-
 
34916
      }
-
 
34917
      oprot.writeFieldStop();
-
 
34918
      oprot.writeStructEnd();
-
 
34919
    }
-
 
34920
 
-
 
34921
    @Override
-
 
34922
    public String toString() {
-
 
34923
      StringBuilder sb = new StringBuilder("getCartsByStatus_result(");
-
 
34924
      boolean first = true;
-
 
34925
 
-
 
34926
      sb.append("success:");
-
 
34927
      if (this.success == null) {
-
 
34928
        sb.append("null");
-
 
34929
      } else {
-
 
34930
        sb.append(this.success);
-
 
34931
      }
-
 
34932
      first = false;
-
 
34933
      if (!first) sb.append(", ");
-
 
34934
      sb.append("scx:");
-
 
34935
      if (this.scx == null) {
-
 
34936
        sb.append("null");
-
 
34937
      } else {
-
 
34938
        sb.append(this.scx);
-
 
34939
      }
-
 
34940
      first = false;
-
 
34941
      sb.append(")");
-
 
34942
      return sb.toString();
-
 
34943
    }
-
 
34944
 
-
 
34945
    public void validate() throws TException {
-
 
34946
      // check for required fields
-
 
34947
    }
-
 
34948
 
-
 
34949
  }
-
 
34950
 
-
 
34951
  public static class getCartsByTime_args implements TBase<getCartsByTime_args._Fields>, java.io.Serializable, Cloneable, Comparable<getCartsByTime_args>   {
-
 
34952
    private static final TStruct STRUCT_DESC = new TStruct("getCartsByTime_args");
-
 
34953
 
-
 
34954
    private static final TField FROM_TIME_FIELD_DESC = new TField("from_time", TType.I64, (short)1);
-
 
34955
    private static final TField TO_TIME_FIELD_DESC = new TField("to_time", TType.I64, (short)2);
-
 
34956
    private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)3);
-
 
34957
 
-
 
34958
    private long from_time;
-
 
34959
    private long to_time;
-
 
34960
    private CartStatus status;
-
 
34961
 
-
 
34962
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
34963
    public enum _Fields implements TFieldIdEnum {
-
 
34964
      FROM_TIME((short)1, "from_time"),
-
 
34965
      TO_TIME((short)2, "to_time"),
-
 
34966
      /**
-
 
34967
       * 
-
 
34968
       * @see CartStatus
-
 
34969
       */
-
 
34970
      STATUS((short)3, "status");
-
 
34971
 
-
 
34972
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
34973
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
34974
 
-
 
34975
      static {
-
 
34976
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
34977
          byId.put((int)field._thriftId, field);
-
 
34978
          byName.put(field.getFieldName(), field);
-
 
34979
        }
-
 
34980
      }
-
 
34981
 
-
 
34982
      /**
-
 
34983
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
34984
       */
-
 
34985
      public static _Fields findByThriftId(int fieldId) {
-
 
34986
        return byId.get(fieldId);
-
 
34987
      }
-
 
34988
 
-
 
34989
      /**
-
 
34990
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
34991
       * if it is not found.
-
 
34992
       */
-
 
34993
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
34994
        _Fields fields = findByThriftId(fieldId);
-
 
34995
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
34996
        return fields;
-
 
34997
      }
-
 
34998
 
-
 
34999
      /**
-
 
35000
       * Find the _Fields constant that matches name, or null if its not found.
-
 
35001
       */
-
 
35002
      public static _Fields findByName(String name) {
-
 
35003
        return byName.get(name);
-
 
35004
      }
-
 
35005
 
-
 
35006
      private final short _thriftId;
-
 
35007
      private final String _fieldName;
-
 
35008
 
-
 
35009
      _Fields(short thriftId, String fieldName) {
-
 
35010
        _thriftId = thriftId;
-
 
35011
        _fieldName = fieldName;
-
 
35012
      }
-
 
35013
 
-
 
35014
      public short getThriftFieldId() {
-
 
35015
        return _thriftId;
-
 
35016
      }
-
 
35017
 
-
 
35018
      public String getFieldName() {
-
 
35019
        return _fieldName;
-
 
35020
      }
-
 
35021
    }
-
 
35022
 
-
 
35023
    // isset id assignments
-
 
35024
    private static final int __FROM_TIME_ISSET_ID = 0;
-
 
35025
    private static final int __TO_TIME_ISSET_ID = 1;
-
 
35026
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
35027
 
-
 
35028
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
35029
      put(_Fields.FROM_TIME, new FieldMetaData("from_time", TFieldRequirementType.DEFAULT, 
-
 
35030
          new FieldValueMetaData(TType.I64)));
-
 
35031
      put(_Fields.TO_TIME, new FieldMetaData("to_time", TFieldRequirementType.DEFAULT, 
-
 
35032
          new FieldValueMetaData(TType.I64)));
-
 
35033
      put(_Fields.STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT, 
-
 
35034
          new EnumMetaData(TType.ENUM, CartStatus.class)));
-
 
35035
    }});
-
 
35036
 
-
 
35037
    static {
-
 
35038
      FieldMetaData.addStructMetaDataMap(getCartsByTime_args.class, metaDataMap);
-
 
35039
    }
-
 
35040
 
-
 
35041
    public getCartsByTime_args() {
-
 
35042
    }
-
 
35043
 
-
 
35044
    public getCartsByTime_args(
-
 
35045
      long from_time,
-
 
35046
      long to_time,
-
 
35047
      CartStatus status)
-
 
35048
    {
-
 
35049
      this();
-
 
35050
      this.from_time = from_time;
-
 
35051
      setFrom_timeIsSet(true);
-
 
35052
      this.to_time = to_time;
-
 
35053
      setTo_timeIsSet(true);
-
 
35054
      this.status = status;
-
 
35055
    }
-
 
35056
 
-
 
35057
    /**
-
 
35058
     * Performs a deep copy on <i>other</i>.
-
 
35059
     */
-
 
35060
    public getCartsByTime_args(getCartsByTime_args other) {
-
 
35061
      __isset_bit_vector.clear();
-
 
35062
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
35063
      this.from_time = other.from_time;
-
 
35064
      this.to_time = other.to_time;
-
 
35065
      if (other.isSetStatus()) {
-
 
35066
        this.status = other.status;
-
 
35067
      }
-
 
35068
    }
-
 
35069
 
-
 
35070
    public getCartsByTime_args deepCopy() {
-
 
35071
      return new getCartsByTime_args(this);
-
 
35072
    }
-
 
35073
 
-
 
35074
    @Deprecated
-
 
35075
    public getCartsByTime_args clone() {
-
 
35076
      return new getCartsByTime_args(this);
-
 
35077
    }
-
 
35078
 
-
 
35079
    public long getFrom_time() {
-
 
35080
      return this.from_time;
-
 
35081
    }
-
 
35082
 
-
 
35083
    public getCartsByTime_args setFrom_time(long from_time) {
-
 
35084
      this.from_time = from_time;
-
 
35085
      setFrom_timeIsSet(true);
-
 
35086
      return this;
-
 
35087
    }
-
 
35088
 
-
 
35089
    public void unsetFrom_time() {
-
 
35090
      __isset_bit_vector.clear(__FROM_TIME_ISSET_ID);
-
 
35091
    }
-
 
35092
 
-
 
35093
    /** Returns true if field from_time is set (has been asigned a value) and false otherwise */
-
 
35094
    public boolean isSetFrom_time() {
-
 
35095
      return __isset_bit_vector.get(__FROM_TIME_ISSET_ID);
-
 
35096
    }
-
 
35097
 
-
 
35098
    public void setFrom_timeIsSet(boolean value) {
-
 
35099
      __isset_bit_vector.set(__FROM_TIME_ISSET_ID, value);
-
 
35100
    }
-
 
35101
 
-
 
35102
    public long getTo_time() {
-
 
35103
      return this.to_time;
-
 
35104
    }
-
 
35105
 
-
 
35106
    public getCartsByTime_args setTo_time(long to_time) {
-
 
35107
      this.to_time = to_time;
-
 
35108
      setTo_timeIsSet(true);
-
 
35109
      return this;
-
 
35110
    }
-
 
35111
 
-
 
35112
    public void unsetTo_time() {
-
 
35113
      __isset_bit_vector.clear(__TO_TIME_ISSET_ID);
-
 
35114
    }
-
 
35115
 
-
 
35116
    /** Returns true if field to_time is set (has been asigned a value) and false otherwise */
-
 
35117
    public boolean isSetTo_time() {
-
 
35118
      return __isset_bit_vector.get(__TO_TIME_ISSET_ID);
-
 
35119
    }
-
 
35120
 
-
 
35121
    public void setTo_timeIsSet(boolean value) {
-
 
35122
      __isset_bit_vector.set(__TO_TIME_ISSET_ID, value);
-
 
35123
    }
-
 
35124
 
-
 
35125
    /**
-
 
35126
     * 
-
 
35127
     * @see CartStatus
-
 
35128
     */
-
 
35129
    public CartStatus getStatus() {
-
 
35130
      return this.status;
-
 
35131
    }
-
 
35132
 
-
 
35133
    /**
-
 
35134
     * 
-
 
35135
     * @see CartStatus
-
 
35136
     */
-
 
35137
    public getCartsByTime_args setStatus(CartStatus status) {
-
 
35138
      this.status = status;
-
 
35139
      return this;
-
 
35140
    }
-
 
35141
 
-
 
35142
    public void unsetStatus() {
-
 
35143
      this.status = null;
-
 
35144
    }
-
 
35145
 
-
 
35146
    /** Returns true if field status is set (has been asigned a value) and false otherwise */
-
 
35147
    public boolean isSetStatus() {
-
 
35148
      return this.status != null;
-
 
35149
    }
-
 
35150
 
-
 
35151
    public void setStatusIsSet(boolean value) {
-
 
35152
      if (!value) {
-
 
35153
        this.status = null;
-
 
35154
      }
-
 
35155
    }
-
 
35156
 
-
 
35157
    public void setFieldValue(_Fields field, Object value) {
-
 
35158
      switch (field) {
-
 
35159
      case FROM_TIME:
-
 
35160
        if (value == null) {
-
 
35161
          unsetFrom_time();
-
 
35162
        } else {
-
 
35163
          setFrom_time((Long)value);
-
 
35164
        }
-
 
35165
        break;
-
 
35166
 
-
 
35167
      case TO_TIME:
-
 
35168
        if (value == null) {
-
 
35169
          unsetTo_time();
-
 
35170
        } else {
-
 
35171
          setTo_time((Long)value);
-
 
35172
        }
-
 
35173
        break;
-
 
35174
 
-
 
35175
      case STATUS:
-
 
35176
        if (value == null) {
-
 
35177
          unsetStatus();
-
 
35178
        } else {
-
 
35179
          setStatus((CartStatus)value);
-
 
35180
        }
-
 
35181
        break;
-
 
35182
 
-
 
35183
      }
-
 
35184
    }
-
 
35185
 
-
 
35186
    public void setFieldValue(int fieldID, Object value) {
-
 
35187
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
35188
    }
-
 
35189
 
-
 
35190
    public Object getFieldValue(_Fields field) {
-
 
35191
      switch (field) {
-
 
35192
      case FROM_TIME:
-
 
35193
        return new Long(getFrom_time());
-
 
35194
 
-
 
35195
      case TO_TIME:
-
 
35196
        return new Long(getTo_time());
-
 
35197
 
-
 
35198
      case STATUS:
-
 
35199
        return getStatus();
-
 
35200
 
-
 
35201
      }
-
 
35202
      throw new IllegalStateException();
-
 
35203
    }
-
 
35204
 
-
 
35205
    public Object getFieldValue(int fieldId) {
-
 
35206
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
35207
    }
-
 
35208
 
-
 
35209
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
35210
    public boolean isSet(_Fields field) {
-
 
35211
      switch (field) {
-
 
35212
      case FROM_TIME:
-
 
35213
        return isSetFrom_time();
-
 
35214
      case TO_TIME:
-
 
35215
        return isSetTo_time();
-
 
35216
      case STATUS:
-
 
35217
        return isSetStatus();
-
 
35218
      }
-
 
35219
      throw new IllegalStateException();
-
 
35220
    }
-
 
35221
 
-
 
35222
    public boolean isSet(int fieldID) {
-
 
35223
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
35224
    }
-
 
35225
 
-
 
35226
    @Override
-
 
35227
    public boolean equals(Object that) {
-
 
35228
      if (that == null)
-
 
35229
        return false;
-
 
35230
      if (that instanceof getCartsByTime_args)
-
 
35231
        return this.equals((getCartsByTime_args)that);
-
 
35232
      return false;
-
 
35233
    }
-
 
35234
 
-
 
35235
    public boolean equals(getCartsByTime_args that) {
-
 
35236
      if (that == null)
-
 
35237
        return false;
-
 
35238
 
-
 
35239
      boolean this_present_from_time = true;
-
 
35240
      boolean that_present_from_time = true;
-
 
35241
      if (this_present_from_time || that_present_from_time) {
-
 
35242
        if (!(this_present_from_time && that_present_from_time))
-
 
35243
          return false;
-
 
35244
        if (this.from_time != that.from_time)
-
 
35245
          return false;
-
 
35246
      }
-
 
35247
 
-
 
35248
      boolean this_present_to_time = true;
-
 
35249
      boolean that_present_to_time = true;
-
 
35250
      if (this_present_to_time || that_present_to_time) {
-
 
35251
        if (!(this_present_to_time && that_present_to_time))
-
 
35252
          return false;
-
 
35253
        if (this.to_time != that.to_time)
-
 
35254
          return false;
-
 
35255
      }
-
 
35256
 
-
 
35257
      boolean this_present_status = true && this.isSetStatus();
-
 
35258
      boolean that_present_status = true && that.isSetStatus();
-
 
35259
      if (this_present_status || that_present_status) {
-
 
35260
        if (!(this_present_status && that_present_status))
-
 
35261
          return false;
-
 
35262
        if (!this.status.equals(that.status))
-
 
35263
          return false;
-
 
35264
      }
-
 
35265
 
-
 
35266
      return true;
-
 
35267
    }
-
 
35268
 
-
 
35269
    @Override
-
 
35270
    public int hashCode() {
-
 
35271
      return 0;
-
 
35272
    }
-
 
35273
 
-
 
35274
    public int compareTo(getCartsByTime_args other) {
-
 
35275
      if (!getClass().equals(other.getClass())) {
-
 
35276
        return getClass().getName().compareTo(other.getClass().getName());
-
 
35277
      }
-
 
35278
 
-
 
35279
      int lastComparison = 0;
-
 
35280
      getCartsByTime_args typedOther = (getCartsByTime_args)other;
-
 
35281
 
-
 
35282
      lastComparison = Boolean.valueOf(isSetFrom_time()).compareTo(isSetFrom_time());
-
 
35283
      if (lastComparison != 0) {
-
 
35284
        return lastComparison;
-
 
35285
      }
-
 
35286
      lastComparison = TBaseHelper.compareTo(from_time, typedOther.from_time);
-
 
35287
      if (lastComparison != 0) {
-
 
35288
        return lastComparison;
-
 
35289
      }
-
 
35290
      lastComparison = Boolean.valueOf(isSetTo_time()).compareTo(isSetTo_time());
-
 
35291
      if (lastComparison != 0) {
-
 
35292
        return lastComparison;
-
 
35293
      }
-
 
35294
      lastComparison = TBaseHelper.compareTo(to_time, typedOther.to_time);
-
 
35295
      if (lastComparison != 0) {
-
 
35296
        return lastComparison;
-
 
35297
      }
-
 
35298
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(isSetStatus());
-
 
35299
      if (lastComparison != 0) {
-
 
35300
        return lastComparison;
-
 
35301
      }
-
 
35302
      lastComparison = TBaseHelper.compareTo(status, typedOther.status);
-
 
35303
      if (lastComparison != 0) {
-
 
35304
        return lastComparison;
-
 
35305
      }
-
 
35306
      return 0;
-
 
35307
    }
-
 
35308
 
-
 
35309
    public void read(TProtocol iprot) throws TException {
-
 
35310
      TField field;
-
 
35311
      iprot.readStructBegin();
-
 
35312
      while (true)
-
 
35313
      {
-
 
35314
        field = iprot.readFieldBegin();
-
 
35315
        if (field.type == TType.STOP) { 
-
 
35316
          break;
-
 
35317
        }
-
 
35318
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
35319
        if (fieldId == null) {
-
 
35320
          TProtocolUtil.skip(iprot, field.type);
-
 
35321
        } else {
-
 
35322
          switch (fieldId) {
-
 
35323
            case FROM_TIME:
-
 
35324
              if (field.type == TType.I64) {
-
 
35325
                this.from_time = iprot.readI64();
-
 
35326
                setFrom_timeIsSet(true);
-
 
35327
              } else { 
-
 
35328
                TProtocolUtil.skip(iprot, field.type);
-
 
35329
              }
-
 
35330
              break;
-
 
35331
            case TO_TIME:
-
 
35332
              if (field.type == TType.I64) {
-
 
35333
                this.to_time = iprot.readI64();
-
 
35334
                setTo_timeIsSet(true);
-
 
35335
              } else { 
-
 
35336
                TProtocolUtil.skip(iprot, field.type);
-
 
35337
              }
-
 
35338
              break;
-
 
35339
            case STATUS:
-
 
35340
              if (field.type == TType.I32) {
-
 
35341
                this.status = CartStatus.findByValue(iprot.readI32());
-
 
35342
              } else { 
-
 
35343
                TProtocolUtil.skip(iprot, field.type);
-
 
35344
              }
-
 
35345
              break;
-
 
35346
          }
-
 
35347
          iprot.readFieldEnd();
-
 
35348
        }
-
 
35349
      }
-
 
35350
      iprot.readStructEnd();
-
 
35351
      validate();
-
 
35352
    }
-
 
35353
 
-
 
35354
    public void write(TProtocol oprot) throws TException {
-
 
35355
      validate();
-
 
35356
 
-
 
35357
      oprot.writeStructBegin(STRUCT_DESC);
-
 
35358
      oprot.writeFieldBegin(FROM_TIME_FIELD_DESC);
-
 
35359
      oprot.writeI64(this.from_time);
-
 
35360
      oprot.writeFieldEnd();
-
 
35361
      oprot.writeFieldBegin(TO_TIME_FIELD_DESC);
-
 
35362
      oprot.writeI64(this.to_time);
-
 
35363
      oprot.writeFieldEnd();
-
 
35364
      if (this.status != null) {
-
 
35365
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
-
 
35366
        oprot.writeI32(this.status.getValue());
-
 
35367
        oprot.writeFieldEnd();
-
 
35368
      }
-
 
35369
      oprot.writeFieldStop();
-
 
35370
      oprot.writeStructEnd();
-
 
35371
    }
-
 
35372
 
-
 
35373
    @Override
-
 
35374
    public String toString() {
-
 
35375
      StringBuilder sb = new StringBuilder("getCartsByTime_args(");
-
 
35376
      boolean first = true;
-
 
35377
 
-
 
35378
      sb.append("from_time:");
-
 
35379
      sb.append(this.from_time);
-
 
35380
      first = false;
-
 
35381
      if (!first) sb.append(", ");
-
 
35382
      sb.append("to_time:");
-
 
35383
      sb.append(this.to_time);
-
 
35384
      first = false;
-
 
35385
      if (!first) sb.append(", ");
-
 
35386
      sb.append("status:");
-
 
35387
      if (this.status == null) {
-
 
35388
        sb.append("null");
-
 
35389
      } else {
-
 
35390
        String status_name = status.name();
-
 
35391
        if (status_name != null) {
-
 
35392
          sb.append(status_name);
-
 
35393
          sb.append(" (");
-
 
35394
        }
-
 
35395
        sb.append(this.status);
-
 
35396
        if (status_name != null) {
-
 
35397
          sb.append(")");
-
 
35398
        }
-
 
35399
      }
-
 
35400
      first = false;
-
 
35401
      sb.append(")");
-
 
35402
      return sb.toString();
-
 
35403
    }
-
 
35404
 
-
 
35405
    public void validate() throws TException {
-
 
35406
      // check for required fields
-
 
35407
    }
-
 
35408
 
-
 
35409
  }
-
 
35410
 
-
 
35411
  public static class getCartsByTime_result implements TBase<getCartsByTime_result._Fields>, java.io.Serializable, Cloneable, Comparable<getCartsByTime_result>   {
-
 
35412
    private static final TStruct STRUCT_DESC = new TStruct("getCartsByTime_result");
-
 
35413
 
-
 
35414
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
-
 
35415
    private static final TField SCX_FIELD_DESC = new TField("scx", TType.STRUCT, (short)1);
-
 
35416
 
-
 
35417
    private List<Cart> success;
-
 
35418
    private ShoppingCartException scx;
-
 
35419
 
-
 
35420
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
35421
    public enum _Fields implements TFieldIdEnum {
-
 
35422
      SUCCESS((short)0, "success"),
-
 
35423
      SCX((short)1, "scx");
-
 
35424
 
-
 
35425
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
35426
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
35427
 
-
 
35428
      static {
-
 
35429
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
35430
          byId.put((int)field._thriftId, field);
-
 
35431
          byName.put(field.getFieldName(), field);
-
 
35432
        }
-
 
35433
      }
-
 
35434
 
-
 
35435
      /**
-
 
35436
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
35437
       */
-
 
35438
      public static _Fields findByThriftId(int fieldId) {
-
 
35439
        return byId.get(fieldId);
-
 
35440
      }
-
 
35441
 
-
 
35442
      /**
-
 
35443
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
35444
       * if it is not found.
-
 
35445
       */
-
 
35446
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
35447
        _Fields fields = findByThriftId(fieldId);
-
 
35448
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
35449
        return fields;
-
 
35450
      }
-
 
35451
 
-
 
35452
      /**
-
 
35453
       * Find the _Fields constant that matches name, or null if its not found.
-
 
35454
       */
-
 
35455
      public static _Fields findByName(String name) {
-
 
35456
        return byName.get(name);
-
 
35457
      }
-
 
35458
 
-
 
35459
      private final short _thriftId;
-
 
35460
      private final String _fieldName;
-
 
35461
 
-
 
35462
      _Fields(short thriftId, String fieldName) {
-
 
35463
        _thriftId = thriftId;
-
 
35464
        _fieldName = fieldName;
-
 
35465
      }
-
 
35466
 
-
 
35467
      public short getThriftFieldId() {
-
 
35468
        return _thriftId;
-
 
35469
      }
-
 
35470
 
-
 
35471
      public String getFieldName() {
-
 
35472
        return _fieldName;
-
 
35473
      }
-
 
35474
    }
-
 
35475
 
-
 
35476
    // isset id assignments
-
 
35477
 
-
 
35478
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
35479
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
35480
          new ListMetaData(TType.LIST, 
-
 
35481
              new StructMetaData(TType.STRUCT, Cart.class))));
-
 
35482
      put(_Fields.SCX, new FieldMetaData("scx", TFieldRequirementType.DEFAULT, 
-
 
35483
          new FieldValueMetaData(TType.STRUCT)));
-
 
35484
    }});
-
 
35485
 
-
 
35486
    static {
-
 
35487
      FieldMetaData.addStructMetaDataMap(getCartsByTime_result.class, metaDataMap);
-
 
35488
    }
-
 
35489
 
-
 
35490
    public getCartsByTime_result() {
-
 
35491
    }
-
 
35492
 
-
 
35493
    public getCartsByTime_result(
-
 
35494
      List<Cart> success,
-
 
35495
      ShoppingCartException scx)
-
 
35496
    {
-
 
35497
      this();
-
 
35498
      this.success = success;
-
 
35499
      this.scx = scx;
-
 
35500
    }
-
 
35501
 
-
 
35502
    /**
-
 
35503
     * Performs a deep copy on <i>other</i>.
-
 
35504
     */
-
 
35505
    public getCartsByTime_result(getCartsByTime_result other) {
-
 
35506
      if (other.isSetSuccess()) {
-
 
35507
        List<Cart> __this__success = new ArrayList<Cart>();
-
 
35508
        for (Cart other_element : other.success) {
-
 
35509
          __this__success.add(new Cart(other_element));
-
 
35510
        }
-
 
35511
        this.success = __this__success;
-
 
35512
      }
-
 
35513
      if (other.isSetScx()) {
-
 
35514
        this.scx = new ShoppingCartException(other.scx);
-
 
35515
      }
-
 
35516
    }
-
 
35517
 
-
 
35518
    public getCartsByTime_result deepCopy() {
-
 
35519
      return new getCartsByTime_result(this);
-
 
35520
    }
-
 
35521
 
-
 
35522
    @Deprecated
-
 
35523
    public getCartsByTime_result clone() {
-
 
35524
      return new getCartsByTime_result(this);
-
 
35525
    }
-
 
35526
 
-
 
35527
    public int getSuccessSize() {
-
 
35528
      return (this.success == null) ? 0 : this.success.size();
-
 
35529
    }
-
 
35530
 
-
 
35531
    public java.util.Iterator<Cart> getSuccessIterator() {
-
 
35532
      return (this.success == null) ? null : this.success.iterator();
-
 
35533
    }
-
 
35534
 
-
 
35535
    public void addToSuccess(Cart elem) {
-
 
35536
      if (this.success == null) {
-
 
35537
        this.success = new ArrayList<Cart>();
-
 
35538
      }
-
 
35539
      this.success.add(elem);
-
 
35540
    }
-
 
35541
 
-
 
35542
    public List<Cart> getSuccess() {
-
 
35543
      return this.success;
-
 
35544
    }
-
 
35545
 
-
 
35546
    public getCartsByTime_result setSuccess(List<Cart> success) {
-
 
35547
      this.success = success;
-
 
35548
      return this;
-
 
35549
    }
-
 
35550
 
-
 
35551
    public void unsetSuccess() {
-
 
35552
      this.success = null;
-
 
35553
    }
-
 
35554
 
-
 
35555
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
35556
    public boolean isSetSuccess() {
-
 
35557
      return this.success != null;
-
 
35558
    }
-
 
35559
 
-
 
35560
    public void setSuccessIsSet(boolean value) {
-
 
35561
      if (!value) {
-
 
35562
        this.success = null;
-
 
35563
      }
-
 
35564
    }
-
 
35565
 
-
 
35566
    public ShoppingCartException getScx() {
-
 
35567
      return this.scx;
-
 
35568
    }
-
 
35569
 
-
 
35570
    public getCartsByTime_result setScx(ShoppingCartException scx) {
-
 
35571
      this.scx = scx;
-
 
35572
      return this;
-
 
35573
    }
-
 
35574
 
-
 
35575
    public void unsetScx() {
-
 
35576
      this.scx = null;
-
 
35577
    }
-
 
35578
 
-
 
35579
    /** Returns true if field scx is set (has been asigned a value) and false otherwise */
-
 
35580
    public boolean isSetScx() {
-
 
35581
      return this.scx != null;
-
 
35582
    }
-
 
35583
 
-
 
35584
    public void setScxIsSet(boolean value) {
-
 
35585
      if (!value) {
-
 
35586
        this.scx = null;
-
 
35587
      }
-
 
35588
    }
-
 
35589
 
-
 
35590
    public void setFieldValue(_Fields field, Object value) {
-
 
35591
      switch (field) {
-
 
35592
      case SUCCESS:
-
 
35593
        if (value == null) {
-
 
35594
          unsetSuccess();
-
 
35595
        } else {
-
 
35596
          setSuccess((List<Cart>)value);
-
 
35597
        }
-
 
35598
        break;
-
 
35599
 
-
 
35600
      case SCX:
-
 
35601
        if (value == null) {
-
 
35602
          unsetScx();
-
 
35603
        } else {
-
 
35604
          setScx((ShoppingCartException)value);
-
 
35605
        }
-
 
35606
        break;
-
 
35607
 
-
 
35608
      }
-
 
35609
    }
-
 
35610
 
-
 
35611
    public void setFieldValue(int fieldID, Object value) {
-
 
35612
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
35613
    }
-
 
35614
 
-
 
35615
    public Object getFieldValue(_Fields field) {
-
 
35616
      switch (field) {
-
 
35617
      case SUCCESS:
-
 
35618
        return getSuccess();
-
 
35619
 
-
 
35620
      case SCX:
-
 
35621
        return getScx();
-
 
35622
 
-
 
35623
      }
-
 
35624
      throw new IllegalStateException();
-
 
35625
    }
-
 
35626
 
-
 
35627
    public Object getFieldValue(int fieldId) {
-
 
35628
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
35629
    }
-
 
35630
 
-
 
35631
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
35632
    public boolean isSet(_Fields field) {
-
 
35633
      switch (field) {
-
 
35634
      case SUCCESS:
-
 
35635
        return isSetSuccess();
-
 
35636
      case SCX:
-
 
35637
        return isSetScx();
-
 
35638
      }
-
 
35639
      throw new IllegalStateException();
-
 
35640
    }
-
 
35641
 
-
 
35642
    public boolean isSet(int fieldID) {
-
 
35643
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
35644
    }
-
 
35645
 
-
 
35646
    @Override
-
 
35647
    public boolean equals(Object that) {
-
 
35648
      if (that == null)
-
 
35649
        return false;
-
 
35650
      if (that instanceof getCartsByTime_result)
-
 
35651
        return this.equals((getCartsByTime_result)that);
-
 
35652
      return false;
-
 
35653
    }
-
 
35654
 
-
 
35655
    public boolean equals(getCartsByTime_result that) {
-
 
35656
      if (that == null)
-
 
35657
        return false;
-
 
35658
 
-
 
35659
      boolean this_present_success = true && this.isSetSuccess();
-
 
35660
      boolean that_present_success = true && that.isSetSuccess();
-
 
35661
      if (this_present_success || that_present_success) {
-
 
35662
        if (!(this_present_success && that_present_success))
-
 
35663
          return false;
-
 
35664
        if (!this.success.equals(that.success))
-
 
35665
          return false;
-
 
35666
      }
-
 
35667
 
-
 
35668
      boolean this_present_scx = true && this.isSetScx();
-
 
35669
      boolean that_present_scx = true && that.isSetScx();
-
 
35670
      if (this_present_scx || that_present_scx) {
-
 
35671
        if (!(this_present_scx && that_present_scx))
-
 
35672
          return false;
-
 
35673
        if (!this.scx.equals(that.scx))
-
 
35674
          return false;
-
 
35675
      }
-
 
35676
 
-
 
35677
      return true;
-
 
35678
    }
-
 
35679
 
-
 
35680
    @Override
-
 
35681
    public int hashCode() {
-
 
35682
      return 0;
-
 
35683
    }
-
 
35684
 
-
 
35685
    public int compareTo(getCartsByTime_result other) {
-
 
35686
      if (!getClass().equals(other.getClass())) {
-
 
35687
        return getClass().getName().compareTo(other.getClass().getName());
-
 
35688
      }
-
 
35689
 
-
 
35690
      int lastComparison = 0;
-
 
35691
      getCartsByTime_result typedOther = (getCartsByTime_result)other;
-
 
35692
 
-
 
35693
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
35694
      if (lastComparison != 0) {
-
 
35695
        return lastComparison;
-
 
35696
      }
-
 
35697
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
35698
      if (lastComparison != 0) {
-
 
35699
        return lastComparison;
-
 
35700
      }
-
 
35701
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(isSetScx());
-
 
35702
      if (lastComparison != 0) {
-
 
35703
        return lastComparison;
-
 
35704
      }
-
 
35705
      lastComparison = TBaseHelper.compareTo(scx, typedOther.scx);
-
 
35706
      if (lastComparison != 0) {
-
 
35707
        return lastComparison;
-
 
35708
      }
-
 
35709
      return 0;
-
 
35710
    }
-
 
35711
 
-
 
35712
    public void read(TProtocol iprot) throws TException {
-
 
35713
      TField field;
-
 
35714
      iprot.readStructBegin();
-
 
35715
      while (true)
-
 
35716
      {
-
 
35717
        field = iprot.readFieldBegin();
-
 
35718
        if (field.type == TType.STOP) { 
-
 
35719
          break;
-
 
35720
        }
-
 
35721
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
35722
        if (fieldId == null) {
-
 
35723
          TProtocolUtil.skip(iprot, field.type);
-
 
35724
        } else {
-
 
35725
          switch (fieldId) {
-
 
35726
            case SUCCESS:
-
 
35727
              if (field.type == TType.LIST) {
-
 
35728
                {
-
 
35729
                  TList _list56 = iprot.readListBegin();
-
 
35730
                  this.success = new ArrayList<Cart>(_list56.size);
-
 
35731
                  for (int _i57 = 0; _i57 < _list56.size; ++_i57)
-
 
35732
                  {
-
 
35733
                    Cart _elem58;
-
 
35734
                    _elem58 = new Cart();
-
 
35735
                    _elem58.read(iprot);
-
 
35736
                    this.success.add(_elem58);
-
 
35737
                  }
-
 
35738
                  iprot.readListEnd();
-
 
35739
                }
-
 
35740
              } else { 
-
 
35741
                TProtocolUtil.skip(iprot, field.type);
-
 
35742
              }
-
 
35743
              break;
-
 
35744
            case SCX:
-
 
35745
              if (field.type == TType.STRUCT) {
-
 
35746
                this.scx = new ShoppingCartException();
-
 
35747
                this.scx.read(iprot);
-
 
35748
              } else { 
-
 
35749
                TProtocolUtil.skip(iprot, field.type);
-
 
35750
              }
-
 
35751
              break;
-
 
35752
          }
-
 
35753
          iprot.readFieldEnd();
-
 
35754
        }
-
 
35755
      }
-
 
35756
      iprot.readStructEnd();
-
 
35757
      validate();
-
 
35758
    }
-
 
35759
 
-
 
35760
    public void write(TProtocol oprot) throws TException {
-
 
35761
      oprot.writeStructBegin(STRUCT_DESC);
-
 
35762
 
-
 
35763
      if (this.isSetSuccess()) {
-
 
35764
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
35765
        {
-
 
35766
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
-
 
35767
          for (Cart _iter59 : this.success)
-
 
35768
          {
-
 
35769
            _iter59.write(oprot);
24174
          }
35770
          }
24175
          oprot.writeListEnd();
35771
          oprot.writeListEnd();
24176
        }
35772
        }
24177
        oprot.writeFieldEnd();
35773
        oprot.writeFieldEnd();
24178
      } else if (this.isSetScx()) {
35774
      } else if (this.isSetScx()) {
Line 31096... Line 42692...
31096
              }
42692
              }
31097
              break;
42693
              break;
31098
            case ITEMS:
42694
            case ITEMS:
31099
              if (field.type == TType.MAP) {
42695
              if (field.type == TType.MAP) {
31100
                {
42696
                {
31101
                  TMap _map40 = iprot.readMapBegin();
42697
                  TMap _map60 = iprot.readMapBegin();
31102
                  this.items = new HashMap<Long,Double>(2*_map40.size);
42698
                  this.items = new HashMap<Long,Double>(2*_map60.size);
31103
                  for (int _i41 = 0; _i41 < _map40.size; ++_i41)
42699
                  for (int _i61 = 0; _i61 < _map60.size; ++_i61)
31104
                  {
42700
                  {
31105
                    long _key42;
42701
                    long _key62;
31106
                    double _val43;
42702
                    double _val63;
31107
                    _key42 = iprot.readI64();
42703
                    _key62 = iprot.readI64();
31108
                    _val43 = iprot.readDouble();
42704
                    _val63 = iprot.readDouble();
31109
                    this.items.put(_key42, _val43);
42705
                    this.items.put(_key62, _val63);
31110
                  }
42706
                  }
31111
                  iprot.readMapEnd();
42707
                  iprot.readMapEnd();
31112
                }
42708
                }
31113
              } else { 
42709
              } else { 
31114
                TProtocolUtil.skip(iprot, field.type);
42710
                TProtocolUtil.skip(iprot, field.type);
Line 31131... Line 42727...
31131
      oprot.writeFieldEnd();
42727
      oprot.writeFieldEnd();
31132
      if (this.items != null) {
42728
      if (this.items != null) {
31133
        oprot.writeFieldBegin(ITEMS_FIELD_DESC);
42729
        oprot.writeFieldBegin(ITEMS_FIELD_DESC);
31134
        {
42730
        {
31135
          oprot.writeMapBegin(new TMap(TType.I64, TType.DOUBLE, this.items.size()));
42731
          oprot.writeMapBegin(new TMap(TType.I64, TType.DOUBLE, this.items.size()));
31136
          for (Map.Entry<Long, Double> _iter44 : this.items.entrySet())
42732
          for (Map.Entry<Long, Double> _iter64 : this.items.entrySet())
31137
          {
42733
          {
31138
            oprot.writeI64(_iter44.getKey());
42734
            oprot.writeI64(_iter64.getKey());
31139
            oprot.writeDouble(_iter44.getValue());
42735
            oprot.writeDouble(_iter64.getValue());
31140
          }
42736
          }
31141
          oprot.writeMapEnd();
42737
          oprot.writeMapEnd();
31142
        }
42738
        }
31143
        oprot.writeFieldEnd();
42739
        oprot.writeFieldEnd();
31144
      }
42740
      }
Line 36402... Line 47998...
36402
        } else {
47998
        } else {
36403
          switch (fieldId) {
47999
          switch (fieldId) {
36404
            case SUCCESS:
48000
            case SUCCESS:
36405
              if (field.type == TType.LIST) {
48001
              if (field.type == TType.LIST) {
36406
                {
48002
                {
36407
                  TList _list45 = iprot.readListBegin();
48003
                  TList _list65 = iprot.readListBegin();
36408
                  this.success = new ArrayList<User>(_list45.size);
48004
                  this.success = new ArrayList<User>(_list65.size);
36409
                  for (int _i46 = 0; _i46 < _list45.size; ++_i46)
48005
                  for (int _i66 = 0; _i66 < _list65.size; ++_i66)
36410
                  {
48006
                  {
36411
                    User _elem47;
48007
                    User _elem67;
36412
                    _elem47 = new User();
48008
                    _elem67 = new User();
36413
                    _elem47.read(iprot);
48009
                    _elem67.read(iprot);
36414
                    this.success.add(_elem47);
48010
                    this.success.add(_elem67);
36415
                  }
48011
                  }
36416
                  iprot.readListEnd();
48012
                  iprot.readListEnd();
36417
                }
48013
                }
36418
              } else { 
48014
              } else { 
36419
                TProtocolUtil.skip(iprot, field.type);
48015
                TProtocolUtil.skip(iprot, field.type);
Line 36432... Line 48028...
36432
 
48028
 
36433
      if (this.isSetSuccess()) {
48029
      if (this.isSetSuccess()) {
36434
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
48030
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
36435
        {
48031
        {
36436
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
48032
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
36437
          for (User _iter48 : this.success)
48033
          for (User _iter68 : this.success)
36438
          {
48034
          {
36439
            _iter48.write(oprot);
48035
            _iter68.write(oprot);
36440
          }
48036
          }
36441
          oprot.writeListEnd();
48037
          oprot.writeListEnd();
36442
        }
48038
        }
36443
        oprot.writeFieldEnd();
48039
        oprot.writeFieldEnd();
36444
      }
48040
      }