Subversion Repositories SmartDukaan

Rev

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

Rev 2816 Rev 2981
Line 182... Line 182...
182
     * @param items
182
     * @param items
183
     */
183
     */
184
    public boolean resetCart(long cartId, Map<Long,Double> items) throws ShoppingCartException, TException;
184
    public boolean resetCart(long cartId, Map<Long,Double> items) throws ShoppingCartException, TException;
185
 
185
 
186
    /**
186
    /**
187
     * Widgets
-
 
188
     * 
-
 
189
     * @param userId
-
 
190
     */
-
 
191
    public Widget getMyResearch(long userId) throws WidgetException, TException;
-
 
192
 
-
 
193
    public boolean updateMyResearch(long userId, long itemId) throws WidgetException, TException;
-
 
194
 
-
 
195
    public void deleteItemFromMyResearch(long userId, long itemId) throws WidgetException, TException;
-
 
196
 
-
 
197
    public void updateBrowseHistory(long userId, long itemId) throws TException;
-
 
198
 
-
 
199
    public Widget getBrowseHistory(long userId) throws WidgetException, TException;
-
 
200
 
-
 
201
    public void mergeBrowseHistory(long fromUserId, long toUserId) throws TException;
-
 
202
 
-
 
203
    /**
-
 
204
     * Returns number of registered users.
187
     * Returns number of registered users.
205
     * If userType = null, then it returns count of all users, including anonymous
188
     * If userType = null, then it returns count of all users, including anonymous
206
     * If userType = UserType.ANONYMOUS, then it returns count of anonymous users only
189
     * If userType = UserType.ANONYMOUS, then it returns count of anonymous users only
207
     * If userType = UserType.USER, then it returns count of non-anonymous users only
190
     * If userType = UserType.USER, then it returns count of non-anonymous users only
208
     * 
191
     * 
Line 220... Line 203...
220
     * @param startDate
203
     * @param startDate
221
     * @param endDate
204
     * @param endDate
222
     */
205
     */
223
    public List<User> getAllUsers(UserType userType, long startDate, long endDate) throws TException;
206
    public List<User> getAllUsers(UserType userType, long startDate, long endDate) throws TException;
224
 
207
 
-
 
208
    public void putUserNote(long user_id, long entity_id, String slide, String note) throws TException;
-
 
209
 
-
 
210
    public List<UserNote> getUserNotes(long user_id, long entity_id) throws TException;
-
 
211
 
225
    /**
212
    /**
226
     * Masking right now. May be used later.
213
     * Returns list of item ids in myresearch for the user
227
     * void addWidget(1:Widget widget) throws (1:WidgetException scx),
-
 
228
     * void addItemToWidget(1:i64 widget_id, 2:list<i64> items) throws (1:WidgetException scx),
-
 
229
     * void deleteItemFromWidget(1:i64 widget_id, 2:i64 item_id) throws (1:WidgetException scx),
-
 
230
     * void updateWidget(1:i64 widgetId, 2:bool enable) throws (1:WidgetException scx),
-
 
231
     * void updateWidgetItem(1:i64 widgetId, 2:bool enable) throws (1:WidgetException scx),
-
 
232
     * Widget getWidget(1:WidgetType type, 2:i64 userId, 3:bool onlyEnabled) throws (1:WidgetException scx),
-
 
233
     * 
214
     * 
234
     * @param user_id
215
     * @param userId
235
     * @param entity_id
-
 
236
     * @param slide
-
 
237
     * @param note
-
 
238
     */
216
     */
239
    public void putUserNote(long user_id, long entity_id, String slide, String note) throws TException;
217
    public List<Long> getMyResearchItems(long userId) throws WidgetException, TException;
240
 
218
 
-
 
219
    /**
-
 
220
     * add item to my research for a user
-
 
221
     * 
-
 
222
     * @param userId
-
 
223
     * @param itemId
-
 
224
     */
-
 
225
    public boolean updateMyResearch(long userId, long itemId) throws WidgetException, TException;
-
 
226
 
-
 
227
    /**
-
 
228
     * delete item from my research for a user
-
 
229
     * 
-
 
230
     * @param userId
-
 
231
     * @param itemId
-
 
232
     */
-
 
233
    public void deleteItemFromMyResearch(long userId, long itemId) throws WidgetException, TException;
-
 
234
 
-
 
235
    /**
-
 
236
     * Returns list of item ids in browse history for the user. It will return maximum 10 items.
-
 
237
     * 
-
 
238
     * @param userId
-
 
239
     */
-
 
240
    public List<Long> getBrowseHistoryItems(long userId) throws WidgetException, TException;
-
 
241
 
-
 
242
    /**
-
 
243
     * add item to browse history for a user
-
 
244
     * 
-
 
245
     * @param userId
-
 
246
     * @param itemId
-
 
247
     */
241
    public List<UserNote> getUserNotes(long user_id, long entity_id) throws TException;
248
    public void updateBrowseHistory(long userId, long itemId) throws TException;
242
 
249
 
243
  }
250
  }
244
 
251
 
245
  public static class Client implements Iface {
252
  public static class Client implements Iface {
246
    public Client(TProtocol prot)
253
    public Client(TProtocol prot)
Line 2366... Line 2373...
2366
        throw result.scex;
2373
        throw result.scex;
2367
      }
2374
      }
2368
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "resetCart failed: unknown result");
2375
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "resetCart failed: unknown result");
2369
    }
2376
    }
2370
 
2377
 
2371
    public Widget getMyResearch(long userId) throws WidgetException, TException
2378
    public long getUserCount(UserType userType) throws TException
2372
    {
2379
    {
2373
      send_getMyResearch(userId);
2380
      send_getUserCount(userType);
2374
      return recv_getMyResearch();
2381
      return recv_getUserCount();
2375
    }
2382
    }
2376
 
2383
 
2377
    public void send_getMyResearch(long userId) throws TException
2384
    public void send_getUserCount(UserType userType) throws TException
2378
    {
2385
    {
2379
      oprot_.writeMessageBegin(new TMessage("getMyResearch", TMessageType.CALL, seqid_));
2386
      oprot_.writeMessageBegin(new TMessage("getUserCount", TMessageType.CALL, seqid_));
2380
      getMyResearch_args args = new getMyResearch_args();
2387
      getUserCount_args args = new getUserCount_args();
2381
      args.userId = userId;
2388
      args.userType = userType;
2382
      args.write(oprot_);
2389
      args.write(oprot_);
2383
      oprot_.writeMessageEnd();
2390
      oprot_.writeMessageEnd();
2384
      oprot_.getTransport().flush();
2391
      oprot_.getTransport().flush();
2385
    }
2392
    }
2386
 
2393
 
2387
    public Widget recv_getMyResearch() throws WidgetException, TException
2394
    public long recv_getUserCount() throws TException
2388
    {
2395
    {
2389
      TMessage msg = iprot_.readMessageBegin();
2396
      TMessage msg = iprot_.readMessageBegin();
2390
      if (msg.type == TMessageType.EXCEPTION) {
2397
      if (msg.type == TMessageType.EXCEPTION) {
2391
        TApplicationException x = TApplicationException.read(iprot_);
2398
        TApplicationException x = TApplicationException.read(iprot_);
2392
        iprot_.readMessageEnd();
2399
        iprot_.readMessageEnd();
2393
        throw x;
2400
        throw x;
2394
      }
2401
      }
2395
      getMyResearch_result result = new getMyResearch_result();
2402
      getUserCount_result result = new getUserCount_result();
2396
      result.read(iprot_);
2403
      result.read(iprot_);
2397
      iprot_.readMessageEnd();
2404
      iprot_.readMessageEnd();
2398
      if (result.isSetSuccess()) {
2405
      if (result.isSetSuccess()) {
2399
        return result.success;
2406
        return result.success;
2400
      }
2407
      }
2401
      if (result.scx != null) {
-
 
2402
        throw result.scx;
-
 
2403
      }
-
 
2404
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getMyResearch failed: unknown result");
2408
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getUserCount failed: unknown result");
2405
    }
2409
    }
2406
 
2410
 
2407
    public boolean updateMyResearch(long userId, long itemId) throws WidgetException, TException
2411
    public List<User> getAllUsers(UserType userType, long startDate, long endDate) throws TException
2408
    {
2412
    {
2409
      send_updateMyResearch(userId, itemId);
2413
      send_getAllUsers(userType, startDate, endDate);
2410
      return recv_updateMyResearch();
2414
      return recv_getAllUsers();
2411
    }
2415
    }
2412
 
2416
 
2413
    public void send_updateMyResearch(long userId, long itemId) throws TException
2417
    public void send_getAllUsers(UserType userType, long startDate, long endDate) throws TException
2414
    {
2418
    {
2415
      oprot_.writeMessageBegin(new TMessage("updateMyResearch", TMessageType.CALL, seqid_));
2419
      oprot_.writeMessageBegin(new TMessage("getAllUsers", TMessageType.CALL, seqid_));
2416
      updateMyResearch_args args = new updateMyResearch_args();
2420
      getAllUsers_args args = new getAllUsers_args();
2417
      args.userId = userId;
2421
      args.userType = userType;
-
 
2422
      args.startDate = startDate;
2418
      args.itemId = itemId;
2423
      args.endDate = endDate;
2419
      args.write(oprot_);
2424
      args.write(oprot_);
2420
      oprot_.writeMessageEnd();
2425
      oprot_.writeMessageEnd();
2421
      oprot_.getTransport().flush();
2426
      oprot_.getTransport().flush();
2422
    }
2427
    }
2423
 
2428
 
2424
    public boolean recv_updateMyResearch() throws WidgetException, TException
2429
    public List<User> recv_getAllUsers() throws TException
2425
    {
2430
    {
2426
      TMessage msg = iprot_.readMessageBegin();
2431
      TMessage msg = iprot_.readMessageBegin();
2427
      if (msg.type == TMessageType.EXCEPTION) {
2432
      if (msg.type == TMessageType.EXCEPTION) {
2428
        TApplicationException x = TApplicationException.read(iprot_);
2433
        TApplicationException x = TApplicationException.read(iprot_);
2429
        iprot_.readMessageEnd();
2434
        iprot_.readMessageEnd();
2430
        throw x;
2435
        throw x;
2431
      }
2436
      }
2432
      updateMyResearch_result result = new updateMyResearch_result();
2437
      getAllUsers_result result = new getAllUsers_result();
2433
      result.read(iprot_);
2438
      result.read(iprot_);
2434
      iprot_.readMessageEnd();
2439
      iprot_.readMessageEnd();
2435
      if (result.isSetSuccess()) {
2440
      if (result.isSetSuccess()) {
2436
        return result.success;
2441
        return result.success;
2437
      }
2442
      }
2438
      if (result.scx != null) {
-
 
2439
        throw result.scx;
-
 
2440
      }
-
 
2441
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "updateMyResearch failed: unknown result");
2443
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAllUsers failed: unknown result");
2442
    }
2444
    }
2443
 
2445
 
2444
    public void deleteItemFromMyResearch(long userId, long itemId) throws WidgetException, TException
2446
    public void putUserNote(long user_id, long entity_id, String slide, String note) throws TException
2445
    {
2447
    {
2446
      send_deleteItemFromMyResearch(userId, itemId);
2448
      send_putUserNote(user_id, entity_id, slide, note);
2447
      recv_deleteItemFromMyResearch();
2449
      recv_putUserNote();
2448
    }
2450
    }
2449
 
2451
 
2450
    public void send_deleteItemFromMyResearch(long userId, long itemId) throws TException
2452
    public void send_putUserNote(long user_id, long entity_id, String slide, String note) throws TException
2451
    {
2453
    {
2452
      oprot_.writeMessageBegin(new TMessage("deleteItemFromMyResearch", TMessageType.CALL, seqid_));
2454
      oprot_.writeMessageBegin(new TMessage("putUserNote", TMessageType.CALL, seqid_));
2453
      deleteItemFromMyResearch_args args = new deleteItemFromMyResearch_args();
2455
      putUserNote_args args = new putUserNote_args();
2454
      args.userId = userId;
2456
      args.user_id = user_id;
-
 
2457
      args.entity_id = entity_id;
-
 
2458
      args.slide = slide;
2455
      args.itemId = itemId;
2459
      args.note = note;
2456
      args.write(oprot_);
2460
      args.write(oprot_);
2457
      oprot_.writeMessageEnd();
2461
      oprot_.writeMessageEnd();
2458
      oprot_.getTransport().flush();
2462
      oprot_.getTransport().flush();
2459
    }
2463
    }
2460
 
2464
 
2461
    public void recv_deleteItemFromMyResearch() throws WidgetException, TException
2465
    public void recv_putUserNote() throws TException
2462
    {
2466
    {
2463
      TMessage msg = iprot_.readMessageBegin();
2467
      TMessage msg = iprot_.readMessageBegin();
2464
      if (msg.type == TMessageType.EXCEPTION) {
2468
      if (msg.type == TMessageType.EXCEPTION) {
2465
        TApplicationException x = TApplicationException.read(iprot_);
2469
        TApplicationException x = TApplicationException.read(iprot_);
2466
        iprot_.readMessageEnd();
2470
        iprot_.readMessageEnd();
2467
        throw x;
2471
        throw x;
2468
      }
2472
      }
2469
      deleteItemFromMyResearch_result result = new deleteItemFromMyResearch_result();
2473
      putUserNote_result result = new putUserNote_result();
2470
      result.read(iprot_);
2474
      result.read(iprot_);
2471
      iprot_.readMessageEnd();
2475
      iprot_.readMessageEnd();
2472
      if (result.scx != null) {
-
 
2473
        throw result.scx;
-
 
2474
      }
-
 
2475
      return;
2476
      return;
2476
    }
2477
    }
2477
 
2478
 
2478
    public void updateBrowseHistory(long userId, long itemId) throws TException
2479
    public List<UserNote> getUserNotes(long user_id, long entity_id) throws TException
2479
    {
2480
    {
2480
      send_updateBrowseHistory(userId, itemId);
2481
      send_getUserNotes(user_id, entity_id);
2481
      recv_updateBrowseHistory();
2482
      return recv_getUserNotes();
2482
    }
2483
    }
2483
 
2484
 
2484
    public void send_updateBrowseHistory(long userId, long itemId) throws TException
2485
    public void send_getUserNotes(long user_id, long entity_id) throws TException
2485
    {
2486
    {
2486
      oprot_.writeMessageBegin(new TMessage("updateBrowseHistory", TMessageType.CALL, seqid_));
2487
      oprot_.writeMessageBegin(new TMessage("getUserNotes", TMessageType.CALL, seqid_));
2487
      updateBrowseHistory_args args = new updateBrowseHistory_args();
2488
      getUserNotes_args args = new getUserNotes_args();
2488
      args.userId = userId;
2489
      args.user_id = user_id;
2489
      args.itemId = itemId;
2490
      args.entity_id = entity_id;
2490
      args.write(oprot_);
2491
      args.write(oprot_);
2491
      oprot_.writeMessageEnd();
2492
      oprot_.writeMessageEnd();
2492
      oprot_.getTransport().flush();
2493
      oprot_.getTransport().flush();
2493
    }
2494
    }
2494
 
2495
 
2495
    public void recv_updateBrowseHistory() throws TException
2496
    public List<UserNote> recv_getUserNotes() throws TException
2496
    {
2497
    {
2497
      TMessage msg = iprot_.readMessageBegin();
2498
      TMessage msg = iprot_.readMessageBegin();
2498
      if (msg.type == TMessageType.EXCEPTION) {
2499
      if (msg.type == TMessageType.EXCEPTION) {
2499
        TApplicationException x = TApplicationException.read(iprot_);
2500
        TApplicationException x = TApplicationException.read(iprot_);
2500
        iprot_.readMessageEnd();
2501
        iprot_.readMessageEnd();
2501
        throw x;
2502
        throw x;
2502
      }
2503
      }
2503
      updateBrowseHistory_result result = new updateBrowseHistory_result();
2504
      getUserNotes_result result = new getUserNotes_result();
2504
      result.read(iprot_);
2505
      result.read(iprot_);
2505
      iprot_.readMessageEnd();
2506
      iprot_.readMessageEnd();
-
 
2507
      if (result.isSetSuccess()) {
-
 
2508
        return result.success;
2506
      return;
2509
      }
-
 
2510
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getUserNotes failed: unknown result");
2507
    }
2511
    }
2508
 
2512
 
2509
    public Widget getBrowseHistory(long userId) throws WidgetException, TException
2513
    public List<Long> getMyResearchItems(long userId) throws WidgetException, TException
2510
    {
2514
    {
2511
      send_getBrowseHistory(userId);
2515
      send_getMyResearchItems(userId);
2512
      return recv_getBrowseHistory();
2516
      return recv_getMyResearchItems();
2513
    }
2517
    }
2514
 
2518
 
2515
    public void send_getBrowseHistory(long userId) throws TException
2519
    public void send_getMyResearchItems(long userId) throws TException
2516
    {
2520
    {
2517
      oprot_.writeMessageBegin(new TMessage("getBrowseHistory", TMessageType.CALL, seqid_));
2521
      oprot_.writeMessageBegin(new TMessage("getMyResearchItems", TMessageType.CALL, seqid_));
2518
      getBrowseHistory_args args = new getBrowseHistory_args();
2522
      getMyResearchItems_args args = new getMyResearchItems_args();
2519
      args.userId = userId;
2523
      args.userId = userId;
2520
      args.write(oprot_);
2524
      args.write(oprot_);
2521
      oprot_.writeMessageEnd();
2525
      oprot_.writeMessageEnd();
2522
      oprot_.getTransport().flush();
2526
      oprot_.getTransport().flush();
2523
    }
2527
    }
2524
 
2528
 
2525
    public Widget recv_getBrowseHistory() throws WidgetException, TException
2529
    public List<Long> recv_getMyResearchItems() throws WidgetException, TException
2526
    {
2530
    {
2527
      TMessage msg = iprot_.readMessageBegin();
2531
      TMessage msg = iprot_.readMessageBegin();
2528
      if (msg.type == TMessageType.EXCEPTION) {
2532
      if (msg.type == TMessageType.EXCEPTION) {
2529
        TApplicationException x = TApplicationException.read(iprot_);
2533
        TApplicationException x = TApplicationException.read(iprot_);
2530
        iprot_.readMessageEnd();
2534
        iprot_.readMessageEnd();
2531
        throw x;
2535
        throw x;
2532
      }
2536
      }
2533
      getBrowseHistory_result result = new getBrowseHistory_result();
2537
      getMyResearchItems_result result = new getMyResearchItems_result();
2534
      result.read(iprot_);
2538
      result.read(iprot_);
2535
      iprot_.readMessageEnd();
2539
      iprot_.readMessageEnd();
2536
      if (result.isSetSuccess()) {
2540
      if (result.isSetSuccess()) {
2537
        return result.success;
2541
        return result.success;
2538
      }
2542
      }
2539
      if (result.scx != null) {
2543
      if (result.scx != null) {
2540
        throw result.scx;
2544
        throw result.scx;
2541
      }
2545
      }
2542
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getBrowseHistory failed: unknown result");
2546
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getMyResearchItems failed: unknown result");
2543
    }
2547
    }
2544
 
2548
 
2545
    public void mergeBrowseHistory(long fromUserId, long toUserId) throws TException
2549
    public boolean updateMyResearch(long userId, long itemId) throws WidgetException, TException
2546
    {
2550
    {
2547
      send_mergeBrowseHistory(fromUserId, toUserId);
2551
      send_updateMyResearch(userId, itemId);
2548
      recv_mergeBrowseHistory();
2552
      return recv_updateMyResearch();
2549
    }
2553
    }
2550
 
2554
 
2551
    public void send_mergeBrowseHistory(long fromUserId, long toUserId) throws TException
2555
    public void send_updateMyResearch(long userId, long itemId) throws TException
2552
    {
2556
    {
2553
      oprot_.writeMessageBegin(new TMessage("mergeBrowseHistory", TMessageType.CALL, seqid_));
2557
      oprot_.writeMessageBegin(new TMessage("updateMyResearch", TMessageType.CALL, seqid_));
2554
      mergeBrowseHistory_args args = new mergeBrowseHistory_args();
2558
      updateMyResearch_args args = new updateMyResearch_args();
2555
      args.fromUserId = fromUserId;
2559
      args.userId = userId;
2556
      args.toUserId = toUserId;
2560
      args.itemId = itemId;
2557
      args.write(oprot_);
2561
      args.write(oprot_);
2558
      oprot_.writeMessageEnd();
2562
      oprot_.writeMessageEnd();
2559
      oprot_.getTransport().flush();
2563
      oprot_.getTransport().flush();
2560
    }
2564
    }
2561
 
2565
 
2562
    public void recv_mergeBrowseHistory() throws TException
2566
    public boolean recv_updateMyResearch() throws WidgetException, TException
2563
    {
2567
    {
2564
      TMessage msg = iprot_.readMessageBegin();
2568
      TMessage msg = iprot_.readMessageBegin();
2565
      if (msg.type == TMessageType.EXCEPTION) {
2569
      if (msg.type == TMessageType.EXCEPTION) {
2566
        TApplicationException x = TApplicationException.read(iprot_);
2570
        TApplicationException x = TApplicationException.read(iprot_);
2567
        iprot_.readMessageEnd();
2571
        iprot_.readMessageEnd();
2568
        throw x;
2572
        throw x;
2569
      }
2573
      }
2570
      mergeBrowseHistory_result result = new mergeBrowseHistory_result();
2574
      updateMyResearch_result result = new updateMyResearch_result();
2571
      result.read(iprot_);
2575
      result.read(iprot_);
2572
      iprot_.readMessageEnd();
2576
      iprot_.readMessageEnd();
-
 
2577
      if (result.isSetSuccess()) {
-
 
2578
        return result.success;
2573
      return;
2579
      }
-
 
2580
      if (result.scx != null) {
-
 
2581
        throw result.scx;
-
 
2582
      }
-
 
2583
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "updateMyResearch failed: unknown result");
2574
    }
2584
    }
2575
 
2585
 
2576
    public long getUserCount(UserType userType) throws TException
2586
    public void deleteItemFromMyResearch(long userId, long itemId) throws WidgetException, TException
2577
    {
2587
    {
2578
      send_getUserCount(userType);
2588
      send_deleteItemFromMyResearch(userId, itemId);
2579
      return recv_getUserCount();
2589
      recv_deleteItemFromMyResearch();
2580
    }
2590
    }
2581
 
2591
 
2582
    public void send_getUserCount(UserType userType) throws TException
2592
    public void send_deleteItemFromMyResearch(long userId, long itemId) throws TException
2583
    {
2593
    {
2584
      oprot_.writeMessageBegin(new TMessage("getUserCount", TMessageType.CALL, seqid_));
2594
      oprot_.writeMessageBegin(new TMessage("deleteItemFromMyResearch", TMessageType.CALL, seqid_));
2585
      getUserCount_args args = new getUserCount_args();
2595
      deleteItemFromMyResearch_args args = new deleteItemFromMyResearch_args();
2586
      args.userType = userType;
2596
      args.userId = userId;
-
 
2597
      args.itemId = itemId;
2587
      args.write(oprot_);
2598
      args.write(oprot_);
2588
      oprot_.writeMessageEnd();
2599
      oprot_.writeMessageEnd();
2589
      oprot_.getTransport().flush();
2600
      oprot_.getTransport().flush();
2590
    }
2601
    }
2591
 
2602
 
2592
    public long recv_getUserCount() throws TException
2603
    public void recv_deleteItemFromMyResearch() throws WidgetException, TException
2593
    {
2604
    {
2594
      TMessage msg = iprot_.readMessageBegin();
2605
      TMessage msg = iprot_.readMessageBegin();
2595
      if (msg.type == TMessageType.EXCEPTION) {
2606
      if (msg.type == TMessageType.EXCEPTION) {
2596
        TApplicationException x = TApplicationException.read(iprot_);
2607
        TApplicationException x = TApplicationException.read(iprot_);
2597
        iprot_.readMessageEnd();
2608
        iprot_.readMessageEnd();
2598
        throw x;
2609
        throw x;
2599
      }
2610
      }
2600
      getUserCount_result result = new getUserCount_result();
2611
      deleteItemFromMyResearch_result result = new deleteItemFromMyResearch_result();
2601
      result.read(iprot_);
2612
      result.read(iprot_);
2602
      iprot_.readMessageEnd();
2613
      iprot_.readMessageEnd();
2603
      if (result.isSetSuccess()) {
2614
      if (result.scx != null) {
2604
        return result.success;
2615
        throw result.scx;
2605
      }
2616
      }
2606
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getUserCount failed: unknown result");
2617
      return;
2607
    }
2618
    }
2608
 
2619
 
2609
    public List<User> getAllUsers(UserType userType, long startDate, long endDate) throws TException
2620
    public List<Long> getBrowseHistoryItems(long userId) throws WidgetException, TException
2610
    {
2621
    {
2611
      send_getAllUsers(userType, startDate, endDate);
2622
      send_getBrowseHistoryItems(userId);
2612
      return recv_getAllUsers();
2623
      return recv_getBrowseHistoryItems();
2613
    }
2624
    }
2614
 
2625
 
2615
    public void send_getAllUsers(UserType userType, long startDate, long endDate) throws TException
2626
    public void send_getBrowseHistoryItems(long userId) throws TException
2616
    {
2627
    {
2617
      oprot_.writeMessageBegin(new TMessage("getAllUsers", TMessageType.CALL, seqid_));
2628
      oprot_.writeMessageBegin(new TMessage("getBrowseHistoryItems", TMessageType.CALL, seqid_));
2618
      getAllUsers_args args = new getAllUsers_args();
2629
      getBrowseHistoryItems_args args = new getBrowseHistoryItems_args();
2619
      args.userType = userType;
2630
      args.userId = userId;
2620
      args.startDate = startDate;
-
 
2621
      args.endDate = endDate;
-
 
2622
      args.write(oprot_);
2631
      args.write(oprot_);
2623
      oprot_.writeMessageEnd();
2632
      oprot_.writeMessageEnd();
2624
      oprot_.getTransport().flush();
2633
      oprot_.getTransport().flush();
2625
    }
2634
    }
2626
 
2635
 
2627
    public List<User> recv_getAllUsers() throws TException
2636
    public List<Long> recv_getBrowseHistoryItems() throws WidgetException, TException
2628
    {
2637
    {
2629
      TMessage msg = iprot_.readMessageBegin();
2638
      TMessage msg = iprot_.readMessageBegin();
2630
      if (msg.type == TMessageType.EXCEPTION) {
2639
      if (msg.type == TMessageType.EXCEPTION) {
2631
        TApplicationException x = TApplicationException.read(iprot_);
2640
        TApplicationException x = TApplicationException.read(iprot_);
2632
        iprot_.readMessageEnd();
2641
        iprot_.readMessageEnd();
2633
        throw x;
2642
        throw x;
2634
      }
2643
      }
2635
      getAllUsers_result result = new getAllUsers_result();
2644
      getBrowseHistoryItems_result result = new getBrowseHistoryItems_result();
2636
      result.read(iprot_);
2645
      result.read(iprot_);
2637
      iprot_.readMessageEnd();
2646
      iprot_.readMessageEnd();
2638
      if (result.isSetSuccess()) {
2647
      if (result.isSetSuccess()) {
2639
        return result.success;
2648
        return result.success;
2640
      }
2649
      }
2641
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAllUsers failed: unknown result");
-
 
2642
    }
-
 
2643
 
-
 
2644
    public void putUserNote(long user_id, long entity_id, String slide, String note) throws TException
-
 
2645
    {
-
 
2646
      send_putUserNote(user_id, entity_id, slide, note);
-
 
2647
      recv_putUserNote();
-
 
2648
    }
-
 
2649
 
-
 
2650
    public void send_putUserNote(long user_id, long entity_id, String slide, String note) throws TException
-
 
2651
    {
-
 
2652
      oprot_.writeMessageBegin(new TMessage("putUserNote", TMessageType.CALL, seqid_));
-
 
2653
      putUserNote_args args = new putUserNote_args();
-
 
2654
      args.user_id = user_id;
-
 
2655
      args.entity_id = entity_id;
-
 
2656
      args.slide = slide;
2650
      if (result.scx != null) {
2657
      args.note = note;
-
 
2658
      args.write(oprot_);
-
 
2659
      oprot_.writeMessageEnd();
-
 
2660
      oprot_.getTransport().flush();
-
 
2661
    }
-
 
2662
 
-
 
2663
    public void recv_putUserNote() throws TException
-
 
2664
    {
-
 
2665
      TMessage msg = iprot_.readMessageBegin();
-
 
2666
      if (msg.type == TMessageType.EXCEPTION) {
-
 
2667
        TApplicationException x = TApplicationException.read(iprot_);
-
 
2668
        iprot_.readMessageEnd();
-
 
2669
        throw x;
2651
        throw result.scx;
2670
      }
2652
      }
2671
      putUserNote_result result = new putUserNote_result();
2653
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getBrowseHistoryItems failed: unknown result");
2672
      result.read(iprot_);
-
 
2673
      iprot_.readMessageEnd();
-
 
2674
      return;
-
 
2675
    }
2654
    }
2676
 
2655
 
2677
    public List<UserNote> getUserNotes(long user_id, long entity_id) throws TException
2656
    public void updateBrowseHistory(long userId, long itemId) throws TException
2678
    {
2657
    {
2679
      send_getUserNotes(user_id, entity_id);
2658
      send_updateBrowseHistory(userId, itemId);
2680
      return recv_getUserNotes();
2659
      recv_updateBrowseHistory();
2681
    }
2660
    }
2682
 
2661
 
2683
    public void send_getUserNotes(long user_id, long entity_id) throws TException
2662
    public void send_updateBrowseHistory(long userId, long itemId) throws TException
2684
    {
2663
    {
2685
      oprot_.writeMessageBegin(new TMessage("getUserNotes", TMessageType.CALL, seqid_));
2664
      oprot_.writeMessageBegin(new TMessage("updateBrowseHistory", TMessageType.CALL, seqid_));
2686
      getUserNotes_args args = new getUserNotes_args();
2665
      updateBrowseHistory_args args = new updateBrowseHistory_args();
2687
      args.user_id = user_id;
2666
      args.userId = userId;
2688
      args.entity_id = entity_id;
2667
      args.itemId = itemId;
2689
      args.write(oprot_);
2668
      args.write(oprot_);
2690
      oprot_.writeMessageEnd();
2669
      oprot_.writeMessageEnd();
2691
      oprot_.getTransport().flush();
2670
      oprot_.getTransport().flush();
2692
    }
2671
    }
2693
 
2672
 
2694
    public List<UserNote> recv_getUserNotes() throws TException
2673
    public void recv_updateBrowseHistory() throws TException
2695
    {
2674
    {
2696
      TMessage msg = iprot_.readMessageBegin();
2675
      TMessage msg = iprot_.readMessageBegin();
2697
      if (msg.type == TMessageType.EXCEPTION) {
2676
      if (msg.type == TMessageType.EXCEPTION) {
2698
        TApplicationException x = TApplicationException.read(iprot_);
2677
        TApplicationException x = TApplicationException.read(iprot_);
2699
        iprot_.readMessageEnd();
2678
        iprot_.readMessageEnd();
2700
        throw x;
2679
        throw x;
2701
      }
2680
      }
2702
      getUserNotes_result result = new getUserNotes_result();
2681
      updateBrowseHistory_result result = new updateBrowseHistory_result();
2703
      result.read(iprot_);
2682
      result.read(iprot_);
2704
      iprot_.readMessageEnd();
2683
      iprot_.readMessageEnd();
2705
      if (result.isSetSuccess()) {
-
 
2706
        return result.success;
-
 
2707
      }
2684
      return;
2708
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getUserNotes failed: unknown result");
-
 
2709
    }
2685
    }
2710
 
2686
 
2711
  }
2687
  }
2712
  public static class Processor implements TProcessor {
2688
  public static class Processor implements TProcessor {
2713
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
2689
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
Line 2770... Line 2746...
2770
      processMap_.put("createOrders", new createOrders());
2746
      processMap_.put("createOrders", new createOrders());
2771
      processMap_.put("validateCart", new validateCart());
2747
      processMap_.put("validateCart", new validateCart());
2772
      processMap_.put("mergeCart", new mergeCart());
2748
      processMap_.put("mergeCart", new mergeCart());
2773
      processMap_.put("checkOut", new checkOut());
2749
      processMap_.put("checkOut", new checkOut());
2774
      processMap_.put("resetCart", new resetCart());
2750
      processMap_.put("resetCart", new resetCart());
2775
      processMap_.put("getMyResearch", new getMyResearch());
-
 
2776
      processMap_.put("updateMyResearch", new updateMyResearch());
-
 
2777
      processMap_.put("deleteItemFromMyResearch", new deleteItemFromMyResearch());
-
 
2778
      processMap_.put("updateBrowseHistory", new updateBrowseHistory());
-
 
2779
      processMap_.put("getBrowseHistory", new getBrowseHistory());
-
 
2780
      processMap_.put("mergeBrowseHistory", new mergeBrowseHistory());
-
 
2781
      processMap_.put("getUserCount", new getUserCount());
2751
      processMap_.put("getUserCount", new getUserCount());
2782
      processMap_.put("getAllUsers", new getAllUsers());
2752
      processMap_.put("getAllUsers", new getAllUsers());
2783
      processMap_.put("putUserNote", new putUserNote());
2753
      processMap_.put("putUserNote", new putUserNote());
2784
      processMap_.put("getUserNotes", new getUserNotes());
2754
      processMap_.put("getUserNotes", new getUserNotes());
-
 
2755
      processMap_.put("getMyResearchItems", new getMyResearchItems());
-
 
2756
      processMap_.put("updateMyResearch", new updateMyResearch());
-
 
2757
      processMap_.put("deleteItemFromMyResearch", new deleteItemFromMyResearch());
-
 
2758
      processMap_.put("getBrowseHistoryItems", new getBrowseHistoryItems());
-
 
2759
      processMap_.put("updateBrowseHistory", new updateBrowseHistory());
2785
    }
2760
    }
2786
 
2761
 
2787
    protected static interface ProcessFunction {
2762
    protected static interface ProcessFunction {
2788
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException;
2763
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException;
2789
    }
2764
    }
Line 4423... Line 4398...
4423
        oprot.getTransport().flush();
4398
        oprot.getTransport().flush();
4424
      }
4399
      }
4425
 
4400
 
4426
    }
4401
    }
4427
 
4402
 
4428
    private class getMyResearch implements ProcessFunction {
4403
    private class getUserCount implements ProcessFunction {
4429
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
4404
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
4430
      {
4405
      {
4431
        getMyResearch_args args = new getMyResearch_args();
4406
        getUserCount_args args = new getUserCount_args();
4432
        args.read(iprot);
4407
        args.read(iprot);
4433
        iprot.readMessageEnd();
4408
        iprot.readMessageEnd();
4434
        getMyResearch_result result = new getMyResearch_result();
4409
        getUserCount_result result = new getUserCount_result();
4435
        try {
-
 
4436
          result.success = iface_.getMyResearch(args.userId);
4410
        result.success = iface_.getUserCount(args.userType);
4437
        } catch (WidgetException scx) {
-
 
4438
          result.scx = scx;
-
 
4439
        } catch (Throwable th) {
-
 
4440
          LOGGER.error("Internal error processing getMyResearch", th);
-
 
4441
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getMyResearch");
-
 
4442
          oprot.writeMessageBegin(new TMessage("getMyResearch", TMessageType.EXCEPTION, seqid));
-
 
4443
          x.write(oprot);
-
 
4444
          oprot.writeMessageEnd();
4411
        result.setSuccessIsSet(true);
4445
          oprot.getTransport().flush();
-
 
4446
          return;
-
 
4447
        }
-
 
4448
        oprot.writeMessageBegin(new TMessage("getMyResearch", TMessageType.REPLY, seqid));
4412
        oprot.writeMessageBegin(new TMessage("getUserCount", TMessageType.REPLY, seqid));
4449
        result.write(oprot);
4413
        result.write(oprot);
4450
        oprot.writeMessageEnd();
4414
        oprot.writeMessageEnd();
4451
        oprot.getTransport().flush();
4415
        oprot.getTransport().flush();
4452
      }
4416
      }
4453
 
4417
 
4454
    }
4418
    }
4455
 
4419
 
4456
    private class updateMyResearch implements ProcessFunction {
4420
    private class getAllUsers implements ProcessFunction {
4457
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
4421
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
4458
      {
4422
      {
4459
        updateMyResearch_args args = new updateMyResearch_args();
4423
        getAllUsers_args args = new getAllUsers_args();
4460
        args.read(iprot);
4424
        args.read(iprot);
4461
        iprot.readMessageEnd();
4425
        iprot.readMessageEnd();
4462
        updateMyResearch_result result = new updateMyResearch_result();
4426
        getAllUsers_result result = new getAllUsers_result();
4463
        try {
-
 
4464
          result.success = iface_.updateMyResearch(args.userId, args.itemId);
4427
        result.success = iface_.getAllUsers(args.userType, args.startDate, args.endDate);
4465
          result.setSuccessIsSet(true);
-
 
4466
        } catch (WidgetException scx) {
-
 
4467
          result.scx = scx;
-
 
4468
        } catch (Throwable th) {
-
 
4469
          LOGGER.error("Internal error processing updateMyResearch", th);
-
 
4470
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing updateMyResearch");
-
 
4471
          oprot.writeMessageBegin(new TMessage("updateMyResearch", TMessageType.EXCEPTION, seqid));
-
 
4472
          x.write(oprot);
-
 
4473
          oprot.writeMessageEnd();
-
 
4474
          oprot.getTransport().flush();
-
 
4475
          return;
-
 
4476
        }
-
 
4477
        oprot.writeMessageBegin(new TMessage("updateMyResearch", TMessageType.REPLY, seqid));
4428
        oprot.writeMessageBegin(new TMessage("getAllUsers", TMessageType.REPLY, seqid));
4478
        result.write(oprot);
4429
        result.write(oprot);
4479
        oprot.writeMessageEnd();
4430
        oprot.writeMessageEnd();
4480
        oprot.getTransport().flush();
4431
        oprot.getTransport().flush();
4481
      }
4432
      }
4482
 
4433
 
4483
    }
4434
    }
4484
 
4435
 
4485
    private class deleteItemFromMyResearch implements ProcessFunction {
4436
    private class putUserNote implements ProcessFunction {
4486
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
4437
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
4487
      {
4438
      {
4488
        deleteItemFromMyResearch_args args = new deleteItemFromMyResearch_args();
4439
        putUserNote_args args = new putUserNote_args();
4489
        args.read(iprot);
4440
        args.read(iprot);
4490
        iprot.readMessageEnd();
4441
        iprot.readMessageEnd();
4491
        deleteItemFromMyResearch_result result = new deleteItemFromMyResearch_result();
4442
        putUserNote_result result = new putUserNote_result();
4492
        try {
-
 
4493
          iface_.deleteItemFromMyResearch(args.userId, args.itemId);
4443
        iface_.putUserNote(args.user_id, args.entity_id, args.slide, args.note);
4494
        } catch (WidgetException scx) {
-
 
4495
          result.scx = scx;
-
 
4496
        } catch (Throwable th) {
-
 
4497
          LOGGER.error("Internal error processing deleteItemFromMyResearch", th);
-
 
4498
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing deleteItemFromMyResearch");
-
 
4499
          oprot.writeMessageBegin(new TMessage("deleteItemFromMyResearch", TMessageType.EXCEPTION, seqid));
-
 
4500
          x.write(oprot);
-
 
4501
          oprot.writeMessageEnd();
-
 
4502
          oprot.getTransport().flush();
-
 
4503
          return;
-
 
4504
        }
-
 
4505
        oprot.writeMessageBegin(new TMessage("deleteItemFromMyResearch", TMessageType.REPLY, seqid));
4444
        oprot.writeMessageBegin(new TMessage("putUserNote", TMessageType.REPLY, seqid));
4506
        result.write(oprot);
4445
        result.write(oprot);
4507
        oprot.writeMessageEnd();
4446
        oprot.writeMessageEnd();
4508
        oprot.getTransport().flush();
4447
        oprot.getTransport().flush();
4509
      }
4448
      }
4510
 
4449
 
4511
    }
4450
    }
4512
 
4451
 
4513
    private class updateBrowseHistory implements ProcessFunction {
4452
    private class getUserNotes implements ProcessFunction {
4514
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
4453
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
4515
      {
4454
      {
4516
        updateBrowseHistory_args args = new updateBrowseHistory_args();
4455
        getUserNotes_args args = new getUserNotes_args();
4517
        args.read(iprot);
4456
        args.read(iprot);
4518
        iprot.readMessageEnd();
4457
        iprot.readMessageEnd();
4519
        updateBrowseHistory_result result = new updateBrowseHistory_result();
4458
        getUserNotes_result result = new getUserNotes_result();
4520
        iface_.updateBrowseHistory(args.userId, args.itemId);
4459
        result.success = iface_.getUserNotes(args.user_id, args.entity_id);
4521
        oprot.writeMessageBegin(new TMessage("updateBrowseHistory", TMessageType.REPLY, seqid));
4460
        oprot.writeMessageBegin(new TMessage("getUserNotes", TMessageType.REPLY, seqid));
4522
        result.write(oprot);
4461
        result.write(oprot);
4523
        oprot.writeMessageEnd();
4462
        oprot.writeMessageEnd();
4524
        oprot.getTransport().flush();
4463
        oprot.getTransport().flush();
4525
      }
4464
      }
4526
 
4465
 
4527
    }
4466
    }
4528
 
4467
 
4529
    private class getBrowseHistory implements ProcessFunction {
4468
    private class getMyResearchItems implements ProcessFunction {
4530
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
4469
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
4531
      {
4470
      {
4532
        getBrowseHistory_args args = new getBrowseHistory_args();
4471
        getMyResearchItems_args args = new getMyResearchItems_args();
4533
        args.read(iprot);
4472
        args.read(iprot);
4534
        iprot.readMessageEnd();
4473
        iprot.readMessageEnd();
4535
        getBrowseHistory_result result = new getBrowseHistory_result();
4474
        getMyResearchItems_result result = new getMyResearchItems_result();
4536
        try {
4475
        try {
4537
          result.success = iface_.getBrowseHistory(args.userId);
4476
          result.success = iface_.getMyResearchItems(args.userId);
4538
        } catch (WidgetException scx) {
4477
        } catch (WidgetException scx) {
4539
          result.scx = scx;
4478
          result.scx = scx;
4540
        } catch (Throwable th) {
4479
        } catch (Throwable th) {
4541
          LOGGER.error("Internal error processing getBrowseHistory", th);
4480
          LOGGER.error("Internal error processing getMyResearchItems", th);
4542
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getBrowseHistory");
4481
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getMyResearchItems");
4543
          oprot.writeMessageBegin(new TMessage("getBrowseHistory", TMessageType.EXCEPTION, seqid));
4482
          oprot.writeMessageBegin(new TMessage("getMyResearchItems", TMessageType.EXCEPTION, seqid));
4544
          x.write(oprot);
4483
          x.write(oprot);
4545
          oprot.writeMessageEnd();
4484
          oprot.writeMessageEnd();
4546
          oprot.getTransport().flush();
4485
          oprot.getTransport().flush();
4547
          return;
4486
          return;
4548
        }
4487
        }
4549
        oprot.writeMessageBegin(new TMessage("getBrowseHistory", TMessageType.REPLY, seqid));
4488
        oprot.writeMessageBegin(new TMessage("getMyResearchItems", TMessageType.REPLY, seqid));
4550
        result.write(oprot);
-
 
4551
        oprot.writeMessageEnd();
-
 
4552
        oprot.getTransport().flush();
-
 
4553
      }
-
 
4554
 
-
 
4555
    }
-
 
4556
 
-
 
4557
    private class mergeBrowseHistory implements ProcessFunction {
-
 
4558
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
4559
      {
-
 
4560
        mergeBrowseHistory_args args = new mergeBrowseHistory_args();
-
 
4561
        args.read(iprot);
-
 
4562
        iprot.readMessageEnd();
-
 
4563
        mergeBrowseHistory_result result = new mergeBrowseHistory_result();
-
 
4564
        iface_.mergeBrowseHistory(args.fromUserId, args.toUserId);
-
 
4565
        oprot.writeMessageBegin(new TMessage("mergeBrowseHistory", TMessageType.REPLY, seqid));
-
 
4566
        result.write(oprot);
4489
        result.write(oprot);
4567
        oprot.writeMessageEnd();
4490
        oprot.writeMessageEnd();
4568
        oprot.getTransport().flush();
4491
        oprot.getTransport().flush();
4569
      }
4492
      }
4570
 
4493
 
4571
    }
4494
    }
4572
 
4495
 
4573
    private class getUserCount implements ProcessFunction {
4496
    private class updateMyResearch implements ProcessFunction {
4574
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
4497
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
4575
      {
4498
      {
4576
        getUserCount_args args = new getUserCount_args();
4499
        updateMyResearch_args args = new updateMyResearch_args();
4577
        args.read(iprot);
4500
        args.read(iprot);
4578
        iprot.readMessageEnd();
4501
        iprot.readMessageEnd();
4579
        getUserCount_result result = new getUserCount_result();
4502
        updateMyResearch_result result = new updateMyResearch_result();
-
 
4503
        try {
4580
        result.success = iface_.getUserCount(args.userType);
4504
          result.success = iface_.updateMyResearch(args.userId, args.itemId);
4581
        result.setSuccessIsSet(true);
4505
          result.setSuccessIsSet(true);
-
 
4506
        } catch (WidgetException scx) {
-
 
4507
          result.scx = scx;
-
 
4508
        } catch (Throwable th) {
-
 
4509
          LOGGER.error("Internal error processing updateMyResearch", th);
-
 
4510
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing updateMyResearch");
-
 
4511
          oprot.writeMessageBegin(new TMessage("updateMyResearch", TMessageType.EXCEPTION, seqid));
-
 
4512
          x.write(oprot);
-
 
4513
          oprot.writeMessageEnd();
-
 
4514
          oprot.getTransport().flush();
-
 
4515
          return;
-
 
4516
        }
4582
        oprot.writeMessageBegin(new TMessage("getUserCount", TMessageType.REPLY, seqid));
4517
        oprot.writeMessageBegin(new TMessage("updateMyResearch", TMessageType.REPLY, seqid));
4583
        result.write(oprot);
4518
        result.write(oprot);
4584
        oprot.writeMessageEnd();
4519
        oprot.writeMessageEnd();
4585
        oprot.getTransport().flush();
4520
        oprot.getTransport().flush();
4586
      }
4521
      }
4587
 
4522
 
4588
    }
4523
    }
4589
 
4524
 
4590
    private class getAllUsers implements ProcessFunction {
4525
    private class deleteItemFromMyResearch implements ProcessFunction {
4591
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
4526
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
4592
      {
4527
      {
4593
        getAllUsers_args args = new getAllUsers_args();
4528
        deleteItemFromMyResearch_args args = new deleteItemFromMyResearch_args();
4594
        args.read(iprot);
4529
        args.read(iprot);
4595
        iprot.readMessageEnd();
4530
        iprot.readMessageEnd();
4596
        getAllUsers_result result = new getAllUsers_result();
4531
        deleteItemFromMyResearch_result result = new deleteItemFromMyResearch_result();
-
 
4532
        try {
4597
        result.success = iface_.getAllUsers(args.userType, args.startDate, args.endDate);
4533
          iface_.deleteItemFromMyResearch(args.userId, args.itemId);
-
 
4534
        } catch (WidgetException scx) {
-
 
4535
          result.scx = scx;
-
 
4536
        } catch (Throwable th) {
-
 
4537
          LOGGER.error("Internal error processing deleteItemFromMyResearch", th);
-
 
4538
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing deleteItemFromMyResearch");
-
 
4539
          oprot.writeMessageBegin(new TMessage("deleteItemFromMyResearch", TMessageType.EXCEPTION, seqid));
-
 
4540
          x.write(oprot);
-
 
4541
          oprot.writeMessageEnd();
-
 
4542
          oprot.getTransport().flush();
-
 
4543
          return;
-
 
4544
        }
4598
        oprot.writeMessageBegin(new TMessage("getAllUsers", TMessageType.REPLY, seqid));
4545
        oprot.writeMessageBegin(new TMessage("deleteItemFromMyResearch", TMessageType.REPLY, seqid));
4599
        result.write(oprot);
4546
        result.write(oprot);
4600
        oprot.writeMessageEnd();
4547
        oprot.writeMessageEnd();
4601
        oprot.getTransport().flush();
4548
        oprot.getTransport().flush();
4602
      }
4549
      }
4603
 
4550
 
4604
    }
4551
    }
4605
 
4552
 
4606
    private class putUserNote implements ProcessFunction {
4553
    private class getBrowseHistoryItems implements ProcessFunction {
4607
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
4554
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
4608
      {
4555
      {
4609
        putUserNote_args args = new putUserNote_args();
4556
        getBrowseHistoryItems_args args = new getBrowseHistoryItems_args();
4610
        args.read(iprot);
4557
        args.read(iprot);
4611
        iprot.readMessageEnd();
4558
        iprot.readMessageEnd();
4612
        putUserNote_result result = new putUserNote_result();
4559
        getBrowseHistoryItems_result result = new getBrowseHistoryItems_result();
-
 
4560
        try {
-
 
4561
          result.success = iface_.getBrowseHistoryItems(args.userId);
-
 
4562
        } catch (WidgetException scx) {
-
 
4563
          result.scx = scx;
-
 
4564
        } catch (Throwable th) {
4613
        iface_.putUserNote(args.user_id, args.entity_id, args.slide, args.note);
4565
          LOGGER.error("Internal error processing getBrowseHistoryItems", th);
-
 
4566
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getBrowseHistoryItems");
-
 
4567
          oprot.writeMessageBegin(new TMessage("getBrowseHistoryItems", TMessageType.EXCEPTION, seqid));
-
 
4568
          x.write(oprot);
-
 
4569
          oprot.writeMessageEnd();
-
 
4570
          oprot.getTransport().flush();
-
 
4571
          return;
-
 
4572
        }
4614
        oprot.writeMessageBegin(new TMessage("putUserNote", TMessageType.REPLY, seqid));
4573
        oprot.writeMessageBegin(new TMessage("getBrowseHistoryItems", TMessageType.REPLY, seqid));
4615
        result.write(oprot);
4574
        result.write(oprot);
4616
        oprot.writeMessageEnd();
4575
        oprot.writeMessageEnd();
4617
        oprot.getTransport().flush();
4576
        oprot.getTransport().flush();
4618
      }
4577
      }
4619
 
4578
 
4620
    }
4579
    }
4621
 
4580
 
4622
    private class getUserNotes implements ProcessFunction {
4581
    private class updateBrowseHistory implements ProcessFunction {
4623
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
4582
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
4624
      {
4583
      {
4625
        getUserNotes_args args = new getUserNotes_args();
4584
        updateBrowseHistory_args args = new updateBrowseHistory_args();
4626
        args.read(iprot);
4585
        args.read(iprot);
4627
        iprot.readMessageEnd();
4586
        iprot.readMessageEnd();
4628
        getUserNotes_result result = new getUserNotes_result();
4587
        updateBrowseHistory_result result = new updateBrowseHistory_result();
4629
        result.success = iface_.getUserNotes(args.user_id, args.entity_id);
4588
        iface_.updateBrowseHistory(args.userId, args.itemId);
4630
        oprot.writeMessageBegin(new TMessage("getUserNotes", TMessageType.REPLY, seqid));
4589
        oprot.writeMessageBegin(new TMessage("updateBrowseHistory", TMessageType.REPLY, seqid));
4631
        result.write(oprot);
4590
        result.write(oprot);
4632
        oprot.writeMessageEnd();
4591
        oprot.writeMessageEnd();
4633
        oprot.getTransport().flush();
4592
        oprot.getTransport().flush();
4634
      }
4593
      }
4635
 
4594
 
Line 16716... Line 16675...
16716
        } else {
16675
        } else {
16717
          switch (fieldId) {
16676
          switch (fieldId) {
16718
            case SUCCESS:
16677
            case SUCCESS:
16719
              if (field.type == TType.LIST) {
16678
              if (field.type == TType.LIST) {
16720
                {
16679
                {
16721
                  TList _list20 = iprot.readListBegin();
16680
                  TList _list16 = iprot.readListBegin();
16722
                  this.success = new ArrayList<Address>(_list20.size);
16681
                  this.success = new ArrayList<Address>(_list16.size);
16723
                  for (int _i21 = 0; _i21 < _list20.size; ++_i21)
16682
                  for (int _i17 = 0; _i17 < _list16.size; ++_i17)
16724
                  {
16683
                  {
16725
                    Address _elem22;
16684
                    Address _elem18;
16726
                    _elem22 = new Address();
16685
                    _elem18 = new Address();
16727
                    _elem22.read(iprot);
16686
                    _elem18.read(iprot);
16728
                    this.success.add(_elem22);
16687
                    this.success.add(_elem18);
16729
                  }
16688
                  }
16730
                  iprot.readListEnd();
16689
                  iprot.readListEnd();
16731
                }
16690
                }
16732
              } else { 
16691
              } else { 
16733
                TProtocolUtil.skip(iprot, field.type);
16692
                TProtocolUtil.skip(iprot, field.type);
Line 16754... Line 16713...
16754
 
16713
 
16755
      if (this.isSetSuccess()) {
16714
      if (this.isSetSuccess()) {
16756
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16715
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16757
        {
16716
        {
16758
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
16717
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
16759
          for (Address _iter23 : this.success)
16718
          for (Address _iter19 : this.success)
16760
          {
16719
          {
16761
            _iter23.write(oprot);
16720
            _iter19.write(oprot);
16762
          }
16721
          }
16763
          oprot.writeListEnd();
16722
          oprot.writeListEnd();
16764
        }
16723
        }
16765
        oprot.writeFieldEnd();
16724
        oprot.writeFieldEnd();
16766
      } else if (this.isSetUcx()) {
16725
      } else if (this.isSetUcx()) {
Line 21182... Line 21141...
21182
        } else {
21141
        } else {
21183
          switch (fieldId) {
21142
          switch (fieldId) {
21184
            case SUCCESS:
21143
            case SUCCESS:
21185
              if (field.type == TType.LIST) {
21144
              if (field.type == TType.LIST) {
21186
                {
21145
                {
21187
                  TList _list24 = iprot.readListBegin();
21146
                  TList _list20 = iprot.readListBegin();
21188
                  this.success = new ArrayList<UserCommunication>(_list24.size);
21147
                  this.success = new ArrayList<UserCommunication>(_list20.size);
21189
                  for (int _i25 = 0; _i25 < _list24.size; ++_i25)
21148
                  for (int _i21 = 0; _i21 < _list20.size; ++_i21)
21190
                  {
21149
                  {
21191
                    UserCommunication _elem26;
21150
                    UserCommunication _elem22;
21192
                    _elem26 = new UserCommunication();
21151
                    _elem22 = new UserCommunication();
21193
                    _elem26.read(iprot);
21152
                    _elem22.read(iprot);
21194
                    this.success.add(_elem26);
21153
                    this.success.add(_elem22);
21195
                  }
21154
                  }
21196
                  iprot.readListEnd();
21155
                  iprot.readListEnd();
21197
                }
21156
                }
21198
              } else { 
21157
              } else { 
21199
                TProtocolUtil.skip(iprot, field.type);
21158
                TProtocolUtil.skip(iprot, field.type);
Line 21220... Line 21179...
21220
 
21179
 
21221
      if (this.isSetSuccess()) {
21180
      if (this.isSetSuccess()) {
21222
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21181
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21223
        {
21182
        {
21224
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
21183
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
21225
          for (UserCommunication _iter27 : this.success)
21184
          for (UserCommunication _iter23 : this.success)
21226
          {
21185
          {
21227
            _iter27.write(oprot);
21186
            _iter23.write(oprot);
21228
          }
21187
          }
21229
          oprot.writeListEnd();
21188
          oprot.writeListEnd();
21230
        }
21189
        }
21231
        oprot.writeFieldEnd();
21190
        oprot.writeFieldEnd();
21232
      } else if (this.isSetUcx()) {
21191
      } else if (this.isSetUcx()) {
Line 21775... Line 21734...
21775
        } else {
21734
        } else {
21776
          switch (fieldId) {
21735
          switch (fieldId) {
21777
            case SUCCESS:
21736
            case SUCCESS:
21778
              if (field.type == TType.LIST) {
21737
              if (field.type == TType.LIST) {
21779
                {
21738
                {
21780
                  TList _list28 = iprot.readListBegin();
21739
                  TList _list24 = iprot.readListBegin();
21781
                  this.success = new ArrayList<UserCommunication>(_list28.size);
21740
                  this.success = new ArrayList<UserCommunication>(_list24.size);
21782
                  for (int _i29 = 0; _i29 < _list28.size; ++_i29)
21741
                  for (int _i25 = 0; _i25 < _list24.size; ++_i25)
21783
                  {
21742
                  {
21784
                    UserCommunication _elem30;
21743
                    UserCommunication _elem26;
21785
                    _elem30 = new UserCommunication();
21744
                    _elem26 = new UserCommunication();
21786
                    _elem30.read(iprot);
21745
                    _elem26.read(iprot);
21787
                    this.success.add(_elem30);
21746
                    this.success.add(_elem26);
21788
                  }
21747
                  }
21789
                  iprot.readListEnd();
21748
                  iprot.readListEnd();
21790
                }
21749
                }
21791
              } else { 
21750
              } else { 
21792
                TProtocolUtil.skip(iprot, field.type);
21751
                TProtocolUtil.skip(iprot, field.type);
Line 21813... Line 21772...
21813
 
21772
 
21814
      if (this.isSetSuccess()) {
21773
      if (this.isSetSuccess()) {
21815
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21774
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21816
        {
21775
        {
21817
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
21776
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
21818
          for (UserCommunication _iter31 : this.success)
21777
          for (UserCommunication _iter27 : this.success)
21819
          {
21778
          {
21820
            _iter31.write(oprot);
21779
            _iter27.write(oprot);
21821
          }
21780
          }
21822
          oprot.writeListEnd();
21781
          oprot.writeListEnd();
21823
        }
21782
        }
21824
        oprot.writeFieldEnd();
21783
        oprot.writeFieldEnd();
21825
      } else if (this.isSetUcx()) {
21784
      } else if (this.isSetUcx()) {
Line 23095... Line 23054...
23095
        } else {
23054
        } else {
23096
          switch (fieldId) {
23055
          switch (fieldId) {
23097
            case SUCCESS:
23056
            case SUCCESS:
23098
              if (field.type == TType.LIST) {
23057
              if (field.type == TType.LIST) {
23099
                {
23058
                {
23100
                  TList _list32 = iprot.readListBegin();
23059
                  TList _list28 = iprot.readListBegin();
23101
                  this.success = new ArrayList<MasterAffiliate>(_list32.size);
23060
                  this.success = new ArrayList<MasterAffiliate>(_list28.size);
23102
                  for (int _i33 = 0; _i33 < _list32.size; ++_i33)
23061
                  for (int _i29 = 0; _i29 < _list28.size; ++_i29)
23103
                  {
23062
                  {
23104
                    MasterAffiliate _elem34;
23063
                    MasterAffiliate _elem30;
23105
                    _elem34 = new MasterAffiliate();
23064
                    _elem30 = new MasterAffiliate();
23106
                    _elem34.read(iprot);
23065
                    _elem30.read(iprot);
23107
                    this.success.add(_elem34);
23066
                    this.success.add(_elem30);
23108
                  }
23067
                  }
23109
                  iprot.readListEnd();
23068
                  iprot.readListEnd();
23110
                }
23069
                }
23111
              } else { 
23070
              } else { 
23112
                TProtocolUtil.skip(iprot, field.type);
23071
                TProtocolUtil.skip(iprot, field.type);
Line 23133... Line 23092...
23133
 
23092
 
23134
      if (this.isSetSuccess()) {
23093
      if (this.isSetSuccess()) {
23135
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23094
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23136
        {
23095
        {
23137
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
23096
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
23138
          for (MasterAffiliate _iter35 : this.success)
23097
          for (MasterAffiliate _iter31 : this.success)
23139
          {
23098
          {
23140
            _iter35.write(oprot);
23099
            _iter31.write(oprot);
23141
          }
23100
          }
23142
          oprot.writeListEnd();
23101
          oprot.writeListEnd();
23143
        }
23102
        }
23144
        oprot.writeFieldEnd();
23103
        oprot.writeFieldEnd();
23145
      } else if (this.isSetUtx()) {
23104
      } else if (this.isSetUtx()) {
Line 27885... Line 27844...
27885
        } else {
27844
        } else {
27886
          switch (fieldId) {
27845
          switch (fieldId) {
27887
            case SUCCESS:
27846
            case SUCCESS:
27888
              if (field.type == TType.LIST) {
27847
              if (field.type == TType.LIST) {
27889
                {
27848
                {
27890
                  TList _list36 = iprot.readListBegin();
27849
                  TList _list32 = iprot.readListBegin();
27891
                  this.success = new ArrayList<Affiliate>(_list36.size);
27850
                  this.success = new ArrayList<Affiliate>(_list32.size);
27892
                  for (int _i37 = 0; _i37 < _list36.size; ++_i37)
27851
                  for (int _i33 = 0; _i33 < _list32.size; ++_i33)
27893
                  {
27852
                  {
27894
                    Affiliate _elem38;
27853
                    Affiliate _elem34;
27895
                    _elem38 = new Affiliate();
27854
                    _elem34 = new Affiliate();
27896
                    _elem38.read(iprot);
27855
                    _elem34.read(iprot);
27897
                    this.success.add(_elem38);
27856
                    this.success.add(_elem34);
27898
                  }
27857
                  }
27899
                  iprot.readListEnd();
27858
                  iprot.readListEnd();
27900
                }
27859
                }
27901
              } else { 
27860
              } else { 
27902
                TProtocolUtil.skip(iprot, field.type);
27861
                TProtocolUtil.skip(iprot, field.type);
Line 27923... Line 27882...
27923
 
27882
 
27924
      if (this.isSetSuccess()) {
27883
      if (this.isSetSuccess()) {
27925
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
27884
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
27926
        {
27885
        {
27927
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
27886
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
27928
          for (Affiliate _iter39 : this.success)
27887
          for (Affiliate _iter35 : this.success)
27929
          {
27888
          {
27930
            _iter39.write(oprot);
27889
            _iter35.write(oprot);
27931
          }
27890
          }
27932
          oprot.writeListEnd();
27891
          oprot.writeListEnd();
27933
        }
27892
        }
27934
        oprot.writeFieldEnd();
27893
        oprot.writeFieldEnd();
27935
      } else if (this.isSetUtx()) {
27894
      } else if (this.isSetUtx()) {
Line 30257... Line 30216...
30257
        } else {
30216
        } else {
30258
          switch (fieldId) {
30217
          switch (fieldId) {
30259
            case SUCCESS:
30218
            case SUCCESS:
30260
              if (field.type == TType.LIST) {
30219
              if (field.type == TType.LIST) {
30261
                {
30220
                {
30262
                  TList _list40 = iprot.readListBegin();
30221
                  TList _list36 = iprot.readListBegin();
30263
                  this.success = new ArrayList<TrackLog>(_list40.size);
30222
                  this.success = new ArrayList<TrackLog>(_list36.size);
30264
                  for (int _i41 = 0; _i41 < _list40.size; ++_i41)
30223
                  for (int _i37 = 0; _i37 < _list36.size; ++_i37)
30265
                  {
30224
                  {
30266
                    TrackLog _elem42;
30225
                    TrackLog _elem38;
30267
                    _elem42 = new TrackLog();
30226
                    _elem38 = new TrackLog();
30268
                    _elem42.read(iprot);
30227
                    _elem38.read(iprot);
30269
                    this.success.add(_elem42);
30228
                    this.success.add(_elem38);
30270
                  }
30229
                  }
30271
                  iprot.readListEnd();
30230
                  iprot.readListEnd();
30272
                }
30231
                }
30273
              } else { 
30232
              } else { 
30274
                TProtocolUtil.skip(iprot, field.type);
30233
                TProtocolUtil.skip(iprot, field.type);
Line 30295... Line 30254...
30295
 
30254
 
30296
      if (this.isSetSuccess()) {
30255
      if (this.isSetSuccess()) {
30297
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
30256
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
30298
        {
30257
        {
30299
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
30258
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
30300
          for (TrackLog _iter43 : this.success)
30259
          for (TrackLog _iter39 : this.success)
30301
          {
30260
          {
30302
            _iter43.write(oprot);
30261
            _iter39.write(oprot);
30303
          }
30262
          }
30304
          oprot.writeListEnd();
30263
          oprot.writeListEnd();
30305
        }
30264
        }
30306
        oprot.writeFieldEnd();
30265
        oprot.writeFieldEnd();
30307
      } else if (this.isSetUtx()) {
30266
      } else if (this.isSetUtx()) {
Line 30937... Line 30896...
30937
        } else {
30896
        } else {
30938
          switch (fieldId) {
30897
          switch (fieldId) {
30939
            case SUCCESS:
30898
            case SUCCESS:
30940
              if (field.type == TType.LIST) {
30899
              if (field.type == TType.LIST) {
30941
                {
30900
                {
30942
                  TList _list44 = iprot.readListBegin();
30901
                  TList _list40 = iprot.readListBegin();
30943
                  this.success = new ArrayList<TrackLog>(_list44.size);
30902
                  this.success = new ArrayList<TrackLog>(_list40.size);
30944
                  for (int _i45 = 0; _i45 < _list44.size; ++_i45)
30903
                  for (int _i41 = 0; _i41 < _list40.size; ++_i41)
30945
                  {
30904
                  {
30946
                    TrackLog _elem46;
30905
                    TrackLog _elem42;
30947
                    _elem46 = new TrackLog();
30906
                    _elem42 = new TrackLog();
30948
                    _elem46.read(iprot);
30907
                    _elem42.read(iprot);
30949
                    this.success.add(_elem46);
30908
                    this.success.add(_elem42);
30950
                  }
30909
                  }
30951
                  iprot.readListEnd();
30910
                  iprot.readListEnd();
30952
                }
30911
                }
30953
              } else { 
30912
              } else { 
30954
                TProtocolUtil.skip(iprot, field.type);
30913
                TProtocolUtil.skip(iprot, field.type);
Line 30975... Line 30934...
30975
 
30934
 
30976
      if (this.isSetSuccess()) {
30935
      if (this.isSetSuccess()) {
30977
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
30936
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
30978
        {
30937
        {
30979
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
30938
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
30980
          for (TrackLog _iter47 : this.success)
30939
          for (TrackLog _iter43 : this.success)
30981
          {
30940
          {
30982
            _iter47.write(oprot);
30941
            _iter43.write(oprot);
30983
          }
30942
          }
30984
          oprot.writeListEnd();
30943
          oprot.writeListEnd();
30985
        }
30944
        }
30986
        oprot.writeFieldEnd();
30945
        oprot.writeFieldEnd();
30987
      } else if (this.isSetUtx()) {
30946
      } else if (this.isSetUtx()) {
Line 31785... Line 31744...
31785
        } else {
31744
        } else {
31786
          switch (fieldId) {
31745
          switch (fieldId) {
31787
            case SUCCESS:
31746
            case SUCCESS:
31788
              if (field.type == TType.LIST) {
31747
              if (field.type == TType.LIST) {
31789
                {
31748
                {
31790
                  TList _list48 = iprot.readListBegin();
31749
                  TList _list44 = iprot.readListBegin();
31791
                  this.success = new ArrayList<TrackLog>(_list48.size);
31750
                  this.success = new ArrayList<TrackLog>(_list44.size);
31792
                  for (int _i49 = 0; _i49 < _list48.size; ++_i49)
31751
                  for (int _i45 = 0; _i45 < _list44.size; ++_i45)
31793
                  {
31752
                  {
31794
                    TrackLog _elem50;
31753
                    TrackLog _elem46;
31795
                    _elem50 = new TrackLog();
31754
                    _elem46 = new TrackLog();
31796
                    _elem50.read(iprot);
31755
                    _elem46.read(iprot);
31797
                    this.success.add(_elem50);
31756
                    this.success.add(_elem46);
31798
                  }
31757
                  }
31799
                  iprot.readListEnd();
31758
                  iprot.readListEnd();
31800
                }
31759
                }
31801
              } else { 
31760
              } else { 
31802
                TProtocolUtil.skip(iprot, field.type);
31761
                TProtocolUtil.skip(iprot, field.type);
Line 31823... Line 31782...
31823
 
31782
 
31824
      if (this.isSetSuccess()) {
31783
      if (this.isSetSuccess()) {
31825
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
31784
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
31826
        {
31785
        {
31827
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
31786
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
31828
          for (TrackLog _iter51 : this.success)
31787
          for (TrackLog _iter47 : this.success)
31829
          {
31788
          {
31830
            _iter51.write(oprot);
31789
            _iter47.write(oprot);
31831
          }
31790
          }
31832
          oprot.writeListEnd();
31791
          oprot.writeListEnd();
31833
        }
31792
        }
31834
        oprot.writeFieldEnd();
31793
        oprot.writeFieldEnd();
31835
      } else if (this.isSetUtx()) {
31794
      } else if (this.isSetUtx()) {
Line 34496... Line 34455...
34496
        } else {
34455
        } else {
34497
          switch (fieldId) {
34456
          switch (fieldId) {
34498
            case SUCCESS:
34457
            case SUCCESS:
34499
              if (field.type == TType.LIST) {
34458
              if (field.type == TType.LIST) {
34500
                {
34459
                {
34501
                  TList _list52 = iprot.readListBegin();
34460
                  TList _list48 = iprot.readListBegin();
34502
                  this.success = new ArrayList<Cart>(_list52.size);
34461
                  this.success = new ArrayList<Cart>(_list48.size);
34503
                  for (int _i53 = 0; _i53 < _list52.size; ++_i53)
34462
                  for (int _i49 = 0; _i49 < _list48.size; ++_i49)
34504
                  {
34463
                  {
34505
                    Cart _elem54;
34464
                    Cart _elem50;
34506
                    _elem54 = new Cart();
34465
                    _elem50 = new Cart();
34507
                    _elem54.read(iprot);
34466
                    _elem50.read(iprot);
34508
                    this.success.add(_elem54);
34467
                    this.success.add(_elem50);
34509
                  }
34468
                  }
34510
                  iprot.readListEnd();
34469
                  iprot.readListEnd();
34511
                }
34470
                }
34512
              } else { 
34471
              } else { 
34513
                TProtocolUtil.skip(iprot, field.type);
34472
                TProtocolUtil.skip(iprot, field.type);
Line 34534... Line 34493...
34534
 
34493
 
34535
      if (this.isSetSuccess()) {
34494
      if (this.isSetSuccess()) {
34536
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
34495
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
34537
        {
34496
        {
34538
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
34497
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
34539
          for (Cart _iter55 : this.success)
34498
          for (Cart _iter51 : this.success)
34540
          {
34499
          {
34541
            _iter55.write(oprot);
34500
            _iter51.write(oprot);
34542
          }
34501
          }
34543
          oprot.writeListEnd();
34502
          oprot.writeListEnd();
34544
        }
34503
        }
34545
        oprot.writeFieldEnd();
34504
        oprot.writeFieldEnd();
34546
      } else if (this.isSetScx()) {
34505
      } else if (this.isSetScx()) {
Line 35199... Line 35158...
35199
        } else {
35158
        } else {
35200
          switch (fieldId) {
35159
          switch (fieldId) {
35201
            case SUCCESS:
35160
            case SUCCESS:
35202
              if (field.type == TType.LIST) {
35161
              if (field.type == TType.LIST) {
35203
                {
35162
                {
35204
                  TList _list56 = iprot.readListBegin();
35163
                  TList _list52 = iprot.readListBegin();
35205
                  this.success = new ArrayList<Cart>(_list56.size);
35164
                  this.success = new ArrayList<Cart>(_list52.size);
35206
                  for (int _i57 = 0; _i57 < _list56.size; ++_i57)
35165
                  for (int _i53 = 0; _i53 < _list52.size; ++_i53)
35207
                  {
35166
                  {
35208
                    Cart _elem58;
35167
                    Cart _elem54;
35209
                    _elem58 = new Cart();
35168
                    _elem54 = new Cart();
35210
                    _elem58.read(iprot);
35169
                    _elem54.read(iprot);
35211
                    this.success.add(_elem58);
35170
                    this.success.add(_elem54);
35212
                  }
35171
                  }
35213
                  iprot.readListEnd();
35172
                  iprot.readListEnd();
35214
                }
35173
                }
35215
              } else { 
35174
              } else { 
35216
                TProtocolUtil.skip(iprot, field.type);
35175
                TProtocolUtil.skip(iprot, field.type);
Line 35237... Line 35196...
35237
 
35196
 
35238
      if (this.isSetSuccess()) {
35197
      if (this.isSetSuccess()) {
35239
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
35198
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
35240
        {
35199
        {
35241
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
35200
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
35242
          for (Cart _iter59 : this.success)
35201
          for (Cart _iter55 : this.success)
35243
          {
35202
          {
35244
            _iter59.write(oprot);
35203
            _iter55.write(oprot);
35245
          }
35204
          }
35246
          oprot.writeListEnd();
35205
          oprot.writeListEnd();
35247
        }
35206
        }
35248
        oprot.writeFieldEnd();
35207
        oprot.writeFieldEnd();
35249
      } else if (this.isSetScx()) {
35208
      } else if (this.isSetScx()) {
Line 36061... Line 36020...
36061
        } else {
36020
        } else {
36062
          switch (fieldId) {
36021
          switch (fieldId) {
36063
            case SUCCESS:
36022
            case SUCCESS:
36064
              if (field.type == TType.LIST) {
36023
              if (field.type == TType.LIST) {
36065
                {
36024
                {
36066
                  TList _list60 = iprot.readListBegin();
36025
                  TList _list56 = iprot.readListBegin();
36067
                  this.success = new ArrayList<Cart>(_list60.size);
36026
                  this.success = new ArrayList<Cart>(_list56.size);
36068
                  for (int _i61 = 0; _i61 < _list60.size; ++_i61)
36027
                  for (int _i57 = 0; _i57 < _list56.size; ++_i57)
36069
                  {
36028
                  {
36070
                    Cart _elem62;
36029
                    Cart _elem58;
36071
                    _elem62 = new Cart();
36030
                    _elem58 = new Cart();
36072
                    _elem62.read(iprot);
36031
                    _elem58.read(iprot);
36073
                    this.success.add(_elem62);
36032
                    this.success.add(_elem58);
36074
                  }
36033
                  }
36075
                  iprot.readListEnd();
36034
                  iprot.readListEnd();
36076
                }
36035
                }
36077
              } else { 
36036
              } else { 
36078
                TProtocolUtil.skip(iprot, field.type);
36037
                TProtocolUtil.skip(iprot, field.type);
Line 36099... Line 36058...
36099
 
36058
 
36100
      if (this.isSetSuccess()) {
36059
      if (this.isSetSuccess()) {
36101
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
36060
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
36102
        {
36061
        {
36103
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
36062
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
36104
          for (Cart _iter63 : this.success)
36063
          for (Cart _iter59 : this.success)
36105
          {
36064
          {
36106
            _iter63.write(oprot);
36065
            _iter59.write(oprot);
36107
          }
36066
          }
36108
          oprot.writeListEnd();
36067
          oprot.writeListEnd();
36109
        }
36068
        }
36110
        oprot.writeFieldEnd();
36069
        oprot.writeFieldEnd();
36111
      } else if (this.isSetScx()) {
36070
      } else if (this.isSetScx()) {
Line 44632... Line 44591...
44632
              }
44591
              }
44633
              break;
44592
              break;
44634
            case ITEMS:
44593
            case ITEMS:
44635
              if (field.type == TType.MAP) {
44594
              if (field.type == TType.MAP) {
44636
                {
44595
                {
44637
                  TMap _map64 = iprot.readMapBegin();
44596
                  TMap _map60 = iprot.readMapBegin();
44638
                  this.items = new HashMap<Long,Double>(2*_map64.size);
44597
                  this.items = new HashMap<Long,Double>(2*_map60.size);
44639
                  for (int _i65 = 0; _i65 < _map64.size; ++_i65)
44598
                  for (int _i61 = 0; _i61 < _map60.size; ++_i61)
44640
                  {
44599
                  {
44641
                    long _key66;
44600
                    long _key62;
44642
                    double _val67;
44601
                    double _val63;
44643
                    _key66 = iprot.readI64();
44602
                    _key62 = iprot.readI64();
44644
                    _val67 = iprot.readDouble();
44603
                    _val63 = iprot.readDouble();
44645
                    this.items.put(_key66, _val67);
44604
                    this.items.put(_key62, _val63);
44646
                  }
44605
                  }
44647
                  iprot.readMapEnd();
44606
                  iprot.readMapEnd();
44648
                }
44607
                }
44649
              } else { 
44608
              } else { 
44650
                TProtocolUtil.skip(iprot, field.type);
44609
                TProtocolUtil.skip(iprot, field.type);
Line 44667... Line 44626...
44667
      oprot.writeFieldEnd();
44626
      oprot.writeFieldEnd();
44668
      if (this.items != null) {
44627
      if (this.items != null) {
44669
        oprot.writeFieldBegin(ITEMS_FIELD_DESC);
44628
        oprot.writeFieldBegin(ITEMS_FIELD_DESC);
44670
        {
44629
        {
44671
          oprot.writeMapBegin(new TMap(TType.I64, TType.DOUBLE, this.items.size()));
44630
          oprot.writeMapBegin(new TMap(TType.I64, TType.DOUBLE, this.items.size()));
44672
          for (Map.Entry<Long, Double> _iter68 : this.items.entrySet())
44631
          for (Map.Entry<Long, Double> _iter64 : this.items.entrySet())
44673
          {
44632
          {
44674
            oprot.writeI64(_iter68.getKey());
44633
            oprot.writeI64(_iter64.getKey());
44675
            oprot.writeDouble(_iter68.getValue());
44634
            oprot.writeDouble(_iter64.getValue());
44676
          }
44635
          }
44677
          oprot.writeMapEnd();
44636
          oprot.writeMapEnd();
44678
        }
44637
        }
44679
        oprot.writeFieldEnd();
44638
        oprot.writeFieldEnd();
44680
      }
44639
      }
Line 45069... Line 45028...
45069
      // check for required fields
45028
      // check for required fields
45070
    }
45029
    }
45071
 
45030
 
45072
  }
45031
  }
45073
 
45032
 
45074
  public static class getMyResearch_args implements TBase<getMyResearch_args._Fields>, java.io.Serializable, Cloneable, Comparable<getMyResearch_args>   {
45033
  public static class getUserCount_args implements TBase<getUserCount_args._Fields>, java.io.Serializable, Cloneable, Comparable<getUserCount_args>   {
45075
    private static final TStruct STRUCT_DESC = new TStruct("getMyResearch_args");
45034
    private static final TStruct STRUCT_DESC = new TStruct("getUserCount_args");
45076
 
45035
 
45077
    private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)1);
45036
    private static final TField USER_TYPE_FIELD_DESC = new TField("userType", TType.I32, (short)1);
45078
 
45037
 
45079
    private long userId;
45038
    private UserType userType;
45080
 
45039
 
45081
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
45040
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
45082
    public enum _Fields implements TFieldIdEnum {
45041
    public enum _Fields implements TFieldIdEnum {
-
 
45042
      /**
-
 
45043
       * 
-
 
45044
       * @see UserType
-
 
45045
       */
45083
      USER_ID((short)1, "userId");
45046
      USER_TYPE((short)1, "userType");
45084
 
45047
 
45085
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
45048
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
45086
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
45049
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
45087
 
45050
 
45088
      static {
45051
      static {
Line 45132... Line 45095...
45132
        return _fieldName;
45095
        return _fieldName;
45133
      }
45096
      }
45134
    }
45097
    }
45135
 
45098
 
45136
    // isset id assignments
45099
    // isset id assignments
45137
    private static final int __USERID_ISSET_ID = 0;
-
 
45138
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
45139
 
45100
 
45140
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
45101
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
45141
      put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT, 
45102
      put(_Fields.USER_TYPE, new FieldMetaData("userType", TFieldRequirementType.DEFAULT, 
45142
          new FieldValueMetaData(TType.I64)));
45103
          new EnumMetaData(TType.ENUM, UserType.class)));
45143
    }});
45104
    }});
45144
 
45105
 
45145
    static {
45106
    static {
45146
      FieldMetaData.addStructMetaDataMap(getMyResearch_args.class, metaDataMap);
45107
      FieldMetaData.addStructMetaDataMap(getUserCount_args.class, metaDataMap);
45147
    }
45108
    }
45148
 
45109
 
45149
    public getMyResearch_args() {
45110
    public getUserCount_args() {
45150
    }
45111
    }
45151
 
45112
 
45152
    public getMyResearch_args(
45113
    public getUserCount_args(
45153
      long userId)
45114
      UserType userType)
45154
    {
45115
    {
45155
      this();
45116
      this();
45156
      this.userId = userId;
45117
      this.userType = userType;
45157
      setUserIdIsSet(true);
-
 
45158
    }
45118
    }
45159
 
45119
 
45160
    /**
45120
    /**
45161
     * Performs a deep copy on <i>other</i>.
45121
     * Performs a deep copy on <i>other</i>.
45162
     */
45122
     */
45163
    public getMyResearch_args(getMyResearch_args other) {
45123
    public getUserCount_args(getUserCount_args other) {
45164
      __isset_bit_vector.clear();
45124
      if (other.isSetUserType()) {
45165
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
45166
      this.userId = other.userId;
45125
        this.userType = other.userType;
-
 
45126
      }
45167
    }
45127
    }
45168
 
45128
 
45169
    public getMyResearch_args deepCopy() {
45129
    public getUserCount_args deepCopy() {
45170
      return new getMyResearch_args(this);
45130
      return new getUserCount_args(this);
45171
    }
45131
    }
45172
 
45132
 
45173
    @Deprecated
45133
    @Deprecated
45174
    public getMyResearch_args clone() {
45134
    public getUserCount_args clone() {
45175
      return new getMyResearch_args(this);
45135
      return new getUserCount_args(this);
45176
    }
45136
    }
45177
 
45137
 
-
 
45138
    /**
-
 
45139
     * 
-
 
45140
     * @see UserType
-
 
45141
     */
45178
    public long getUserId() {
45142
    public UserType getUserType() {
45179
      return this.userId;
45143
      return this.userType;
45180
    }
45144
    }
45181
 
45145
 
-
 
45146
    /**
-
 
45147
     * 
-
 
45148
     * @see UserType
-
 
45149
     */
45182
    public getMyResearch_args setUserId(long userId) {
45150
    public getUserCount_args setUserType(UserType userType) {
45183
      this.userId = userId;
45151
      this.userType = userType;
45184
      setUserIdIsSet(true);
-
 
45185
      return this;
45152
      return this;
45186
    }
45153
    }
45187
 
45154
 
45188
    public void unsetUserId() {
45155
    public void unsetUserType() {
45189
      __isset_bit_vector.clear(__USERID_ISSET_ID);
45156
      this.userType = null;
45190
    }
45157
    }
45191
 
45158
 
45192
    /** Returns true if field userId is set (has been asigned a value) and false otherwise */
45159
    /** Returns true if field userType is set (has been asigned a value) and false otherwise */
45193
    public boolean isSetUserId() {
45160
    public boolean isSetUserType() {
45194
      return __isset_bit_vector.get(__USERID_ISSET_ID);
45161
      return this.userType != null;
45195
    }
45162
    }
45196
 
45163
 
45197
    public void setUserIdIsSet(boolean value) {
45164
    public void setUserTypeIsSet(boolean value) {
-
 
45165
      if (!value) {
45198
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
45166
        this.userType = null;
-
 
45167
      }
45199
    }
45168
    }
45200
 
45169
 
45201
    public void setFieldValue(_Fields field, Object value) {
45170
    public void setFieldValue(_Fields field, Object value) {
45202
      switch (field) {
45171
      switch (field) {
45203
      case USER_ID:
45172
      case USER_TYPE:
45204
        if (value == null) {
45173
        if (value == null) {
45205
          unsetUserId();
45174
          unsetUserType();
45206
        } else {
45175
        } else {
45207
          setUserId((Long)value);
45176
          setUserType((UserType)value);
45208
        }
45177
        }
45209
        break;
45178
        break;
45210
 
45179
 
45211
      }
45180
      }
45212
    }
45181
    }
Line 45215... Line 45184...
45215
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
45184
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
45216
    }
45185
    }
45217
 
45186
 
45218
    public Object getFieldValue(_Fields field) {
45187
    public Object getFieldValue(_Fields field) {
45219
      switch (field) {
45188
      switch (field) {
45220
      case USER_ID:
45189
      case USER_TYPE:
45221
        return new Long(getUserId());
45190
        return getUserType();
45222
 
45191
 
45223
      }
45192
      }
45224
      throw new IllegalStateException();
45193
      throw new IllegalStateException();
45225
    }
45194
    }
45226
 
45195
 
Line 45229... Line 45198...
45229
    }
45198
    }
45230
 
45199
 
45231
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
45200
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
45232
    public boolean isSet(_Fields field) {
45201
    public boolean isSet(_Fields field) {
45233
      switch (field) {
45202
      switch (field) {
45234
      case USER_ID:
45203
      case USER_TYPE:
45235
        return isSetUserId();
45204
        return isSetUserType();
45236
      }
45205
      }
45237
      throw new IllegalStateException();
45206
      throw new IllegalStateException();
45238
    }
45207
    }
45239
 
45208
 
45240
    public boolean isSet(int fieldID) {
45209
    public boolean isSet(int fieldID) {
Line 45243... Line 45212...
45243
 
45212
 
45244
    @Override
45213
    @Override
45245
    public boolean equals(Object that) {
45214
    public boolean equals(Object that) {
45246
      if (that == null)
45215
      if (that == null)
45247
        return false;
45216
        return false;
45248
      if (that instanceof getMyResearch_args)
45217
      if (that instanceof getUserCount_args)
45249
        return this.equals((getMyResearch_args)that);
45218
        return this.equals((getUserCount_args)that);
45250
      return false;
45219
      return false;
45251
    }
45220
    }
45252
 
45221
 
45253
    public boolean equals(getMyResearch_args that) {
45222
    public boolean equals(getUserCount_args that) {
45254
      if (that == null)
45223
      if (that == null)
45255
        return false;
45224
        return false;
45256
 
45225
 
45257
      boolean this_present_userId = true;
45226
      boolean this_present_userType = true && this.isSetUserType();
45258
      boolean that_present_userId = true;
45227
      boolean that_present_userType = true && that.isSetUserType();
45259
      if (this_present_userId || that_present_userId) {
45228
      if (this_present_userType || that_present_userType) {
45260
        if (!(this_present_userId && that_present_userId))
45229
        if (!(this_present_userType && that_present_userType))
45261
          return false;
45230
          return false;
45262
        if (this.userId != that.userId)
45231
        if (!this.userType.equals(that.userType))
45263
          return false;
45232
          return false;
45264
      }
45233
      }
45265
 
45234
 
45266
      return true;
45235
      return true;
45267
    }
45236
    }
Line 45269... Line 45238...
45269
    @Override
45238
    @Override
45270
    public int hashCode() {
45239
    public int hashCode() {
45271
      return 0;
45240
      return 0;
45272
    }
45241
    }
45273
 
45242
 
45274
    public int compareTo(getMyResearch_args other) {
45243
    public int compareTo(getUserCount_args other) {
45275
      if (!getClass().equals(other.getClass())) {
45244
      if (!getClass().equals(other.getClass())) {
45276
        return getClass().getName().compareTo(other.getClass().getName());
45245
        return getClass().getName().compareTo(other.getClass().getName());
45277
      }
45246
      }
45278
 
45247
 
45279
      int lastComparison = 0;
45248
      int lastComparison = 0;
45280
      getMyResearch_args typedOther = (getMyResearch_args)other;
45249
      getUserCount_args typedOther = (getUserCount_args)other;
45281
 
45250
 
45282
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(isSetUserId());
45251
      lastComparison = Boolean.valueOf(isSetUserType()).compareTo(isSetUserType());
45283
      if (lastComparison != 0) {
45252
      if (lastComparison != 0) {
45284
        return lastComparison;
45253
        return lastComparison;
45285
      }
45254
      }
45286
      lastComparison = TBaseHelper.compareTo(userId, typedOther.userId);
45255
      lastComparison = TBaseHelper.compareTo(userType, typedOther.userType);
45287
      if (lastComparison != 0) {
45256
      if (lastComparison != 0) {
45288
        return lastComparison;
45257
        return lastComparison;
45289
      }
45258
      }
45290
      return 0;
45259
      return 0;
45291
    }
45260
    }
Line 45302... Line 45271...
45302
        _Fields fieldId = _Fields.findByThriftId(field.id);
45271
        _Fields fieldId = _Fields.findByThriftId(field.id);
45303
        if (fieldId == null) {
45272
        if (fieldId == null) {
45304
          TProtocolUtil.skip(iprot, field.type);
45273
          TProtocolUtil.skip(iprot, field.type);
45305
        } else {
45274
        } else {
45306
          switch (fieldId) {
45275
          switch (fieldId) {
45307
            case USER_ID:
45276
            case USER_TYPE:
45308
              if (field.type == TType.I64) {
45277
              if (field.type == TType.I32) {
45309
                this.userId = iprot.readI64();
45278
                this.userType = UserType.findByValue(iprot.readI32());
45310
                setUserIdIsSet(true);
-
 
45311
              } else { 
45279
              } else { 
45312
                TProtocolUtil.skip(iprot, field.type);
45280
                TProtocolUtil.skip(iprot, field.type);
45313
              }
45281
              }
45314
              break;
45282
              break;
45315
          }
45283
          }
Line 45322... Line 45290...
45322
 
45290
 
45323
    public void write(TProtocol oprot) throws TException {
45291
    public void write(TProtocol oprot) throws TException {
45324
      validate();
45292
      validate();
45325
 
45293
 
45326
      oprot.writeStructBegin(STRUCT_DESC);
45294
      oprot.writeStructBegin(STRUCT_DESC);
-
 
45295
      if (this.userType != null) {
45327
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
45296
        oprot.writeFieldBegin(USER_TYPE_FIELD_DESC);
45328
      oprot.writeI64(this.userId);
45297
        oprot.writeI32(this.userType.getValue());
45329
      oprot.writeFieldEnd();
45298
        oprot.writeFieldEnd();
-
 
45299
      }
45330
      oprot.writeFieldStop();
45300
      oprot.writeFieldStop();
45331
      oprot.writeStructEnd();
45301
      oprot.writeStructEnd();
45332
    }
45302
    }
45333
 
45303
 
45334
    @Override
45304
    @Override
45335
    public String toString() {
45305
    public String toString() {
45336
      StringBuilder sb = new StringBuilder("getMyResearch_args(");
45306
      StringBuilder sb = new StringBuilder("getUserCount_args(");
45337
      boolean first = true;
45307
      boolean first = true;
45338
 
45308
 
45339
      sb.append("userId:");
45309
      sb.append("userType:");
-
 
45310
      if (this.userType == null) {
-
 
45311
        sb.append("null");
-
 
45312
      } else {
-
 
45313
        String userType_name = userType.name();
-
 
45314
        if (userType_name != null) {
-
 
45315
          sb.append(userType_name);
-
 
45316
          sb.append(" (");
-
 
45317
        }
45340
      sb.append(this.userId);
45318
        sb.append(this.userType);
-
 
45319
        if (userType_name != null) {
-
 
45320
          sb.append(")");
-
 
45321
        }
-
 
45322
      }
45341
      first = false;
45323
      first = false;
45342
      sb.append(")");
45324
      sb.append(")");
45343
      return sb.toString();
45325
      return sb.toString();
45344
    }
45326
    }
45345
 
45327
 
Line 45347... Line 45329...
45347
      // check for required fields
45329
      // check for required fields
45348
    }
45330
    }
45349
 
45331
 
45350
  }
45332
  }
45351
 
45333
 
45352
  public static class getMyResearch_result implements TBase<getMyResearch_result._Fields>, java.io.Serializable, Cloneable, Comparable<getMyResearch_result>   {
45334
  public static class getUserCount_result implements TBase<getUserCount_result._Fields>, java.io.Serializable, Cloneable, Comparable<getUserCount_result>   {
45353
    private static final TStruct STRUCT_DESC = new TStruct("getMyResearch_result");
45335
    private static final TStruct STRUCT_DESC = new TStruct("getUserCount_result");
45354
 
45336
 
45355
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
45337
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I64, (short)0);
45356
    private static final TField SCX_FIELD_DESC = new TField("scx", TType.STRUCT, (short)1);
-
 
45357
 
45338
 
45358
    private Widget success;
45339
    private long success;
45359
    private WidgetException scx;
-
 
45360
 
45340
 
45361
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
45341
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
45362
    public enum _Fields implements TFieldIdEnum {
45342
    public enum _Fields implements TFieldIdEnum {
45363
      SUCCESS((short)0, "success"),
45343
      SUCCESS((short)0, "success");
45364
      SCX((short)1, "scx");
-
 
45365
 
45344
 
45366
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
45345
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
45367
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
45346
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
45368
 
45347
 
45369
      static {
45348
      static {
Line 45413... Line 45392...
45413
        return _fieldName;
45392
        return _fieldName;
45414
      }
45393
      }
45415
    }
45394
    }
45416
 
45395
 
45417
    // isset id assignments
45396
    // isset id assignments
-
 
45397
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
45398
    private BitSet __isset_bit_vector = new BitSet(1);
45418
 
45399
 
45419
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
45400
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
45420
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
45401
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
45421
          new StructMetaData(TType.STRUCT, Widget.class)));
-
 
45422
      put(_Fields.SCX, new FieldMetaData("scx", TFieldRequirementType.DEFAULT, 
-
 
45423
          new FieldValueMetaData(TType.STRUCT)));
45402
          new FieldValueMetaData(TType.I64)));
45424
    }});
45403
    }});
45425
 
45404
 
45426
    static {
45405
    static {
45427
      FieldMetaData.addStructMetaDataMap(getMyResearch_result.class, metaDataMap);
45406
      FieldMetaData.addStructMetaDataMap(getUserCount_result.class, metaDataMap);
45428
    }
45407
    }
45429
 
45408
 
45430
    public getMyResearch_result() {
45409
    public getUserCount_result() {
45431
    }
45410
    }
45432
 
45411
 
45433
    public getMyResearch_result(
45412
    public getUserCount_result(
45434
      Widget success,
45413
      long success)
45435
      WidgetException scx)
-
 
45436
    {
45414
    {
45437
      this();
45415
      this();
45438
      this.success = success;
45416
      this.success = success;
45439
      this.scx = scx;
45417
      setSuccessIsSet(true);
45440
    }
45418
    }
45441
 
45419
 
45442
    /**
45420
    /**
45443
     * Performs a deep copy on <i>other</i>.
45421
     * Performs a deep copy on <i>other</i>.
45444
     */
45422
     */
45445
    public getMyResearch_result(getMyResearch_result other) {
45423
    public getUserCount_result(getUserCount_result other) {
45446
      if (other.isSetSuccess()) {
45424
      __isset_bit_vector.clear();
45447
        this.success = new Widget(other.success);
45425
      __isset_bit_vector.or(other.__isset_bit_vector);
45448
      }
-
 
45449
      if (other.isSetScx()) {
-
 
45450
        this.scx = new WidgetException(other.scx);
45426
      this.success = other.success;
45451
      }
-
 
45452
    }
45427
    }
45453
 
45428
 
45454
    public getMyResearch_result deepCopy() {
45429
    public getUserCount_result deepCopy() {
45455
      return new getMyResearch_result(this);
45430
      return new getUserCount_result(this);
45456
    }
45431
    }
45457
 
45432
 
45458
    @Deprecated
45433
    @Deprecated
45459
    public getMyResearch_result clone() {
45434
    public getUserCount_result clone() {
45460
      return new getMyResearch_result(this);
45435
      return new getUserCount_result(this);
45461
    }
45436
    }
45462
 
45437
 
45463
    public Widget getSuccess() {
45438
    public long getSuccess() {
45464
      return this.success;
45439
      return this.success;
45465
    }
45440
    }
45466
 
45441
 
45467
    public getMyResearch_result setSuccess(Widget success) {
45442
    public getUserCount_result setSuccess(long success) {
45468
      this.success = success;
45443
      this.success = success;
-
 
45444
      setSuccessIsSet(true);
45469
      return this;
45445
      return this;
45470
    }
45446
    }
45471
 
45447
 
45472
    public void unsetSuccess() {
45448
    public void unsetSuccess() {
45473
      this.success = null;
45449
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
45474
    }
45450
    }
45475
 
45451
 
45476
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
45452
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
45477
    public boolean isSetSuccess() {
45453
    public boolean isSetSuccess() {
45478
      return this.success != null;
45454
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
45479
    }
45455
    }
45480
 
45456
 
45481
    public void setSuccessIsSet(boolean value) {
45457
    public void setSuccessIsSet(boolean value) {
45482
      if (!value) {
-
 
45483
        this.success = null;
-
 
45484
      }
-
 
45485
    }
-
 
45486
 
-
 
45487
    public WidgetException getScx() {
-
 
45488
      return this.scx;
-
 
45489
    }
-
 
45490
 
-
 
45491
    public getMyResearch_result setScx(WidgetException scx) {
-
 
45492
      this.scx = scx;
-
 
45493
      return this;
-
 
45494
    }
-
 
45495
 
-
 
45496
    public void unsetScx() {
-
 
45497
      this.scx = null;
-
 
45498
    }
-
 
45499
 
-
 
45500
    /** Returns true if field scx is set (has been asigned a value) and false otherwise */
-
 
45501
    public boolean isSetScx() {
-
 
45502
      return this.scx != null;
-
 
45503
    }
-
 
45504
 
-
 
45505
    public void setScxIsSet(boolean value) {
45458
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
45506
      if (!value) {
-
 
45507
        this.scx = null;
-
 
45508
      }
-
 
45509
    }
45459
    }
45510
 
45460
 
45511
    public void setFieldValue(_Fields field, Object value) {
45461
    public void setFieldValue(_Fields field, Object value) {
45512
      switch (field) {
45462
      switch (field) {
45513
      case SUCCESS:
45463
      case SUCCESS:
45514
        if (value == null) {
45464
        if (value == null) {
45515
          unsetSuccess();
45465
          unsetSuccess();
45516
        } else {
45466
        } else {
45517
          setSuccess((Widget)value);
45467
          setSuccess((Long)value);
45518
        }
-
 
45519
        break;
-
 
45520
 
-
 
45521
      case SCX:
-
 
45522
        if (value == null) {
-
 
45523
          unsetScx();
-
 
45524
        } else {
-
 
45525
          setScx((WidgetException)value);
-
 
45526
        }
45468
        }
45527
        break;
45469
        break;
45528
 
45470
 
45529
      }
45471
      }
45530
    }
45472
    }
Line 45534... Line 45476...
45534
    }
45476
    }
45535
 
45477
 
45536
    public Object getFieldValue(_Fields field) {
45478
    public Object getFieldValue(_Fields field) {
45537
      switch (field) {
45479
      switch (field) {
45538
      case SUCCESS:
45480
      case SUCCESS:
45539
        return getSuccess();
45481
        return new Long(getSuccess());
45540
 
-
 
45541
      case SCX:
-
 
45542
        return getScx();
-
 
45543
 
45482
 
45544
      }
45483
      }
45545
      throw new IllegalStateException();
45484
      throw new IllegalStateException();
45546
    }
45485
    }
45547
 
45486
 
Line 45552... Line 45491...
45552
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
45491
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
45553
    public boolean isSet(_Fields field) {
45492
    public boolean isSet(_Fields field) {
45554
      switch (field) {
45493
      switch (field) {
45555
      case SUCCESS:
45494
      case SUCCESS:
45556
        return isSetSuccess();
45495
        return isSetSuccess();
45557
      case SCX:
-
 
45558
        return isSetScx();
-
 
45559
      }
45496
      }
45560
      throw new IllegalStateException();
45497
      throw new IllegalStateException();
45561
    }
45498
    }
45562
 
45499
 
45563
    public boolean isSet(int fieldID) {
45500
    public boolean isSet(int fieldID) {
Line 45566... Line 45503...
45566
 
45503
 
45567
    @Override
45504
    @Override
45568
    public boolean equals(Object that) {
45505
    public boolean equals(Object that) {
45569
      if (that == null)
45506
      if (that == null)
45570
        return false;
45507
        return false;
45571
      if (that instanceof getMyResearch_result)
45508
      if (that instanceof getUserCount_result)
45572
        return this.equals((getMyResearch_result)that);
45509
        return this.equals((getUserCount_result)that);
45573
      return false;
45510
      return false;
45574
    }
45511
    }
45575
 
45512
 
45576
    public boolean equals(getMyResearch_result that) {
45513
    public boolean equals(getUserCount_result that) {
45577
      if (that == null)
45514
      if (that == null)
45578
        return false;
45515
        return false;
45579
 
45516
 
45580
      boolean this_present_success = true && this.isSetSuccess();
45517
      boolean this_present_success = true;
45581
      boolean that_present_success = true && that.isSetSuccess();
45518
      boolean that_present_success = true;
45582
      if (this_present_success || that_present_success) {
45519
      if (this_present_success || that_present_success) {
45583
        if (!(this_present_success && that_present_success))
45520
        if (!(this_present_success && that_present_success))
45584
          return false;
45521
          return false;
45585
        if (!this.success.equals(that.success))
45522
        if (this.success != that.success)
45586
          return false;
-
 
45587
      }
-
 
45588
 
-
 
45589
      boolean this_present_scx = true && this.isSetScx();
-
 
45590
      boolean that_present_scx = true && that.isSetScx();
-
 
45591
      if (this_present_scx || that_present_scx) {
-
 
45592
        if (!(this_present_scx && that_present_scx))
-
 
45593
          return false;
-
 
45594
        if (!this.scx.equals(that.scx))
-
 
45595
          return false;
45523
          return false;
45596
      }
45524
      }
45597
 
45525
 
45598
      return true;
45526
      return true;
45599
    }
45527
    }
Line 45601... Line 45529...
45601
    @Override
45529
    @Override
45602
    public int hashCode() {
45530
    public int hashCode() {
45603
      return 0;
45531
      return 0;
45604
    }
45532
    }
45605
 
45533
 
45606
    public int compareTo(getMyResearch_result other) {
45534
    public int compareTo(getUserCount_result other) {
45607
      if (!getClass().equals(other.getClass())) {
45535
      if (!getClass().equals(other.getClass())) {
45608
        return getClass().getName().compareTo(other.getClass().getName());
45536
        return getClass().getName().compareTo(other.getClass().getName());
45609
      }
45537
      }
45610
 
45538
 
45611
      int lastComparison = 0;
45539
      int lastComparison = 0;
45612
      getMyResearch_result typedOther = (getMyResearch_result)other;
45540
      getUserCount_result typedOther = (getUserCount_result)other;
45613
 
45541
 
45614
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
45542
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
45615
      if (lastComparison != 0) {
45543
      if (lastComparison != 0) {
45616
        return lastComparison;
45544
        return lastComparison;
45617
      }
45545
      }
45618
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
45546
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
45619
      if (lastComparison != 0) {
45547
      if (lastComparison != 0) {
45620
        return lastComparison;
45548
        return lastComparison;
45621
      }
45549
      }
45622
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(isSetScx());
-
 
45623
      if (lastComparison != 0) {
-
 
45624
        return lastComparison;
-
 
45625
      }
-
 
45626
      lastComparison = TBaseHelper.compareTo(scx, typedOther.scx);
-
 
45627
      if (lastComparison != 0) {
-
 
45628
        return lastComparison;
-
 
45629
      }
-
 
45630
      return 0;
45550
      return 0;
45631
    }
45551
    }
45632
 
45552
 
45633
    public void read(TProtocol iprot) throws TException {
45553
    public void read(TProtocol iprot) throws TException {
45634
      TField field;
45554
      TField field;
Line 45643... Line 45563...
45643
        if (fieldId == null) {
45563
        if (fieldId == null) {
45644
          TProtocolUtil.skip(iprot, field.type);
45564
          TProtocolUtil.skip(iprot, field.type);
45645
        } else {
45565
        } else {
45646
          switch (fieldId) {
45566
          switch (fieldId) {
45647
            case SUCCESS:
45567
            case SUCCESS:
45648
              if (field.type == TType.STRUCT) {
45568
              if (field.type == TType.I64) {
45649
                this.success = new Widget();
45569
                this.success = iprot.readI64();
45650
                this.success.read(iprot);
45570
                setSuccessIsSet(true);
45651
              } else { 
-
 
45652
                TProtocolUtil.skip(iprot, field.type);
-
 
45653
              }
-
 
45654
              break;
-
 
45655
            case SCX:
-
 
45656
              if (field.type == TType.STRUCT) {
-
 
45657
                this.scx = new WidgetException();
-
 
45658
                this.scx.read(iprot);
-
 
45659
              } else { 
45571
              } else { 
45660
                TProtocolUtil.skip(iprot, field.type);
45572
                TProtocolUtil.skip(iprot, field.type);
45661
              }
45573
              }
45662
              break;
45574
              break;
45663
          }
45575
          }
Line 45671... Line 45583...
45671
    public void write(TProtocol oprot) throws TException {
45583
    public void write(TProtocol oprot) throws TException {
45672
      oprot.writeStructBegin(STRUCT_DESC);
45584
      oprot.writeStructBegin(STRUCT_DESC);
45673
 
45585
 
45674
      if (this.isSetSuccess()) {
45586
      if (this.isSetSuccess()) {
45675
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
45587
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
45676
        this.success.write(oprot);
-
 
45677
        oprot.writeFieldEnd();
45588
        oprot.writeI64(this.success);
45678
      } else if (this.isSetScx()) {
-
 
45679
        oprot.writeFieldBegin(SCX_FIELD_DESC);
-
 
45680
        this.scx.write(oprot);
-
 
45681
        oprot.writeFieldEnd();
45589
        oprot.writeFieldEnd();
45682
      }
45590
      }
45683
      oprot.writeFieldStop();
45591
      oprot.writeFieldStop();
45684
      oprot.writeStructEnd();
45592
      oprot.writeStructEnd();
45685
    }
45593
    }
45686
 
45594
 
45687
    @Override
45595
    @Override
45688
    public String toString() {
45596
    public String toString() {
45689
      StringBuilder sb = new StringBuilder("getMyResearch_result(");
45597
      StringBuilder sb = new StringBuilder("getUserCount_result(");
45690
      boolean first = true;
45598
      boolean first = true;
45691
 
45599
 
45692
      sb.append("success:");
45600
      sb.append("success:");
45693
      if (this.success == null) {
-
 
45694
        sb.append("null");
-
 
45695
      } else {
-
 
45696
        sb.append(this.success);
45601
      sb.append(this.success);
45697
      }
-
 
45698
      first = false;
-
 
45699
      if (!first) sb.append(", ");
-
 
45700
      sb.append("scx:");
-
 
45701
      if (this.scx == null) {
-
 
45702
        sb.append("null");
-
 
45703
      } else {
-
 
45704
        sb.append(this.scx);
-
 
45705
      }
-
 
45706
      first = false;
45602
      first = false;
45707
      sb.append(")");
45603
      sb.append(")");
45708
      return sb.toString();
45604
      return sb.toString();
45709
    }
45605
    }
45710
 
45606
 
Line 45712... Line 45608...
45712
      // check for required fields
45608
      // check for required fields
45713
    }
45609
    }
45714
 
45610
 
45715
  }
45611
  }
45716
 
45612
 
45717
  public static class updateMyResearch_args implements TBase<updateMyResearch_args._Fields>, java.io.Serializable, Cloneable, Comparable<updateMyResearch_args>   {
45613
  public static class getAllUsers_args implements TBase<getAllUsers_args._Fields>, java.io.Serializable, Cloneable, Comparable<getAllUsers_args>   {
45718
    private static final TStruct STRUCT_DESC = new TStruct("updateMyResearch_args");
45614
    private static final TStruct STRUCT_DESC = new TStruct("getAllUsers_args");
45719
 
45615
 
45720
    private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)1);
45616
    private static final TField USER_TYPE_FIELD_DESC = new TField("userType", TType.I32, (short)1);
45721
    private static final TField ITEM_ID_FIELD_DESC = new TField("itemId", TType.I64, (short)2);
45617
    private static final TField START_DATE_FIELD_DESC = new TField("startDate", TType.I64, (short)2);
-
 
45618
    private static final TField END_DATE_FIELD_DESC = new TField("endDate", TType.I64, (short)3);
45722
 
45619
 
-
 
45620
    private UserType userType;
45723
    private long userId;
45621
    private long startDate;
45724
    private long itemId;
45622
    private long endDate;
45725
 
45623
 
45726
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
45624
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
45727
    public enum _Fields implements TFieldIdEnum {
45625
    public enum _Fields implements TFieldIdEnum {
-
 
45626
      /**
-
 
45627
       * 
-
 
45628
       * @see UserType
-
 
45629
       */
45728
      USER_ID((short)1, "userId"),
45630
      USER_TYPE((short)1, "userType"),
-
 
45631
      START_DATE((short)2, "startDate"),
45729
      ITEM_ID((short)2, "itemId");
45632
      END_DATE((short)3, "endDate");
45730
 
45633
 
45731
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
45634
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
45732
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
45635
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
45733
 
45636
 
45734
      static {
45637
      static {
Line 45778... Line 45681...
45778
        return _fieldName;
45681
        return _fieldName;
45779
      }
45682
      }
45780
    }
45683
    }
45781
 
45684
 
45782
    // isset id assignments
45685
    // isset id assignments
45783
    private static final int __USERID_ISSET_ID = 0;
45686
    private static final int __STARTDATE_ISSET_ID = 0;
45784
    private static final int __ITEMID_ISSET_ID = 1;
45687
    private static final int __ENDDATE_ISSET_ID = 1;
45785
    private BitSet __isset_bit_vector = new BitSet(2);
45688
    private BitSet __isset_bit_vector = new BitSet(2);
45786
 
45689
 
45787
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
45690
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
45788
      put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT, 
45691
      put(_Fields.USER_TYPE, new FieldMetaData("userType", TFieldRequirementType.DEFAULT, 
-
 
45692
          new EnumMetaData(TType.ENUM, UserType.class)));
-
 
45693
      put(_Fields.START_DATE, new FieldMetaData("startDate", TFieldRequirementType.DEFAULT, 
45789
          new FieldValueMetaData(TType.I64)));
45694
          new FieldValueMetaData(TType.I64)));
45790
      put(_Fields.ITEM_ID, new FieldMetaData("itemId", TFieldRequirementType.DEFAULT, 
45695
      put(_Fields.END_DATE, new FieldMetaData("endDate", TFieldRequirementType.DEFAULT, 
45791
          new FieldValueMetaData(TType.I64)));
45696
          new FieldValueMetaData(TType.I64)));
45792
    }});
45697
    }});
45793
 
45698
 
45794
    static {
45699
    static {
45795
      FieldMetaData.addStructMetaDataMap(updateMyResearch_args.class, metaDataMap);
45700
      FieldMetaData.addStructMetaDataMap(getAllUsers_args.class, metaDataMap);
45796
    }
45701
    }
45797
 
45702
 
45798
    public updateMyResearch_args() {
45703
    public getAllUsers_args() {
45799
    }
45704
    }
45800
 
45705
 
45801
    public updateMyResearch_args(
45706
    public getAllUsers_args(
-
 
45707
      UserType userType,
45802
      long userId,
45708
      long startDate,
45803
      long itemId)
45709
      long endDate)
45804
    {
45710
    {
45805
      this();
45711
      this();
45806
      this.userId = userId;
45712
      this.userType = userType;
-
 
45713
      this.startDate = startDate;
45807
      setUserIdIsSet(true);
45714
      setStartDateIsSet(true);
45808
      this.itemId = itemId;
45715
      this.endDate = endDate;
45809
      setItemIdIsSet(true);
45716
      setEndDateIsSet(true);
45810
    }
45717
    }
45811
 
45718
 
45812
    /**
45719
    /**
45813
     * Performs a deep copy on <i>other</i>.
45720
     * Performs a deep copy on <i>other</i>.
45814
     */
45721
     */
45815
    public updateMyResearch_args(updateMyResearch_args other) {
45722
    public getAllUsers_args(getAllUsers_args other) {
45816
      __isset_bit_vector.clear();
45723
      __isset_bit_vector.clear();
45817
      __isset_bit_vector.or(other.__isset_bit_vector);
45724
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
45725
      if (other.isSetUserType()) {
45818
      this.userId = other.userId;
45726
        this.userType = other.userType;
-
 
45727
      }
-
 
45728
      this.startDate = other.startDate;
45819
      this.itemId = other.itemId;
45729
      this.endDate = other.endDate;
45820
    }
45730
    }
45821
 
45731
 
45822
    public updateMyResearch_args deepCopy() {
45732
    public getAllUsers_args deepCopy() {
45823
      return new updateMyResearch_args(this);
45733
      return new getAllUsers_args(this);
45824
    }
45734
    }
45825
 
45735
 
45826
    @Deprecated
45736
    @Deprecated
45827
    public updateMyResearch_args clone() {
45737
    public getAllUsers_args clone() {
45828
      return new updateMyResearch_args(this);
45738
      return new getAllUsers_args(this);
45829
    }
45739
    }
45830
 
45740
 
-
 
45741
    /**
-
 
45742
     * 
-
 
45743
     * @see UserType
-
 
45744
     */
45831
    public long getUserId() {
45745
    public UserType getUserType() {
45832
      return this.userId;
45746
      return this.userType;
45833
    }
45747
    }
45834
 
45748
 
-
 
45749
    /**
-
 
45750
     * 
-
 
45751
     * @see UserType
-
 
45752
     */
45835
    public updateMyResearch_args setUserId(long userId) {
45753
    public getAllUsers_args setUserType(UserType userType) {
45836
      this.userId = userId;
45754
      this.userType = userType;
45837
      setUserIdIsSet(true);
-
 
45838
      return this;
45755
      return this;
45839
    }
45756
    }
45840
 
45757
 
45841
    public void unsetUserId() {
45758
    public void unsetUserType() {
45842
      __isset_bit_vector.clear(__USERID_ISSET_ID);
45759
      this.userType = null;
45843
    }
45760
    }
45844
 
45761
 
45845
    /** Returns true if field userId is set (has been asigned a value) and false otherwise */
45762
    /** Returns true if field userType is set (has been asigned a value) and false otherwise */
45846
    public boolean isSetUserId() {
45763
    public boolean isSetUserType() {
45847
      return __isset_bit_vector.get(__USERID_ISSET_ID);
45764
      return this.userType != null;
45848
    }
45765
    }
45849
 
45766
 
45850
    public void setUserIdIsSet(boolean value) {
45767
    public void setUserTypeIsSet(boolean value) {
-
 
45768
      if (!value) {
45851
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
45769
        this.userType = null;
-
 
45770
      }
45852
    }
45771
    }
45853
 
45772
 
45854
    public long getItemId() {
45773
    public long getStartDate() {
45855
      return this.itemId;
45774
      return this.startDate;
45856
    }
45775
    }
45857
 
45776
 
45858
    public updateMyResearch_args setItemId(long itemId) {
45777
    public getAllUsers_args setStartDate(long startDate) {
45859
      this.itemId = itemId;
45778
      this.startDate = startDate;
45860
      setItemIdIsSet(true);
45779
      setStartDateIsSet(true);
45861
      return this;
45780
      return this;
45862
    }
45781
    }
45863
 
45782
 
45864
    public void unsetItemId() {
45783
    public void unsetStartDate() {
45865
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
45784
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
45866
    }
45785
    }
45867
 
45786
 
45868
    /** Returns true if field itemId is set (has been asigned a value) and false otherwise */
45787
    /** Returns true if field startDate is set (has been asigned a value) and false otherwise */
45869
    public boolean isSetItemId() {
45788
    public boolean isSetStartDate() {
45870
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
45789
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
45871
    }
45790
    }
45872
 
45791
 
-
 
45792
    public void setStartDateIsSet(boolean value) {
-
 
45793
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
-
 
45794
    }
-
 
45795
 
-
 
45796
    public long getEndDate() {
-
 
45797
      return this.endDate;
-
 
45798
    }
-
 
45799
 
-
 
45800
    public getAllUsers_args setEndDate(long endDate) {
-
 
45801
      this.endDate = endDate;
-
 
45802
      setEndDateIsSet(true);
-
 
45803
      return this;
-
 
45804
    }
-
 
45805
 
-
 
45806
    public void unsetEndDate() {
-
 
45807
      __isset_bit_vector.clear(__ENDDATE_ISSET_ID);
-
 
45808
    }
-
 
45809
 
-
 
45810
    /** Returns true if field endDate is set (has been asigned a value) and false otherwise */
-
 
45811
    public boolean isSetEndDate() {
-
 
45812
      return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
-
 
45813
    }
-
 
45814
 
45873
    public void setItemIdIsSet(boolean value) {
45815
    public void setEndDateIsSet(boolean value) {
45874
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
45816
      __isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
45875
    }
45817
    }
45876
 
45818
 
45877
    public void setFieldValue(_Fields field, Object value) {
45819
    public void setFieldValue(_Fields field, Object value) {
45878
      switch (field) {
45820
      switch (field) {
45879
      case USER_ID:
45821
      case USER_TYPE:
45880
        if (value == null) {
45822
        if (value == null) {
45881
          unsetUserId();
45823
          unsetUserType();
45882
        } else {
45824
        } else {
45883
          setUserId((Long)value);
45825
          setUserType((UserType)value);
45884
        }
45826
        }
45885
        break;
45827
        break;
45886
 
45828
 
45887
      case ITEM_ID:
45829
      case START_DATE:
45888
        if (value == null) {
45830
        if (value == null) {
45889
          unsetItemId();
45831
          unsetStartDate();
45890
        } else {
45832
        } else {
-
 
45833
          setStartDate((Long)value);
-
 
45834
        }
-
 
45835
        break;
-
 
45836
 
-
 
45837
      case END_DATE:
-
 
45838
        if (value == null) {
-
 
45839
          unsetEndDate();
-
 
45840
        } else {
45891
          setItemId((Long)value);
45841
          setEndDate((Long)value);
45892
        }
45842
        }
45893
        break;
45843
        break;
45894
 
45844
 
45895
      }
45845
      }
45896
    }
45846
    }
Line 45899... Line 45849...
45899
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
45849
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
45900
    }
45850
    }
45901
 
45851
 
45902
    public Object getFieldValue(_Fields field) {
45852
    public Object getFieldValue(_Fields field) {
45903
      switch (field) {
45853
      switch (field) {
45904
      case USER_ID:
45854
      case USER_TYPE:
45905
        return new Long(getUserId());
45855
        return getUserType();
45906
 
45856
 
45907
      case ITEM_ID:
45857
      case START_DATE:
-
 
45858
        return new Long(getStartDate());
-
 
45859
 
-
 
45860
      case END_DATE:
45908
        return new Long(getItemId());
45861
        return new Long(getEndDate());
45909
 
45862
 
45910
      }
45863
      }
45911
      throw new IllegalStateException();
45864
      throw new IllegalStateException();
45912
    }
45865
    }
45913
 
45866
 
Line 45916... Line 45869...
45916
    }
45869
    }
45917
 
45870
 
45918
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
45871
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
45919
    public boolean isSet(_Fields field) {
45872
    public boolean isSet(_Fields field) {
45920
      switch (field) {
45873
      switch (field) {
45921
      case USER_ID:
45874
      case USER_TYPE:
45922
        return isSetUserId();
45875
        return isSetUserType();
45923
      case ITEM_ID:
45876
      case START_DATE:
-
 
45877
        return isSetStartDate();
-
 
45878
      case END_DATE:
45924
        return isSetItemId();
45879
        return isSetEndDate();
45925
      }
45880
      }
45926
      throw new IllegalStateException();
45881
      throw new IllegalStateException();
45927
    }
45882
    }
45928
 
45883
 
45929
    public boolean isSet(int fieldID) {
45884
    public boolean isSet(int fieldID) {
Line 45932... Line 45887...
45932
 
45887
 
45933
    @Override
45888
    @Override
45934
    public boolean equals(Object that) {
45889
    public boolean equals(Object that) {
45935
      if (that == null)
45890
      if (that == null)
45936
        return false;
45891
        return false;
45937
      if (that instanceof updateMyResearch_args)
45892
      if (that instanceof getAllUsers_args)
45938
        return this.equals((updateMyResearch_args)that);
45893
        return this.equals((getAllUsers_args)that);
45939
      return false;
45894
      return false;
45940
    }
45895
    }
45941
 
45896
 
45942
    public boolean equals(updateMyResearch_args that) {
45897
    public boolean equals(getAllUsers_args that) {
45943
      if (that == null)
45898
      if (that == null)
45944
        return false;
45899
        return false;
45945
 
45900
 
45946
      boolean this_present_userId = true;
45901
      boolean this_present_userType = true && this.isSetUserType();
45947
      boolean that_present_userId = true;
45902
      boolean that_present_userType = true && that.isSetUserType();
45948
      if (this_present_userId || that_present_userId) {
45903
      if (this_present_userType || that_present_userType) {
45949
        if (!(this_present_userId && that_present_userId))
45904
        if (!(this_present_userType && that_present_userType))
45950
          return false;
45905
          return false;
45951
        if (this.userId != that.userId)
45906
        if (!this.userType.equals(that.userType))
45952
          return false;
45907
          return false;
45953
      }
45908
      }
45954
 
45909
 
45955
      boolean this_present_itemId = true;
45910
      boolean this_present_startDate = true;
45956
      boolean that_present_itemId = true;
45911
      boolean that_present_startDate = true;
45957
      if (this_present_itemId || that_present_itemId) {
45912
      if (this_present_startDate || that_present_startDate) {
45958
        if (!(this_present_itemId && that_present_itemId))
45913
        if (!(this_present_startDate && that_present_startDate))
45959
          return false;
45914
          return false;
-
 
45915
        if (this.startDate != that.startDate)
-
 
45916
          return false;
-
 
45917
      }
-
 
45918
 
-
 
45919
      boolean this_present_endDate = true;
-
 
45920
      boolean that_present_endDate = true;
-
 
45921
      if (this_present_endDate || that_present_endDate) {
-
 
45922
        if (!(this_present_endDate && that_present_endDate))
-
 
45923
          return false;
45960
        if (this.itemId != that.itemId)
45924
        if (this.endDate != that.endDate)
45961
          return false;
45925
          return false;
45962
      }
45926
      }
45963
 
45927
 
45964
      return true;
45928
      return true;
45965
    }
45929
    }
Line 45967... Line 45931...
45967
    @Override
45931
    @Override
45968
    public int hashCode() {
45932
    public int hashCode() {
45969
      return 0;
45933
      return 0;
45970
    }
45934
    }
45971
 
45935
 
45972
    public int compareTo(updateMyResearch_args other) {
45936
    public int compareTo(getAllUsers_args other) {
45973
      if (!getClass().equals(other.getClass())) {
45937
      if (!getClass().equals(other.getClass())) {
45974
        return getClass().getName().compareTo(other.getClass().getName());
45938
        return getClass().getName().compareTo(other.getClass().getName());
45975
      }
45939
      }
45976
 
45940
 
45977
      int lastComparison = 0;
45941
      int lastComparison = 0;
45978
      updateMyResearch_args typedOther = (updateMyResearch_args)other;
45942
      getAllUsers_args typedOther = (getAllUsers_args)other;
45979
 
45943
 
45980
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(isSetUserId());
45944
      lastComparison = Boolean.valueOf(isSetUserType()).compareTo(isSetUserType());
45981
      if (lastComparison != 0) {
45945
      if (lastComparison != 0) {
45982
        return lastComparison;
45946
        return lastComparison;
45983
      }
45947
      }
45984
      lastComparison = TBaseHelper.compareTo(userId, typedOther.userId);
45948
      lastComparison = TBaseHelper.compareTo(userType, typedOther.userType);
45985
      if (lastComparison != 0) {
45949
      if (lastComparison != 0) {
45986
        return lastComparison;
45950
        return lastComparison;
45987
      }
45951
      }
45988
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(isSetItemId());
45952
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(isSetStartDate());
45989
      if (lastComparison != 0) {
45953
      if (lastComparison != 0) {
45990
        return lastComparison;
45954
        return lastComparison;
45991
      }
45955
      }
-
 
45956
      lastComparison = TBaseHelper.compareTo(startDate, typedOther.startDate);
-
 
45957
      if (lastComparison != 0) {
-
 
45958
        return lastComparison;
-
 
45959
      }
-
 
45960
      lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(isSetEndDate());
-
 
45961
      if (lastComparison != 0) {
-
 
45962
        return lastComparison;
-
 
45963
      }
45992
      lastComparison = TBaseHelper.compareTo(itemId, typedOther.itemId);
45964
      lastComparison = TBaseHelper.compareTo(endDate, typedOther.endDate);
45993
      if (lastComparison != 0) {
45965
      if (lastComparison != 0) {
45994
        return lastComparison;
45966
        return lastComparison;
45995
      }
45967
      }
45996
      return 0;
45968
      return 0;
45997
    }
45969
    }
Line 46008... Line 45980...
46008
        _Fields fieldId = _Fields.findByThriftId(field.id);
45980
        _Fields fieldId = _Fields.findByThriftId(field.id);
46009
        if (fieldId == null) {
45981
        if (fieldId == null) {
46010
          TProtocolUtil.skip(iprot, field.type);
45982
          TProtocolUtil.skip(iprot, field.type);
46011
        } else {
45983
        } else {
46012
          switch (fieldId) {
45984
          switch (fieldId) {
46013
            case USER_ID:
45985
            case USER_TYPE:
-
 
45986
              if (field.type == TType.I32) {
-
 
45987
                this.userType = UserType.findByValue(iprot.readI32());
-
 
45988
              } else { 
-
 
45989
                TProtocolUtil.skip(iprot, field.type);
-
 
45990
              }
-
 
45991
              break;
-
 
45992
            case START_DATE:
46014
              if (field.type == TType.I64) {
45993
              if (field.type == TType.I64) {
46015
                this.userId = iprot.readI64();
45994
                this.startDate = iprot.readI64();
46016
                setUserIdIsSet(true);
45995
                setStartDateIsSet(true);
46017
              } else { 
45996
              } else { 
46018
                TProtocolUtil.skip(iprot, field.type);
45997
                TProtocolUtil.skip(iprot, field.type);
46019
              }
45998
              }
46020
              break;
45999
              break;
46021
            case ITEM_ID:
46000
            case END_DATE:
46022
              if (field.type == TType.I64) {
46001
              if (field.type == TType.I64) {
46023
                this.itemId = iprot.readI64();
46002
                this.endDate = iprot.readI64();
46024
                setItemIdIsSet(true);
46003
                setEndDateIsSet(true);
46025
              } else { 
46004
              } else { 
46026
                TProtocolUtil.skip(iprot, field.type);
46005
                TProtocolUtil.skip(iprot, field.type);
46027
              }
46006
              }
46028
              break;
46007
              break;
46029
          }
46008
          }
Line 46036... Line 46015...
46036
 
46015
 
46037
    public void write(TProtocol oprot) throws TException {
46016
    public void write(TProtocol oprot) throws TException {
46038
      validate();
46017
      validate();
46039
 
46018
 
46040
      oprot.writeStructBegin(STRUCT_DESC);
46019
      oprot.writeStructBegin(STRUCT_DESC);
-
 
46020
      if (this.userType != null) {
46041
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
46021
        oprot.writeFieldBegin(USER_TYPE_FIELD_DESC);
-
 
46022
        oprot.writeI32(this.userType.getValue());
-
 
46023
        oprot.writeFieldEnd();
-
 
46024
      }
-
 
46025
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
46042
      oprot.writeI64(this.userId);
46026
      oprot.writeI64(this.startDate);
46043
      oprot.writeFieldEnd();
46027
      oprot.writeFieldEnd();
46044
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
46028
      oprot.writeFieldBegin(END_DATE_FIELD_DESC);
46045
      oprot.writeI64(this.itemId);
46029
      oprot.writeI64(this.endDate);
46046
      oprot.writeFieldEnd();
46030
      oprot.writeFieldEnd();
46047
      oprot.writeFieldStop();
46031
      oprot.writeFieldStop();
46048
      oprot.writeStructEnd();
46032
      oprot.writeStructEnd();
46049
    }
46033
    }
46050
 
46034
 
46051
    @Override
46035
    @Override
46052
    public String toString() {
46036
    public String toString() {
46053
      StringBuilder sb = new StringBuilder("updateMyResearch_args(");
46037
      StringBuilder sb = new StringBuilder("getAllUsers_args(");
46054
      boolean first = true;
46038
      boolean first = true;
46055
 
46039
 
46056
      sb.append("userId:");
46040
      sb.append("userType:");
-
 
46041
      if (this.userType == null) {
-
 
46042
        sb.append("null");
-
 
46043
      } else {
-
 
46044
        String userType_name = userType.name();
-
 
46045
        if (userType_name != null) {
-
 
46046
          sb.append(userType_name);
-
 
46047
          sb.append(" (");
-
 
46048
        }
46057
      sb.append(this.userId);
46049
        sb.append(this.userType);
-
 
46050
        if (userType_name != null) {
-
 
46051
          sb.append(")");
-
 
46052
        }
-
 
46053
      }
46058
      first = false;
46054
      first = false;
46059
      if (!first) sb.append(", ");
46055
      if (!first) sb.append(", ");
-
 
46056
      sb.append("startDate:");
-
 
46057
      sb.append(this.startDate);
-
 
46058
      first = false;
-
 
46059
      if (!first) sb.append(", ");
46060
      sb.append("itemId:");
46060
      sb.append("endDate:");
46061
      sb.append(this.itemId);
46061
      sb.append(this.endDate);
46062
      first = false;
46062
      first = false;
46063
      sb.append(")");
46063
      sb.append(")");
46064
      return sb.toString();
46064
      return sb.toString();
46065
    }
46065
    }
46066
 
46066
 
Line 46068... Line 46068...
46068
      // check for required fields
46068
      // check for required fields
46069
    }
46069
    }
46070
 
46070
 
46071
  }
46071
  }
46072
 
46072
 
46073
  public static class updateMyResearch_result implements TBase<updateMyResearch_result._Fields>, java.io.Serializable, Cloneable, Comparable<updateMyResearch_result>   {
46073
  public static class getAllUsers_result implements TBase<getAllUsers_result._Fields>, java.io.Serializable, Cloneable, Comparable<getAllUsers_result>   {
46074
    private static final TStruct STRUCT_DESC = new TStruct("updateMyResearch_result");
46074
    private static final TStruct STRUCT_DESC = new TStruct("getAllUsers_result");
46075
 
46075
 
46076
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
46076
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
46077
    private static final TField SCX_FIELD_DESC = new TField("scx", TType.STRUCT, (short)1);
-
 
46078
 
46077
 
46079
    private boolean success;
46078
    private List<User> success;
46080
    private WidgetException scx;
-
 
46081
 
46079
 
46082
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
46080
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
46083
    public enum _Fields implements TFieldIdEnum {
46081
    public enum _Fields implements TFieldIdEnum {
46084
      SUCCESS((short)0, "success"),
46082
      SUCCESS((short)0, "success");
46085
      SCX((short)1, "scx");
-
 
46086
 
46083
 
46087
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
46084
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
46088
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
46085
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
46089
 
46086
 
46090
      static {
46087
      static {
Line 46134... Line 46131...
46134
        return _fieldName;
46131
        return _fieldName;
46135
      }
46132
      }
46136
    }
46133
    }
46137
 
46134
 
46138
    // isset id assignments
46135
    // isset id assignments
46139
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
46140
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
46141
 
46136
 
46142
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
46137
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
46143
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
46138
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
46144
          new FieldValueMetaData(TType.BOOL)));
46139
          new ListMetaData(TType.LIST, 
46145
      put(_Fields.SCX, new FieldMetaData("scx", TFieldRequirementType.DEFAULT, 
-
 
46146
          new FieldValueMetaData(TType.STRUCT)));
46140
              new StructMetaData(TType.STRUCT, User.class))));
46147
    }});
46141
    }});
46148
 
46142
 
46149
    static {
46143
    static {
46150
      FieldMetaData.addStructMetaDataMap(updateMyResearch_result.class, metaDataMap);
46144
      FieldMetaData.addStructMetaDataMap(getAllUsers_result.class, metaDataMap);
46151
    }
46145
    }
46152
 
46146
 
46153
    public updateMyResearch_result() {
46147
    public getAllUsers_result() {
46154
    }
46148
    }
46155
 
46149
 
46156
    public updateMyResearch_result(
46150
    public getAllUsers_result(
46157
      boolean success,
46151
      List<User> success)
46158
      WidgetException scx)
-
 
46159
    {
46152
    {
46160
      this();
46153
      this();
46161
      this.success = success;
46154
      this.success = success;
46162
      setSuccessIsSet(true);
-
 
46163
      this.scx = scx;
-
 
46164
    }
46155
    }
46165
 
46156
 
46166
    /**
46157
    /**
46167
     * Performs a deep copy on <i>other</i>.
46158
     * Performs a deep copy on <i>other</i>.
46168
     */
46159
     */
46169
    public updateMyResearch_result(updateMyResearch_result other) {
46160
    public getAllUsers_result(getAllUsers_result other) {
46170
      __isset_bit_vector.clear();
46161
      if (other.isSetSuccess()) {
46171
      __isset_bit_vector.or(other.__isset_bit_vector);
46162
        List<User> __this__success = new ArrayList<User>();
46172
      this.success = other.success;
46163
        for (User other_element : other.success) {
46173
      if (other.isSetScx()) {
46164
          __this__success.add(new User(other_element));
-
 
46165
        }
46174
        this.scx = new WidgetException(other.scx);
46166
        this.success = __this__success;
46175
      }
46167
      }
46176
    }
46168
    }
46177
 
46169
 
46178
    public updateMyResearch_result deepCopy() {
46170
    public getAllUsers_result deepCopy() {
46179
      return new updateMyResearch_result(this);
46171
      return new getAllUsers_result(this);
46180
    }
46172
    }
46181
 
46173
 
46182
    @Deprecated
46174
    @Deprecated
46183
    public updateMyResearch_result clone() {
46175
    public getAllUsers_result clone() {
46184
      return new updateMyResearch_result(this);
46176
      return new getAllUsers_result(this);
46185
    }
-
 
46186
 
-
 
46187
    public boolean isSuccess() {
-
 
46188
      return this.success;
-
 
46189
    }
-
 
46190
 
-
 
46191
    public updateMyResearch_result setSuccess(boolean success) {
-
 
46192
      this.success = success;
-
 
46193
      setSuccessIsSet(true);
-
 
46194
      return this;
-
 
46195
    }
46177
    }
46196
 
46178
 
46197
    public void unsetSuccess() {
46179
    public int getSuccessSize() {
46198
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
46180
      return (this.success == null) ? 0 : this.success.size();
46199
    }
46181
    }
46200
 
46182
 
46201
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
46202
    public boolean isSetSuccess() {
46183
    public java.util.Iterator<User> getSuccessIterator() {
46203
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
46184
      return (this.success == null) ? null : this.success.iterator();
46204
    }
46185
    }
46205
 
46186
 
46206
    public void setSuccessIsSet(boolean value) {
46187
    public void addToSuccess(User elem) {
-
 
46188
      if (this.success == null) {
46207
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
46189
        this.success = new ArrayList<User>();
-
 
46190
      }
-
 
46191
      this.success.add(elem);
46208
    }
46192
    }
46209
 
46193
 
46210
    public WidgetException getScx() {
46194
    public List<User> getSuccess() {
46211
      return this.scx;
46195
      return this.success;
46212
    }
46196
    }
46213
 
46197
 
46214
    public updateMyResearch_result setScx(WidgetException scx) {
46198
    public getAllUsers_result setSuccess(List<User> success) {
46215
      this.scx = scx;
46199
      this.success = success;
46216
      return this;
46200
      return this;
46217
    }
46201
    }
46218
 
46202
 
46219
    public void unsetScx() {
46203
    public void unsetSuccess() {
46220
      this.scx = null;
46204
      this.success = null;
46221
    }
46205
    }
46222
 
46206
 
46223
    /** Returns true if field scx is set (has been asigned a value) and false otherwise */
46207
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
46224
    public boolean isSetScx() {
46208
    public boolean isSetSuccess() {
46225
      return this.scx != null;
46209
      return this.success != null;
46226
    }
46210
    }
46227
 
46211
 
46228
    public void setScxIsSet(boolean value) {
46212
    public void setSuccessIsSet(boolean value) {
46229
      if (!value) {
46213
      if (!value) {
46230
        this.scx = null;
46214
        this.success = null;
46231
      }
46215
      }
46232
    }
46216
    }
46233
 
46217
 
46234
    public void setFieldValue(_Fields field, Object value) {
46218
    public void setFieldValue(_Fields field, Object value) {
46235
      switch (field) {
46219
      switch (field) {
46236
      case SUCCESS:
46220
      case SUCCESS:
46237
        if (value == null) {
46221
        if (value == null) {
46238
          unsetSuccess();
46222
          unsetSuccess();
46239
        } else {
46223
        } else {
46240
          setSuccess((Boolean)value);
46224
          setSuccess((List<User>)value);
46241
        }
-
 
46242
        break;
-
 
46243
 
-
 
46244
      case SCX:
-
 
46245
        if (value == null) {
-
 
46246
          unsetScx();
-
 
46247
        } else {
-
 
46248
          setScx((WidgetException)value);
-
 
46249
        }
46225
        }
46250
        break;
46226
        break;
46251
 
46227
 
46252
      }
46228
      }
46253
    }
46229
    }
Line 46257... Line 46233...
46257
    }
46233
    }
46258
 
46234
 
46259
    public Object getFieldValue(_Fields field) {
46235
    public Object getFieldValue(_Fields field) {
46260
      switch (field) {
46236
      switch (field) {
46261
      case SUCCESS:
46237
      case SUCCESS:
46262
        return new Boolean(isSuccess());
-
 
46263
 
-
 
46264
      case SCX:
-
 
46265
        return getScx();
46238
        return getSuccess();
46266
 
46239
 
46267
      }
46240
      }
46268
      throw new IllegalStateException();
46241
      throw new IllegalStateException();
46269
    }
46242
    }
46270
 
46243
 
Line 46275... Line 46248...
46275
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
46248
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
46276
    public boolean isSet(_Fields field) {
46249
    public boolean isSet(_Fields field) {
46277
      switch (field) {
46250
      switch (field) {
46278
      case SUCCESS:
46251
      case SUCCESS:
46279
        return isSetSuccess();
46252
        return isSetSuccess();
46280
      case SCX:
-
 
46281
        return isSetScx();
-
 
46282
      }
46253
      }
46283
      throw new IllegalStateException();
46254
      throw new IllegalStateException();
46284
    }
46255
    }
46285
 
46256
 
46286
    public boolean isSet(int fieldID) {
46257
    public boolean isSet(int fieldID) {
Line 46289... Line 46260...
46289
 
46260
 
46290
    @Override
46261
    @Override
46291
    public boolean equals(Object that) {
46262
    public boolean equals(Object that) {
46292
      if (that == null)
46263
      if (that == null)
46293
        return false;
46264
        return false;
46294
      if (that instanceof updateMyResearch_result)
46265
      if (that instanceof getAllUsers_result)
46295
        return this.equals((updateMyResearch_result)that);
46266
        return this.equals((getAllUsers_result)that);
46296
      return false;
46267
      return false;
46297
    }
46268
    }
46298
 
46269
 
46299
    public boolean equals(updateMyResearch_result that) {
46270
    public boolean equals(getAllUsers_result that) {
46300
      if (that == null)
46271
      if (that == null)
46301
        return false;
46272
        return false;
46302
 
46273
 
46303
      boolean this_present_success = true;
46274
      boolean this_present_success = true && this.isSetSuccess();
46304
      boolean that_present_success = true;
46275
      boolean that_present_success = true && that.isSetSuccess();
46305
      if (this_present_success || that_present_success) {
46276
      if (this_present_success || that_present_success) {
46306
        if (!(this_present_success && that_present_success))
46277
        if (!(this_present_success && that_present_success))
46307
          return false;
46278
          return false;
46308
        if (this.success != that.success)
46279
        if (!this.success.equals(that.success))
46309
          return false;
-
 
46310
      }
-
 
46311
 
-
 
46312
      boolean this_present_scx = true && this.isSetScx();
-
 
46313
      boolean that_present_scx = true && that.isSetScx();
-
 
46314
      if (this_present_scx || that_present_scx) {
-
 
46315
        if (!(this_present_scx && that_present_scx))
-
 
46316
          return false;
-
 
46317
        if (!this.scx.equals(that.scx))
-
 
46318
          return false;
46280
          return false;
46319
      }
46281
      }
46320
 
46282
 
46321
      return true;
46283
      return true;
46322
    }
46284
    }
Line 46324... Line 46286...
46324
    @Override
46286
    @Override
46325
    public int hashCode() {
46287
    public int hashCode() {
46326
      return 0;
46288
      return 0;
46327
    }
46289
    }
46328
 
46290
 
46329
    public int compareTo(updateMyResearch_result other) {
46291
    public int compareTo(getAllUsers_result other) {
46330
      if (!getClass().equals(other.getClass())) {
46292
      if (!getClass().equals(other.getClass())) {
46331
        return getClass().getName().compareTo(other.getClass().getName());
46293
        return getClass().getName().compareTo(other.getClass().getName());
46332
      }
46294
      }
46333
 
46295
 
46334
      int lastComparison = 0;
46296
      int lastComparison = 0;
46335
      updateMyResearch_result typedOther = (updateMyResearch_result)other;
46297
      getAllUsers_result typedOther = (getAllUsers_result)other;
46336
 
46298
 
46337
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
46299
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
46338
      if (lastComparison != 0) {
46300
      if (lastComparison != 0) {
46339
        return lastComparison;
46301
        return lastComparison;
46340
      }
46302
      }
46341
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
46303
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
46342
      if (lastComparison != 0) {
46304
      if (lastComparison != 0) {
46343
        return lastComparison;
46305
        return lastComparison;
46344
      }
46306
      }
46345
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(isSetScx());
-
 
46346
      if (lastComparison != 0) {
-
 
46347
        return lastComparison;
-
 
46348
      }
-
 
46349
      lastComparison = TBaseHelper.compareTo(scx, typedOther.scx);
-
 
46350
      if (lastComparison != 0) {
-
 
46351
        return lastComparison;
-
 
46352
      }
-
 
46353
      return 0;
46307
      return 0;
46354
    }
46308
    }
46355
 
46309
 
46356
    public void read(TProtocol iprot) throws TException {
46310
    public void read(TProtocol iprot) throws TException {
46357
      TField field;
46311
      TField field;
Line 46366... Line 46320...
46366
        if (fieldId == null) {
46320
        if (fieldId == null) {
46367
          TProtocolUtil.skip(iprot, field.type);
46321
          TProtocolUtil.skip(iprot, field.type);
46368
        } else {
46322
        } else {
46369
          switch (fieldId) {
46323
          switch (fieldId) {
46370
            case SUCCESS:
46324
            case SUCCESS:
46371
              if (field.type == TType.BOOL) {
46325
              if (field.type == TType.LIST) {
46372
                this.success = iprot.readBool();
46326
                {
46373
                setSuccessIsSet(true);
46327
                  TList _list65 = iprot.readListBegin();
46374
              } else { 
46328
                  this.success = new ArrayList<User>(_list65.size);
46375
                TProtocolUtil.skip(iprot, field.type);
46329
                  for (int _i66 = 0; _i66 < _list65.size; ++_i66)
46376
              }
46330
                  {
46377
              break;
46331
                    User _elem67;
46378
            case SCX:
46332
                    _elem67 = new User();
46379
              if (field.type == TType.STRUCT) {
46333
                    _elem67.read(iprot);
46380
                this.scx = new WidgetException();
46334
                    this.success.add(_elem67);
-
 
46335
                  }
46381
                this.scx.read(iprot);
46336
                  iprot.readListEnd();
-
 
46337
                }
46382
              } else { 
46338
              } else { 
46383
                TProtocolUtil.skip(iprot, field.type);
46339
                TProtocolUtil.skip(iprot, field.type);
46384
              }
46340
              }
46385
              break;
46341
              break;
46386
          }
46342
          }
Line 46394... Line 46350...
46394
    public void write(TProtocol oprot) throws TException {
46350
    public void write(TProtocol oprot) throws TException {
46395
      oprot.writeStructBegin(STRUCT_DESC);
46351
      oprot.writeStructBegin(STRUCT_DESC);
46396
 
46352
 
46397
      if (this.isSetSuccess()) {
46353
      if (this.isSetSuccess()) {
46398
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
46354
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
46355
        {
-
 
46356
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
46399
        oprot.writeBool(this.success);
46357
          for (User _iter68 : this.success)
-
 
46358
          {
46400
        oprot.writeFieldEnd();
46359
            _iter68.write(oprot);
46401
      } else if (this.isSetScx()) {
46360
          }
46402
        oprot.writeFieldBegin(SCX_FIELD_DESC);
46361
          oprot.writeListEnd();
46403
        this.scx.write(oprot);
46362
        }
46404
        oprot.writeFieldEnd();
46363
        oprot.writeFieldEnd();
46405
      }
46364
      }
46406
      oprot.writeFieldStop();
46365
      oprot.writeFieldStop();
46407
      oprot.writeStructEnd();
46366
      oprot.writeStructEnd();
46408
    }
46367
    }
46409
 
46368
 
46410
    @Override
46369
    @Override
46411
    public String toString() {
46370
    public String toString() {
46412
      StringBuilder sb = new StringBuilder("updateMyResearch_result(");
46371
      StringBuilder sb = new StringBuilder("getAllUsers_result(");
46413
      boolean first = true;
46372
      boolean first = true;
46414
 
46373
 
46415
      sb.append("success:");
46374
      sb.append("success:");
46416
      sb.append(this.success);
-
 
46417
      first = false;
-
 
46418
      if (!first) sb.append(", ");
-
 
46419
      sb.append("scx:");
-
 
46420
      if (this.scx == null) {
46375
      if (this.success == null) {
46421
        sb.append("null");
46376
        sb.append("null");
46422
      } else {
46377
      } else {
46423
        sb.append(this.scx);
46378
        sb.append(this.success);
46424
      }
46379
      }
46425
      first = false;
46380
      first = false;
46426
      sb.append(")");
46381
      sb.append(")");
46427
      return sb.toString();
46382
      return sb.toString();
46428
    }
46383
    }
Line 46431... Line 46386...
46431
      // check for required fields
46386
      // check for required fields
46432
    }
46387
    }
46433
 
46388
 
46434
  }
46389
  }
46435
 
46390
 
46436
  public static class deleteItemFromMyResearch_args implements TBase<deleteItemFromMyResearch_args._Fields>, java.io.Serializable, Cloneable, Comparable<deleteItemFromMyResearch_args>   {
46391
  public static class putUserNote_args implements TBase<putUserNote_args._Fields>, java.io.Serializable, Cloneable, Comparable<putUserNote_args>   {
46437
    private static final TStruct STRUCT_DESC = new TStruct("deleteItemFromMyResearch_args");
46392
    private static final TStruct STRUCT_DESC = new TStruct("putUserNote_args");
46438
 
46393
 
46439
    private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)1);
46394
    private static final TField USER_ID_FIELD_DESC = new TField("user_id", TType.I64, (short)1);
46440
    private static final TField ITEM_ID_FIELD_DESC = new TField("itemId", TType.I64, (short)2);
46395
    private static final TField ENTITY_ID_FIELD_DESC = new TField("entity_id", TType.I64, (short)2);
-
 
46396
    private static final TField SLIDE_FIELD_DESC = new TField("slide", TType.STRING, (short)3);
-
 
46397
    private static final TField NOTE_FIELD_DESC = new TField("note", TType.STRING, (short)4);
46441
 
46398
 
46442
    private long userId;
46399
    private long user_id;
46443
    private long itemId;
46400
    private long entity_id;
-
 
46401
    private String slide;
-
 
46402
    private String note;
46444
 
46403
 
46445
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
46404
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
46446
    public enum _Fields implements TFieldIdEnum {
46405
    public enum _Fields implements TFieldIdEnum {
46447
      USER_ID((short)1, "userId"),
46406
      USER_ID((short)1, "user_id"),
46448
      ITEM_ID((short)2, "itemId");
46407
      ENTITY_ID((short)2, "entity_id"),
-
 
46408
      SLIDE((short)3, "slide"),
-
 
46409
      NOTE((short)4, "note");
46449
 
46410
 
46450
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
46411
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
46451
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
46412
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
46452
 
46413
 
46453
      static {
46414
      static {
Line 46497... Line 46458...
46497
        return _fieldName;
46458
        return _fieldName;
46498
      }
46459
      }
46499
    }
46460
    }
46500
 
46461
 
46501
    // isset id assignments
46462
    // isset id assignments
46502
    private static final int __USERID_ISSET_ID = 0;
46463
    private static final int __USER_ID_ISSET_ID = 0;
46503
    private static final int __ITEMID_ISSET_ID = 1;
46464
    private static final int __ENTITY_ID_ISSET_ID = 1;
46504
    private BitSet __isset_bit_vector = new BitSet(2);
46465
    private BitSet __isset_bit_vector = new BitSet(2);
46505
 
46466
 
46506
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
46467
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
46507
      put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT, 
46468
      put(_Fields.USER_ID, new FieldMetaData("user_id", TFieldRequirementType.DEFAULT, 
46508
          new FieldValueMetaData(TType.I64)));
46469
          new FieldValueMetaData(TType.I64)));
46509
      put(_Fields.ITEM_ID, new FieldMetaData("itemId", TFieldRequirementType.DEFAULT, 
46470
      put(_Fields.ENTITY_ID, new FieldMetaData("entity_id", TFieldRequirementType.DEFAULT, 
46510
          new FieldValueMetaData(TType.I64)));
46471
          new FieldValueMetaData(TType.I64)));
-
 
46472
      put(_Fields.SLIDE, new FieldMetaData("slide", TFieldRequirementType.DEFAULT, 
-
 
46473
          new FieldValueMetaData(TType.STRING)));
-
 
46474
      put(_Fields.NOTE, new FieldMetaData("note", TFieldRequirementType.DEFAULT, 
-
 
46475
          new FieldValueMetaData(TType.STRING)));
46511
    }});
46476
    }});
46512
 
46477
 
46513
    static {
46478
    static {
46514
      FieldMetaData.addStructMetaDataMap(deleteItemFromMyResearch_args.class, metaDataMap);
46479
      FieldMetaData.addStructMetaDataMap(putUserNote_args.class, metaDataMap);
46515
    }
46480
    }
46516
 
46481
 
46517
    public deleteItemFromMyResearch_args() {
46482
    public putUserNote_args() {
46518
    }
46483
    }
46519
 
46484
 
46520
    public deleteItemFromMyResearch_args(
46485
    public putUserNote_args(
46521
      long userId,
46486
      long user_id,
46522
      long itemId)
46487
      long entity_id,
-
 
46488
      String slide,
-
 
46489
      String note)
46523
    {
46490
    {
46524
      this();
46491
      this();
46525
      this.userId = userId;
46492
      this.user_id = user_id;
46526
      setUserIdIsSet(true);
46493
      setUser_idIsSet(true);
46527
      this.itemId = itemId;
46494
      this.entity_id = entity_id;
46528
      setItemIdIsSet(true);
46495
      setEntity_idIsSet(true);
-
 
46496
      this.slide = slide;
-
 
46497
      this.note = note;
46529
    }
46498
    }
46530
 
46499
 
46531
    /**
46500
    /**
46532
     * Performs a deep copy on <i>other</i>.
46501
     * Performs a deep copy on <i>other</i>.
46533
     */
46502
     */
46534
    public deleteItemFromMyResearch_args(deleteItemFromMyResearch_args other) {
46503
    public putUserNote_args(putUserNote_args other) {
46535
      __isset_bit_vector.clear();
46504
      __isset_bit_vector.clear();
46536
      __isset_bit_vector.or(other.__isset_bit_vector);
46505
      __isset_bit_vector.or(other.__isset_bit_vector);
46537
      this.userId = other.userId;
46506
      this.user_id = other.user_id;
46538
      this.itemId = other.itemId;
46507
      this.entity_id = other.entity_id;
-
 
46508
      if (other.isSetSlide()) {
-
 
46509
        this.slide = other.slide;
-
 
46510
      }
-
 
46511
      if (other.isSetNote()) {
-
 
46512
        this.note = other.note;
-
 
46513
      }
46539
    }
46514
    }
46540
 
46515
 
46541
    public deleteItemFromMyResearch_args deepCopy() {
46516
    public putUserNote_args deepCopy() {
46542
      return new deleteItemFromMyResearch_args(this);
46517
      return new putUserNote_args(this);
46543
    }
46518
    }
46544
 
46519
 
46545
    @Deprecated
46520
    @Deprecated
46546
    public deleteItemFromMyResearch_args clone() {
46521
    public putUserNote_args clone() {
46547
      return new deleteItemFromMyResearch_args(this);
46522
      return new putUserNote_args(this);
46548
    }
46523
    }
46549
 
46524
 
46550
    public long getUserId() {
46525
    public long getUser_id() {
46551
      return this.userId;
46526
      return this.user_id;
46552
    }
46527
    }
46553
 
46528
 
46554
    public deleteItemFromMyResearch_args setUserId(long userId) {
46529
    public putUserNote_args setUser_id(long user_id) {
46555
      this.userId = userId;
46530
      this.user_id = user_id;
46556
      setUserIdIsSet(true);
46531
      setUser_idIsSet(true);
46557
      return this;
46532
      return this;
46558
    }
46533
    }
46559
 
46534
 
46560
    public void unsetUserId() {
46535
    public void unsetUser_id() {
46561
      __isset_bit_vector.clear(__USERID_ISSET_ID);
46536
      __isset_bit_vector.clear(__USER_ID_ISSET_ID);
46562
    }
46537
    }
46563
 
46538
 
46564
    /** Returns true if field userId is set (has been asigned a value) and false otherwise */
46539
    /** Returns true if field user_id is set (has been asigned a value) and false otherwise */
46565
    public boolean isSetUserId() {
46540
    public boolean isSetUser_id() {
46566
      return __isset_bit_vector.get(__USERID_ISSET_ID);
46541
      return __isset_bit_vector.get(__USER_ID_ISSET_ID);
46567
    }
46542
    }
46568
 
46543
 
46569
    public void setUserIdIsSet(boolean value) {
46544
    public void setUser_idIsSet(boolean value) {
46570
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
46545
      __isset_bit_vector.set(__USER_ID_ISSET_ID, value);
46571
    }
46546
    }
46572
 
46547
 
46573
    public long getItemId() {
46548
    public long getEntity_id() {
46574
      return this.itemId;
46549
      return this.entity_id;
46575
    }
46550
    }
46576
 
46551
 
46577
    public deleteItemFromMyResearch_args setItemId(long itemId) {
46552
    public putUserNote_args setEntity_id(long entity_id) {
46578
      this.itemId = itemId;
46553
      this.entity_id = entity_id;
46579
      setItemIdIsSet(true);
46554
      setEntity_idIsSet(true);
46580
      return this;
46555
      return this;
46581
    }
46556
    }
46582
 
46557
 
46583
    public void unsetItemId() {
46558
    public void unsetEntity_id() {
46584
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
46559
      __isset_bit_vector.clear(__ENTITY_ID_ISSET_ID);
46585
    }
46560
    }
46586
 
46561
 
46587
    /** Returns true if field itemId is set (has been asigned a value) and false otherwise */
46562
    /** Returns true if field entity_id is set (has been asigned a value) and false otherwise */
46588
    public boolean isSetItemId() {
46563
    public boolean isSetEntity_id() {
46589
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
46564
      return __isset_bit_vector.get(__ENTITY_ID_ISSET_ID);
46590
    }
46565
    }
46591
 
46566
 
46592
    public void setItemIdIsSet(boolean value) {
46567
    public void setEntity_idIsSet(boolean value) {
46593
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
46568
      __isset_bit_vector.set(__ENTITY_ID_ISSET_ID, value);
-
 
46569
    }
-
 
46570
 
-
 
46571
    public String getSlide() {
-
 
46572
      return this.slide;
-
 
46573
    }
-
 
46574
 
-
 
46575
    public putUserNote_args setSlide(String slide) {
-
 
46576
      this.slide = slide;
-
 
46577
      return this;
-
 
46578
    }
-
 
46579
 
-
 
46580
    public void unsetSlide() {
-
 
46581
      this.slide = null;
-
 
46582
    }
-
 
46583
 
-
 
46584
    /** Returns true if field slide is set (has been asigned a value) and false otherwise */
-
 
46585
    public boolean isSetSlide() {
-
 
46586
      return this.slide != null;
-
 
46587
    }
-
 
46588
 
-
 
46589
    public void setSlideIsSet(boolean value) {
-
 
46590
      if (!value) {
-
 
46591
        this.slide = null;
-
 
46592
      }
-
 
46593
    }
-
 
46594
 
-
 
46595
    public String getNote() {
-
 
46596
      return this.note;
-
 
46597
    }
-
 
46598
 
-
 
46599
    public putUserNote_args setNote(String note) {
-
 
46600
      this.note = note;
-
 
46601
      return this;
-
 
46602
    }
-
 
46603
 
-
 
46604
    public void unsetNote() {
-
 
46605
      this.note = null;
-
 
46606
    }
-
 
46607
 
-
 
46608
    /** Returns true if field note is set (has been asigned a value) and false otherwise */
-
 
46609
    public boolean isSetNote() {
-
 
46610
      return this.note != null;
-
 
46611
    }
-
 
46612
 
-
 
46613
    public void setNoteIsSet(boolean value) {
-
 
46614
      if (!value) {
-
 
46615
        this.note = null;
-
 
46616
      }
46594
    }
46617
    }
46595
 
46618
 
46596
    public void setFieldValue(_Fields field, Object value) {
46619
    public void setFieldValue(_Fields field, Object value) {
46597
      switch (field) {
46620
      switch (field) {
46598
      case USER_ID:
46621
      case USER_ID:
46599
        if (value == null) {
46622
        if (value == null) {
46600
          unsetUserId();
46623
          unsetUser_id();
46601
        } else {
46624
        } else {
46602
          setUserId((Long)value);
46625
          setUser_id((Long)value);
46603
        }
46626
        }
46604
        break;
46627
        break;
46605
 
46628
 
46606
      case ITEM_ID:
46629
      case ENTITY_ID:
46607
        if (value == null) {
46630
        if (value == null) {
46608
          unsetItemId();
46631
          unsetEntity_id();
46609
        } else {
46632
        } else {
46610
          setItemId((Long)value);
46633
          setEntity_id((Long)value);
-
 
46634
        }
-
 
46635
        break;
-
 
46636
 
-
 
46637
      case SLIDE:
-
 
46638
        if (value == null) {
-
 
46639
          unsetSlide();
-
 
46640
        } else {
-
 
46641
          setSlide((String)value);
-
 
46642
        }
-
 
46643
        break;
-
 
46644
 
-
 
46645
      case NOTE:
-
 
46646
        if (value == null) {
-
 
46647
          unsetNote();
-
 
46648
        } else {
-
 
46649
          setNote((String)value);
46611
        }
46650
        }
46612
        break;
46651
        break;
46613
 
46652
 
46614
      }
46653
      }
46615
    }
46654
    }
Line 46619... Line 46658...
46619
    }
46658
    }
46620
 
46659
 
46621
    public Object getFieldValue(_Fields field) {
46660
    public Object getFieldValue(_Fields field) {
46622
      switch (field) {
46661
      switch (field) {
46623
      case USER_ID:
46662
      case USER_ID:
46624
        return new Long(getUserId());
46663
        return new Long(getUser_id());
46625
 
46664
 
46626
      case ITEM_ID:
46665
      case ENTITY_ID:
46627
        return new Long(getItemId());
46666
        return new Long(getEntity_id());
-
 
46667
 
-
 
46668
      case SLIDE:
-
 
46669
        return getSlide();
-
 
46670
 
-
 
46671
      case NOTE:
-
 
46672
        return getNote();
46628
 
46673
 
46629
      }
46674
      }
46630
      throw new IllegalStateException();
46675
      throw new IllegalStateException();
46631
    }
46676
    }
46632
 
46677
 
Line 46636... Line 46681...
46636
 
46681
 
46637
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
46682
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
46638
    public boolean isSet(_Fields field) {
46683
    public boolean isSet(_Fields field) {
46639
      switch (field) {
46684
      switch (field) {
46640
      case USER_ID:
46685
      case USER_ID:
46641
        return isSetUserId();
46686
        return isSetUser_id();
46642
      case ITEM_ID:
46687
      case ENTITY_ID:
-
 
46688
        return isSetEntity_id();
-
 
46689
      case SLIDE:
-
 
46690
        return isSetSlide();
-
 
46691
      case NOTE:
46643
        return isSetItemId();
46692
        return isSetNote();
46644
      }
46693
      }
46645
      throw new IllegalStateException();
46694
      throw new IllegalStateException();
46646
    }
46695
    }
46647
 
46696
 
46648
    public boolean isSet(int fieldID) {
46697
    public boolean isSet(int fieldID) {
Line 46651... Line 46700...
46651
 
46700
 
46652
    @Override
46701
    @Override
46653
    public boolean equals(Object that) {
46702
    public boolean equals(Object that) {
46654
      if (that == null)
46703
      if (that == null)
46655
        return false;
46704
        return false;
46656
      if (that instanceof deleteItemFromMyResearch_args)
46705
      if (that instanceof putUserNote_args)
46657
        return this.equals((deleteItemFromMyResearch_args)that);
46706
        return this.equals((putUserNote_args)that);
46658
      return false;
46707
      return false;
46659
    }
46708
    }
46660
 
46709
 
46661
    public boolean equals(deleteItemFromMyResearch_args that) {
46710
    public boolean equals(putUserNote_args that) {
46662
      if (that == null)
46711
      if (that == null)
46663
        return false;
46712
        return false;
46664
 
46713
 
46665
      boolean this_present_userId = true;
46714
      boolean this_present_user_id = true;
46666
      boolean that_present_userId = true;
46715
      boolean that_present_user_id = true;
46667
      if (this_present_userId || that_present_userId) {
46716
      if (this_present_user_id || that_present_user_id) {
46668
        if (!(this_present_userId && that_present_userId))
46717
        if (!(this_present_user_id && that_present_user_id))
46669
          return false;
46718
          return false;
46670
        if (this.userId != that.userId)
46719
        if (this.user_id != that.user_id)
46671
          return false;
46720
          return false;
46672
      }
46721
      }
46673
 
46722
 
46674
      boolean this_present_itemId = true;
46723
      boolean this_present_entity_id = true;
46675
      boolean that_present_itemId = true;
46724
      boolean that_present_entity_id = true;
46676
      if (this_present_itemId || that_present_itemId) {
46725
      if (this_present_entity_id || that_present_entity_id) {
46677
        if (!(this_present_itemId && that_present_itemId))
46726
        if (!(this_present_entity_id && that_present_entity_id))
46678
          return false;
46727
          return false;
46679
        if (this.itemId != that.itemId)
46728
        if (this.entity_id != that.entity_id)
-
 
46729
          return false;
-
 
46730
      }
-
 
46731
 
-
 
46732
      boolean this_present_slide = true && this.isSetSlide();
-
 
46733
      boolean that_present_slide = true && that.isSetSlide();
-
 
46734
      if (this_present_slide || that_present_slide) {
-
 
46735
        if (!(this_present_slide && that_present_slide))
-
 
46736
          return false;
-
 
46737
        if (!this.slide.equals(that.slide))
-
 
46738
          return false;
-
 
46739
      }
-
 
46740
 
-
 
46741
      boolean this_present_note = true && this.isSetNote();
-
 
46742
      boolean that_present_note = true && that.isSetNote();
-
 
46743
      if (this_present_note || that_present_note) {
-
 
46744
        if (!(this_present_note && that_present_note))
-
 
46745
          return false;
-
 
46746
        if (!this.note.equals(that.note))
46680
          return false;
46747
          return false;
46681
      }
46748
      }
46682
 
46749
 
46683
      return true;
46750
      return true;
46684
    }
46751
    }
Line 46686... Line 46753...
46686
    @Override
46753
    @Override
46687
    public int hashCode() {
46754
    public int hashCode() {
46688
      return 0;
46755
      return 0;
46689
    }
46756
    }
46690
 
46757
 
46691
    public int compareTo(deleteItemFromMyResearch_args other) {
46758
    public int compareTo(putUserNote_args other) {
46692
      if (!getClass().equals(other.getClass())) {
46759
      if (!getClass().equals(other.getClass())) {
46693
        return getClass().getName().compareTo(other.getClass().getName());
46760
        return getClass().getName().compareTo(other.getClass().getName());
46694
      }
46761
      }
46695
 
46762
 
46696
      int lastComparison = 0;
46763
      int lastComparison = 0;
46697
      deleteItemFromMyResearch_args typedOther = (deleteItemFromMyResearch_args)other;
46764
      putUserNote_args typedOther = (putUserNote_args)other;
46698
 
46765
 
46699
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(isSetUserId());
46766
      lastComparison = Boolean.valueOf(isSetUser_id()).compareTo(isSetUser_id());
46700
      if (lastComparison != 0) {
46767
      if (lastComparison != 0) {
46701
        return lastComparison;
46768
        return lastComparison;
46702
      }
46769
      }
46703
      lastComparison = TBaseHelper.compareTo(userId, typedOther.userId);
46770
      lastComparison = TBaseHelper.compareTo(user_id, typedOther.user_id);
46704
      if (lastComparison != 0) {
46771
      if (lastComparison != 0) {
46705
        return lastComparison;
46772
        return lastComparison;
46706
      }
46773
      }
46707
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(isSetItemId());
46774
      lastComparison = Boolean.valueOf(isSetEntity_id()).compareTo(isSetEntity_id());
46708
      if (lastComparison != 0) {
46775
      if (lastComparison != 0) {
46709
        return lastComparison;
46776
        return lastComparison;
46710
      }
46777
      }
-
 
46778
      lastComparison = TBaseHelper.compareTo(entity_id, typedOther.entity_id);
-
 
46779
      if (lastComparison != 0) {
-
 
46780
        return lastComparison;
-
 
46781
      }
-
 
46782
      lastComparison = Boolean.valueOf(isSetSlide()).compareTo(isSetSlide());
-
 
46783
      if (lastComparison != 0) {
-
 
46784
        return lastComparison;
-
 
46785
      }
-
 
46786
      lastComparison = TBaseHelper.compareTo(slide, typedOther.slide);
-
 
46787
      if (lastComparison != 0) {
-
 
46788
        return lastComparison;
-
 
46789
      }
-
 
46790
      lastComparison = Boolean.valueOf(isSetNote()).compareTo(isSetNote());
-
 
46791
      if (lastComparison != 0) {
-
 
46792
        return lastComparison;
-
 
46793
      }
46711
      lastComparison = TBaseHelper.compareTo(itemId, typedOther.itemId);
46794
      lastComparison = TBaseHelper.compareTo(note, typedOther.note);
46712
      if (lastComparison != 0) {
46795
      if (lastComparison != 0) {
46713
        return lastComparison;
46796
        return lastComparison;
46714
      }
46797
      }
46715
      return 0;
46798
      return 0;
46716
    }
46799
    }
Line 46729... Line 46812...
46729
          TProtocolUtil.skip(iprot, field.type);
46812
          TProtocolUtil.skip(iprot, field.type);
46730
        } else {
46813
        } else {
46731
          switch (fieldId) {
46814
          switch (fieldId) {
46732
            case USER_ID:
46815
            case USER_ID:
46733
              if (field.type == TType.I64) {
46816
              if (field.type == TType.I64) {
46734
                this.userId = iprot.readI64();
46817
                this.user_id = iprot.readI64();
46735
                setUserIdIsSet(true);
46818
                setUser_idIsSet(true);
46736
              } else { 
46819
              } else { 
46737
                TProtocolUtil.skip(iprot, field.type);
46820
                TProtocolUtil.skip(iprot, field.type);
46738
              }
46821
              }
46739
              break;
46822
              break;
46740
            case ITEM_ID:
46823
            case ENTITY_ID:
46741
              if (field.type == TType.I64) {
46824
              if (field.type == TType.I64) {
46742
                this.itemId = iprot.readI64();
46825
                this.entity_id = iprot.readI64();
46743
                setItemIdIsSet(true);
46826
                setEntity_idIsSet(true);
-
 
46827
              } else { 
-
 
46828
                TProtocolUtil.skip(iprot, field.type);
-
 
46829
              }
-
 
46830
              break;
-
 
46831
            case SLIDE:
-
 
46832
              if (field.type == TType.STRING) {
-
 
46833
                this.slide = iprot.readString();
-
 
46834
              } else { 
-
 
46835
                TProtocolUtil.skip(iprot, field.type);
-
 
46836
              }
-
 
46837
              break;
-
 
46838
            case NOTE:
-
 
46839
              if (field.type == TType.STRING) {
-
 
46840
                this.note = iprot.readString();
46744
              } else { 
46841
              } else { 
46745
                TProtocolUtil.skip(iprot, field.type);
46842
                TProtocolUtil.skip(iprot, field.type);
46746
              }
46843
              }
46747
              break;
46844
              break;
46748
          }
46845
          }
Line 46756... Line 46853...
46756
    public void write(TProtocol oprot) throws TException {
46853
    public void write(TProtocol oprot) throws TException {
46757
      validate();
46854
      validate();
46758
 
46855
 
46759
      oprot.writeStructBegin(STRUCT_DESC);
46856
      oprot.writeStructBegin(STRUCT_DESC);
46760
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
46857
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
46761
      oprot.writeI64(this.userId);
46858
      oprot.writeI64(this.user_id);
46762
      oprot.writeFieldEnd();
46859
      oprot.writeFieldEnd();
46763
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
46860
      oprot.writeFieldBegin(ENTITY_ID_FIELD_DESC);
46764
      oprot.writeI64(this.itemId);
46861
      oprot.writeI64(this.entity_id);
46765
      oprot.writeFieldEnd();
46862
      oprot.writeFieldEnd();
-
 
46863
      if (this.slide != null) {
-
 
46864
        oprot.writeFieldBegin(SLIDE_FIELD_DESC);
-
 
46865
        oprot.writeString(this.slide);
-
 
46866
        oprot.writeFieldEnd();
-
 
46867
      }
-
 
46868
      if (this.note != null) {
-
 
46869
        oprot.writeFieldBegin(NOTE_FIELD_DESC);
-
 
46870
        oprot.writeString(this.note);
-
 
46871
        oprot.writeFieldEnd();
-
 
46872
      }
46766
      oprot.writeFieldStop();
46873
      oprot.writeFieldStop();
46767
      oprot.writeStructEnd();
46874
      oprot.writeStructEnd();
46768
    }
46875
    }
46769
 
46876
 
46770
    @Override
46877
    @Override
46771
    public String toString() {
46878
    public String toString() {
46772
      StringBuilder sb = new StringBuilder("deleteItemFromMyResearch_args(");
46879
      StringBuilder sb = new StringBuilder("putUserNote_args(");
46773
      boolean first = true;
46880
      boolean first = true;
46774
 
46881
 
46775
      sb.append("userId:");
46882
      sb.append("user_id:");
46776
      sb.append(this.userId);
46883
      sb.append(this.user_id);
46777
      first = false;
46884
      first = false;
46778
      if (!first) sb.append(", ");
46885
      if (!first) sb.append(", ");
46779
      sb.append("itemId:");
46886
      sb.append("entity_id:");
46780
      sb.append(this.itemId);
46887
      sb.append(this.entity_id);
-
 
46888
      first = false;
-
 
46889
      if (!first) sb.append(", ");
-
 
46890
      sb.append("slide:");
-
 
46891
      if (this.slide == null) {
-
 
46892
        sb.append("null");
-
 
46893
      } else {
-
 
46894
        sb.append(this.slide);
-
 
46895
      }
-
 
46896
      first = false;
-
 
46897
      if (!first) sb.append(", ");
-
 
46898
      sb.append("note:");
-
 
46899
      if (this.note == null) {
-
 
46900
        sb.append("null");
-
 
46901
      } else {
-
 
46902
        sb.append(this.note);
-
 
46903
      }
46781
      first = false;
46904
      first = false;
46782
      sb.append(")");
46905
      sb.append(")");
46783
      return sb.toString();
46906
      return sb.toString();
46784
    }
46907
    }
46785
 
46908
 
Line 46787... Line 46910...
46787
      // check for required fields
46910
      // check for required fields
46788
    }
46911
    }
46789
 
46912
 
46790
  }
46913
  }
46791
 
46914
 
46792
  public static class deleteItemFromMyResearch_result implements TBase<deleteItemFromMyResearch_result._Fields>, java.io.Serializable, Cloneable, Comparable<deleteItemFromMyResearch_result>   {
46915
  public static class putUserNote_result implements TBase<putUserNote_result._Fields>, java.io.Serializable, Cloneable, Comparable<putUserNote_result>   {
46793
    private static final TStruct STRUCT_DESC = new TStruct("deleteItemFromMyResearch_result");
46916
    private static final TStruct STRUCT_DESC = new TStruct("putUserNote_result");
46794
 
46917
 
46795
    private static final TField SCX_FIELD_DESC = new TField("scx", TType.STRUCT, (short)1);
-
 
46796
 
46918
 
46797
    private WidgetException scx;
-
 
46798
 
46919
 
46799
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
46920
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
46800
    public enum _Fields implements TFieldIdEnum {
46921
    public enum _Fields implements TFieldIdEnum {
46801
      SCX((short)1, "scx");
-
 
-
 
46922
;
46802
 
46923
 
46803
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
46924
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
46804
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
46925
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
46805
 
46926
 
46806
      static {
46927
      static {
Line 46848... Line 46969...
46848
 
46969
 
46849
      public String getFieldName() {
46970
      public String getFieldName() {
46850
        return _fieldName;
46971
        return _fieldName;
46851
      }
46972
      }
46852
    }
46973
    }
46853
 
-
 
46854
    // isset id assignments
-
 
46855
 
-
 
46856
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
46974
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
46857
      put(_Fields.SCX, new FieldMetaData("scx", TFieldRequirementType.DEFAULT, 
-
 
46858
          new FieldValueMetaData(TType.STRUCT)));
-
 
46859
    }});
46975
    }});
46860
 
46976
 
46861
    static {
46977
    static {
46862
      FieldMetaData.addStructMetaDataMap(deleteItemFromMyResearch_result.class, metaDataMap);
46978
      FieldMetaData.addStructMetaDataMap(putUserNote_result.class, metaDataMap);
46863
    }
-
 
46864
 
-
 
46865
    public deleteItemFromMyResearch_result() {
-
 
46866
    }
46979
    }
46867
 
46980
 
46868
    public deleteItemFromMyResearch_result(
46981
    public putUserNote_result() {
46869
      WidgetException scx)
-
 
46870
    {
-
 
46871
      this();
-
 
46872
      this.scx = scx;
-
 
46873
    }
46982
    }
46874
 
46983
 
46875
    /**
46984
    /**
46876
     * Performs a deep copy on <i>other</i>.
46985
     * Performs a deep copy on <i>other</i>.
46877
     */
46986
     */
46878
    public deleteItemFromMyResearch_result(deleteItemFromMyResearch_result other) {
46987
    public putUserNote_result(putUserNote_result other) {
46879
      if (other.isSetScx()) {
-
 
46880
        this.scx = new WidgetException(other.scx);
-
 
46881
      }
-
 
46882
    }
46988
    }
46883
 
46989
 
46884
    public deleteItemFromMyResearch_result deepCopy() {
46990
    public putUserNote_result deepCopy() {
46885
      return new deleteItemFromMyResearch_result(this);
46991
      return new putUserNote_result(this);
46886
    }
46992
    }
46887
 
46993
 
46888
    @Deprecated
46994
    @Deprecated
46889
    public deleteItemFromMyResearch_result clone() {
46995
    public putUserNote_result clone() {
46890
      return new deleteItemFromMyResearch_result(this);
46996
      return new putUserNote_result(this);
46891
    }
-
 
46892
 
-
 
46893
    public WidgetException getScx() {
-
 
46894
      return this.scx;
-
 
46895
    }
-
 
46896
 
-
 
46897
    public deleteItemFromMyResearch_result setScx(WidgetException scx) {
-
 
46898
      this.scx = scx;
-
 
46899
      return this;
-
 
46900
    }
-
 
46901
 
-
 
46902
    public void unsetScx() {
-
 
46903
      this.scx = null;
-
 
46904
    }
-
 
46905
 
-
 
46906
    /** Returns true if field scx is set (has been asigned a value) and false otherwise */
-
 
46907
    public boolean isSetScx() {
-
 
46908
      return this.scx != null;
-
 
46909
    }
-
 
46910
 
-
 
46911
    public void setScxIsSet(boolean value) {
-
 
46912
      if (!value) {
-
 
46913
        this.scx = null;
-
 
46914
      }
-
 
46915
    }
46997
    }
46916
 
46998
 
46917
    public void setFieldValue(_Fields field, Object value) {
46999
    public void setFieldValue(_Fields field, Object value) {
46918
      switch (field) {
47000
      switch (field) {
46919
      case SCX:
-
 
46920
        if (value == null) {
-
 
46921
          unsetScx();
-
 
46922
        } else {
-
 
46923
          setScx((WidgetException)value);
-
 
46924
        }
-
 
46925
        break;
-
 
46926
 
-
 
46927
      }
47001
      }
46928
    }
47002
    }
46929
 
47003
 
46930
    public void setFieldValue(int fieldID, Object value) {
47004
    public void setFieldValue(int fieldID, Object value) {
46931
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
47005
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
46932
    }
47006
    }
46933
 
47007
 
46934
    public Object getFieldValue(_Fields field) {
47008
    public Object getFieldValue(_Fields field) {
46935
      switch (field) {
47009
      switch (field) {
46936
      case SCX:
-
 
46937
        return getScx();
-
 
46938
 
-
 
46939
      }
47010
      }
46940
      throw new IllegalStateException();
47011
      throw new IllegalStateException();
46941
    }
47012
    }
46942
 
47013
 
46943
    public Object getFieldValue(int fieldId) {
47014
    public Object getFieldValue(int fieldId) {
Line 46945... Line 47016...
46945
    }
47016
    }
46946
 
47017
 
46947
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
47018
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
46948
    public boolean isSet(_Fields field) {
47019
    public boolean isSet(_Fields field) {
46949
      switch (field) {
47020
      switch (field) {
46950
      case SCX:
-
 
46951
        return isSetScx();
-
 
46952
      }
47021
      }
46953
      throw new IllegalStateException();
47022
      throw new IllegalStateException();
46954
    }
47023
    }
46955
 
47024
 
46956
    public boolean isSet(int fieldID) {
47025
    public boolean isSet(int fieldID) {
Line 46959... Line 47028...
46959
 
47028
 
46960
    @Override
47029
    @Override
46961
    public boolean equals(Object that) {
47030
    public boolean equals(Object that) {
46962
      if (that == null)
47031
      if (that == null)
46963
        return false;
47032
        return false;
46964
      if (that instanceof deleteItemFromMyResearch_result)
47033
      if (that instanceof putUserNote_result)
46965
        return this.equals((deleteItemFromMyResearch_result)that);
47034
        return this.equals((putUserNote_result)that);
46966
      return false;
47035
      return false;
46967
    }
47036
    }
46968
 
47037
 
46969
    public boolean equals(deleteItemFromMyResearch_result that) {
47038
    public boolean equals(putUserNote_result that) {
46970
      if (that == null)
47039
      if (that == null)
46971
        return false;
47040
        return false;
46972
 
47041
 
46973
      boolean this_present_scx = true && this.isSetScx();
-
 
46974
      boolean that_present_scx = true && that.isSetScx();
-
 
46975
      if (this_present_scx || that_present_scx) {
-
 
46976
        if (!(this_present_scx && that_present_scx))
-
 
46977
          return false;
-
 
46978
        if (!this.scx.equals(that.scx))
-
 
46979
          return false;
-
 
46980
      }
-
 
46981
 
-
 
46982
      return true;
47042
      return true;
46983
    }
47043
    }
46984
 
47044
 
46985
    @Override
47045
    @Override
46986
    public int hashCode() {
47046
    public int hashCode() {
46987
      return 0;
47047
      return 0;
46988
    }
47048
    }
46989
 
47049
 
46990
    public int compareTo(deleteItemFromMyResearch_result other) {
47050
    public int compareTo(putUserNote_result other) {
46991
      if (!getClass().equals(other.getClass())) {
47051
      if (!getClass().equals(other.getClass())) {
46992
        return getClass().getName().compareTo(other.getClass().getName());
47052
        return getClass().getName().compareTo(other.getClass().getName());
46993
      }
47053
      }
46994
 
47054
 
46995
      int lastComparison = 0;
47055
      int lastComparison = 0;
46996
      deleteItemFromMyResearch_result typedOther = (deleteItemFromMyResearch_result)other;
47056
      putUserNote_result typedOther = (putUserNote_result)other;
46997
 
47057
 
46998
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(isSetScx());
-
 
46999
      if (lastComparison != 0) {
-
 
47000
        return lastComparison;
-
 
47001
      }
-
 
47002
      lastComparison = TBaseHelper.compareTo(scx, typedOther.scx);
-
 
47003
      if (lastComparison != 0) {
-
 
47004
        return lastComparison;
-
 
47005
      }
-
 
47006
      return 0;
47058
      return 0;
47007
    }
47059
    }
47008
 
47060
 
47009
    public void read(TProtocol iprot) throws TException {
47061
    public void read(TProtocol iprot) throws TException {
47010
      TField field;
47062
      TField field;
Line 47018... Line 47070...
47018
        _Fields fieldId = _Fields.findByThriftId(field.id);
47070
        _Fields fieldId = _Fields.findByThriftId(field.id);
47019
        if (fieldId == null) {
47071
        if (fieldId == null) {
47020
          TProtocolUtil.skip(iprot, field.type);
47072
          TProtocolUtil.skip(iprot, field.type);
47021
        } else {
47073
        } else {
47022
          switch (fieldId) {
47074
          switch (fieldId) {
47023
            case SCX:
-
 
47024
              if (field.type == TType.STRUCT) {
-
 
47025
                this.scx = new WidgetException();
-
 
47026
                this.scx.read(iprot);
-
 
47027
              } else { 
-
 
47028
                TProtocolUtil.skip(iprot, field.type);
-
 
47029
              }
-
 
47030
              break;
-
 
47031
          }
47075
          }
47032
          iprot.readFieldEnd();
47076
          iprot.readFieldEnd();
47033
        }
47077
        }
47034
      }
47078
      }
47035
      iprot.readStructEnd();
47079
      iprot.readStructEnd();
Line 47037... Line 47081...
47037
    }
47081
    }
47038
 
47082
 
47039
    public void write(TProtocol oprot) throws TException {
47083
    public void write(TProtocol oprot) throws TException {
47040
      oprot.writeStructBegin(STRUCT_DESC);
47084
      oprot.writeStructBegin(STRUCT_DESC);
47041
 
47085
 
47042
      if (this.isSetScx()) {
-
 
47043
        oprot.writeFieldBegin(SCX_FIELD_DESC);
-
 
47044
        this.scx.write(oprot);
-
 
47045
        oprot.writeFieldEnd();
-
 
47046
      }
-
 
47047
      oprot.writeFieldStop();
47086
      oprot.writeFieldStop();
47048
      oprot.writeStructEnd();
47087
      oprot.writeStructEnd();
47049
    }
47088
    }
47050
 
47089
 
47051
    @Override
47090
    @Override
47052
    public String toString() {
47091
    public String toString() {
47053
      StringBuilder sb = new StringBuilder("deleteItemFromMyResearch_result(");
47092
      StringBuilder sb = new StringBuilder("putUserNote_result(");
47054
      boolean first = true;
47093
      boolean first = true;
47055
 
47094
 
47056
      sb.append("scx:");
-
 
47057
      if (this.scx == null) {
-
 
47058
        sb.append("null");
-
 
47059
      } else {
-
 
47060
        sb.append(this.scx);
-
 
47061
      }
-
 
47062
      first = false;
-
 
47063
      sb.append(")");
47095
      sb.append(")");
47064
      return sb.toString();
47096
      return sb.toString();
47065
    }
47097
    }
47066
 
47098
 
47067
    public void validate() throws TException {
47099
    public void validate() throws TException {
47068
      // check for required fields
47100
      // check for required fields
47069
    }
47101
    }
47070
 
47102
 
47071
  }
47103
  }
47072
 
47104
 
47073
  public static class updateBrowseHistory_args implements TBase<updateBrowseHistory_args._Fields>, java.io.Serializable, Cloneable, Comparable<updateBrowseHistory_args>   {
47105
  public static class getUserNotes_args implements TBase<getUserNotes_args._Fields>, java.io.Serializable, Cloneable, Comparable<getUserNotes_args>   {
47074
    private static final TStruct STRUCT_DESC = new TStruct("updateBrowseHistory_args");
47106
    private static final TStruct STRUCT_DESC = new TStruct("getUserNotes_args");
47075
 
47107
 
47076
    private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)1);
47108
    private static final TField USER_ID_FIELD_DESC = new TField("user_id", TType.I64, (short)1);
47077
    private static final TField ITEM_ID_FIELD_DESC = new TField("itemId", TType.I64, (short)2);
47109
    private static final TField ENTITY_ID_FIELD_DESC = new TField("entity_id", TType.I64, (short)2);
47078
 
47110
 
47079
    private long userId;
47111
    private long user_id;
47080
    private long itemId;
47112
    private long entity_id;
47081
 
47113
 
47082
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
47114
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
47083
    public enum _Fields implements TFieldIdEnum {
47115
    public enum _Fields implements TFieldIdEnum {
47084
      USER_ID((short)1, "userId"),
47116
      USER_ID((short)1, "user_id"),
47085
      ITEM_ID((short)2, "itemId");
47117
      ENTITY_ID((short)2, "entity_id");
47086
 
47118
 
47087
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
47119
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
47088
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
47120
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
47089
 
47121
 
47090
      static {
47122
      static {
Line 47134... Line 47166...
47134
        return _fieldName;
47166
        return _fieldName;
47135
      }
47167
      }
47136
    }
47168
    }
47137
 
47169
 
47138
    // isset id assignments
47170
    // isset id assignments
47139
    private static final int __USERID_ISSET_ID = 0;
47171
    private static final int __USER_ID_ISSET_ID = 0;
47140
    private static final int __ITEMID_ISSET_ID = 1;
47172
    private static final int __ENTITY_ID_ISSET_ID = 1;
47141
    private BitSet __isset_bit_vector = new BitSet(2);
47173
    private BitSet __isset_bit_vector = new BitSet(2);
47142
 
47174
 
47143
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
47175
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
47144
      put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT, 
47176
      put(_Fields.USER_ID, new FieldMetaData("user_id", TFieldRequirementType.DEFAULT, 
47145
          new FieldValueMetaData(TType.I64)));
47177
          new FieldValueMetaData(TType.I64)));
47146
      put(_Fields.ITEM_ID, new FieldMetaData("itemId", TFieldRequirementType.DEFAULT, 
47178
      put(_Fields.ENTITY_ID, new FieldMetaData("entity_id", TFieldRequirementType.DEFAULT, 
47147
          new FieldValueMetaData(TType.I64)));
47179
          new FieldValueMetaData(TType.I64)));
47148
    }});
47180
    }});
47149
 
47181
 
47150
    static {
47182
    static {
47151
      FieldMetaData.addStructMetaDataMap(updateBrowseHistory_args.class, metaDataMap);
47183
      FieldMetaData.addStructMetaDataMap(getUserNotes_args.class, metaDataMap);
47152
    }
47184
    }
47153
 
47185
 
47154
    public updateBrowseHistory_args() {
47186
    public getUserNotes_args() {
47155
    }
47187
    }
47156
 
47188
 
47157
    public updateBrowseHistory_args(
47189
    public getUserNotes_args(
47158
      long userId,
47190
      long user_id,
47159
      long itemId)
47191
      long entity_id)
47160
    {
47192
    {
47161
      this();
47193
      this();
47162
      this.userId = userId;
47194
      this.user_id = user_id;
47163
      setUserIdIsSet(true);
47195
      setUser_idIsSet(true);
47164
      this.itemId = itemId;
47196
      this.entity_id = entity_id;
47165
      setItemIdIsSet(true);
47197
      setEntity_idIsSet(true);
47166
    }
47198
    }
47167
 
47199
 
47168
    /**
47200
    /**
47169
     * Performs a deep copy on <i>other</i>.
47201
     * Performs a deep copy on <i>other</i>.
47170
     */
47202
     */
47171
    public updateBrowseHistory_args(updateBrowseHistory_args other) {
47203
    public getUserNotes_args(getUserNotes_args other) {
47172
      __isset_bit_vector.clear();
47204
      __isset_bit_vector.clear();
47173
      __isset_bit_vector.or(other.__isset_bit_vector);
47205
      __isset_bit_vector.or(other.__isset_bit_vector);
47174
      this.userId = other.userId;
47206
      this.user_id = other.user_id;
47175
      this.itemId = other.itemId;
47207
      this.entity_id = other.entity_id;
47176
    }
47208
    }
47177
 
47209
 
47178
    public updateBrowseHistory_args deepCopy() {
47210
    public getUserNotes_args deepCopy() {
47179
      return new updateBrowseHistory_args(this);
47211
      return new getUserNotes_args(this);
47180
    }
47212
    }
47181
 
47213
 
47182
    @Deprecated
47214
    @Deprecated
47183
    public updateBrowseHistory_args clone() {
47215
    public getUserNotes_args clone() {
47184
      return new updateBrowseHistory_args(this);
47216
      return new getUserNotes_args(this);
47185
    }
47217
    }
47186
 
47218
 
47187
    public long getUserId() {
47219
    public long getUser_id() {
47188
      return this.userId;
47220
      return this.user_id;
47189
    }
47221
    }
47190
 
47222
 
47191
    public updateBrowseHistory_args setUserId(long userId) {
47223
    public getUserNotes_args setUser_id(long user_id) {
47192
      this.userId = userId;
47224
      this.user_id = user_id;
47193
      setUserIdIsSet(true);
47225
      setUser_idIsSet(true);
47194
      return this;
47226
      return this;
47195
    }
47227
    }
47196
 
47228
 
47197
    public void unsetUserId() {
47229
    public void unsetUser_id() {
47198
      __isset_bit_vector.clear(__USERID_ISSET_ID);
47230
      __isset_bit_vector.clear(__USER_ID_ISSET_ID);
47199
    }
47231
    }
47200
 
47232
 
47201
    /** Returns true if field userId is set (has been asigned a value) and false otherwise */
47233
    /** Returns true if field user_id is set (has been asigned a value) and false otherwise */
47202
    public boolean isSetUserId() {
47234
    public boolean isSetUser_id() {
47203
      return __isset_bit_vector.get(__USERID_ISSET_ID);
47235
      return __isset_bit_vector.get(__USER_ID_ISSET_ID);
47204
    }
47236
    }
47205
 
47237
 
47206
    public void setUserIdIsSet(boolean value) {
47238
    public void setUser_idIsSet(boolean value) {
47207
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
47239
      __isset_bit_vector.set(__USER_ID_ISSET_ID, value);
47208
    }
47240
    }
47209
 
47241
 
47210
    public long getItemId() {
47242
    public long getEntity_id() {
47211
      return this.itemId;
47243
      return this.entity_id;
47212
    }
47244
    }
47213
 
47245
 
47214
    public updateBrowseHistory_args setItemId(long itemId) {
47246
    public getUserNotes_args setEntity_id(long entity_id) {
47215
      this.itemId = itemId;
47247
      this.entity_id = entity_id;
47216
      setItemIdIsSet(true);
47248
      setEntity_idIsSet(true);
47217
      return this;
47249
      return this;
47218
    }
47250
    }
47219
 
47251
 
47220
    public void unsetItemId() {
47252
    public void unsetEntity_id() {
47221
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
47253
      __isset_bit_vector.clear(__ENTITY_ID_ISSET_ID);
47222
    }
47254
    }
47223
 
47255
 
47224
    /** Returns true if field itemId is set (has been asigned a value) and false otherwise */
47256
    /** Returns true if field entity_id is set (has been asigned a value) and false otherwise */
47225
    public boolean isSetItemId() {
47257
    public boolean isSetEntity_id() {
47226
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
47258
      return __isset_bit_vector.get(__ENTITY_ID_ISSET_ID);
47227
    }
47259
    }
47228
 
47260
 
47229
    public void setItemIdIsSet(boolean value) {
47261
    public void setEntity_idIsSet(boolean value) {
47230
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
47262
      __isset_bit_vector.set(__ENTITY_ID_ISSET_ID, value);
47231
    }
47263
    }
47232
 
47264
 
47233
    public void setFieldValue(_Fields field, Object value) {
47265
    public void setFieldValue(_Fields field, Object value) {
47234
      switch (field) {
47266
      switch (field) {
47235
      case USER_ID:
47267
      case USER_ID:
47236
        if (value == null) {
47268
        if (value == null) {
47237
          unsetUserId();
47269
          unsetUser_id();
47238
        } else {
47270
        } else {
47239
          setUserId((Long)value);
47271
          setUser_id((Long)value);
47240
        }
47272
        }
47241
        break;
47273
        break;
47242
 
47274
 
47243
      case ITEM_ID:
47275
      case ENTITY_ID:
47244
        if (value == null) {
47276
        if (value == null) {
47245
          unsetItemId();
47277
          unsetEntity_id();
47246
        } else {
47278
        } else {
47247
          setItemId((Long)value);
47279
          setEntity_id((Long)value);
47248
        }
47280
        }
47249
        break;
47281
        break;
47250
 
47282
 
47251
      }
47283
      }
47252
    }
47284
    }
Line 47256... Line 47288...
47256
    }
47288
    }
47257
 
47289
 
47258
    public Object getFieldValue(_Fields field) {
47290
    public Object getFieldValue(_Fields field) {
47259
      switch (field) {
47291
      switch (field) {
47260
      case USER_ID:
47292
      case USER_ID:
47261
        return new Long(getUserId());
47293
        return new Long(getUser_id());
47262
 
47294
 
47263
      case ITEM_ID:
47295
      case ENTITY_ID:
47264
        return new Long(getItemId());
47296
        return new Long(getEntity_id());
47265
 
47297
 
47266
      }
47298
      }
47267
      throw new IllegalStateException();
47299
      throw new IllegalStateException();
47268
    }
47300
    }
47269
 
47301
 
Line 47273... Line 47305...
47273
 
47305
 
47274
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
47306
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
47275
    public boolean isSet(_Fields field) {
47307
    public boolean isSet(_Fields field) {
47276
      switch (field) {
47308
      switch (field) {
47277
      case USER_ID:
47309
      case USER_ID:
47278
        return isSetUserId();
47310
        return isSetUser_id();
47279
      case ITEM_ID:
47311
      case ENTITY_ID:
47280
        return isSetItemId();
47312
        return isSetEntity_id();
47281
      }
47313
      }
47282
      throw new IllegalStateException();
47314
      throw new IllegalStateException();
47283
    }
47315
    }
47284
 
47316
 
47285
    public boolean isSet(int fieldID) {
47317
    public boolean isSet(int fieldID) {
Line 47288... Line 47320...
47288
 
47320
 
47289
    @Override
47321
    @Override
47290
    public boolean equals(Object that) {
47322
    public boolean equals(Object that) {
47291
      if (that == null)
47323
      if (that == null)
47292
        return false;
47324
        return false;
47293
      if (that instanceof updateBrowseHistory_args)
47325
      if (that instanceof getUserNotes_args)
47294
        return this.equals((updateBrowseHistory_args)that);
47326
        return this.equals((getUserNotes_args)that);
47295
      return false;
47327
      return false;
47296
    }
47328
    }
47297
 
47329
 
47298
    public boolean equals(updateBrowseHistory_args that) {
47330
    public boolean equals(getUserNotes_args that) {
47299
      if (that == null)
47331
      if (that == null)
47300
        return false;
47332
        return false;
47301
 
47333
 
47302
      boolean this_present_userId = true;
47334
      boolean this_present_user_id = true;
47303
      boolean that_present_userId = true;
47335
      boolean that_present_user_id = true;
47304
      if (this_present_userId || that_present_userId) {
47336
      if (this_present_user_id || that_present_user_id) {
47305
        if (!(this_present_userId && that_present_userId))
47337
        if (!(this_present_user_id && that_present_user_id))
47306
          return false;
47338
          return false;
47307
        if (this.userId != that.userId)
47339
        if (this.user_id != that.user_id)
47308
          return false;
47340
          return false;
47309
      }
47341
      }
47310
 
47342
 
47311
      boolean this_present_itemId = true;
47343
      boolean this_present_entity_id = true;
47312
      boolean that_present_itemId = true;
47344
      boolean that_present_entity_id = true;
47313
      if (this_present_itemId || that_present_itemId) {
47345
      if (this_present_entity_id || that_present_entity_id) {
47314
        if (!(this_present_itemId && that_present_itemId))
47346
        if (!(this_present_entity_id && that_present_entity_id))
47315
          return false;
47347
          return false;
47316
        if (this.itemId != that.itemId)
47348
        if (this.entity_id != that.entity_id)
47317
          return false;
47349
          return false;
47318
      }
47350
      }
47319
 
47351
 
47320
      return true;
47352
      return true;
47321
    }
47353
    }
Line 47323... Line 47355...
47323
    @Override
47355
    @Override
47324
    public int hashCode() {
47356
    public int hashCode() {
47325
      return 0;
47357
      return 0;
47326
    }
47358
    }
47327
 
47359
 
47328
    public int compareTo(updateBrowseHistory_args other) {
47360
    public int compareTo(getUserNotes_args other) {
47329
      if (!getClass().equals(other.getClass())) {
47361
      if (!getClass().equals(other.getClass())) {
47330
        return getClass().getName().compareTo(other.getClass().getName());
47362
        return getClass().getName().compareTo(other.getClass().getName());
47331
      }
47363
      }
47332
 
47364
 
47333
      int lastComparison = 0;
47365
      int lastComparison = 0;
47334
      updateBrowseHistory_args typedOther = (updateBrowseHistory_args)other;
47366
      getUserNotes_args typedOther = (getUserNotes_args)other;
47335
 
47367
 
47336
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(isSetUserId());
47368
      lastComparison = Boolean.valueOf(isSetUser_id()).compareTo(isSetUser_id());
47337
      if (lastComparison != 0) {
47369
      if (lastComparison != 0) {
47338
        return lastComparison;
47370
        return lastComparison;
47339
      }
47371
      }
47340
      lastComparison = TBaseHelper.compareTo(userId, typedOther.userId);
47372
      lastComparison = TBaseHelper.compareTo(user_id, typedOther.user_id);
47341
      if (lastComparison != 0) {
47373
      if (lastComparison != 0) {
47342
        return lastComparison;
47374
        return lastComparison;
47343
      }
47375
      }
47344
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(isSetItemId());
47376
      lastComparison = Boolean.valueOf(isSetEntity_id()).compareTo(isSetEntity_id());
47345
      if (lastComparison != 0) {
47377
      if (lastComparison != 0) {
47346
        return lastComparison;
47378
        return lastComparison;
47347
      }
47379
      }
47348
      lastComparison = TBaseHelper.compareTo(itemId, typedOther.itemId);
47380
      lastComparison = TBaseHelper.compareTo(entity_id, typedOther.entity_id);
47349
      if (lastComparison != 0) {
47381
      if (lastComparison != 0) {
47350
        return lastComparison;
47382
        return lastComparison;
47351
      }
47383
      }
47352
      return 0;
47384
      return 0;
47353
    }
47385
    }
Line 47366... Line 47398...
47366
          TProtocolUtil.skip(iprot, field.type);
47398
          TProtocolUtil.skip(iprot, field.type);
47367
        } else {
47399
        } else {
47368
          switch (fieldId) {
47400
          switch (fieldId) {
47369
            case USER_ID:
47401
            case USER_ID:
47370
              if (field.type == TType.I64) {
47402
              if (field.type == TType.I64) {
47371
                this.userId = iprot.readI64();
47403
                this.user_id = iprot.readI64();
47372
                setUserIdIsSet(true);
47404
                setUser_idIsSet(true);
47373
              } else { 
47405
              } else { 
47374
                TProtocolUtil.skip(iprot, field.type);
47406
                TProtocolUtil.skip(iprot, field.type);
47375
              }
47407
              }
47376
              break;
47408
              break;
47377
            case ITEM_ID:
47409
            case ENTITY_ID:
47378
              if (field.type == TType.I64) {
47410
              if (field.type == TType.I64) {
47379
                this.itemId = iprot.readI64();
47411
                this.entity_id = iprot.readI64();
47380
                setItemIdIsSet(true);
47412
                setEntity_idIsSet(true);
47381
              } else { 
47413
              } else { 
47382
                TProtocolUtil.skip(iprot, field.type);
47414
                TProtocolUtil.skip(iprot, field.type);
47383
              }
47415
              }
47384
              break;
47416
              break;
47385
          }
47417
          }
Line 47393... Line 47425...
47393
    public void write(TProtocol oprot) throws TException {
47425
    public void write(TProtocol oprot) throws TException {
47394
      validate();
47426
      validate();
47395
 
47427
 
47396
      oprot.writeStructBegin(STRUCT_DESC);
47428
      oprot.writeStructBegin(STRUCT_DESC);
47397
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
47429
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
47398
      oprot.writeI64(this.userId);
47430
      oprot.writeI64(this.user_id);
47399
      oprot.writeFieldEnd();
47431
      oprot.writeFieldEnd();
47400
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
47432
      oprot.writeFieldBegin(ENTITY_ID_FIELD_DESC);
47401
      oprot.writeI64(this.itemId);
47433
      oprot.writeI64(this.entity_id);
47402
      oprot.writeFieldEnd();
47434
      oprot.writeFieldEnd();
47403
      oprot.writeFieldStop();
47435
      oprot.writeFieldStop();
47404
      oprot.writeStructEnd();
47436
      oprot.writeStructEnd();
47405
    }
47437
    }
47406
 
47438
 
47407
    @Override
47439
    @Override
47408
    public String toString() {
47440
    public String toString() {
47409
      StringBuilder sb = new StringBuilder("updateBrowseHistory_args(");
47441
      StringBuilder sb = new StringBuilder("getUserNotes_args(");
47410
      boolean first = true;
47442
      boolean first = true;
47411
 
47443
 
47412
      sb.append("userId:");
47444
      sb.append("user_id:");
47413
      sb.append(this.userId);
47445
      sb.append(this.user_id);
47414
      first = false;
47446
      first = false;
47415
      if (!first) sb.append(", ");
47447
      if (!first) sb.append(", ");
47416
      sb.append("itemId:");
47448
      sb.append("entity_id:");
47417
      sb.append(this.itemId);
47449
      sb.append(this.entity_id);
47418
      first = false;
47450
      first = false;
47419
      sb.append(")");
47451
      sb.append(")");
47420
      return sb.toString();
47452
      return sb.toString();
47421
    }
47453
    }
47422
 
47454
 
Line 47424... Line 47456...
47424
      // check for required fields
47456
      // check for required fields
47425
    }
47457
    }
47426
 
47458
 
47427
  }
47459
  }
47428
 
47460
 
47429
  public static class updateBrowseHistory_result implements TBase<updateBrowseHistory_result._Fields>, java.io.Serializable, Cloneable, Comparable<updateBrowseHistory_result>   {
47461
  public static class getUserNotes_result implements TBase<getUserNotes_result._Fields>, java.io.Serializable, Cloneable, Comparable<getUserNotes_result>   {
47430
    private static final TStruct STRUCT_DESC = new TStruct("updateBrowseHistory_result");
47462
    private static final TStruct STRUCT_DESC = new TStruct("getUserNotes_result");
47431
 
47463
 
-
 
47464
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
47432
 
47465
 
-
 
47466
    private List<UserNote> success;
47433
 
47467
 
47434
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
47468
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
47435
    public enum _Fields implements TFieldIdEnum {
47469
    public enum _Fields implements TFieldIdEnum {
47436
;
-
 
-
 
47470
      SUCCESS((short)0, "success");
47437
 
47471
 
47438
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
47472
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
47439
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
47473
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
47440
 
47474
 
47441
      static {
47475
      static {
Line 47483... Line 47517...
47483
 
47517
 
47484
      public String getFieldName() {
47518
      public String getFieldName() {
47485
        return _fieldName;
47519
        return _fieldName;
47486
      }
47520
      }
47487
    }
47521
    }
-
 
47522
 
-
 
47523
    // isset id assignments
-
 
47524
 
47488
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
47525
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
47526
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
47527
          new ListMetaData(TType.LIST, 
-
 
47528
              new StructMetaData(TType.STRUCT, UserNote.class))));
47489
    }});
47529
    }});
47490
 
47530
 
47491
    static {
47531
    static {
47492
      FieldMetaData.addStructMetaDataMap(updateBrowseHistory_result.class, metaDataMap);
47532
      FieldMetaData.addStructMetaDataMap(getUserNotes_result.class, metaDataMap);
47493
    }
47533
    }
47494
 
47534
 
47495
    public updateBrowseHistory_result() {
47535
    public getUserNotes_result() {
-
 
47536
    }
-
 
47537
 
-
 
47538
    public getUserNotes_result(
-
 
47539
      List<UserNote> success)
-
 
47540
    {
-
 
47541
      this();
-
 
47542
      this.success = success;
47496
    }
47543
    }
47497
 
47544
 
47498
    /**
47545
    /**
47499
     * Performs a deep copy on <i>other</i>.
47546
     * Performs a deep copy on <i>other</i>.
47500
     */
47547
     */
47501
    public updateBrowseHistory_result(updateBrowseHistory_result other) {
47548
    public getUserNotes_result(getUserNotes_result other) {
-
 
47549
      if (other.isSetSuccess()) {
-
 
47550
        List<UserNote> __this__success = new ArrayList<UserNote>();
-
 
47551
        for (UserNote other_element : other.success) {
-
 
47552
          __this__success.add(new UserNote(other_element));
-
 
47553
        }
-
 
47554
        this.success = __this__success;
-
 
47555
      }
47502
    }
47556
    }
47503
 
47557
 
47504
    public updateBrowseHistory_result deepCopy() {
47558
    public getUserNotes_result deepCopy() {
47505
      return new updateBrowseHistory_result(this);
47559
      return new getUserNotes_result(this);
47506
    }
47560
    }
47507
 
47561
 
47508
    @Deprecated
47562
    @Deprecated
47509
    public updateBrowseHistory_result clone() {
47563
    public getUserNotes_result clone() {
47510
      return new updateBrowseHistory_result(this);
47564
      return new getUserNotes_result(this);
-
 
47565
    }
-
 
47566
 
-
 
47567
    public int getSuccessSize() {
-
 
47568
      return (this.success == null) ? 0 : this.success.size();
-
 
47569
    }
-
 
47570
 
-
 
47571
    public java.util.Iterator<UserNote> getSuccessIterator() {
-
 
47572
      return (this.success == null) ? null : this.success.iterator();
-
 
47573
    }
-
 
47574
 
-
 
47575
    public void addToSuccess(UserNote elem) {
-
 
47576
      if (this.success == null) {
-
 
47577
        this.success = new ArrayList<UserNote>();
-
 
47578
      }
-
 
47579
      this.success.add(elem);
-
 
47580
    }
-
 
47581
 
-
 
47582
    public List<UserNote> getSuccess() {
-
 
47583
      return this.success;
-
 
47584
    }
-
 
47585
 
-
 
47586
    public getUserNotes_result setSuccess(List<UserNote> success) {
-
 
47587
      this.success = success;
-
 
47588
      return this;
-
 
47589
    }
-
 
47590
 
-
 
47591
    public void unsetSuccess() {
-
 
47592
      this.success = null;
-
 
47593
    }
-
 
47594
 
-
 
47595
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
47596
    public boolean isSetSuccess() {
-
 
47597
      return this.success != null;
-
 
47598
    }
-
 
47599
 
-
 
47600
    public void setSuccessIsSet(boolean value) {
-
 
47601
      if (!value) {
-
 
47602
        this.success = null;
-
 
47603
      }
47511
    }
47604
    }
47512
 
47605
 
47513
    public void setFieldValue(_Fields field, Object value) {
47606
    public void setFieldValue(_Fields field, Object value) {
47514
      switch (field) {
47607
      switch (field) {
-
 
47608
      case SUCCESS:
-
 
47609
        if (value == null) {
-
 
47610
          unsetSuccess();
-
 
47611
        } else {
-
 
47612
          setSuccess((List<UserNote>)value);
-
 
47613
        }
-
 
47614
        break;
-
 
47615
 
47515
      }
47616
      }
47516
    }
47617
    }
47517
 
47618
 
47518
    public void setFieldValue(int fieldID, Object value) {
47619
    public void setFieldValue(int fieldID, Object value) {
47519
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
47620
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
47520
    }
47621
    }
47521
 
47622
 
47522
    public Object getFieldValue(_Fields field) {
47623
    public Object getFieldValue(_Fields field) {
47523
      switch (field) {
47624
      switch (field) {
-
 
47625
      case SUCCESS:
-
 
47626
        return getSuccess();
-
 
47627
 
47524
      }
47628
      }
47525
      throw new IllegalStateException();
47629
      throw new IllegalStateException();
47526
    }
47630
    }
47527
 
47631
 
47528
    public Object getFieldValue(int fieldId) {
47632
    public Object getFieldValue(int fieldId) {
Line 47530... Line 47634...
47530
    }
47634
    }
47531
 
47635
 
47532
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
47636
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
47533
    public boolean isSet(_Fields field) {
47637
    public boolean isSet(_Fields field) {
47534
      switch (field) {
47638
      switch (field) {
-
 
47639
      case SUCCESS:
-
 
47640
        return isSetSuccess();
47535
      }
47641
      }
47536
      throw new IllegalStateException();
47642
      throw new IllegalStateException();
47537
    }
47643
    }
47538
 
47644
 
47539
    public boolean isSet(int fieldID) {
47645
    public boolean isSet(int fieldID) {
Line 47542... Line 47648...
47542
 
47648
 
47543
    @Override
47649
    @Override
47544
    public boolean equals(Object that) {
47650
    public boolean equals(Object that) {
47545
      if (that == null)
47651
      if (that == null)
47546
        return false;
47652
        return false;
47547
      if (that instanceof updateBrowseHistory_result)
47653
      if (that instanceof getUserNotes_result)
47548
        return this.equals((updateBrowseHistory_result)that);
47654
        return this.equals((getUserNotes_result)that);
47549
      return false;
47655
      return false;
47550
    }
47656
    }
47551
 
47657
 
47552
    public boolean equals(updateBrowseHistory_result that) {
47658
    public boolean equals(getUserNotes_result that) {
47553
      if (that == null)
47659
      if (that == null)
47554
        return false;
47660
        return false;
47555
 
47661
 
-
 
47662
      boolean this_present_success = true && this.isSetSuccess();
-
 
47663
      boolean that_present_success = true && that.isSetSuccess();
-
 
47664
      if (this_present_success || that_present_success) {
-
 
47665
        if (!(this_present_success && that_present_success))
-
 
47666
          return false;
-
 
47667
        if (!this.success.equals(that.success))
-
 
47668
          return false;
-
 
47669
      }
-
 
47670
 
47556
      return true;
47671
      return true;
47557
    }
47672
    }
47558
 
47673
 
47559
    @Override
47674
    @Override
47560
    public int hashCode() {
47675
    public int hashCode() {
47561
      return 0;
47676
      return 0;
47562
    }
47677
    }
47563
 
47678
 
47564
    public int compareTo(updateBrowseHistory_result other) {
47679
    public int compareTo(getUserNotes_result other) {
47565
      if (!getClass().equals(other.getClass())) {
47680
      if (!getClass().equals(other.getClass())) {
47566
        return getClass().getName().compareTo(other.getClass().getName());
47681
        return getClass().getName().compareTo(other.getClass().getName());
47567
      }
47682
      }
47568
 
47683
 
47569
      int lastComparison = 0;
47684
      int lastComparison = 0;
47570
      updateBrowseHistory_result typedOther = (updateBrowseHistory_result)other;
47685
      getUserNotes_result typedOther = (getUserNotes_result)other;
47571
 
47686
 
-
 
47687
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
47688
      if (lastComparison != 0) {
-
 
47689
        return lastComparison;
-
 
47690
      }
-
 
47691
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
47692
      if (lastComparison != 0) {
-
 
47693
        return lastComparison;
-
 
47694
      }
47572
      return 0;
47695
      return 0;
47573
    }
47696
    }
47574
 
47697
 
47575
    public void read(TProtocol iprot) throws TException {
47698
    public void read(TProtocol iprot) throws TException {
47576
      TField field;
47699
      TField field;
Line 47584... Line 47707...
47584
        _Fields fieldId = _Fields.findByThriftId(field.id);
47707
        _Fields fieldId = _Fields.findByThriftId(field.id);
47585
        if (fieldId == null) {
47708
        if (fieldId == null) {
47586
          TProtocolUtil.skip(iprot, field.type);
47709
          TProtocolUtil.skip(iprot, field.type);
47587
        } else {
47710
        } else {
47588
          switch (fieldId) {
47711
          switch (fieldId) {
-
 
47712
            case SUCCESS:
-
 
47713
              if (field.type == TType.LIST) {
-
 
47714
                {
-
 
47715
                  TList _list69 = iprot.readListBegin();
-
 
47716
                  this.success = new ArrayList<UserNote>(_list69.size);
-
 
47717
                  for (int _i70 = 0; _i70 < _list69.size; ++_i70)
-
 
47718
                  {
-
 
47719
                    UserNote _elem71;
-
 
47720
                    _elem71 = new UserNote();
-
 
47721
                    _elem71.read(iprot);
-
 
47722
                    this.success.add(_elem71);
-
 
47723
                  }
-
 
47724
                  iprot.readListEnd();
-
 
47725
                }
-
 
47726
              } else { 
-
 
47727
                TProtocolUtil.skip(iprot, field.type);
-
 
47728
              }
-
 
47729
              break;
47589
          }
47730
          }
47590
          iprot.readFieldEnd();
47731
          iprot.readFieldEnd();
47591
        }
47732
        }
47592
      }
47733
      }
47593
      iprot.readStructEnd();
47734
      iprot.readStructEnd();
Line 47595... Line 47736...
47595
    }
47736
    }
47596
 
47737
 
47597
    public void write(TProtocol oprot) throws TException {
47738
    public void write(TProtocol oprot) throws TException {
47598
      oprot.writeStructBegin(STRUCT_DESC);
47739
      oprot.writeStructBegin(STRUCT_DESC);
47599
 
47740
 
-
 
47741
      if (this.isSetSuccess()) {
-
 
47742
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
47743
        {
-
 
47744
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
-
 
47745
          for (UserNote _iter72 : this.success)
-
 
47746
          {
-
 
47747
            _iter72.write(oprot);
-
 
47748
          }
-
 
47749
          oprot.writeListEnd();
-
 
47750
        }
-
 
47751
        oprot.writeFieldEnd();
-
 
47752
      }
47600
      oprot.writeFieldStop();
47753
      oprot.writeFieldStop();
47601
      oprot.writeStructEnd();
47754
      oprot.writeStructEnd();
47602
    }
47755
    }
47603
 
47756
 
47604
    @Override
47757
    @Override
47605
    public String toString() {
47758
    public String toString() {
47606
      StringBuilder sb = new StringBuilder("updateBrowseHistory_result(");
47759
      StringBuilder sb = new StringBuilder("getUserNotes_result(");
47607
      boolean first = true;
47760
      boolean first = true;
47608
 
47761
 
-
 
47762
      sb.append("success:");
-
 
47763
      if (this.success == null) {
-
 
47764
        sb.append("null");
-
 
47765
      } else {
-
 
47766
        sb.append(this.success);
-
 
47767
      }
-
 
47768
      first = false;
47609
      sb.append(")");
47769
      sb.append(")");
47610
      return sb.toString();
47770
      return sb.toString();
47611
    }
47771
    }
47612
 
47772
 
47613
    public void validate() throws TException {
47773
    public void validate() throws TException {
47614
      // check for required fields
47774
      // check for required fields
47615
    }
47775
    }
47616
 
47776
 
47617
  }
47777
  }
47618
 
47778
 
47619
  public static class getBrowseHistory_args implements TBase<getBrowseHistory_args._Fields>, java.io.Serializable, Cloneable, Comparable<getBrowseHistory_args>   {
47779
  public static class getMyResearchItems_args implements TBase<getMyResearchItems_args._Fields>, java.io.Serializable, Cloneable, Comparable<getMyResearchItems_args>   {
47620
    private static final TStruct STRUCT_DESC = new TStruct("getBrowseHistory_args");
47780
    private static final TStruct STRUCT_DESC = new TStruct("getMyResearchItems_args");
47621
 
47781
 
47622
    private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)1);
47782
    private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)1);
47623
 
47783
 
47624
    private long userId;
47784
    private long userId;
47625
 
47785
 
Line 47686... Line 47846...
47686
      put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT, 
47846
      put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT, 
47687
          new FieldValueMetaData(TType.I64)));
47847
          new FieldValueMetaData(TType.I64)));
47688
    }});
47848
    }});
47689
 
47849
 
47690
    static {
47850
    static {
47691
      FieldMetaData.addStructMetaDataMap(getBrowseHistory_args.class, metaDataMap);
47851
      FieldMetaData.addStructMetaDataMap(getMyResearchItems_args.class, metaDataMap);
47692
    }
47852
    }
47693
 
47853
 
47694
    public getBrowseHistory_args() {
47854
    public getMyResearchItems_args() {
47695
    }
47855
    }
47696
 
47856
 
47697
    public getBrowseHistory_args(
47857
    public getMyResearchItems_args(
47698
      long userId)
47858
      long userId)
47699
    {
47859
    {
47700
      this();
47860
      this();
47701
      this.userId = userId;
47861
      this.userId = userId;
47702
      setUserIdIsSet(true);
47862
      setUserIdIsSet(true);
47703
    }
47863
    }
47704
 
47864
 
47705
    /**
47865
    /**
47706
     * Performs a deep copy on <i>other</i>.
47866
     * Performs a deep copy on <i>other</i>.
47707
     */
47867
     */
47708
    public getBrowseHistory_args(getBrowseHistory_args other) {
47868
    public getMyResearchItems_args(getMyResearchItems_args other) {
47709
      __isset_bit_vector.clear();
47869
      __isset_bit_vector.clear();
47710
      __isset_bit_vector.or(other.__isset_bit_vector);
47870
      __isset_bit_vector.or(other.__isset_bit_vector);
47711
      this.userId = other.userId;
47871
      this.userId = other.userId;
47712
    }
47872
    }
47713
 
47873
 
47714
    public getBrowseHistory_args deepCopy() {
47874
    public getMyResearchItems_args deepCopy() {
47715
      return new getBrowseHistory_args(this);
47875
      return new getMyResearchItems_args(this);
47716
    }
47876
    }
47717
 
47877
 
47718
    @Deprecated
47878
    @Deprecated
47719
    public getBrowseHistory_args clone() {
47879
    public getMyResearchItems_args clone() {
47720
      return new getBrowseHistory_args(this);
47880
      return new getMyResearchItems_args(this);
47721
    }
47881
    }
47722
 
47882
 
47723
    public long getUserId() {
47883
    public long getUserId() {
47724
      return this.userId;
47884
      return this.userId;
47725
    }
47885
    }
47726
 
47886
 
47727
    public getBrowseHistory_args setUserId(long userId) {
47887
    public getMyResearchItems_args setUserId(long userId) {
47728
      this.userId = userId;
47888
      this.userId = userId;
47729
      setUserIdIsSet(true);
47889
      setUserIdIsSet(true);
47730
      return this;
47890
      return this;
47731
    }
47891
    }
47732
 
47892
 
Line 47788... Line 47948...
47788
 
47948
 
47789
    @Override
47949
    @Override
47790
    public boolean equals(Object that) {
47950
    public boolean equals(Object that) {
47791
      if (that == null)
47951
      if (that == null)
47792
        return false;
47952
        return false;
47793
      if (that instanceof getBrowseHistory_args)
47953
      if (that instanceof getMyResearchItems_args)
47794
        return this.equals((getBrowseHistory_args)that);
47954
        return this.equals((getMyResearchItems_args)that);
47795
      return false;
47955
      return false;
47796
    }
47956
    }
47797
 
47957
 
47798
    public boolean equals(getBrowseHistory_args that) {
47958
    public boolean equals(getMyResearchItems_args that) {
47799
      if (that == null)
47959
      if (that == null)
47800
        return false;
47960
        return false;
47801
 
47961
 
47802
      boolean this_present_userId = true;
47962
      boolean this_present_userId = true;
47803
      boolean that_present_userId = true;
47963
      boolean that_present_userId = true;
Line 47814... Line 47974...
47814
    @Override
47974
    @Override
47815
    public int hashCode() {
47975
    public int hashCode() {
47816
      return 0;
47976
      return 0;
47817
    }
47977
    }
47818
 
47978
 
47819
    public int compareTo(getBrowseHistory_args other) {
47979
    public int compareTo(getMyResearchItems_args other) {
47820
      if (!getClass().equals(other.getClass())) {
47980
      if (!getClass().equals(other.getClass())) {
47821
        return getClass().getName().compareTo(other.getClass().getName());
47981
        return getClass().getName().compareTo(other.getClass().getName());
47822
      }
47982
      }
47823
 
47983
 
47824
      int lastComparison = 0;
47984
      int lastComparison = 0;
47825
      getBrowseHistory_args typedOther = (getBrowseHistory_args)other;
47985
      getMyResearchItems_args typedOther = (getMyResearchItems_args)other;
47826
 
47986
 
47827
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(isSetUserId());
47987
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(isSetUserId());
47828
      if (lastComparison != 0) {
47988
      if (lastComparison != 0) {
47829
        return lastComparison;
47989
        return lastComparison;
47830
      }
47990
      }
Line 47876... Line 48036...
47876
      oprot.writeStructEnd();
48036
      oprot.writeStructEnd();
47877
    }
48037
    }
47878
 
48038
 
47879
    @Override
48039
    @Override
47880
    public String toString() {
48040
    public String toString() {
47881
      StringBuilder sb = new StringBuilder("getBrowseHistory_args(");
48041
      StringBuilder sb = new StringBuilder("getMyResearchItems_args(");
47882
      boolean first = true;
48042
      boolean first = true;
47883
 
48043
 
47884
      sb.append("userId:");
48044
      sb.append("userId:");
47885
      sb.append(this.userId);
48045
      sb.append(this.userId);
47886
      first = false;
48046
      first = false;
Line 47892... Line 48052...
47892
      // check for required fields
48052
      // check for required fields
47893
    }
48053
    }
47894
 
48054
 
47895
  }
48055
  }
47896
 
48056
 
47897
  public static class getBrowseHistory_result implements TBase<getBrowseHistory_result._Fields>, java.io.Serializable, Cloneable, Comparable<getBrowseHistory_result>   {
48057
  public static class getMyResearchItems_result implements TBase<getMyResearchItems_result._Fields>, java.io.Serializable, Cloneable, Comparable<getMyResearchItems_result>   {
47898
    private static final TStruct STRUCT_DESC = new TStruct("getBrowseHistory_result");
48058
    private static final TStruct STRUCT_DESC = new TStruct("getMyResearchItems_result");
47899
 
48059
 
47900
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
48060
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
47901
    private static final TField SCX_FIELD_DESC = new TField("scx", TType.STRUCT, (short)1);
48061
    private static final TField SCX_FIELD_DESC = new TField("scx", TType.STRUCT, (short)1);
47902
 
48062
 
47903
    private Widget success;
48063
    private List<Long> success;
47904
    private WidgetException scx;
48064
    private WidgetException scx;
47905
 
48065
 
47906
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
48066
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
47907
    public enum _Fields implements TFieldIdEnum {
48067
    public enum _Fields implements TFieldIdEnum {
47908
      SUCCESS((short)0, "success"),
48068
      SUCCESS((short)0, "success"),
Line 47961... Line 48121...
47961
 
48121
 
47962
    // isset id assignments
48122
    // isset id assignments
47963
 
48123
 
47964
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
48124
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
47965
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
48125
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
47966
          new StructMetaData(TType.STRUCT, Widget.class)));
48126
          new ListMetaData(TType.LIST, 
-
 
48127
              new FieldValueMetaData(TType.I64))));
47967
      put(_Fields.SCX, new FieldMetaData("scx", TFieldRequirementType.DEFAULT, 
48128
      put(_Fields.SCX, new FieldMetaData("scx", TFieldRequirementType.DEFAULT, 
47968
          new FieldValueMetaData(TType.STRUCT)));
48129
          new FieldValueMetaData(TType.STRUCT)));
47969
    }});
48130
    }});
47970
 
48131
 
47971
    static {
48132
    static {
47972
      FieldMetaData.addStructMetaDataMap(getBrowseHistory_result.class, metaDataMap);
48133
      FieldMetaData.addStructMetaDataMap(getMyResearchItems_result.class, metaDataMap);
47973
    }
48134
    }
47974
 
48135
 
47975
    public getBrowseHistory_result() {
48136
    public getMyResearchItems_result() {
47976
    }
48137
    }
47977
 
48138
 
47978
    public getBrowseHistory_result(
48139
    public getMyResearchItems_result(
47979
      Widget success,
48140
      List<Long> success,
47980
      WidgetException scx)
48141
      WidgetException scx)
47981
    {
48142
    {
47982
      this();
48143
      this();
47983
      this.success = success;
48144
      this.success = success;
47984
      this.scx = scx;
48145
      this.scx = scx;
47985
    }
48146
    }
47986
 
48147
 
47987
    /**
48148
    /**
47988
     * Performs a deep copy on <i>other</i>.
48149
     * Performs a deep copy on <i>other</i>.
47989
     */
48150
     */
47990
    public getBrowseHistory_result(getBrowseHistory_result other) {
48151
    public getMyResearchItems_result(getMyResearchItems_result other) {
47991
      if (other.isSetSuccess()) {
48152
      if (other.isSetSuccess()) {
-
 
48153
        List<Long> __this__success = new ArrayList<Long>();
-
 
48154
        for (Long other_element : other.success) {
-
 
48155
          __this__success.add(other_element);
-
 
48156
        }
47992
        this.success = new Widget(other.success);
48157
        this.success = __this__success;
47993
      }
48158
      }
47994
      if (other.isSetScx()) {
48159
      if (other.isSetScx()) {
47995
        this.scx = new WidgetException(other.scx);
48160
        this.scx = new WidgetException(other.scx);
47996
      }
48161
      }
47997
    }
48162
    }
47998
 
48163
 
47999
    public getBrowseHistory_result deepCopy() {
48164
    public getMyResearchItems_result deepCopy() {
48000
      return new getBrowseHistory_result(this);
48165
      return new getMyResearchItems_result(this);
48001
    }
48166
    }
48002
 
48167
 
48003
    @Deprecated
48168
    @Deprecated
48004
    public getBrowseHistory_result clone() {
48169
    public getMyResearchItems_result clone() {
48005
      return new getBrowseHistory_result(this);
48170
      return new getMyResearchItems_result(this);
48006
    }
48171
    }
48007
 
48172
 
48008
    public Widget getSuccess() {
48173
    public int getSuccessSize() {
-
 
48174
      return (this.success == null) ? 0 : this.success.size();
-
 
48175
    }
-
 
48176
 
-
 
48177
    public java.util.Iterator<Long> getSuccessIterator() {
-
 
48178
      return (this.success == null) ? null : this.success.iterator();
-
 
48179
    }
-
 
48180
 
-
 
48181
    public void addToSuccess(long elem) {
-
 
48182
      if (this.success == null) {
-
 
48183
        this.success = new ArrayList<Long>();
-
 
48184
      }
-
 
48185
      this.success.add(elem);
-
 
48186
    }
-
 
48187
 
-
 
48188
    public List<Long> getSuccess() {
48009
      return this.success;
48189
      return this.success;
48010
    }
48190
    }
48011
 
48191
 
48012
    public getBrowseHistory_result setSuccess(Widget success) {
48192
    public getMyResearchItems_result setSuccess(List<Long> success) {
48013
      this.success = success;
48193
      this.success = success;
48014
      return this;
48194
      return this;
48015
    }
48195
    }
48016
 
48196
 
48017
    public void unsetSuccess() {
48197
    public void unsetSuccess() {
Line 48031... Line 48211...
48031
 
48211
 
48032
    public WidgetException getScx() {
48212
    public WidgetException getScx() {
48033
      return this.scx;
48213
      return this.scx;
48034
    }
48214
    }
48035
 
48215
 
48036
    public getBrowseHistory_result setScx(WidgetException scx) {
48216
    public getMyResearchItems_result setScx(WidgetException scx) {
48037
      this.scx = scx;
48217
      this.scx = scx;
48038
      return this;
48218
      return this;
48039
    }
48219
    }
48040
 
48220
 
48041
    public void unsetScx() {
48221
    public void unsetScx() {
Line 48057... Line 48237...
48057
      switch (field) {
48237
      switch (field) {
48058
      case SUCCESS:
48238
      case SUCCESS:
48059
        if (value == null) {
48239
        if (value == null) {
48060
          unsetSuccess();
48240
          unsetSuccess();
48061
        } else {
48241
        } else {
48062
          setSuccess((Widget)value);
48242
          setSuccess((List<Long>)value);
48063
        }
48243
        }
48064
        break;
48244
        break;
48065
 
48245
 
48066
      case SCX:
48246
      case SCX:
48067
        if (value == null) {
48247
        if (value == null) {
Line 48111... Line 48291...
48111
 
48291
 
48112
    @Override
48292
    @Override
48113
    public boolean equals(Object that) {
48293
    public boolean equals(Object that) {
48114
      if (that == null)
48294
      if (that == null)
48115
        return false;
48295
        return false;
48116
      if (that instanceof getBrowseHistory_result)
48296
      if (that instanceof getMyResearchItems_result)
48117
        return this.equals((getBrowseHistory_result)that);
48297
        return this.equals((getMyResearchItems_result)that);
48118
      return false;
48298
      return false;
48119
    }
48299
    }
48120
 
48300
 
48121
    public boolean equals(getBrowseHistory_result that) {
48301
    public boolean equals(getMyResearchItems_result that) {
48122
      if (that == null)
48302
      if (that == null)
48123
        return false;
48303
        return false;
48124
 
48304
 
48125
      boolean this_present_success = true && this.isSetSuccess();
48305
      boolean this_present_success = true && this.isSetSuccess();
48126
      boolean that_present_success = true && that.isSetSuccess();
48306
      boolean that_present_success = true && that.isSetSuccess();
Line 48146... Line 48326...
48146
    @Override
48326
    @Override
48147
    public int hashCode() {
48327
    public int hashCode() {
48148
      return 0;
48328
      return 0;
48149
    }
48329
    }
48150
 
48330
 
48151
    public int compareTo(getBrowseHistory_result other) {
48331
    public int compareTo(getMyResearchItems_result other) {
48152
      if (!getClass().equals(other.getClass())) {
48332
      if (!getClass().equals(other.getClass())) {
48153
        return getClass().getName().compareTo(other.getClass().getName());
48333
        return getClass().getName().compareTo(other.getClass().getName());
48154
      }
48334
      }
48155
 
48335
 
48156
      int lastComparison = 0;
48336
      int lastComparison = 0;
48157
      getBrowseHistory_result typedOther = (getBrowseHistory_result)other;
48337
      getMyResearchItems_result typedOther = (getMyResearchItems_result)other;
48158
 
48338
 
48159
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
48339
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
48160
      if (lastComparison != 0) {
48340
      if (lastComparison != 0) {
48161
        return lastComparison;
48341
        return lastComparison;
48162
      }
48342
      }
Line 48188... Line 48368...
48188
        if (fieldId == null) {
48368
        if (fieldId == null) {
48189
          TProtocolUtil.skip(iprot, field.type);
48369
          TProtocolUtil.skip(iprot, field.type);
48190
        } else {
48370
        } else {
48191
          switch (fieldId) {
48371
          switch (fieldId) {
48192
            case SUCCESS:
48372
            case SUCCESS:
48193
              if (field.type == TType.STRUCT) {
48373
              if (field.type == TType.LIST) {
-
 
48374
                {
-
 
48375
                  TList _list73 = iprot.readListBegin();
48194
                this.success = new Widget();
48376
                  this.success = new ArrayList<Long>(_list73.size);
-
 
48377
                  for (int _i74 = 0; _i74 < _list73.size; ++_i74)
-
 
48378
                  {
-
 
48379
                    long _elem75;
-
 
48380
                    _elem75 = iprot.readI64();
48195
                this.success.read(iprot);
48381
                    this.success.add(_elem75);
-
 
48382
                  }
-
 
48383
                  iprot.readListEnd();
-
 
48384
                }
48196
              } else { 
48385
              } else { 
48197
                TProtocolUtil.skip(iprot, field.type);
48386
                TProtocolUtil.skip(iprot, field.type);
48198
              }
48387
              }
48199
              break;
48388
              break;
48200
            case SCX:
48389
            case SCX:
Line 48216... Line 48405...
48216
    public void write(TProtocol oprot) throws TException {
48405
    public void write(TProtocol oprot) throws TException {
48217
      oprot.writeStructBegin(STRUCT_DESC);
48406
      oprot.writeStructBegin(STRUCT_DESC);
48218
 
48407
 
48219
      if (this.isSetSuccess()) {
48408
      if (this.isSetSuccess()) {
48220
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
48409
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
48410
        {
-
 
48411
          oprot.writeListBegin(new TList(TType.I64, this.success.size()));
-
 
48412
          for (long _iter76 : this.success)
-
 
48413
          {
48221
        this.success.write(oprot);
48414
            oprot.writeI64(_iter76);
-
 
48415
          }
-
 
48416
          oprot.writeListEnd();
-
 
48417
        }
48222
        oprot.writeFieldEnd();
48418
        oprot.writeFieldEnd();
48223
      } else if (this.isSetScx()) {
48419
      } else if (this.isSetScx()) {
48224
        oprot.writeFieldBegin(SCX_FIELD_DESC);
48420
        oprot.writeFieldBegin(SCX_FIELD_DESC);
48225
        this.scx.write(oprot);
48421
        this.scx.write(oprot);
48226
        oprot.writeFieldEnd();
48422
        oprot.writeFieldEnd();
Line 48229... Line 48425...
48229
      oprot.writeStructEnd();
48425
      oprot.writeStructEnd();
48230
    }
48426
    }
48231
 
48427
 
48232
    @Override
48428
    @Override
48233
    public String toString() {
48429
    public String toString() {
48234
      StringBuilder sb = new StringBuilder("getBrowseHistory_result(");
48430
      StringBuilder sb = new StringBuilder("getMyResearchItems_result(");
48235
      boolean first = true;
48431
      boolean first = true;
48236
 
48432
 
48237
      sb.append("success:");
48433
      sb.append("success:");
48238
      if (this.success == null) {
48434
      if (this.success == null) {
48239
        sb.append("null");
48435
        sb.append("null");
Line 48257... Line 48453...
48257
      // check for required fields
48453
      // check for required fields
48258
    }
48454
    }
48259
 
48455
 
48260
  }
48456
  }
48261
 
48457
 
48262
  public static class mergeBrowseHistory_args implements TBase<mergeBrowseHistory_args._Fields>, java.io.Serializable, Cloneable, Comparable<mergeBrowseHistory_args>   {
48458
  public static class updateMyResearch_args implements TBase<updateMyResearch_args._Fields>, java.io.Serializable, Cloneable, Comparable<updateMyResearch_args>   {
48263
    private static final TStruct STRUCT_DESC = new TStruct("mergeBrowseHistory_args");
48459
    private static final TStruct STRUCT_DESC = new TStruct("updateMyResearch_args");
48264
 
48460
 
48265
    private static final TField FROM_USER_ID_FIELD_DESC = new TField("fromUserId", TType.I64, (short)1);
48461
    private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)1);
48266
    private static final TField TO_USER_ID_FIELD_DESC = new TField("toUserId", TType.I64, (short)2);
48462
    private static final TField ITEM_ID_FIELD_DESC = new TField("itemId", TType.I64, (short)2);
48267
 
48463
 
48268
    private long fromUserId;
48464
    private long userId;
48269
    private long toUserId;
48465
    private long itemId;
48270
 
48466
 
48271
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
48467
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
48272
    public enum _Fields implements TFieldIdEnum {
48468
    public enum _Fields implements TFieldIdEnum {
48273
      FROM_USER_ID((short)1, "fromUserId"),
48469
      USER_ID((short)1, "userId"),
48274
      TO_USER_ID((short)2, "toUserId");
48470
      ITEM_ID((short)2, "itemId");
48275
 
48471
 
48276
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
48472
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
48277
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
48473
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
48278
 
48474
 
48279
      static {
48475
      static {
Line 48323... Line 48519...
48323
        return _fieldName;
48519
        return _fieldName;
48324
      }
48520
      }
48325
    }
48521
    }
48326
 
48522
 
48327
    // isset id assignments
48523
    // isset id assignments
48328
    private static final int __FROMUSERID_ISSET_ID = 0;
48524
    private static final int __USERID_ISSET_ID = 0;
48329
    private static final int __TOUSERID_ISSET_ID = 1;
48525
    private static final int __ITEMID_ISSET_ID = 1;
48330
    private BitSet __isset_bit_vector = new BitSet(2);
48526
    private BitSet __isset_bit_vector = new BitSet(2);
48331
 
48527
 
48332
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
48528
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
48333
      put(_Fields.FROM_USER_ID, new FieldMetaData("fromUserId", TFieldRequirementType.DEFAULT, 
48529
      put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT, 
48334
          new FieldValueMetaData(TType.I64)));
48530
          new FieldValueMetaData(TType.I64)));
48335
      put(_Fields.TO_USER_ID, new FieldMetaData("toUserId", TFieldRequirementType.DEFAULT, 
48531
      put(_Fields.ITEM_ID, new FieldMetaData("itemId", TFieldRequirementType.DEFAULT, 
48336
          new FieldValueMetaData(TType.I64)));
48532
          new FieldValueMetaData(TType.I64)));
48337
    }});
48533
    }});
48338
 
48534
 
48339
    static {
48535
    static {
48340
      FieldMetaData.addStructMetaDataMap(mergeBrowseHistory_args.class, metaDataMap);
48536
      FieldMetaData.addStructMetaDataMap(updateMyResearch_args.class, metaDataMap);
48341
    }
48537
    }
48342
 
48538
 
48343
    public mergeBrowseHistory_args() {
48539
    public updateMyResearch_args() {
48344
    }
48540
    }
48345
 
48541
 
48346
    public mergeBrowseHistory_args(
48542
    public updateMyResearch_args(
48347
      long fromUserId,
48543
      long userId,
48348
      long toUserId)
48544
      long itemId)
48349
    {
48545
    {
48350
      this();
48546
      this();
48351
      this.fromUserId = fromUserId;
48547
      this.userId = userId;
48352
      setFromUserIdIsSet(true);
48548
      setUserIdIsSet(true);
48353
      this.toUserId = toUserId;
48549
      this.itemId = itemId;
48354
      setToUserIdIsSet(true);
48550
      setItemIdIsSet(true);
48355
    }
48551
    }
48356
 
48552
 
48357
    /**
48553
    /**
48358
     * Performs a deep copy on <i>other</i>.
48554
     * Performs a deep copy on <i>other</i>.
48359
     */
48555
     */
48360
    public mergeBrowseHistory_args(mergeBrowseHistory_args other) {
48556
    public updateMyResearch_args(updateMyResearch_args other) {
48361
      __isset_bit_vector.clear();
48557
      __isset_bit_vector.clear();
48362
      __isset_bit_vector.or(other.__isset_bit_vector);
48558
      __isset_bit_vector.or(other.__isset_bit_vector);
48363
      this.fromUserId = other.fromUserId;
48559
      this.userId = other.userId;
48364
      this.toUserId = other.toUserId;
48560
      this.itemId = other.itemId;
48365
    }
48561
    }
48366
 
48562
 
48367
    public mergeBrowseHistory_args deepCopy() {
48563
    public updateMyResearch_args deepCopy() {
48368
      return new mergeBrowseHistory_args(this);
48564
      return new updateMyResearch_args(this);
48369
    }
48565
    }
48370
 
48566
 
48371
    @Deprecated
48567
    @Deprecated
48372
    public mergeBrowseHistory_args clone() {
48568
    public updateMyResearch_args clone() {
48373
      return new mergeBrowseHistory_args(this);
48569
      return new updateMyResearch_args(this);
48374
    }
48570
    }
48375
 
48571
 
48376
    public long getFromUserId() {
48572
    public long getUserId() {
48377
      return this.fromUserId;
48573
      return this.userId;
48378
    }
48574
    }
48379
 
48575
 
48380
    public mergeBrowseHistory_args setFromUserId(long fromUserId) {
48576
    public updateMyResearch_args setUserId(long userId) {
48381
      this.fromUserId = fromUserId;
48577
      this.userId = userId;
48382
      setFromUserIdIsSet(true);
48578
      setUserIdIsSet(true);
48383
      return this;
48579
      return this;
48384
    }
48580
    }
48385
 
48581
 
48386
    public void unsetFromUserId() {
48582
    public void unsetUserId() {
48387
      __isset_bit_vector.clear(__FROMUSERID_ISSET_ID);
48583
      __isset_bit_vector.clear(__USERID_ISSET_ID);
48388
    }
48584
    }
48389
 
48585
 
48390
    /** Returns true if field fromUserId is set (has been asigned a value) and false otherwise */
48586
    /** Returns true if field userId is set (has been asigned a value) and false otherwise */
48391
    public boolean isSetFromUserId() {
48587
    public boolean isSetUserId() {
48392
      return __isset_bit_vector.get(__FROMUSERID_ISSET_ID);
48588
      return __isset_bit_vector.get(__USERID_ISSET_ID);
48393
    }
48589
    }
48394
 
48590
 
48395
    public void setFromUserIdIsSet(boolean value) {
48591
    public void setUserIdIsSet(boolean value) {
48396
      __isset_bit_vector.set(__FROMUSERID_ISSET_ID, value);
48592
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
48397
    }
48593
    }
48398
 
48594
 
48399
    public long getToUserId() {
48595
    public long getItemId() {
48400
      return this.toUserId;
48596
      return this.itemId;
48401
    }
48597
    }
48402
 
48598
 
48403
    public mergeBrowseHistory_args setToUserId(long toUserId) {
48599
    public updateMyResearch_args setItemId(long itemId) {
48404
      this.toUserId = toUserId;
48600
      this.itemId = itemId;
48405
      setToUserIdIsSet(true);
48601
      setItemIdIsSet(true);
48406
      return this;
48602
      return this;
48407
    }
48603
    }
48408
 
48604
 
48409
    public void unsetToUserId() {
48605
    public void unsetItemId() {
48410
      __isset_bit_vector.clear(__TOUSERID_ISSET_ID);
48606
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
48411
    }
48607
    }
48412
 
48608
 
48413
    /** Returns true if field toUserId is set (has been asigned a value) and false otherwise */
48609
    /** Returns true if field itemId is set (has been asigned a value) and false otherwise */
48414
    public boolean isSetToUserId() {
48610
    public boolean isSetItemId() {
48415
      return __isset_bit_vector.get(__TOUSERID_ISSET_ID);
48611
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
48416
    }
48612
    }
48417
 
48613
 
48418
    public void setToUserIdIsSet(boolean value) {
48614
    public void setItemIdIsSet(boolean value) {
48419
      __isset_bit_vector.set(__TOUSERID_ISSET_ID, value);
48615
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
48420
    }
48616
    }
48421
 
48617
 
48422
    public void setFieldValue(_Fields field, Object value) {
48618
    public void setFieldValue(_Fields field, Object value) {
48423
      switch (field) {
48619
      switch (field) {
48424
      case FROM_USER_ID:
48620
      case USER_ID:
48425
        if (value == null) {
48621
        if (value == null) {
48426
          unsetFromUserId();
48622
          unsetUserId();
48427
        } else {
48623
        } else {
48428
          setFromUserId((Long)value);
48624
          setUserId((Long)value);
48429
        }
48625
        }
48430
        break;
48626
        break;
48431
 
48627
 
48432
      case TO_USER_ID:
48628
      case ITEM_ID:
48433
        if (value == null) {
48629
        if (value == null) {
48434
          unsetToUserId();
48630
          unsetItemId();
48435
        } else {
48631
        } else {
48436
          setToUserId((Long)value);
48632
          setItemId((Long)value);
48437
        }
48633
        }
48438
        break;
48634
        break;
48439
 
48635
 
48440
      }
48636
      }
48441
    }
48637
    }
Line 48444... Line 48640...
48444
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
48640
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
48445
    }
48641
    }
48446
 
48642
 
48447
    public Object getFieldValue(_Fields field) {
48643
    public Object getFieldValue(_Fields field) {
48448
      switch (field) {
48644
      switch (field) {
48449
      case FROM_USER_ID:
48645
      case USER_ID:
48450
        return new Long(getFromUserId());
48646
        return new Long(getUserId());
48451
 
48647
 
48452
      case TO_USER_ID:
48648
      case ITEM_ID:
48453
        return new Long(getToUserId());
48649
        return new Long(getItemId());
48454
 
48650
 
48455
      }
48651
      }
48456
      throw new IllegalStateException();
48652
      throw new IllegalStateException();
48457
    }
48653
    }
48458
 
48654
 
Line 48461... Line 48657...
48461
    }
48657
    }
48462
 
48658
 
48463
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
48659
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
48464
    public boolean isSet(_Fields field) {
48660
    public boolean isSet(_Fields field) {
48465
      switch (field) {
48661
      switch (field) {
48466
      case FROM_USER_ID:
48662
      case USER_ID:
48467
        return isSetFromUserId();
48663
        return isSetUserId();
48468
      case TO_USER_ID:
48664
      case ITEM_ID:
48469
        return isSetToUserId();
48665
        return isSetItemId();
48470
      }
48666
      }
48471
      throw new IllegalStateException();
48667
      throw new IllegalStateException();
48472
    }
48668
    }
48473
 
48669
 
48474
    public boolean isSet(int fieldID) {
48670
    public boolean isSet(int fieldID) {
Line 48477... Line 48673...
48477
 
48673
 
48478
    @Override
48674
    @Override
48479
    public boolean equals(Object that) {
48675
    public boolean equals(Object that) {
48480
      if (that == null)
48676
      if (that == null)
48481
        return false;
48677
        return false;
48482
      if (that instanceof mergeBrowseHistory_args)
48678
      if (that instanceof updateMyResearch_args)
48483
        return this.equals((mergeBrowseHistory_args)that);
48679
        return this.equals((updateMyResearch_args)that);
48484
      return false;
48680
      return false;
48485
    }
48681
    }
48486
 
48682
 
48487
    public boolean equals(mergeBrowseHistory_args that) {
48683
    public boolean equals(updateMyResearch_args that) {
48488
      if (that == null)
48684
      if (that == null)
48489
        return false;
48685
        return false;
48490
 
48686
 
48491
      boolean this_present_fromUserId = true;
48687
      boolean this_present_userId = true;
48492
      boolean that_present_fromUserId = true;
48688
      boolean that_present_userId = true;
48493
      if (this_present_fromUserId || that_present_fromUserId) {
48689
      if (this_present_userId || that_present_userId) {
48494
        if (!(this_present_fromUserId && that_present_fromUserId))
48690
        if (!(this_present_userId && that_present_userId))
48495
          return false;
48691
          return false;
48496
        if (this.fromUserId != that.fromUserId)
48692
        if (this.userId != that.userId)
48497
          return false;
48693
          return false;
48498
      }
48694
      }
48499
 
48695
 
48500
      boolean this_present_toUserId = true;
48696
      boolean this_present_itemId = true;
48501
      boolean that_present_toUserId = true;
48697
      boolean that_present_itemId = true;
48502
      if (this_present_toUserId || that_present_toUserId) {
48698
      if (this_present_itemId || that_present_itemId) {
48503
        if (!(this_present_toUserId && that_present_toUserId))
48699
        if (!(this_present_itemId && that_present_itemId))
48504
          return false;
48700
          return false;
48505
        if (this.toUserId != that.toUserId)
48701
        if (this.itemId != that.itemId)
48506
          return false;
48702
          return false;
48507
      }
48703
      }
48508
 
48704
 
48509
      return true;
48705
      return true;
48510
    }
48706
    }
Line 48512... Line 48708...
48512
    @Override
48708
    @Override
48513
    public int hashCode() {
48709
    public int hashCode() {
48514
      return 0;
48710
      return 0;
48515
    }
48711
    }
48516
 
48712
 
48517
    public int compareTo(mergeBrowseHistory_args other) {
48713
    public int compareTo(updateMyResearch_args other) {
48518
      if (!getClass().equals(other.getClass())) {
48714
      if (!getClass().equals(other.getClass())) {
48519
        return getClass().getName().compareTo(other.getClass().getName());
48715
        return getClass().getName().compareTo(other.getClass().getName());
48520
      }
48716
      }
48521
 
48717
 
48522
      int lastComparison = 0;
48718
      int lastComparison = 0;
48523
      mergeBrowseHistory_args typedOther = (mergeBrowseHistory_args)other;
48719
      updateMyResearch_args typedOther = (updateMyResearch_args)other;
48524
 
48720
 
48525
      lastComparison = Boolean.valueOf(isSetFromUserId()).compareTo(isSetFromUserId());
48721
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(isSetUserId());
48526
      if (lastComparison != 0) {
48722
      if (lastComparison != 0) {
48527
        return lastComparison;
48723
        return lastComparison;
48528
      }
48724
      }
48529
      lastComparison = TBaseHelper.compareTo(fromUserId, typedOther.fromUserId);
48725
      lastComparison = TBaseHelper.compareTo(userId, typedOther.userId);
48530
      if (lastComparison != 0) {
48726
      if (lastComparison != 0) {
48531
        return lastComparison;
48727
        return lastComparison;
48532
      }
48728
      }
48533
      lastComparison = Boolean.valueOf(isSetToUserId()).compareTo(isSetToUserId());
48729
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(isSetItemId());
48534
      if (lastComparison != 0) {
48730
      if (lastComparison != 0) {
48535
        return lastComparison;
48731
        return lastComparison;
48536
      }
48732
      }
48537
      lastComparison = TBaseHelper.compareTo(toUserId, typedOther.toUserId);
48733
      lastComparison = TBaseHelper.compareTo(itemId, typedOther.itemId);
48538
      if (lastComparison != 0) {
48734
      if (lastComparison != 0) {
48539
        return lastComparison;
48735
        return lastComparison;
48540
      }
48736
      }
48541
      return 0;
48737
      return 0;
48542
    }
48738
    }
Line 48553... Line 48749...
48553
        _Fields fieldId = _Fields.findByThriftId(field.id);
48749
        _Fields fieldId = _Fields.findByThriftId(field.id);
48554
        if (fieldId == null) {
48750
        if (fieldId == null) {
48555
          TProtocolUtil.skip(iprot, field.type);
48751
          TProtocolUtil.skip(iprot, field.type);
48556
        } else {
48752
        } else {
48557
          switch (fieldId) {
48753
          switch (fieldId) {
48558
            case FROM_USER_ID:
48754
            case USER_ID:
48559
              if (field.type == TType.I64) {
48755
              if (field.type == TType.I64) {
48560
                this.fromUserId = iprot.readI64();
48756
                this.userId = iprot.readI64();
48561
                setFromUserIdIsSet(true);
48757
                setUserIdIsSet(true);
48562
              } else { 
48758
              } else { 
48563
                TProtocolUtil.skip(iprot, field.type);
48759
                TProtocolUtil.skip(iprot, field.type);
48564
              }
48760
              }
48565
              break;
48761
              break;
48566
            case TO_USER_ID:
48762
            case ITEM_ID:
48567
              if (field.type == TType.I64) {
48763
              if (field.type == TType.I64) {
48568
                this.toUserId = iprot.readI64();
48764
                this.itemId = iprot.readI64();
48569
                setToUserIdIsSet(true);
48765
                setItemIdIsSet(true);
48570
              } else { 
48766
              } else { 
48571
                TProtocolUtil.skip(iprot, field.type);
48767
                TProtocolUtil.skip(iprot, field.type);
48572
              }
48768
              }
48573
              break;
48769
              break;
48574
          }
48770
          }
Line 48581... Line 48777...
48581
 
48777
 
48582
    public void write(TProtocol oprot) throws TException {
48778
    public void write(TProtocol oprot) throws TException {
48583
      validate();
48779
      validate();
48584
 
48780
 
48585
      oprot.writeStructBegin(STRUCT_DESC);
48781
      oprot.writeStructBegin(STRUCT_DESC);
48586
      oprot.writeFieldBegin(FROM_USER_ID_FIELD_DESC);
48782
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
48587
      oprot.writeI64(this.fromUserId);
48783
      oprot.writeI64(this.userId);
48588
      oprot.writeFieldEnd();
48784
      oprot.writeFieldEnd();
48589
      oprot.writeFieldBegin(TO_USER_ID_FIELD_DESC);
48785
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
48590
      oprot.writeI64(this.toUserId);
48786
      oprot.writeI64(this.itemId);
48591
      oprot.writeFieldEnd();
48787
      oprot.writeFieldEnd();
48592
      oprot.writeFieldStop();
48788
      oprot.writeFieldStop();
48593
      oprot.writeStructEnd();
48789
      oprot.writeStructEnd();
48594
    }
48790
    }
48595
 
48791
 
48596
    @Override
48792
    @Override
48597
    public String toString() {
48793
    public String toString() {
48598
      StringBuilder sb = new StringBuilder("mergeBrowseHistory_args(");
48794
      StringBuilder sb = new StringBuilder("updateMyResearch_args(");
48599
      boolean first = true;
48795
      boolean first = true;
48600
 
48796
 
48601
      sb.append("fromUserId:");
48797
      sb.append("userId:");
48602
      sb.append(this.fromUserId);
48798
      sb.append(this.userId);
48603
      first = false;
48799
      first = false;
48604
      if (!first) sb.append(", ");
48800
      if (!first) sb.append(", ");
48605
      sb.append("toUserId:");
48801
      sb.append("itemId:");
48606
      sb.append(this.toUserId);
48802
      sb.append(this.itemId);
48607
      first = false;
48803
      first = false;
48608
      sb.append(")");
48804
      sb.append(")");
48609
      return sb.toString();
48805
      return sb.toString();
48610
    }
48806
    }
48611
 
48807
 
Line 48613... Line 48809...
48613
      // check for required fields
48809
      // check for required fields
48614
    }
48810
    }
48615
 
48811
 
48616
  }
48812
  }
48617
 
48813
 
48618
  public static class mergeBrowseHistory_result implements TBase<mergeBrowseHistory_result._Fields>, java.io.Serializable, Cloneable, Comparable<mergeBrowseHistory_result>   {
48814
  public static class updateMyResearch_result implements TBase<updateMyResearch_result._Fields>, java.io.Serializable, Cloneable, Comparable<updateMyResearch_result>   {
48619
    private static final TStruct STRUCT_DESC = new TStruct("mergeBrowseHistory_result");
48815
    private static final TStruct STRUCT_DESC = new TStruct("updateMyResearch_result");
48620
 
48816
 
-
 
48817
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
-
 
48818
    private static final TField SCX_FIELD_DESC = new TField("scx", TType.STRUCT, (short)1);
48621
 
48819
 
-
 
48820
    private boolean success;
-
 
48821
    private WidgetException scx;
48622
 
48822
 
48623
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
48823
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
48624
    public enum _Fields implements TFieldIdEnum {
48824
    public enum _Fields implements TFieldIdEnum {
48625
;
-
 
-
 
48825
      SUCCESS((short)0, "success"),
-
 
48826
      SCX((short)1, "scx");
48626
 
48827
 
48627
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
48828
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
48628
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
48829
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
48629
 
48830
 
48630
      static {
48831
      static {
Line 48672... Line 48873...
48672
 
48873
 
48673
      public String getFieldName() {
48874
      public String getFieldName() {
48674
        return _fieldName;
48875
        return _fieldName;
48675
      }
48876
      }
48676
    }
48877
    }
-
 
48878
 
-
 
48879
    // isset id assignments
-
 
48880
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
48881
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
48882
 
48677
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
48883
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
48884
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
48885
          new FieldValueMetaData(TType.BOOL)));
-
 
48886
      put(_Fields.SCX, new FieldMetaData("scx", TFieldRequirementType.DEFAULT, 
-
 
48887
          new FieldValueMetaData(TType.STRUCT)));
48678
    }});
48888
    }});
48679
 
48889
 
48680
    static {
48890
    static {
48681
      FieldMetaData.addStructMetaDataMap(mergeBrowseHistory_result.class, metaDataMap);
48891
      FieldMetaData.addStructMetaDataMap(updateMyResearch_result.class, metaDataMap);
-
 
48892
    }
-
 
48893
 
-
 
48894
    public updateMyResearch_result() {
48682
    }
48895
    }
48683
 
48896
 
48684
    public mergeBrowseHistory_result() {
48897
    public updateMyResearch_result(
-
 
48898
      boolean success,
-
 
48899
      WidgetException scx)
-
 
48900
    {
-
 
48901
      this();
-
 
48902
      this.success = success;
-
 
48903
      setSuccessIsSet(true);
-
 
48904
      this.scx = scx;
48685
    }
48905
    }
48686
 
48906
 
48687
    /**
48907
    /**
48688
     * Performs a deep copy on <i>other</i>.
48908
     * Performs a deep copy on <i>other</i>.
48689
     */
48909
     */
48690
    public mergeBrowseHistory_result(mergeBrowseHistory_result other) {
48910
    public updateMyResearch_result(updateMyResearch_result other) {
48691
    }
-
 
48692
 
-
 
48693
    public mergeBrowseHistory_result deepCopy() {
-
 
48694
      return new mergeBrowseHistory_result(this);
-
 
48695
    }
-
 
48696
 
-
 
48697
    @Deprecated
-
 
48698
    public mergeBrowseHistory_result clone() {
-
 
48699
      return new mergeBrowseHistory_result(this);
-
 
48700
    }
-
 
48701
 
-
 
48702
    public void setFieldValue(_Fields field, Object value) {
-
 
48703
      switch (field) {
-
 
48704
      }
-
 
48705
    }
-
 
48706
 
-
 
48707
    public void setFieldValue(int fieldID, Object value) {
-
 
48708
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
48709
    }
-
 
48710
 
-
 
48711
    public Object getFieldValue(_Fields field) {
-
 
48712
      switch (field) {
-
 
48713
      }
-
 
48714
      throw new IllegalStateException();
-
 
48715
    }
-
 
48716
 
-
 
48717
    public Object getFieldValue(int fieldId) {
-
 
48718
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
48719
    }
-
 
48720
 
-
 
48721
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
48722
    public boolean isSet(_Fields field) {
-
 
48723
      switch (field) {
-
 
48724
      }
-
 
48725
      throw new IllegalStateException();
48911
      __isset_bit_vector.clear();
48726
    }
-
 
48727
 
-
 
48728
    public boolean isSet(int fieldID) {
-
 
48729
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
48730
    }
-
 
48731
 
-
 
48732
    @Override
-
 
48733
    public boolean equals(Object that) {
-
 
48734
      if (that == null)
-
 
48735
        return false;
-
 
48736
      if (that instanceof mergeBrowseHistory_result)
-
 
48737
        return this.equals((mergeBrowseHistory_result)that);
-
 
48738
      return false;
-
 
48739
    }
-
 
48740
 
-
 
48741
    public boolean equals(mergeBrowseHistory_result that) {
-
 
48742
      if (that == null)
-
 
48743
        return false;
-
 
48744
 
-
 
48745
      return true;
-
 
48746
    }
-
 
48747
 
-
 
48748
    @Override
-
 
48749
    public int hashCode() {
-
 
48750
      return 0;
-
 
48751
    }
-
 
48752
 
-
 
48753
    public int compareTo(mergeBrowseHistory_result other) {
-
 
48754
      if (!getClass().equals(other.getClass())) {
48912
      __isset_bit_vector.or(other.__isset_bit_vector);
48755
        return getClass().getName().compareTo(other.getClass().getName());
-
 
48756
      }
-
 
48757
 
-
 
48758
      int lastComparison = 0;
48913
      this.success = other.success;
48759
      mergeBrowseHistory_result typedOther = (mergeBrowseHistory_result)other;
-
 
48760
 
-
 
48761
      return 0;
-
 
48762
    }
-
 
48763
 
-
 
48764
    public void read(TProtocol iprot) throws TException {
-
 
48765
      TField field;
-
 
48766
      iprot.readStructBegin();
-
 
48767
      while (true)
-
 
48768
      {
-
 
48769
        field = iprot.readFieldBegin();
-
 
48770
        if (field.type == TType.STOP) { 
-
 
48771
          break;
-
 
48772
        }
-
 
48773
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
48774
        if (fieldId == null) {
48914
      if (other.isSetScx()) {
48775
          TProtocolUtil.skip(iprot, field.type);
48915
        this.scx = new WidgetException(other.scx);
48776
        } else {
-
 
48777
          switch (fieldId) {
-
 
48778
          }
-
 
48779
          iprot.readFieldEnd();
-
 
48780
        }
-
 
48781
      }
48916
      }
48782
      iprot.readStructEnd();
-
 
48783
      validate();
-
 
48784
    }
-
 
48785
 
-
 
48786
    public void write(TProtocol oprot) throws TException {
-
 
48787
      oprot.writeStructBegin(STRUCT_DESC);
-
 
48788
 
-
 
48789
      oprot.writeFieldStop();
-
 
48790
      oprot.writeStructEnd();
-
 
48791
    }
-
 
48792
 
-
 
48793
    @Override
-
 
48794
    public String toString() {
-
 
48795
      StringBuilder sb = new StringBuilder("mergeBrowseHistory_result(");
-
 
48796
      boolean first = true;
-
 
48797
 
-
 
48798
      sb.append(")");
-
 
48799
      return sb.toString();
-
 
48800
    }
48917
    }
48801
 
48918
 
48802
    public void validate() throws TException {
48919
    public updateMyResearch_result deepCopy() {
48803
      // check for required fields
-
 
48804
    }
-
 
48805
 
-
 
48806
  }
-
 
48807
 
-
 
48808
  public static class getUserCount_args implements TBase<getUserCount_args._Fields>, java.io.Serializable, Cloneable, Comparable<getUserCount_args>   {
-
 
48809
    private static final TStruct STRUCT_DESC = new TStruct("getUserCount_args");
-
 
48810
 
-
 
48811
    private static final TField USER_TYPE_FIELD_DESC = new TField("userType", TType.I32, (short)1);
-
 
48812
 
-
 
48813
    private UserType userType;
-
 
48814
 
-
 
48815
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
48816
    public enum _Fields implements TFieldIdEnum {
-
 
48817
      /**
-
 
48818
       * 
-
 
48819
       * @see UserType
-
 
48820
       */
-
 
48821
      USER_TYPE((short)1, "userType");
-
 
48822
 
-
 
48823
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
48824
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
48825
 
-
 
48826
      static {
-
 
48827
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
48828
          byId.put((int)field._thriftId, field);
-
 
48829
          byName.put(field.getFieldName(), field);
-
 
48830
        }
-
 
48831
      }
-
 
48832
 
-
 
48833
      /**
-
 
48834
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
48835
       */
-
 
48836
      public static _Fields findByThriftId(int fieldId) {
-
 
48837
        return byId.get(fieldId);
-
 
48838
      }
-
 
48839
 
-
 
48840
      /**
-
 
48841
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
48842
       * if it is not found.
-
 
48843
       */
-
 
48844
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
48845
        _Fields fields = findByThriftId(fieldId);
-
 
48846
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
48847
        return fields;
-
 
48848
      }
-
 
48849
 
-
 
48850
      /**
-
 
48851
       * Find the _Fields constant that matches name, or null if its not found.
-
 
48852
       */
-
 
48853
      public static _Fields findByName(String name) {
-
 
48854
        return byName.get(name);
48920
      return new updateMyResearch_result(this);
48855
      }
-
 
48856
 
-
 
48857
      private final short _thriftId;
-
 
48858
      private final String _fieldName;
-
 
48859
 
-
 
48860
      _Fields(short thriftId, String fieldName) {
-
 
48861
        _thriftId = thriftId;
-
 
48862
        _fieldName = fieldName;
-
 
48863
      }
-
 
48864
 
-
 
48865
      public short getThriftFieldId() {
-
 
48866
        return _thriftId;
-
 
48867
      }
-
 
48868
 
-
 
48869
      public String getFieldName() {
-
 
48870
        return _fieldName;
-
 
48871
      }
-
 
48872
    }
48921
    }
48873
 
48922
 
48874
    // isset id assignments
48923
    @Deprecated
48875
 
-
 
48876
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
48877
      put(_Fields.USER_TYPE, new FieldMetaData("userType", TFieldRequirementType.DEFAULT, 
-
 
48878
          new EnumMetaData(TType.ENUM, UserType.class)));
48924
    public updateMyResearch_result clone() {
48879
    }});
-
 
48880
 
-
 
48881
    static {
-
 
48882
      FieldMetaData.addStructMetaDataMap(getUserCount_args.class, metaDataMap);
48925
      return new updateMyResearch_result(this);
48883
    }
48926
    }
48884
 
48927
 
48885
    public getUserCount_args() {
48928
    public boolean isSuccess() {
-
 
48929
      return this.success;
48886
    }
48930
    }
48887
 
48931
 
48888
    public getUserCount_args(
48932
    public updateMyResearch_result setSuccess(boolean success) {
48889
      UserType userType)
48933
      this.success = success;
48890
    {
-
 
48891
      this();
48934
      setSuccessIsSet(true);
48892
      this.userType = userType;
48935
      return this;
48893
    }
48936
    }
48894
 
48937
 
48895
    /**
-
 
48896
     * Performs a deep copy on <i>other</i>.
-
 
48897
     */
-
 
48898
    public getUserCount_args(getUserCount_args other) {
-
 
48899
      if (other.isSetUserType()) {
48938
    public void unsetSuccess() {
48900
        this.userType = other.userType;
48939
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
48901
      }
-
 
48902
    }
48940
    }
48903
 
48941
 
-
 
48942
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
48904
    public getUserCount_args deepCopy() {
48943
    public boolean isSetSuccess() {
48905
      return new getUserCount_args(this);
48944
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
48906
    }
48945
    }
48907
 
48946
 
48908
    @Deprecated
-
 
48909
    public getUserCount_args clone() {
48947
    public void setSuccessIsSet(boolean value) {
48910
      return new getUserCount_args(this);
48948
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
48911
    }
48949
    }
48912
 
48950
 
48913
    /**
-
 
48914
     * 
-
 
48915
     * @see UserType
-
 
48916
     */
-
 
48917
    public UserType getUserType() {
48951
    public WidgetException getScx() {
48918
      return this.userType;
48952
      return this.scx;
48919
    }
48953
    }
48920
 
48954
 
48921
    /**
-
 
48922
     * 
-
 
48923
     * @see UserType
-
 
48924
     */
-
 
48925
    public getUserCount_args setUserType(UserType userType) {
48955
    public updateMyResearch_result setScx(WidgetException scx) {
48926
      this.userType = userType;
48956
      this.scx = scx;
48927
      return this;
48957
      return this;
48928
    }
48958
    }
48929
 
48959
 
48930
    public void unsetUserType() {
48960
    public void unsetScx() {
48931
      this.userType = null;
48961
      this.scx = null;
48932
    }
48962
    }
48933
 
48963
 
48934
    /** Returns true if field userType is set (has been asigned a value) and false otherwise */
48964
    /** Returns true if field scx is set (has been asigned a value) and false otherwise */
48935
    public boolean isSetUserType() {
48965
    public boolean isSetScx() {
48936
      return this.userType != null;
48966
      return this.scx != null;
48937
    }
48967
    }
48938
 
48968
 
48939
    public void setUserTypeIsSet(boolean value) {
48969
    public void setScxIsSet(boolean value) {
48940
      if (!value) {
48970
      if (!value) {
48941
        this.userType = null;
48971
        this.scx = null;
48942
      }
48972
      }
48943
    }
48973
    }
48944
 
48974
 
48945
    public void setFieldValue(_Fields field, Object value) {
48975
    public void setFieldValue(_Fields field, Object value) {
48946
      switch (field) {
48976
      switch (field) {
48947
      case USER_TYPE:
48977
      case SUCCESS:
48948
        if (value == null) {
48978
        if (value == null) {
48949
          unsetUserType();
48979
          unsetSuccess();
48950
        } else {
48980
        } else {
48951
          setUserType((UserType)value);
48981
          setSuccess((Boolean)value);
-
 
48982
        }
-
 
48983
        break;
-
 
48984
 
-
 
48985
      case SCX:
-
 
48986
        if (value == null) {
-
 
48987
          unsetScx();
-
 
48988
        } else {
-
 
48989
          setScx((WidgetException)value);
48952
        }
48990
        }
48953
        break;
48991
        break;
48954
 
48992
 
48955
      }
48993
      }
48956
    }
48994
    }
Line 48959... Line 48997...
48959
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
48997
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
48960
    }
48998
    }
48961
 
48999
 
48962
    public Object getFieldValue(_Fields field) {
49000
    public Object getFieldValue(_Fields field) {
48963
      switch (field) {
49001
      switch (field) {
48964
      case USER_TYPE:
49002
      case SUCCESS:
-
 
49003
        return new Boolean(isSuccess());
-
 
49004
 
-
 
49005
      case SCX:
48965
        return getUserType();
49006
        return getScx();
48966
 
49007
 
48967
      }
49008
      }
48968
      throw new IllegalStateException();
49009
      throw new IllegalStateException();
48969
    }
49010
    }
48970
 
49011
 
Line 48973... Line 49014...
48973
    }
49014
    }
48974
 
49015
 
48975
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
49016
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
48976
    public boolean isSet(_Fields field) {
49017
    public boolean isSet(_Fields field) {
48977
      switch (field) {
49018
      switch (field) {
48978
      case USER_TYPE:
49019
      case SUCCESS:
48979
        return isSetUserType();
49020
        return isSetSuccess();
-
 
49021
      case SCX:
-
 
49022
        return isSetScx();
48980
      }
49023
      }
48981
      throw new IllegalStateException();
49024
      throw new IllegalStateException();
48982
    }
49025
    }
48983
 
49026
 
48984
    public boolean isSet(int fieldID) {
49027
    public boolean isSet(int fieldID) {
Line 48987... Line 49030...
48987
 
49030
 
48988
    @Override
49031
    @Override
48989
    public boolean equals(Object that) {
49032
    public boolean equals(Object that) {
48990
      if (that == null)
49033
      if (that == null)
48991
        return false;
49034
        return false;
48992
      if (that instanceof getUserCount_args)
49035
      if (that instanceof updateMyResearch_result)
48993
        return this.equals((getUserCount_args)that);
49036
        return this.equals((updateMyResearch_result)that);
48994
      return false;
49037
      return false;
48995
    }
49038
    }
48996
 
49039
 
48997
    public boolean equals(getUserCount_args that) {
49040
    public boolean equals(updateMyResearch_result that) {
48998
      if (that == null)
49041
      if (that == null)
48999
        return false;
49042
        return false;
49000
 
49043
 
49001
      boolean this_present_userType = true && this.isSetUserType();
49044
      boolean this_present_success = true;
49002
      boolean that_present_userType = true && that.isSetUserType();
49045
      boolean that_present_success = true;
49003
      if (this_present_userType || that_present_userType) {
49046
      if (this_present_success || that_present_success) {
49004
        if (!(this_present_userType && that_present_userType))
49047
        if (!(this_present_success && that_present_success))
49005
          return false;
49048
          return false;
-
 
49049
        if (this.success != that.success)
-
 
49050
          return false;
-
 
49051
      }
-
 
49052
 
-
 
49053
      boolean this_present_scx = true && this.isSetScx();
-
 
49054
      boolean that_present_scx = true && that.isSetScx();
-
 
49055
      if (this_present_scx || that_present_scx) {
-
 
49056
        if (!(this_present_scx && that_present_scx))
-
 
49057
          return false;
49006
        if (!this.userType.equals(that.userType))
49058
        if (!this.scx.equals(that.scx))
49007
          return false;
49059
          return false;
49008
      }
49060
      }
49009
 
49061
 
49010
      return true;
49062
      return true;
49011
    }
49063
    }
Line 49013... Line 49065...
49013
    @Override
49065
    @Override
49014
    public int hashCode() {
49066
    public int hashCode() {
49015
      return 0;
49067
      return 0;
49016
    }
49068
    }
49017
 
49069
 
49018
    public int compareTo(getUserCount_args other) {
49070
    public int compareTo(updateMyResearch_result other) {
49019
      if (!getClass().equals(other.getClass())) {
49071
      if (!getClass().equals(other.getClass())) {
49020
        return getClass().getName().compareTo(other.getClass().getName());
49072
        return getClass().getName().compareTo(other.getClass().getName());
49021
      }
49073
      }
49022
 
49074
 
49023
      int lastComparison = 0;
49075
      int lastComparison = 0;
49024
      getUserCount_args typedOther = (getUserCount_args)other;
49076
      updateMyResearch_result typedOther = (updateMyResearch_result)other;
49025
 
49077
 
49026
      lastComparison = Boolean.valueOf(isSetUserType()).compareTo(isSetUserType());
49078
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
49027
      if (lastComparison != 0) {
49079
      if (lastComparison != 0) {
49028
        return lastComparison;
49080
        return lastComparison;
49029
      }
49081
      }
49030
      lastComparison = TBaseHelper.compareTo(userType, typedOther.userType);
49082
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
49083
      if (lastComparison != 0) {
-
 
49084
        return lastComparison;
-
 
49085
      }
-
 
49086
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(isSetScx());
-
 
49087
      if (lastComparison != 0) {
-
 
49088
        return lastComparison;
-
 
49089
      }
-
 
49090
      lastComparison = TBaseHelper.compareTo(scx, typedOther.scx);
49031
      if (lastComparison != 0) {
49091
      if (lastComparison != 0) {
49032
        return lastComparison;
49092
        return lastComparison;
49033
      }
49093
      }
49034
      return 0;
49094
      return 0;
49035
    }
49095
    }
Line 49046... Line 49106...
49046
        _Fields fieldId = _Fields.findByThriftId(field.id);
49106
        _Fields fieldId = _Fields.findByThriftId(field.id);
49047
        if (fieldId == null) {
49107
        if (fieldId == null) {
49048
          TProtocolUtil.skip(iprot, field.type);
49108
          TProtocolUtil.skip(iprot, field.type);
49049
        } else {
49109
        } else {
49050
          switch (fieldId) {
49110
          switch (fieldId) {
49051
            case USER_TYPE:
49111
            case SUCCESS:
49052
              if (field.type == TType.I32) {
49112
              if (field.type == TType.BOOL) {
49053
                this.userType = UserType.findByValue(iprot.readI32());
49113
                this.success = iprot.readBool();
-
 
49114
                setSuccessIsSet(true);
-
 
49115
              } else { 
-
 
49116
                TProtocolUtil.skip(iprot, field.type);
-
 
49117
              }
-
 
49118
              break;
-
 
49119
            case SCX:
-
 
49120
              if (field.type == TType.STRUCT) {
-
 
49121
                this.scx = new WidgetException();
-
 
49122
                this.scx.read(iprot);
49054
              } else { 
49123
              } else { 
49055
                TProtocolUtil.skip(iprot, field.type);
49124
                TProtocolUtil.skip(iprot, field.type);
49056
              }
49125
              }
49057
              break;
49126
              break;
49058
          }
49127
          }
Line 49062... Line 49131...
49062
      iprot.readStructEnd();
49131
      iprot.readStructEnd();
49063
      validate();
49132
      validate();
49064
    }
49133
    }
49065
 
49134
 
49066
    public void write(TProtocol oprot) throws TException {
49135
    public void write(TProtocol oprot) throws TException {
49067
      validate();
-
 
49068
 
-
 
49069
      oprot.writeStructBegin(STRUCT_DESC);
49136
      oprot.writeStructBegin(STRUCT_DESC);
-
 
49137
 
49070
      if (this.userType != null) {
49138
      if (this.isSetSuccess()) {
49071
        oprot.writeFieldBegin(USER_TYPE_FIELD_DESC);
49139
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
49072
        oprot.writeI32(this.userType.getValue());
49140
        oprot.writeBool(this.success);
-
 
49141
        oprot.writeFieldEnd();
-
 
49142
      } else if (this.isSetScx()) {
-
 
49143
        oprot.writeFieldBegin(SCX_FIELD_DESC);
-
 
49144
        this.scx.write(oprot);
49073
        oprot.writeFieldEnd();
49145
        oprot.writeFieldEnd();
49074
      }
49146
      }
49075
      oprot.writeFieldStop();
49147
      oprot.writeFieldStop();
49076
      oprot.writeStructEnd();
49148
      oprot.writeStructEnd();
49077
    }
49149
    }
49078
 
49150
 
49079
    @Override
49151
    @Override
49080
    public String toString() {
49152
    public String toString() {
49081
      StringBuilder sb = new StringBuilder("getUserCount_args(");
49153
      StringBuilder sb = new StringBuilder("updateMyResearch_result(");
49082
      boolean first = true;
49154
      boolean first = true;
49083
 
49155
 
49084
      sb.append("userType:");
49156
      sb.append("success:");
-
 
49157
      sb.append(this.success);
-
 
49158
      first = false;
-
 
49159
      if (!first) sb.append(", ");
-
 
49160
      sb.append("scx:");
49085
      if (this.userType == null) {
49161
      if (this.scx == null) {
49086
        sb.append("null");
49162
        sb.append("null");
49087
      } else {
49163
      } else {
49088
        String userType_name = userType.name();
-
 
49089
        if (userType_name != null) {
-
 
49090
          sb.append(userType_name);
-
 
49091
          sb.append(" (");
-
 
49092
        }
-
 
49093
        sb.append(this.userType);
49164
        sb.append(this.scx);
49094
        if (userType_name != null) {
-
 
49095
          sb.append(")");
-
 
49096
        }
-
 
49097
      }
49165
      }
49098
      first = false;
49166
      first = false;
49099
      sb.append(")");
49167
      sb.append(")");
49100
      return sb.toString();
49168
      return sb.toString();
49101
    }
49169
    }
Line 49104... Line 49172...
49104
      // check for required fields
49172
      // check for required fields
49105
    }
49173
    }
49106
 
49174
 
49107
  }
49175
  }
49108
 
49176
 
49109
  public static class getUserCount_result implements TBase<getUserCount_result._Fields>, java.io.Serializable, Cloneable, Comparable<getUserCount_result>   {
49177
  public static class deleteItemFromMyResearch_args implements TBase<deleteItemFromMyResearch_args._Fields>, java.io.Serializable, Cloneable, Comparable<deleteItemFromMyResearch_args>   {
49110
    private static final TStruct STRUCT_DESC = new TStruct("getUserCount_result");
49178
    private static final TStruct STRUCT_DESC = new TStruct("deleteItemFromMyResearch_args");
49111
 
49179
 
49112
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I64, (short)0);
49180
    private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)1);
-
 
49181
    private static final TField ITEM_ID_FIELD_DESC = new TField("itemId", TType.I64, (short)2);
49113
 
49182
 
49114
    private long success;
49183
    private long userId;
-
 
49184
    private long itemId;
49115
 
49185
 
49116
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
49186
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
49117
    public enum _Fields implements TFieldIdEnum {
49187
    public enum _Fields implements TFieldIdEnum {
-
 
49188
      USER_ID((short)1, "userId"),
49118
      SUCCESS((short)0, "success");
49189
      ITEM_ID((short)2, "itemId");
49119
 
49190
 
49120
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
49191
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
49121
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
49192
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
49122
 
49193
 
49123
      static {
49194
      static {
Line 49167... Line 49238...
49167
        return _fieldName;
49238
        return _fieldName;
49168
      }
49239
      }
49169
    }
49240
    }
49170
 
49241
 
49171
    // isset id assignments
49242
    // isset id assignments
49172
    private static final int __SUCCESS_ISSET_ID = 0;
49243
    private static final int __USERID_ISSET_ID = 0;
-
 
49244
    private static final int __ITEMID_ISSET_ID = 1;
49173
    private BitSet __isset_bit_vector = new BitSet(1);
49245
    private BitSet __isset_bit_vector = new BitSet(2);
49174
 
49246
 
49175
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
49247
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
49176
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
49248
      put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT, 
-
 
49249
          new FieldValueMetaData(TType.I64)));
-
 
49250
      put(_Fields.ITEM_ID, new FieldMetaData("itemId", TFieldRequirementType.DEFAULT, 
49177
          new FieldValueMetaData(TType.I64)));
49251
          new FieldValueMetaData(TType.I64)));
49178
    }});
49252
    }});
49179
 
49253
 
49180
    static {
49254
    static {
49181
      FieldMetaData.addStructMetaDataMap(getUserCount_result.class, metaDataMap);
49255
      FieldMetaData.addStructMetaDataMap(deleteItemFromMyResearch_args.class, metaDataMap);
49182
    }
49256
    }
49183
 
49257
 
49184
    public getUserCount_result() {
49258
    public deleteItemFromMyResearch_args() {
49185
    }
49259
    }
49186
 
49260
 
49187
    public getUserCount_result(
49261
    public deleteItemFromMyResearch_args(
49188
      long success)
49262
      long userId,
-
 
49263
      long itemId)
49189
    {
49264
    {
49190
      this();
49265
      this();
49191
      this.success = success;
49266
      this.userId = userId;
49192
      setSuccessIsSet(true);
49267
      setUserIdIsSet(true);
-
 
49268
      this.itemId = itemId;
-
 
49269
      setItemIdIsSet(true);
49193
    }
49270
    }
49194
 
49271
 
49195
    /**
49272
    /**
49196
     * Performs a deep copy on <i>other</i>.
49273
     * Performs a deep copy on <i>other</i>.
49197
     */
49274
     */
49198
    public getUserCount_result(getUserCount_result other) {
49275
    public deleteItemFromMyResearch_args(deleteItemFromMyResearch_args other) {
49199
      __isset_bit_vector.clear();
49276
      __isset_bit_vector.clear();
49200
      __isset_bit_vector.or(other.__isset_bit_vector);
49277
      __isset_bit_vector.or(other.__isset_bit_vector);
49201
      this.success = other.success;
49278
      this.userId = other.userId;
-
 
49279
      this.itemId = other.itemId;
49202
    }
49280
    }
49203
 
49281
 
49204
    public getUserCount_result deepCopy() {
49282
    public deleteItemFromMyResearch_args deepCopy() {
49205
      return new getUserCount_result(this);
49283
      return new deleteItemFromMyResearch_args(this);
49206
    }
49284
    }
49207
 
49285
 
49208
    @Deprecated
49286
    @Deprecated
49209
    public getUserCount_result clone() {
49287
    public deleteItemFromMyResearch_args clone() {
49210
      return new getUserCount_result(this);
49288
      return new deleteItemFromMyResearch_args(this);
49211
    }
49289
    }
49212
 
49290
 
49213
    public long getSuccess() {
49291
    public long getUserId() {
49214
      return this.success;
49292
      return this.userId;
49215
    }
49293
    }
49216
 
49294
 
49217
    public getUserCount_result setSuccess(long success) {
49295
    public deleteItemFromMyResearch_args setUserId(long userId) {
49218
      this.success = success;
49296
      this.userId = userId;
49219
      setSuccessIsSet(true);
49297
      setUserIdIsSet(true);
49220
      return this;
49298
      return this;
49221
    }
49299
    }
49222
 
49300
 
49223
    public void unsetSuccess() {
49301
    public void unsetUserId() {
49224
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
49302
      __isset_bit_vector.clear(__USERID_ISSET_ID);
49225
    }
49303
    }
49226
 
49304
 
49227
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
49305
    /** Returns true if field userId is set (has been asigned a value) and false otherwise */
49228
    public boolean isSetSuccess() {
49306
    public boolean isSetUserId() {
49229
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
49307
      return __isset_bit_vector.get(__USERID_ISSET_ID);
49230
    }
49308
    }
49231
 
49309
 
49232
    public void setSuccessIsSet(boolean value) {
49310
    public void setUserIdIsSet(boolean value) {
49233
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
49311
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
-
 
49312
    }
-
 
49313
 
-
 
49314
    public long getItemId() {
-
 
49315
      return this.itemId;
-
 
49316
    }
-
 
49317
 
-
 
49318
    public deleteItemFromMyResearch_args setItemId(long itemId) {
-
 
49319
      this.itemId = itemId;
-
 
49320
      setItemIdIsSet(true);
-
 
49321
      return this;
-
 
49322
    }
-
 
49323
 
-
 
49324
    public void unsetItemId() {
-
 
49325
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
-
 
49326
    }
-
 
49327
 
-
 
49328
    /** Returns true if field itemId is set (has been asigned a value) and false otherwise */
-
 
49329
    public boolean isSetItemId() {
-
 
49330
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
-
 
49331
    }
-
 
49332
 
-
 
49333
    public void setItemIdIsSet(boolean value) {
-
 
49334
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
49234
    }
49335
    }
49235
 
49336
 
49236
    public void setFieldValue(_Fields field, Object value) {
49337
    public void setFieldValue(_Fields field, Object value) {
49237
      switch (field) {
49338
      switch (field) {
49238
      case SUCCESS:
49339
      case USER_ID:
49239
        if (value == null) {
49340
        if (value == null) {
49240
          unsetSuccess();
49341
          unsetUserId();
49241
        } else {
49342
        } else {
49242
          setSuccess((Long)value);
49343
          setUserId((Long)value);
-
 
49344
        }
-
 
49345
        break;
-
 
49346
 
-
 
49347
      case ITEM_ID:
-
 
49348
        if (value == null) {
-
 
49349
          unsetItemId();
-
 
49350
        } else {
-
 
49351
          setItemId((Long)value);
49243
        }
49352
        }
49244
        break;
49353
        break;
49245
 
49354
 
49246
      }
49355
      }
49247
    }
49356
    }
Line 49250... Line 49359...
49250
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
49359
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
49251
    }
49360
    }
49252
 
49361
 
49253
    public Object getFieldValue(_Fields field) {
49362
    public Object getFieldValue(_Fields field) {
49254
      switch (field) {
49363
      switch (field) {
49255
      case SUCCESS:
49364
      case USER_ID:
49256
        return new Long(getSuccess());
49365
        return new Long(getUserId());
-
 
49366
 
-
 
49367
      case ITEM_ID:
-
 
49368
        return new Long(getItemId());
49257
 
49369
 
49258
      }
49370
      }
49259
      throw new IllegalStateException();
49371
      throw new IllegalStateException();
49260
    }
49372
    }
49261
 
49373
 
Line 49264... Line 49376...
49264
    }
49376
    }
49265
 
49377
 
49266
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
49378
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
49267
    public boolean isSet(_Fields field) {
49379
    public boolean isSet(_Fields field) {
49268
      switch (field) {
49380
      switch (field) {
49269
      case SUCCESS:
49381
      case USER_ID:
49270
        return isSetSuccess();
49382
        return isSetUserId();
-
 
49383
      case ITEM_ID:
-
 
49384
        return isSetItemId();
49271
      }
49385
      }
49272
      throw new IllegalStateException();
49386
      throw new IllegalStateException();
49273
    }
49387
    }
49274
 
49388
 
49275
    public boolean isSet(int fieldID) {
49389
    public boolean isSet(int fieldID) {
Line 49278... Line 49392...
49278
 
49392
 
49279
    @Override
49393
    @Override
49280
    public boolean equals(Object that) {
49394
    public boolean equals(Object that) {
49281
      if (that == null)
49395
      if (that == null)
49282
        return false;
49396
        return false;
49283
      if (that instanceof getUserCount_result)
49397
      if (that instanceof deleteItemFromMyResearch_args)
49284
        return this.equals((getUserCount_result)that);
49398
        return this.equals((deleteItemFromMyResearch_args)that);
49285
      return false;
49399
      return false;
49286
    }
49400
    }
49287
 
49401
 
49288
    public boolean equals(getUserCount_result that) {
49402
    public boolean equals(deleteItemFromMyResearch_args that) {
49289
      if (that == null)
49403
      if (that == null)
49290
        return false;
49404
        return false;
49291
 
49405
 
49292
      boolean this_present_success = true;
49406
      boolean this_present_userId = true;
49293
      boolean that_present_success = true;
49407
      boolean that_present_userId = true;
49294
      if (this_present_success || that_present_success) {
49408
      if (this_present_userId || that_present_userId) {
49295
        if (!(this_present_success && that_present_success))
49409
        if (!(this_present_userId && that_present_userId))
49296
          return false;
49410
          return false;
49297
        if (this.success != that.success)
49411
        if (this.userId != that.userId)
-
 
49412
          return false;
-
 
49413
      }
-
 
49414
 
-
 
49415
      boolean this_present_itemId = true;
-
 
49416
      boolean that_present_itemId = true;
-
 
49417
      if (this_present_itemId || that_present_itemId) {
-
 
49418
        if (!(this_present_itemId && that_present_itemId))
-
 
49419
          return false;
-
 
49420
        if (this.itemId != that.itemId)
49298
          return false;
49421
          return false;
49299
      }
49422
      }
49300
 
49423
 
49301
      return true;
49424
      return true;
49302
    }
49425
    }
Line 49304... Line 49427...
49304
    @Override
49427
    @Override
49305
    public int hashCode() {
49428
    public int hashCode() {
49306
      return 0;
49429
      return 0;
49307
    }
49430
    }
49308
 
49431
 
49309
    public int compareTo(getUserCount_result other) {
49432
    public int compareTo(deleteItemFromMyResearch_args other) {
49310
      if (!getClass().equals(other.getClass())) {
49433
      if (!getClass().equals(other.getClass())) {
49311
        return getClass().getName().compareTo(other.getClass().getName());
49434
        return getClass().getName().compareTo(other.getClass().getName());
49312
      }
49435
      }
49313
 
49436
 
49314
      int lastComparison = 0;
49437
      int lastComparison = 0;
49315
      getUserCount_result typedOther = (getUserCount_result)other;
49438
      deleteItemFromMyResearch_args typedOther = (deleteItemFromMyResearch_args)other;
49316
 
49439
 
49317
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
49440
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(isSetUserId());
49318
      if (lastComparison != 0) {
49441
      if (lastComparison != 0) {
49319
        return lastComparison;
49442
        return lastComparison;
49320
      }
49443
      }
49321
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
49444
      lastComparison = TBaseHelper.compareTo(userId, typedOther.userId);
-
 
49445
      if (lastComparison != 0) {
-
 
49446
        return lastComparison;
-
 
49447
      }
-
 
49448
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(isSetItemId());
-
 
49449
      if (lastComparison != 0) {
-
 
49450
        return lastComparison;
-
 
49451
      }
-
 
49452
      lastComparison = TBaseHelper.compareTo(itemId, typedOther.itemId);
49322
      if (lastComparison != 0) {
49453
      if (lastComparison != 0) {
49323
        return lastComparison;
49454
        return lastComparison;
49324
      }
49455
      }
49325
      return 0;
49456
      return 0;
49326
    }
49457
    }
Line 49337... Line 49468...
49337
        _Fields fieldId = _Fields.findByThriftId(field.id);
49468
        _Fields fieldId = _Fields.findByThriftId(field.id);
49338
        if (fieldId == null) {
49469
        if (fieldId == null) {
49339
          TProtocolUtil.skip(iprot, field.type);
49470
          TProtocolUtil.skip(iprot, field.type);
49340
        } else {
49471
        } else {
49341
          switch (fieldId) {
49472
          switch (fieldId) {
49342
            case SUCCESS:
49473
            case USER_ID:
49343
              if (field.type == TType.I64) {
49474
              if (field.type == TType.I64) {
49344
                this.success = iprot.readI64();
49475
                this.userId = iprot.readI64();
-
 
49476
                setUserIdIsSet(true);
-
 
49477
              } else { 
-
 
49478
                TProtocolUtil.skip(iprot, field.type);
-
 
49479
              }
-
 
49480
              break;
-
 
49481
            case ITEM_ID:
-
 
49482
              if (field.type == TType.I64) {
-
 
49483
                this.itemId = iprot.readI64();
49345
                setSuccessIsSet(true);
49484
                setItemIdIsSet(true);
49346
              } else { 
49485
              } else { 
49347
                TProtocolUtil.skip(iprot, field.type);
49486
                TProtocolUtil.skip(iprot, field.type);
49348
              }
49487
              }
49349
              break;
49488
              break;
49350
          }
49489
          }
Line 49354... Line 49493...
49354
      iprot.readStructEnd();
49493
      iprot.readStructEnd();
49355
      validate();
49494
      validate();
49356
    }
49495
    }
49357
 
49496
 
49358
    public void write(TProtocol oprot) throws TException {
49497
    public void write(TProtocol oprot) throws TException {
49359
      oprot.writeStructBegin(STRUCT_DESC);
49498
      validate();
49360
 
49499
 
49361
      if (this.isSetSuccess()) {
49500
      oprot.writeStructBegin(STRUCT_DESC);
49362
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
49501
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
49363
        oprot.writeI64(this.success);
49502
      oprot.writeI64(this.userId);
49364
        oprot.writeFieldEnd();
49503
      oprot.writeFieldEnd();
-
 
49504
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
49505
      oprot.writeI64(this.itemId);
49365
      }
49506
      oprot.writeFieldEnd();
49366
      oprot.writeFieldStop();
49507
      oprot.writeFieldStop();
49367
      oprot.writeStructEnd();
49508
      oprot.writeStructEnd();
49368
    }
49509
    }
49369
 
49510
 
49370
    @Override
49511
    @Override
49371
    public String toString() {
49512
    public String toString() {
49372
      StringBuilder sb = new StringBuilder("getUserCount_result(");
49513
      StringBuilder sb = new StringBuilder("deleteItemFromMyResearch_args(");
49373
      boolean first = true;
49514
      boolean first = true;
49374
 
49515
 
49375
      sb.append("success:");
49516
      sb.append("userId:");
49376
      sb.append(this.success);
49517
      sb.append(this.userId);
-
 
49518
      first = false;
-
 
49519
      if (!first) sb.append(", ");
-
 
49520
      sb.append("itemId:");
-
 
49521
      sb.append(this.itemId);
49377
      first = false;
49522
      first = false;
49378
      sb.append(")");
49523
      sb.append(")");
49379
      return sb.toString();
49524
      return sb.toString();
49380
    }
49525
    }
49381
 
49526
 
Line 49383... Line 49528...
49383
      // check for required fields
49528
      // check for required fields
49384
    }
49529
    }
49385
 
49530
 
49386
  }
49531
  }
49387
 
49532
 
49388
  public static class getAllUsers_args implements TBase<getAllUsers_args._Fields>, java.io.Serializable, Cloneable, Comparable<getAllUsers_args>   {
49533
  public static class deleteItemFromMyResearch_result implements TBase<deleteItemFromMyResearch_result._Fields>, java.io.Serializable, Cloneable, Comparable<deleteItemFromMyResearch_result>   {
49389
    private static final TStruct STRUCT_DESC = new TStruct("getAllUsers_args");
49534
    private static final TStruct STRUCT_DESC = new TStruct("deleteItemFromMyResearch_result");
49390
 
49535
 
49391
    private static final TField USER_TYPE_FIELD_DESC = new TField("userType", TType.I32, (short)1);
49536
    private static final TField SCX_FIELD_DESC = new TField("scx", TType.STRUCT, (short)1);
49392
    private static final TField START_DATE_FIELD_DESC = new TField("startDate", TType.I64, (short)2);
-
 
49393
    private static final TField END_DATE_FIELD_DESC = new TField("endDate", TType.I64, (short)3);
-
 
49394
 
49537
 
49395
    private UserType userType;
49538
    private WidgetException scx;
49396
    private long startDate;
-
 
49397
    private long endDate;
-
 
49398
 
49539
 
49399
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
49540
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
49400
    public enum _Fields implements TFieldIdEnum {
49541
    public enum _Fields implements TFieldIdEnum {
49401
      /**
-
 
49402
       * 
-
 
49403
       * @see UserType
-
 
49404
       */
-
 
49405
      USER_TYPE((short)1, "userType"),
49542
      SCX((short)1, "scx");
49406
      START_DATE((short)2, "startDate"),
-
 
49407
      END_DATE((short)3, "endDate");
-
 
49408
 
49543
 
49409
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
49544
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
49410
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
49545
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
49411
 
49546
 
49412
      static {
49547
      static {
Line 49456... Line 49591...
49456
        return _fieldName;
49591
        return _fieldName;
49457
      }
49592
      }
49458
    }
49593
    }
49459
 
49594
 
49460
    // isset id assignments
49595
    // isset id assignments
49461
    private static final int __STARTDATE_ISSET_ID = 0;
-
 
49462
    private static final int __ENDDATE_ISSET_ID = 1;
-
 
49463
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
49464
 
49596
 
49465
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
49597
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
49466
      put(_Fields.USER_TYPE, new FieldMetaData("userType", TFieldRequirementType.DEFAULT, 
49598
      put(_Fields.SCX, new FieldMetaData("scx", TFieldRequirementType.DEFAULT, 
49467
          new EnumMetaData(TType.ENUM, UserType.class)));
-
 
49468
      put(_Fields.START_DATE, new FieldMetaData("startDate", TFieldRequirementType.DEFAULT, 
-
 
49469
          new FieldValueMetaData(TType.I64)));
-
 
49470
      put(_Fields.END_DATE, new FieldMetaData("endDate", TFieldRequirementType.DEFAULT, 
-
 
49471
          new FieldValueMetaData(TType.I64)));
49599
          new FieldValueMetaData(TType.STRUCT)));
49472
    }});
49600
    }});
49473
 
49601
 
49474
    static {
49602
    static {
49475
      FieldMetaData.addStructMetaDataMap(getAllUsers_args.class, metaDataMap);
49603
      FieldMetaData.addStructMetaDataMap(deleteItemFromMyResearch_result.class, metaDataMap);
49476
    }
49604
    }
49477
 
49605
 
49478
    public getAllUsers_args() {
49606
    public deleteItemFromMyResearch_result() {
49479
    }
49607
    }
49480
 
49608
 
49481
    public getAllUsers_args(
49609
    public deleteItemFromMyResearch_result(
49482
      UserType userType,
49610
      WidgetException scx)
49483
      long startDate,
-
 
49484
      long endDate)
-
 
49485
    {
49611
    {
49486
      this();
49612
      this();
49487
      this.userType = userType;
49613
      this.scx = scx;
49488
      this.startDate = startDate;
-
 
49489
      setStartDateIsSet(true);
-
 
49490
      this.endDate = endDate;
-
 
49491
      setEndDateIsSet(true);
-
 
49492
    }
49614
    }
49493
 
49615
 
49494
    /**
49616
    /**
49495
     * Performs a deep copy on <i>other</i>.
49617
     * Performs a deep copy on <i>other</i>.
49496
     */
49618
     */
49497
    public getAllUsers_args(getAllUsers_args other) {
49619
    public deleteItemFromMyResearch_result(deleteItemFromMyResearch_result other) {
49498
      __isset_bit_vector.clear();
-
 
49499
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
49500
      if (other.isSetUserType()) {
49620
      if (other.isSetScx()) {
49501
        this.userType = other.userType;
49621
        this.scx = new WidgetException(other.scx);
49502
      }
49622
      }
49503
      this.startDate = other.startDate;
-
 
49504
      this.endDate = other.endDate;
-
 
49505
    }
49623
    }
49506
 
49624
 
49507
    public getAllUsers_args deepCopy() {
49625
    public deleteItemFromMyResearch_result deepCopy() {
49508
      return new getAllUsers_args(this);
49626
      return new deleteItemFromMyResearch_result(this);
49509
    }
49627
    }
49510
 
49628
 
49511
    @Deprecated
49629
    @Deprecated
49512
    public getAllUsers_args clone() {
49630
    public deleteItemFromMyResearch_result clone() {
49513
      return new getAllUsers_args(this);
49631
      return new deleteItemFromMyResearch_result(this);
49514
    }
49632
    }
49515
 
49633
 
49516
    /**
-
 
49517
     * 
-
 
49518
     * @see UserType
-
 
49519
     */
-
 
49520
    public UserType getUserType() {
49634
    public WidgetException getScx() {
49521
      return this.userType;
49635
      return this.scx;
49522
    }
49636
    }
49523
 
49637
 
49524
    /**
-
 
49525
     * 
-
 
49526
     * @see UserType
-
 
49527
     */
-
 
49528
    public getAllUsers_args setUserType(UserType userType) {
49638
    public deleteItemFromMyResearch_result setScx(WidgetException scx) {
49529
      this.userType = userType;
49639
      this.scx = scx;
49530
      return this;
49640
      return this;
49531
    }
49641
    }
49532
 
49642
 
49533
    public void unsetUserType() {
49643
    public void unsetScx() {
49534
      this.userType = null;
49644
      this.scx = null;
49535
    }
49645
    }
49536
 
49646
 
49537
    /** Returns true if field userType is set (has been asigned a value) and false otherwise */
49647
    /** Returns true if field scx is set (has been asigned a value) and false otherwise */
49538
    public boolean isSetUserType() {
49648
    public boolean isSetScx() {
49539
      return this.userType != null;
49649
      return this.scx != null;
49540
    }
49650
    }
49541
 
49651
 
49542
    public void setUserTypeIsSet(boolean value) {
49652
    public void setScxIsSet(boolean value) {
49543
      if (!value) {
49653
      if (!value) {
49544
        this.userType = null;
49654
        this.scx = null;
49545
      }
49655
      }
49546
    }
49656
    }
49547
 
49657
 
49548
    public long getStartDate() {
-
 
49549
      return this.startDate;
-
 
49550
    }
-
 
49551
 
-
 
49552
    public getAllUsers_args setStartDate(long startDate) {
-
 
49553
      this.startDate = startDate;
-
 
49554
      setStartDateIsSet(true);
-
 
49555
      return this;
-
 
49556
    }
-
 
49557
 
-
 
49558
    public void unsetStartDate() {
-
 
49559
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
-
 
49560
    }
-
 
49561
 
-
 
49562
    /** Returns true if field startDate is set (has been asigned a value) and false otherwise */
-
 
49563
    public boolean isSetStartDate() {
-
 
49564
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
-
 
49565
    }
-
 
49566
 
-
 
49567
    public void setStartDateIsSet(boolean value) {
-
 
49568
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
-
 
49569
    }
-
 
49570
 
-
 
49571
    public long getEndDate() {
-
 
49572
      return this.endDate;
-
 
49573
    }
-
 
49574
 
-
 
49575
    public getAllUsers_args setEndDate(long endDate) {
-
 
49576
      this.endDate = endDate;
-
 
49577
      setEndDateIsSet(true);
-
 
49578
      return this;
-
 
49579
    }
-
 
49580
 
-
 
49581
    public void unsetEndDate() {
-
 
49582
      __isset_bit_vector.clear(__ENDDATE_ISSET_ID);
-
 
49583
    }
-
 
49584
 
-
 
49585
    /** Returns true if field endDate is set (has been asigned a value) and false otherwise */
-
 
49586
    public boolean isSetEndDate() {
-
 
49587
      return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
-
 
49588
    }
-
 
49589
 
-
 
49590
    public void setEndDateIsSet(boolean value) {
-
 
49591
      __isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
-
 
49592
    }
-
 
49593
 
-
 
49594
    public void setFieldValue(_Fields field, Object value) {
49658
    public void setFieldValue(_Fields field, Object value) {
49595
      switch (field) {
49659
      switch (field) {
49596
      case USER_TYPE:
49660
      case SCX:
49597
        if (value == null) {
-
 
49598
          unsetUserType();
-
 
49599
        } else {
-
 
49600
          setUserType((UserType)value);
-
 
49601
        }
-
 
49602
        break;
-
 
49603
 
-
 
49604
      case START_DATE:
-
 
49605
        if (value == null) {
-
 
49606
          unsetStartDate();
-
 
49607
        } else {
-
 
49608
          setStartDate((Long)value);
-
 
49609
        }
-
 
49610
        break;
-
 
49611
 
-
 
49612
      case END_DATE:
-
 
49613
        if (value == null) {
49661
        if (value == null) {
49614
          unsetEndDate();
49662
          unsetScx();
49615
        } else {
49663
        } else {
49616
          setEndDate((Long)value);
49664
          setScx((WidgetException)value);
49617
        }
49665
        }
49618
        break;
49666
        break;
49619
 
49667
 
49620
      }
49668
      }
49621
    }
49669
    }
Line 49624... Line 49672...
49624
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
49672
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
49625
    }
49673
    }
49626
 
49674
 
49627
    public Object getFieldValue(_Fields field) {
49675
    public Object getFieldValue(_Fields field) {
49628
      switch (field) {
49676
      switch (field) {
49629
      case USER_TYPE:
49677
      case SCX:
49630
        return getUserType();
49678
        return getScx();
49631
 
-
 
49632
      case START_DATE:
-
 
49633
        return new Long(getStartDate());
-
 
49634
 
-
 
49635
      case END_DATE:
-
 
49636
        return new Long(getEndDate());
-
 
49637
 
49679
 
49638
      }
49680
      }
49639
      throw new IllegalStateException();
49681
      throw new IllegalStateException();
49640
    }
49682
    }
49641
 
49683
 
Line 49644... Line 49686...
49644
    }
49686
    }
49645
 
49687
 
49646
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
49688
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
49647
    public boolean isSet(_Fields field) {
49689
    public boolean isSet(_Fields field) {
49648
      switch (field) {
49690
      switch (field) {
49649
      case USER_TYPE:
49691
      case SCX:
49650
        return isSetUserType();
-
 
49651
      case START_DATE:
-
 
49652
        return isSetStartDate();
-
 
49653
      case END_DATE:
-
 
49654
        return isSetEndDate();
49692
        return isSetScx();
49655
      }
49693
      }
49656
      throw new IllegalStateException();
49694
      throw new IllegalStateException();
49657
    }
49695
    }
49658
 
49696
 
49659
    public boolean isSet(int fieldID) {
49697
    public boolean isSet(int fieldID) {
Line 49662... Line 49700...
49662
 
49700
 
49663
    @Override
49701
    @Override
49664
    public boolean equals(Object that) {
49702
    public boolean equals(Object that) {
49665
      if (that == null)
49703
      if (that == null)
49666
        return false;
49704
        return false;
49667
      if (that instanceof getAllUsers_args)
49705
      if (that instanceof deleteItemFromMyResearch_result)
49668
        return this.equals((getAllUsers_args)that);
49706
        return this.equals((deleteItemFromMyResearch_result)that);
49669
      return false;
49707
      return false;
49670
    }
49708
    }
49671
 
49709
 
49672
    public boolean equals(getAllUsers_args that) {
49710
    public boolean equals(deleteItemFromMyResearch_result that) {
49673
      if (that == null)
49711
      if (that == null)
49674
        return false;
49712
        return false;
49675
 
49713
 
49676
      boolean this_present_userType = true && this.isSetUserType();
49714
      boolean this_present_scx = true && this.isSetScx();
49677
      boolean that_present_userType = true && that.isSetUserType();
49715
      boolean that_present_scx = true && that.isSetScx();
49678
      if (this_present_userType || that_present_userType) {
49716
      if (this_present_scx || that_present_scx) {
49679
        if (!(this_present_userType && that_present_userType))
49717
        if (!(this_present_scx && that_present_scx))
49680
          return false;
-
 
49681
        if (!this.userType.equals(that.userType))
-
 
49682
          return false;
-
 
49683
      }
-
 
49684
 
-
 
49685
      boolean this_present_startDate = true;
-
 
49686
      boolean that_present_startDate = true;
-
 
49687
      if (this_present_startDate || that_present_startDate) {
-
 
49688
        if (!(this_present_startDate && that_present_startDate))
-
 
49689
          return false;
-
 
49690
        if (this.startDate != that.startDate)
-
 
49691
          return false;
-
 
49692
      }
-
 
49693
 
-
 
49694
      boolean this_present_endDate = true;
-
 
49695
      boolean that_present_endDate = true;
-
 
49696
      if (this_present_endDate || that_present_endDate) {
-
 
49697
        if (!(this_present_endDate && that_present_endDate))
-
 
49698
          return false;
49718
          return false;
49699
        if (this.endDate != that.endDate)
49719
        if (!this.scx.equals(that.scx))
49700
          return false;
49720
          return false;
49701
      }
49721
      }
49702
 
49722
 
49703
      return true;
49723
      return true;
49704
    }
49724
    }
Line 49706... Line 49726...
49706
    @Override
49726
    @Override
49707
    public int hashCode() {
49727
    public int hashCode() {
49708
      return 0;
49728
      return 0;
49709
    }
49729
    }
49710
 
49730
 
49711
    public int compareTo(getAllUsers_args other) {
49731
    public int compareTo(deleteItemFromMyResearch_result other) {
49712
      if (!getClass().equals(other.getClass())) {
49732
      if (!getClass().equals(other.getClass())) {
49713
        return getClass().getName().compareTo(other.getClass().getName());
49733
        return getClass().getName().compareTo(other.getClass().getName());
49714
      }
49734
      }
49715
 
49735
 
49716
      int lastComparison = 0;
49736
      int lastComparison = 0;
49717
      getAllUsers_args typedOther = (getAllUsers_args)other;
49737
      deleteItemFromMyResearch_result typedOther = (deleteItemFromMyResearch_result)other;
49718
 
49738
 
49719
      lastComparison = Boolean.valueOf(isSetUserType()).compareTo(isSetUserType());
-
 
49720
      if (lastComparison != 0) {
-
 
49721
        return lastComparison;
-
 
49722
      }
-
 
49723
      lastComparison = TBaseHelper.compareTo(userType, typedOther.userType);
-
 
49724
      if (lastComparison != 0) {
-
 
49725
        return lastComparison;
-
 
49726
      }
-
 
49727
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(isSetStartDate());
-
 
49728
      if (lastComparison != 0) {
-
 
49729
        return lastComparison;
-
 
49730
      }
-
 
49731
      lastComparison = TBaseHelper.compareTo(startDate, typedOther.startDate);
-
 
49732
      if (lastComparison != 0) {
-
 
49733
        return lastComparison;
-
 
49734
      }
-
 
49735
      lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(isSetEndDate());
49739
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(isSetScx());
49736
      if (lastComparison != 0) {
49740
      if (lastComparison != 0) {
49737
        return lastComparison;
49741
        return lastComparison;
49738
      }
49742
      }
49739
      lastComparison = TBaseHelper.compareTo(endDate, typedOther.endDate);
49743
      lastComparison = TBaseHelper.compareTo(scx, typedOther.scx);
49740
      if (lastComparison != 0) {
49744
      if (lastComparison != 0) {
49741
        return lastComparison;
49745
        return lastComparison;
49742
      }
49746
      }
49743
      return 0;
49747
      return 0;
49744
    }
49748
    }
Line 49755... Line 49759...
49755
        _Fields fieldId = _Fields.findByThriftId(field.id);
49759
        _Fields fieldId = _Fields.findByThriftId(field.id);
49756
        if (fieldId == null) {
49760
        if (fieldId == null) {
49757
          TProtocolUtil.skip(iprot, field.type);
49761
          TProtocolUtil.skip(iprot, field.type);
49758
        } else {
49762
        } else {
49759
          switch (fieldId) {
49763
          switch (fieldId) {
49760
            case USER_TYPE:
49764
            case SCX:
49761
              if (field.type == TType.I32) {
-
 
49762
                this.userType = UserType.findByValue(iprot.readI32());
-
 
49763
              } else { 
-
 
49764
                TProtocolUtil.skip(iprot, field.type);
-
 
49765
              }
-
 
49766
              break;
-
 
49767
            case START_DATE:
-
 
49768
              if (field.type == TType.I64) {
49765
              if (field.type == TType.STRUCT) {
49769
                this.startDate = iprot.readI64();
49766
                this.scx = new WidgetException();
49770
                setStartDateIsSet(true);
-
 
49771
              } else { 
-
 
49772
                TProtocolUtil.skip(iprot, field.type);
-
 
49773
              }
-
 
49774
              break;
-
 
49775
            case END_DATE:
-
 
49776
              if (field.type == TType.I64) {
-
 
49777
                this.endDate = iprot.readI64();
49767
                this.scx.read(iprot);
49778
                setEndDateIsSet(true);
-
 
49779
              } else { 
49768
              } else { 
49780
                TProtocolUtil.skip(iprot, field.type);
49769
                TProtocolUtil.skip(iprot, field.type);
49781
              }
49770
              }
49782
              break;
49771
              break;
49783
          }
49772
          }
Line 49787... Line 49776...
49787
      iprot.readStructEnd();
49776
      iprot.readStructEnd();
49788
      validate();
49777
      validate();
49789
    }
49778
    }
49790
 
49779
 
49791
    public void write(TProtocol oprot) throws TException {
49780
    public void write(TProtocol oprot) throws TException {
49792
      validate();
-
 
49793
 
-
 
49794
      oprot.writeStructBegin(STRUCT_DESC);
49781
      oprot.writeStructBegin(STRUCT_DESC);
-
 
49782
 
49795
      if (this.userType != null) {
49783
      if (this.isSetScx()) {
49796
        oprot.writeFieldBegin(USER_TYPE_FIELD_DESC);
49784
        oprot.writeFieldBegin(SCX_FIELD_DESC);
49797
        oprot.writeI32(this.userType.getValue());
49785
        this.scx.write(oprot);
49798
        oprot.writeFieldEnd();
49786
        oprot.writeFieldEnd();
49799
      }
49787
      }
49800
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
-
 
49801
      oprot.writeI64(this.startDate);
-
 
49802
      oprot.writeFieldEnd();
-
 
49803
      oprot.writeFieldBegin(END_DATE_FIELD_DESC);
-
 
49804
      oprot.writeI64(this.endDate);
-
 
49805
      oprot.writeFieldEnd();
-
 
49806
      oprot.writeFieldStop();
49788
      oprot.writeFieldStop();
49807
      oprot.writeStructEnd();
49789
      oprot.writeStructEnd();
49808
    }
49790
    }
49809
 
49791
 
49810
    @Override
49792
    @Override
49811
    public String toString() {
49793
    public String toString() {
49812
      StringBuilder sb = new StringBuilder("getAllUsers_args(");
49794
      StringBuilder sb = new StringBuilder("deleteItemFromMyResearch_result(");
49813
      boolean first = true;
49795
      boolean first = true;
49814
 
49796
 
49815
      sb.append("userType:");
49797
      sb.append("scx:");
49816
      if (this.userType == null) {
49798
      if (this.scx == null) {
49817
        sb.append("null");
49799
        sb.append("null");
49818
      } else {
49800
      } else {
49819
        String userType_name = userType.name();
-
 
49820
        if (userType_name != null) {
-
 
49821
          sb.append(userType_name);
-
 
49822
          sb.append(" (");
-
 
49823
        }
-
 
49824
        sb.append(this.userType);
49801
        sb.append(this.scx);
49825
        if (userType_name != null) {
-
 
49826
          sb.append(")");
-
 
49827
        }
-
 
49828
      }
49802
      }
49829
      first = false;
49803
      first = false;
49830
      if (!first) sb.append(", ");
-
 
49831
      sb.append("startDate:");
-
 
49832
      sb.append(this.startDate);
-
 
49833
      first = false;
-
 
49834
      if (!first) sb.append(", ");
-
 
49835
      sb.append("endDate:");
-
 
49836
      sb.append(this.endDate);
-
 
49837
      first = false;
-
 
49838
      sb.append(")");
49804
      sb.append(")");
49839
      return sb.toString();
49805
      return sb.toString();
49840
    }
49806
    }
49841
 
49807
 
49842
    public void validate() throws TException {
49808
    public void validate() throws TException {
49843
      // check for required fields
49809
      // check for required fields
49844
    }
49810
    }
49845
 
49811
 
49846
  }
49812
  }
49847
 
49813
 
49848
  public static class getAllUsers_result implements TBase<getAllUsers_result._Fields>, java.io.Serializable, Cloneable, Comparable<getAllUsers_result>   {
49814
  public static class getBrowseHistoryItems_args implements TBase<getBrowseHistoryItems_args._Fields>, java.io.Serializable, Cloneable, Comparable<getBrowseHistoryItems_args>   {
49849
    private static final TStruct STRUCT_DESC = new TStruct("getAllUsers_result");
49815
    private static final TStruct STRUCT_DESC = new TStruct("getBrowseHistoryItems_args");
49850
 
49816
 
49851
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
49817
    private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)1);
49852
 
49818
 
49853
    private List<User> success;
49819
    private long userId;
49854
 
49820
 
49855
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
49821
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
49856
    public enum _Fields implements TFieldIdEnum {
49822
    public enum _Fields implements TFieldIdEnum {
49857
      SUCCESS((short)0, "success");
49823
      USER_ID((short)1, "userId");
49858
 
49824
 
49859
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
49825
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
49860
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
49826
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
49861
 
49827
 
49862
      static {
49828
      static {
Line 49906... Line 49872...
49906
        return _fieldName;
49872
        return _fieldName;
49907
      }
49873
      }
49908
    }
49874
    }
49909
 
49875
 
49910
    // isset id assignments
49876
    // isset id assignments
-
 
49877
    private static final int __USERID_ISSET_ID = 0;
-
 
49878
    private BitSet __isset_bit_vector = new BitSet(1);
49911
 
49879
 
49912
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
49880
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
49913
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
49881
      put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT, 
49914
          new ListMetaData(TType.LIST, 
49882
          new FieldValueMetaData(TType.I64)));
49915
              new StructMetaData(TType.STRUCT, User.class))));
-
 
49916
    }});
49883
    }});
49917
 
49884
 
49918
    static {
49885
    static {
49919
      FieldMetaData.addStructMetaDataMap(getAllUsers_result.class, metaDataMap);
49886
      FieldMetaData.addStructMetaDataMap(getBrowseHistoryItems_args.class, metaDataMap);
49920
    }
49887
    }
49921
 
49888
 
49922
    public getAllUsers_result() {
49889
    public getBrowseHistoryItems_args() {
49923
    }
49890
    }
49924
 
49891
 
49925
    public getAllUsers_result(
49892
    public getBrowseHistoryItems_args(
49926
      List<User> success)
49893
      long userId)
49927
    {
49894
    {
49928
      this();
49895
      this();
49929
      this.success = success;
49896
      this.userId = userId;
-
 
49897
      setUserIdIsSet(true);
49930
    }
49898
    }
49931
 
49899
 
49932
    /**
49900
    /**
49933
     * Performs a deep copy on <i>other</i>.
49901
     * Performs a deep copy on <i>other</i>.
49934
     */
49902
     */
49935
    public getAllUsers_result(getAllUsers_result other) {
49903
    public getBrowseHistoryItems_args(getBrowseHistoryItems_args other) {
49936
      if (other.isSetSuccess()) {
49904
      __isset_bit_vector.clear();
49937
        List<User> __this__success = new ArrayList<User>();
-
 
49938
        for (User other_element : other.success) {
-
 
49939
          __this__success.add(new User(other_element));
49905
      __isset_bit_vector.or(other.__isset_bit_vector);
49940
        }
-
 
49941
        this.success = __this__success;
49906
      this.userId = other.userId;
49942
      }
-
 
49943
    }
49907
    }
49944
 
49908
 
49945
    public getAllUsers_result deepCopy() {
49909
    public getBrowseHistoryItems_args deepCopy() {
49946
      return new getAllUsers_result(this);
49910
      return new getBrowseHistoryItems_args(this);
49947
    }
49911
    }
49948
 
49912
 
49949
    @Deprecated
49913
    @Deprecated
49950
    public getAllUsers_result clone() {
49914
    public getBrowseHistoryItems_args clone() {
49951
      return new getAllUsers_result(this);
49915
      return new getBrowseHistoryItems_args(this);
49952
    }
-
 
49953
 
-
 
49954
    public int getSuccessSize() {
-
 
49955
      return (this.success == null) ? 0 : this.success.size();
-
 
49956
    }
-
 
49957
 
-
 
49958
    public java.util.Iterator<User> getSuccessIterator() {
-
 
49959
      return (this.success == null) ? null : this.success.iterator();
-
 
49960
    }
-
 
49961
 
-
 
49962
    public void addToSuccess(User elem) {
-
 
49963
      if (this.success == null) {
-
 
49964
        this.success = new ArrayList<User>();
-
 
49965
      }
-
 
49966
      this.success.add(elem);
-
 
49967
    }
49916
    }
49968
 
49917
 
49969
    public List<User> getSuccess() {
49918
    public long getUserId() {
49970
      return this.success;
49919
      return this.userId;
49971
    }
49920
    }
49972
 
49921
 
49973
    public getAllUsers_result setSuccess(List<User> success) {
49922
    public getBrowseHistoryItems_args setUserId(long userId) {
49974
      this.success = success;
49923
      this.userId = userId;
-
 
49924
      setUserIdIsSet(true);
49975
      return this;
49925
      return this;
49976
    }
49926
    }
49977
 
49927
 
49978
    public void unsetSuccess() {
49928
    public void unsetUserId() {
49979
      this.success = null;
49929
      __isset_bit_vector.clear(__USERID_ISSET_ID);
49980
    }
49930
    }
49981
 
49931
 
49982
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
49932
    /** Returns true if field userId is set (has been asigned a value) and false otherwise */
49983
    public boolean isSetSuccess() {
49933
    public boolean isSetUserId() {
49984
      return this.success != null;
49934
      return __isset_bit_vector.get(__USERID_ISSET_ID);
49985
    }
49935
    }
49986
 
49936
 
49987
    public void setSuccessIsSet(boolean value) {
49937
    public void setUserIdIsSet(boolean value) {
49988
      if (!value) {
-
 
49989
        this.success = null;
49938
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
49990
      }
-
 
49991
    }
49939
    }
49992
 
49940
 
49993
    public void setFieldValue(_Fields field, Object value) {
49941
    public void setFieldValue(_Fields field, Object value) {
49994
      switch (field) {
49942
      switch (field) {
49995
      case SUCCESS:
49943
      case USER_ID:
49996
        if (value == null) {
49944
        if (value == null) {
49997
          unsetSuccess();
49945
          unsetUserId();
49998
        } else {
49946
        } else {
49999
          setSuccess((List<User>)value);
49947
          setUserId((Long)value);
50000
        }
49948
        }
50001
        break;
49949
        break;
50002
 
49950
 
50003
      }
49951
      }
50004
    }
49952
    }
Line 50007... Line 49955...
50007
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
49955
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
50008
    }
49956
    }
50009
 
49957
 
50010
    public Object getFieldValue(_Fields field) {
49958
    public Object getFieldValue(_Fields field) {
50011
      switch (field) {
49959
      switch (field) {
50012
      case SUCCESS:
49960
      case USER_ID:
50013
        return getSuccess();
49961
        return new Long(getUserId());
50014
 
49962
 
50015
      }
49963
      }
50016
      throw new IllegalStateException();
49964
      throw new IllegalStateException();
50017
    }
49965
    }
50018
 
49966
 
Line 50021... Line 49969...
50021
    }
49969
    }
50022
 
49970
 
50023
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
49971
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
50024
    public boolean isSet(_Fields field) {
49972
    public boolean isSet(_Fields field) {
50025
      switch (field) {
49973
      switch (field) {
50026
      case SUCCESS:
49974
      case USER_ID:
50027
        return isSetSuccess();
49975
        return isSetUserId();
50028
      }
49976
      }
50029
      throw new IllegalStateException();
49977
      throw new IllegalStateException();
50030
    }
49978
    }
50031
 
49979
 
50032
    public boolean isSet(int fieldID) {
49980
    public boolean isSet(int fieldID) {
Line 50035... Line 49983...
50035
 
49983
 
50036
    @Override
49984
    @Override
50037
    public boolean equals(Object that) {
49985
    public boolean equals(Object that) {
50038
      if (that == null)
49986
      if (that == null)
50039
        return false;
49987
        return false;
50040
      if (that instanceof getAllUsers_result)
49988
      if (that instanceof getBrowseHistoryItems_args)
50041
        return this.equals((getAllUsers_result)that);
49989
        return this.equals((getBrowseHistoryItems_args)that);
50042
      return false;
49990
      return false;
50043
    }
49991
    }
50044
 
49992
 
50045
    public boolean equals(getAllUsers_result that) {
49993
    public boolean equals(getBrowseHistoryItems_args that) {
50046
      if (that == null)
49994
      if (that == null)
50047
        return false;
49995
        return false;
50048
 
49996
 
50049
      boolean this_present_success = true && this.isSetSuccess();
49997
      boolean this_present_userId = true;
50050
      boolean that_present_success = true && that.isSetSuccess();
49998
      boolean that_present_userId = true;
50051
      if (this_present_success || that_present_success) {
49999
      if (this_present_userId || that_present_userId) {
50052
        if (!(this_present_success && that_present_success))
50000
        if (!(this_present_userId && that_present_userId))
50053
          return false;
50001
          return false;
50054
        if (!this.success.equals(that.success))
50002
        if (this.userId != that.userId)
50055
          return false;
50003
          return false;
50056
      }
50004
      }
50057
 
50005
 
50058
      return true;
50006
      return true;
50059
    }
50007
    }
Line 50061... Line 50009...
50061
    @Override
50009
    @Override
50062
    public int hashCode() {
50010
    public int hashCode() {
50063
      return 0;
50011
      return 0;
50064
    }
50012
    }
50065
 
50013
 
50066
    public int compareTo(getAllUsers_result other) {
50014
    public int compareTo(getBrowseHistoryItems_args other) {
50067
      if (!getClass().equals(other.getClass())) {
50015
      if (!getClass().equals(other.getClass())) {
50068
        return getClass().getName().compareTo(other.getClass().getName());
50016
        return getClass().getName().compareTo(other.getClass().getName());
50069
      }
50017
      }
50070
 
50018
 
50071
      int lastComparison = 0;
50019
      int lastComparison = 0;
50072
      getAllUsers_result typedOther = (getAllUsers_result)other;
50020
      getBrowseHistoryItems_args typedOther = (getBrowseHistoryItems_args)other;
50073
 
50021
 
50074
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
50022
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(isSetUserId());
50075
      if (lastComparison != 0) {
50023
      if (lastComparison != 0) {
50076
        return lastComparison;
50024
        return lastComparison;
50077
      }
50025
      }
50078
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
50026
      lastComparison = TBaseHelper.compareTo(userId, typedOther.userId);
50079
      if (lastComparison != 0) {
50027
      if (lastComparison != 0) {
50080
        return lastComparison;
50028
        return lastComparison;
50081
      }
50029
      }
50082
      return 0;
50030
      return 0;
50083
    }
50031
    }
Line 50094... Line 50042...
50094
        _Fields fieldId = _Fields.findByThriftId(field.id);
50042
        _Fields fieldId = _Fields.findByThriftId(field.id);
50095
        if (fieldId == null) {
50043
        if (fieldId == null) {
50096
          TProtocolUtil.skip(iprot, field.type);
50044
          TProtocolUtil.skip(iprot, field.type);
50097
        } else {
50045
        } else {
50098
          switch (fieldId) {
50046
          switch (fieldId) {
50099
            case SUCCESS:
50047
            case USER_ID:
50100
              if (field.type == TType.LIST) {
50048
              if (field.type == TType.I64) {
50101
                {
-
 
50102
                  TList _list69 = iprot.readListBegin();
50049
                this.userId = iprot.readI64();
50103
                  this.success = new ArrayList<User>(_list69.size);
-
 
50104
                  for (int _i70 = 0; _i70 < _list69.size; ++_i70)
-
 
50105
                  {
-
 
50106
                    User _elem71;
50050
                setUserIdIsSet(true);
50107
                    _elem71 = new User();
-
 
50108
                    _elem71.read(iprot);
-
 
50109
                    this.success.add(_elem71);
-
 
50110
                  }
-
 
50111
                  iprot.readListEnd();
-
 
50112
                }
-
 
50113
              } else { 
50051
              } else { 
50114
                TProtocolUtil.skip(iprot, field.type);
50052
                TProtocolUtil.skip(iprot, field.type);
50115
              }
50053
              }
50116
              break;
50054
              break;
50117
          }
50055
          }
Line 50121... Line 50059...
50121
      iprot.readStructEnd();
50059
      iprot.readStructEnd();
50122
      validate();
50060
      validate();
50123
    }
50061
    }
50124
 
50062
 
50125
    public void write(TProtocol oprot) throws TException {
50063
    public void write(TProtocol oprot) throws TException {
50126
      oprot.writeStructBegin(STRUCT_DESC);
50064
      validate();
50127
 
50065
 
50128
      if (this.isSetSuccess()) {
50066
      oprot.writeStructBegin(STRUCT_DESC);
50129
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
50067
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
50130
        {
-
 
50131
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
-
 
50132
          for (User _iter72 : this.success)
-
 
50133
          {
-
 
50134
            _iter72.write(oprot);
-
 
50135
          }
-
 
50136
          oprot.writeListEnd();
50068
      oprot.writeI64(this.userId);
50137
        }
-
 
50138
        oprot.writeFieldEnd();
50069
      oprot.writeFieldEnd();
50139
      }
-
 
50140
      oprot.writeFieldStop();
50070
      oprot.writeFieldStop();
50141
      oprot.writeStructEnd();
50071
      oprot.writeStructEnd();
50142
    }
50072
    }
50143
 
50073
 
50144
    @Override
50074
    @Override
50145
    public String toString() {
50075
    public String toString() {
50146
      StringBuilder sb = new StringBuilder("getAllUsers_result(");
50076
      StringBuilder sb = new StringBuilder("getBrowseHistoryItems_args(");
50147
      boolean first = true;
50077
      boolean first = true;
50148
 
50078
 
50149
      sb.append("success:");
50079
      sb.append("userId:");
50150
      if (this.success == null) {
-
 
50151
        sb.append("null");
-
 
50152
      } else {
-
 
50153
        sb.append(this.success);
50080
      sb.append(this.userId);
50154
      }
-
 
50155
      first = false;
50081
      first = false;
50156
      sb.append(")");
50082
      sb.append(")");
50157
      return sb.toString();
50083
      return sb.toString();
50158
    }
50084
    }
50159
 
50085
 
Line 50161... Line 50087...
50161
      // check for required fields
50087
      // check for required fields
50162
    }
50088
    }
50163
 
50089
 
50164
  }
50090
  }
50165
 
50091
 
50166
  public static class putUserNote_args implements TBase<putUserNote_args._Fields>, java.io.Serializable, Cloneable, Comparable<putUserNote_args>   {
50092
  public static class getBrowseHistoryItems_result implements TBase<getBrowseHistoryItems_result._Fields>, java.io.Serializable, Cloneable, Comparable<getBrowseHistoryItems_result>   {
50167
    private static final TStruct STRUCT_DESC = new TStruct("putUserNote_args");
50093
    private static final TStruct STRUCT_DESC = new TStruct("getBrowseHistoryItems_result");
50168
 
50094
 
50169
    private static final TField USER_ID_FIELD_DESC = new TField("user_id", TType.I64, (short)1);
-
 
50170
    private static final TField ENTITY_ID_FIELD_DESC = new TField("entity_id", TType.I64, (short)2);
-
 
50171
    private static final TField SLIDE_FIELD_DESC = new TField("slide", TType.STRING, (short)3);
50095
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
50172
    private static final TField NOTE_FIELD_DESC = new TField("note", TType.STRING, (short)4);
50096
    private static final TField SCX_FIELD_DESC = new TField("scx", TType.STRUCT, (short)1);
50173
 
50097
 
50174
    private long user_id;
50098
    private List<Long> success;
50175
    private long entity_id;
50099
    private WidgetException scx;
50176
    private String slide;
-
 
50177
    private String note;
-
 
50178
 
50100
 
50179
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
50101
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
50180
    public enum _Fields implements TFieldIdEnum {
50102
    public enum _Fields implements TFieldIdEnum {
50181
      USER_ID((short)1, "user_id"),
-
 
50182
      ENTITY_ID((short)2, "entity_id"),
-
 
50183
      SLIDE((short)3, "slide"),
50103
      SUCCESS((short)0, "success"),
50184
      NOTE((short)4, "note");
50104
      SCX((short)1, "scx");
50185
 
50105
 
50186
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
50106
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
50187
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
50107
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
50188
 
50108
 
50189
      static {
50109
      static {
Line 50233... Line 50153...
50233
        return _fieldName;
50153
        return _fieldName;
50234
      }
50154
      }
50235
    }
50155
    }
50236
 
50156
 
50237
    // isset id assignments
50157
    // isset id assignments
50238
    private static final int __USER_ID_ISSET_ID = 0;
-
 
50239
    private static final int __ENTITY_ID_ISSET_ID = 1;
-
 
50240
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
50241
 
50158
 
50242
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
50159
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
50243
      put(_Fields.USER_ID, new FieldMetaData("user_id", TFieldRequirementType.DEFAULT, 
50160
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
50244
          new FieldValueMetaData(TType.I64)));
50161
          new ListMetaData(TType.LIST, 
50245
      put(_Fields.ENTITY_ID, new FieldMetaData("entity_id", TFieldRequirementType.DEFAULT, 
-
 
50246
          new FieldValueMetaData(TType.I64)));
50162
              new FieldValueMetaData(TType.I64))));
50247
      put(_Fields.SLIDE, new FieldMetaData("slide", TFieldRequirementType.DEFAULT, 
50163
      put(_Fields.SCX, new FieldMetaData("scx", TFieldRequirementType.DEFAULT, 
50248
          new FieldValueMetaData(TType.STRING)));
-
 
50249
      put(_Fields.NOTE, new FieldMetaData("note", TFieldRequirementType.DEFAULT, 
-
 
50250
          new FieldValueMetaData(TType.STRING)));
50164
          new FieldValueMetaData(TType.STRUCT)));
50251
    }});
50165
    }});
50252
 
50166
 
50253
    static {
50167
    static {
50254
      FieldMetaData.addStructMetaDataMap(putUserNote_args.class, metaDataMap);
50168
      FieldMetaData.addStructMetaDataMap(getBrowseHistoryItems_result.class, metaDataMap);
50255
    }
50169
    }
50256
 
50170
 
50257
    public putUserNote_args() {
50171
    public getBrowseHistoryItems_result() {
50258
    }
50172
    }
50259
 
50173
 
50260
    public putUserNote_args(
50174
    public getBrowseHistoryItems_result(
50261
      long user_id,
-
 
50262
      long entity_id,
-
 
50263
      String slide,
50175
      List<Long> success,
50264
      String note)
50176
      WidgetException scx)
50265
    {
50177
    {
50266
      this();
50178
      this();
50267
      this.user_id = user_id;
-
 
50268
      setUser_idIsSet(true);
-
 
50269
      this.entity_id = entity_id;
-
 
50270
      setEntity_idIsSet(true);
-
 
50271
      this.slide = slide;
50179
      this.success = success;
50272
      this.note = note;
50180
      this.scx = scx;
50273
    }
50181
    }
50274
 
50182
 
50275
    /**
50183
    /**
50276
     * Performs a deep copy on <i>other</i>.
50184
     * Performs a deep copy on <i>other</i>.
50277
     */
50185
     */
50278
    public putUserNote_args(putUserNote_args other) {
50186
    public getBrowseHistoryItems_result(getBrowseHistoryItems_result other) {
50279
      __isset_bit_vector.clear();
50187
      if (other.isSetSuccess()) {
50280
      __isset_bit_vector.or(other.__isset_bit_vector);
50188
        List<Long> __this__success = new ArrayList<Long>();
50281
      this.user_id = other.user_id;
50189
        for (Long other_element : other.success) {
50282
      this.entity_id = other.entity_id;
50190
          __this__success.add(other_element);
50283
      if (other.isSetSlide()) {
50191
        }
50284
        this.slide = other.slide;
50192
        this.success = __this__success;
50285
      }
50193
      }
50286
      if (other.isSetNote()) {
50194
      if (other.isSetScx()) {
50287
        this.note = other.note;
50195
        this.scx = new WidgetException(other.scx);
50288
      }
50196
      }
50289
    }
50197
    }
50290
 
50198
 
50291
    public putUserNote_args deepCopy() {
50199
    public getBrowseHistoryItems_result deepCopy() {
50292
      return new putUserNote_args(this);
50200
      return new getBrowseHistoryItems_result(this);
50293
    }
50201
    }
50294
 
50202
 
50295
    @Deprecated
50203
    @Deprecated
50296
    public putUserNote_args clone() {
50204
    public getBrowseHistoryItems_result clone() {
50297
      return new putUserNote_args(this);
50205
      return new getBrowseHistoryItems_result(this);
50298
    }
50206
    }
50299
 
50207
 
50300
    public long getUser_id() {
50208
    public int getSuccessSize() {
50301
      return this.user_id;
-
 
50302
    }
-
 
50303
 
-
 
50304
    public putUserNote_args setUser_id(long user_id) {
-
 
50305
      this.user_id = user_id;
-
 
50306
      setUser_idIsSet(true);
-
 
50307
      return this;
-
 
50308
    }
-
 
50309
 
-
 
50310
    public void unsetUser_id() {
-
 
50311
      __isset_bit_vector.clear(__USER_ID_ISSET_ID);
-
 
50312
    }
-
 
50313
 
-
 
50314
    /** Returns true if field user_id is set (has been asigned a value) and false otherwise */
-
 
50315
    public boolean isSetUser_id() {
-
 
50316
      return __isset_bit_vector.get(__USER_ID_ISSET_ID);
50209
      return (this.success == null) ? 0 : this.success.size();
50317
    }
-
 
50318
 
-
 
50319
    public void setUser_idIsSet(boolean value) {
-
 
50320
      __isset_bit_vector.set(__USER_ID_ISSET_ID, value);
-
 
50321
    }
-
 
50322
 
-
 
50323
    public long getEntity_id() {
-
 
50324
      return this.entity_id;
-
 
50325
    }
-
 
50326
 
-
 
50327
    public putUserNote_args setEntity_id(long entity_id) {
-
 
50328
      this.entity_id = entity_id;
-
 
50329
      setEntity_idIsSet(true);
-
 
50330
      return this;
-
 
50331
    }
-
 
50332
 
-
 
50333
    public void unsetEntity_id() {
-
 
50334
      __isset_bit_vector.clear(__ENTITY_ID_ISSET_ID);
-
 
50335
    }
50210
    }
50336
 
50211
 
50337
    /** Returns true if field entity_id is set (has been asigned a value) and false otherwise */
-
 
50338
    public boolean isSetEntity_id() {
50212
    public java.util.Iterator<Long> getSuccessIterator() {
50339
      return __isset_bit_vector.get(__ENTITY_ID_ISSET_ID);
50213
      return (this.success == null) ? null : this.success.iterator();
50340
    }
50214
    }
50341
 
50215
 
50342
    public void setEntity_idIsSet(boolean value) {
50216
    public void addToSuccess(long elem) {
-
 
50217
      if (this.success == null) {
50343
      __isset_bit_vector.set(__ENTITY_ID_ISSET_ID, value);
50218
        this.success = new ArrayList<Long>();
-
 
50219
      }
-
 
50220
      this.success.add(elem);
50344
    }
50221
    }
50345
 
50222
 
50346
    public String getSlide() {
50223
    public List<Long> getSuccess() {
50347
      return this.slide;
50224
      return this.success;
50348
    }
50225
    }
50349
 
50226
 
50350
    public putUserNote_args setSlide(String slide) {
50227
    public getBrowseHistoryItems_result setSuccess(List<Long> success) {
50351
      this.slide = slide;
50228
      this.success = success;
50352
      return this;
50229
      return this;
50353
    }
50230
    }
50354
 
50231
 
50355
    public void unsetSlide() {
50232
    public void unsetSuccess() {
50356
      this.slide = null;
50233
      this.success = null;
50357
    }
50234
    }
50358
 
50235
 
50359
    /** Returns true if field slide is set (has been asigned a value) and false otherwise */
50236
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
50360
    public boolean isSetSlide() {
50237
    public boolean isSetSuccess() {
50361
      return this.slide != null;
50238
      return this.success != null;
50362
    }
50239
    }
50363
 
50240
 
50364
    public void setSlideIsSet(boolean value) {
50241
    public void setSuccessIsSet(boolean value) {
50365
      if (!value) {
50242
      if (!value) {
50366
        this.slide = null;
50243
        this.success = null;
50367
      }
50244
      }
50368
    }
50245
    }
50369
 
50246
 
50370
    public String getNote() {
50247
    public WidgetException getScx() {
50371
      return this.note;
50248
      return this.scx;
50372
    }
50249
    }
50373
 
50250
 
50374
    public putUserNote_args setNote(String note) {
50251
    public getBrowseHistoryItems_result setScx(WidgetException scx) {
50375
      this.note = note;
50252
      this.scx = scx;
50376
      return this;
50253
      return this;
50377
    }
50254
    }
50378
 
50255
 
50379
    public void unsetNote() {
50256
    public void unsetScx() {
50380
      this.note = null;
50257
      this.scx = null;
50381
    }
50258
    }
50382
 
50259
 
50383
    /** Returns true if field note is set (has been asigned a value) and false otherwise */
50260
    /** Returns true if field scx is set (has been asigned a value) and false otherwise */
50384
    public boolean isSetNote() {
50261
    public boolean isSetScx() {
50385
      return this.note != null;
50262
      return this.scx != null;
50386
    }
50263
    }
50387
 
50264
 
50388
    public void setNoteIsSet(boolean value) {
50265
    public void setScxIsSet(boolean value) {
50389
      if (!value) {
50266
      if (!value) {
50390
        this.note = null;
50267
        this.scx = null;
50391
      }
50268
      }
50392
    }
50269
    }
50393
 
50270
 
50394
    public void setFieldValue(_Fields field, Object value) {
50271
    public void setFieldValue(_Fields field, Object value) {
50395
      switch (field) {
50272
      switch (field) {
50396
      case USER_ID:
-
 
50397
        if (value == null) {
-
 
50398
          unsetUser_id();
-
 
50399
        } else {
-
 
50400
          setUser_id((Long)value);
-
 
50401
        }
-
 
50402
        break;
-
 
50403
 
-
 
50404
      case ENTITY_ID:
-
 
50405
        if (value == null) {
-
 
50406
          unsetEntity_id();
-
 
50407
        } else {
-
 
50408
          setEntity_id((Long)value);
-
 
50409
        }
-
 
50410
        break;
-
 
50411
 
-
 
50412
      case SLIDE:
50273
      case SUCCESS:
50413
        if (value == null) {
50274
        if (value == null) {
50414
          unsetSlide();
50275
          unsetSuccess();
50415
        } else {
50276
        } else {
50416
          setSlide((String)value);
50277
          setSuccess((List<Long>)value);
50417
        }
50278
        }
50418
        break;
50279
        break;
50419
 
50280
 
50420
      case NOTE:
50281
      case SCX:
50421
        if (value == null) {
50282
        if (value == null) {
50422
          unsetNote();
50283
          unsetScx();
50423
        } else {
50284
        } else {
50424
          setNote((String)value);
50285
          setScx((WidgetException)value);
50425
        }
50286
        }
50426
        break;
50287
        break;
50427
 
50288
 
50428
      }
50289
      }
50429
    }
50290
    }
Line 50432... Line 50293...
50432
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
50293
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
50433
    }
50294
    }
50434
 
50295
 
50435
    public Object getFieldValue(_Fields field) {
50296
    public Object getFieldValue(_Fields field) {
50436
      switch (field) {
50297
      switch (field) {
50437
      case USER_ID:
-
 
50438
        return new Long(getUser_id());
-
 
50439
 
-
 
50440
      case ENTITY_ID:
-
 
50441
        return new Long(getEntity_id());
-
 
50442
 
-
 
50443
      case SLIDE:
50298
      case SUCCESS:
50444
        return getSlide();
50299
        return getSuccess();
50445
 
50300
 
50446
      case NOTE:
50301
      case SCX:
50447
        return getNote();
50302
        return getScx();
50448
 
50303
 
50449
      }
50304
      }
50450
      throw new IllegalStateException();
50305
      throw new IllegalStateException();
50451
    }
50306
    }
50452
 
50307
 
Line 50455... Line 50310...
50455
    }
50310
    }
50456
 
50311
 
50457
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
50312
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
50458
    public boolean isSet(_Fields field) {
50313
    public boolean isSet(_Fields field) {
50459
      switch (field) {
50314
      switch (field) {
50460
      case USER_ID:
-
 
50461
        return isSetUser_id();
-
 
50462
      case ENTITY_ID:
-
 
50463
        return isSetEntity_id();
-
 
50464
      case SLIDE:
50315
      case SUCCESS:
50465
        return isSetSlide();
50316
        return isSetSuccess();
50466
      case NOTE:
50317
      case SCX:
50467
        return isSetNote();
50318
        return isSetScx();
50468
      }
50319
      }
50469
      throw new IllegalStateException();
50320
      throw new IllegalStateException();
50470
    }
50321
    }
50471
 
50322
 
50472
    public boolean isSet(int fieldID) {
50323
    public boolean isSet(int fieldID) {
Line 50475... Line 50326...
50475
 
50326
 
50476
    @Override
50327
    @Override
50477
    public boolean equals(Object that) {
50328
    public boolean equals(Object that) {
50478
      if (that == null)
50329
      if (that == null)
50479
        return false;
50330
        return false;
50480
      if (that instanceof putUserNote_args)
50331
      if (that instanceof getBrowseHistoryItems_result)
50481
        return this.equals((putUserNote_args)that);
50332
        return this.equals((getBrowseHistoryItems_result)that);
50482
      return false;
50333
      return false;
50483
    }
50334
    }
50484
 
50335
 
50485
    public boolean equals(putUserNote_args that) {
50336
    public boolean equals(getBrowseHistoryItems_result that) {
50486
      if (that == null)
50337
      if (that == null)
50487
        return false;
50338
        return false;
50488
 
50339
 
50489
      boolean this_present_user_id = true;
-
 
50490
      boolean that_present_user_id = true;
-
 
50491
      if (this_present_user_id || that_present_user_id) {
-
 
50492
        if (!(this_present_user_id && that_present_user_id))
-
 
50493
          return false;
-
 
50494
        if (this.user_id != that.user_id)
-
 
50495
          return false;
-
 
50496
      }
-
 
50497
 
-
 
50498
      boolean this_present_entity_id = true;
-
 
50499
      boolean that_present_entity_id = true;
-
 
50500
      if (this_present_entity_id || that_present_entity_id) {
-
 
50501
        if (!(this_present_entity_id && that_present_entity_id))
-
 
50502
          return false;
-
 
50503
        if (this.entity_id != that.entity_id)
-
 
50504
          return false;
-
 
50505
      }
-
 
50506
 
-
 
50507
      boolean this_present_slide = true && this.isSetSlide();
50340
      boolean this_present_success = true && this.isSetSuccess();
50508
      boolean that_present_slide = true && that.isSetSlide();
50341
      boolean that_present_success = true && that.isSetSuccess();
50509
      if (this_present_slide || that_present_slide) {
50342
      if (this_present_success || that_present_success) {
50510
        if (!(this_present_slide && that_present_slide))
50343
        if (!(this_present_success && that_present_success))
50511
          return false;
50344
          return false;
50512
        if (!this.slide.equals(that.slide))
50345
        if (!this.success.equals(that.success))
50513
          return false;
50346
          return false;
50514
      }
50347
      }
50515
 
50348
 
50516
      boolean this_present_note = true && this.isSetNote();
50349
      boolean this_present_scx = true && this.isSetScx();
50517
      boolean that_present_note = true && that.isSetNote();
50350
      boolean that_present_scx = true && that.isSetScx();
50518
      if (this_present_note || that_present_note) {
50351
      if (this_present_scx || that_present_scx) {
50519
        if (!(this_present_note && that_present_note))
50352
        if (!(this_present_scx && that_present_scx))
50520
          return false;
50353
          return false;
50521
        if (!this.note.equals(that.note))
50354
        if (!this.scx.equals(that.scx))
50522
          return false;
50355
          return false;
50523
      }
50356
      }
50524
 
50357
 
50525
      return true;
50358
      return true;
50526
    }
50359
    }
Line 50528... Line 50361...
50528
    @Override
50361
    @Override
50529
    public int hashCode() {
50362
    public int hashCode() {
50530
      return 0;
50363
      return 0;
50531
    }
50364
    }
50532
 
50365
 
50533
    public int compareTo(putUserNote_args other) {
50366
    public int compareTo(getBrowseHistoryItems_result other) {
50534
      if (!getClass().equals(other.getClass())) {
50367
      if (!getClass().equals(other.getClass())) {
50535
        return getClass().getName().compareTo(other.getClass().getName());
50368
        return getClass().getName().compareTo(other.getClass().getName());
50536
      }
50369
      }
50537
 
50370
 
50538
      int lastComparison = 0;
50371
      int lastComparison = 0;
50539
      putUserNote_args typedOther = (putUserNote_args)other;
50372
      getBrowseHistoryItems_result typedOther = (getBrowseHistoryItems_result)other;
50540
 
50373
 
50541
      lastComparison = Boolean.valueOf(isSetUser_id()).compareTo(isSetUser_id());
-
 
50542
      if (lastComparison != 0) {
-
 
50543
        return lastComparison;
-
 
50544
      }
-
 
50545
      lastComparison = TBaseHelper.compareTo(user_id, typedOther.user_id);
-
 
50546
      if (lastComparison != 0) {
-
 
50547
        return lastComparison;
-
 
50548
      }
-
 
50549
      lastComparison = Boolean.valueOf(isSetEntity_id()).compareTo(isSetEntity_id());
-
 
50550
      if (lastComparison != 0) {
-
 
50551
        return lastComparison;
-
 
50552
      }
-
 
50553
      lastComparison = TBaseHelper.compareTo(entity_id, typedOther.entity_id);
-
 
50554
      if (lastComparison != 0) {
-
 
50555
        return lastComparison;
-
 
50556
      }
-
 
50557
      lastComparison = Boolean.valueOf(isSetSlide()).compareTo(isSetSlide());
50374
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
50558
      if (lastComparison != 0) {
50375
      if (lastComparison != 0) {
50559
        return lastComparison;
50376
        return lastComparison;
50560
      }
50377
      }
50561
      lastComparison = TBaseHelper.compareTo(slide, typedOther.slide);
50378
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
50562
      if (lastComparison != 0) {
50379
      if (lastComparison != 0) {
50563
        return lastComparison;
50380
        return lastComparison;
50564
      }
50381
      }
50565
      lastComparison = Boolean.valueOf(isSetNote()).compareTo(isSetNote());
50382
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(isSetScx());
50566
      if (lastComparison != 0) {
50383
      if (lastComparison != 0) {
50567
        return lastComparison;
50384
        return lastComparison;
50568
      }
50385
      }
50569
      lastComparison = TBaseHelper.compareTo(note, typedOther.note);
50386
      lastComparison = TBaseHelper.compareTo(scx, typedOther.scx);
50570
      if (lastComparison != 0) {
50387
      if (lastComparison != 0) {
50571
        return lastComparison;
50388
        return lastComparison;
50572
      }
50389
      }
50573
      return 0;
50390
      return 0;
50574
    }
50391
    }
Line 50585... Line 50402...
50585
        _Fields fieldId = _Fields.findByThriftId(field.id);
50402
        _Fields fieldId = _Fields.findByThriftId(field.id);
50586
        if (fieldId == null) {
50403
        if (fieldId == null) {
50587
          TProtocolUtil.skip(iprot, field.type);
50404
          TProtocolUtil.skip(iprot, field.type);
50588
        } else {
50405
        } else {
50589
          switch (fieldId) {
50406
          switch (fieldId) {
50590
            case USER_ID:
50407
            case SUCCESS:
50591
              if (field.type == TType.I64) {
50408
              if (field.type == TType.LIST) {
50592
                this.user_id = iprot.readI64();
50409
                {
50593
                setUser_idIsSet(true);
50410
                  TList _list77 = iprot.readListBegin();
50594
              } else { 
50411
                  this.success = new ArrayList<Long>(_list77.size);
50595
                TProtocolUtil.skip(iprot, field.type);
50412
                  for (int _i78 = 0; _i78 < _list77.size; ++_i78)
50596
              }
50413
                  {
50597
              break;
-
 
50598
            case ENTITY_ID:
50414
                    long _elem79;
50599
              if (field.type == TType.I64) {
-
 
50600
                this.entity_id = iprot.readI64();
50415
                    _elem79 = iprot.readI64();
50601
                setEntity_idIsSet(true);
50416
                    this.success.add(_elem79);
50602
              } else { 
50417
                  }
50603
                TProtocolUtil.skip(iprot, field.type);
50418
                  iprot.readListEnd();
50604
              }
50419
                }
50605
              break;
-
 
50606
            case SLIDE:
-
 
50607
              if (field.type == TType.STRING) {
-
 
50608
                this.slide = iprot.readString();
-
 
50609
              } else { 
50420
              } else { 
50610
                TProtocolUtil.skip(iprot, field.type);
50421
                TProtocolUtil.skip(iprot, field.type);
50611
              }
50422
              }
50612
              break;
50423
              break;
50613
            case NOTE:
50424
            case SCX:
50614
              if (field.type == TType.STRING) {
50425
              if (field.type == TType.STRUCT) {
50615
                this.note = iprot.readString();
50426
                this.scx = new WidgetException();
-
 
50427
                this.scx.read(iprot);
50616
              } else { 
50428
              } else { 
50617
                TProtocolUtil.skip(iprot, field.type);
50429
                TProtocolUtil.skip(iprot, field.type);
50618
              }
50430
              }
50619
              break;
50431
              break;
50620
          }
50432
          }
Line 50624... Line 50436...
50624
      iprot.readStructEnd();
50436
      iprot.readStructEnd();
50625
      validate();
50437
      validate();
50626
    }
50438
    }
50627
 
50439
 
50628
    public void write(TProtocol oprot) throws TException {
50440
    public void write(TProtocol oprot) throws TException {
50629
      validate();
-
 
50630
 
-
 
50631
      oprot.writeStructBegin(STRUCT_DESC);
50441
      oprot.writeStructBegin(STRUCT_DESC);
-
 
50442
 
50632
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
50443
      if (this.isSetSuccess()) {
50633
      oprot.writeI64(this.user_id);
50444
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
50634
      oprot.writeFieldEnd();
50445
        {
50635
      oprot.writeFieldBegin(ENTITY_ID_FIELD_DESC);
50446
          oprot.writeListBegin(new TList(TType.I64, this.success.size()));
50636
      oprot.writeI64(this.entity_id);
50447
          for (long _iter80 : this.success)
-
 
50448
          {
50637
      oprot.writeFieldEnd();
50449
            oprot.writeI64(_iter80);
50638
      if (this.slide != null) {
50450
          }
50639
        oprot.writeFieldBegin(SLIDE_FIELD_DESC);
50451
          oprot.writeListEnd();
50640
        oprot.writeString(this.slide);
50452
        }
50641
        oprot.writeFieldEnd();
50453
        oprot.writeFieldEnd();
50642
      }
-
 
50643
      if (this.note != null) {
50454
      } else if (this.isSetScx()) {
50644
        oprot.writeFieldBegin(NOTE_FIELD_DESC);
50455
        oprot.writeFieldBegin(SCX_FIELD_DESC);
50645
        oprot.writeString(this.note);
50456
        this.scx.write(oprot);
50646
        oprot.writeFieldEnd();
50457
        oprot.writeFieldEnd();
50647
      }
50458
      }
50648
      oprot.writeFieldStop();
50459
      oprot.writeFieldStop();
50649
      oprot.writeStructEnd();
50460
      oprot.writeStructEnd();
50650
    }
50461
    }
50651
 
50462
 
50652
    @Override
50463
    @Override
50653
    public String toString() {
50464
    public String toString() {
50654
      StringBuilder sb = new StringBuilder("putUserNote_args(");
50465
      StringBuilder sb = new StringBuilder("getBrowseHistoryItems_result(");
50655
      boolean first = true;
50466
      boolean first = true;
50656
 
50467
 
50657
      sb.append("user_id:");
-
 
50658
      sb.append(this.user_id);
-
 
50659
      first = false;
-
 
50660
      if (!first) sb.append(", ");
-
 
50661
      sb.append("entity_id:");
-
 
50662
      sb.append(this.entity_id);
-
 
50663
      first = false;
-
 
50664
      if (!first) sb.append(", ");
-
 
50665
      sb.append("slide:");
50468
      sb.append("success:");
50666
      if (this.slide == null) {
50469
      if (this.success == null) {
50667
        sb.append("null");
50470
        sb.append("null");
50668
      } else {
50471
      } else {
50669
        sb.append(this.slide);
50472
        sb.append(this.success);
50670
      }
50473
      }
50671
      first = false;
50474
      first = false;
50672
      if (!first) sb.append(", ");
50475
      if (!first) sb.append(", ");
50673
      sb.append("note:");
50476
      sb.append("scx:");
50674
      if (this.note == null) {
50477
      if (this.scx == null) {
50675
        sb.append("null");
50478
        sb.append("null");
50676
      } else {
50479
      } else {
50677
        sb.append(this.note);
50480
        sb.append(this.scx);
50678
      }
50481
      }
50679
      first = false;
50482
      first = false;
50680
      sb.append(")");
50483
      sb.append(")");
50681
      return sb.toString();
50484
      return sb.toString();
50682
    }
50485
    }
Line 50685... Line 50488...
50685
      // check for required fields
50488
      // check for required fields
50686
    }
50489
    }
50687
 
50490
 
50688
  }
50491
  }
50689
 
50492
 
50690
  public static class putUserNote_result implements TBase<putUserNote_result._Fields>, java.io.Serializable, Cloneable, Comparable<putUserNote_result>   {
-
 
50691
    private static final TStruct STRUCT_DESC = new TStruct("putUserNote_result");
-
 
50692
 
-
 
50693
 
-
 
50694
 
-
 
50695
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
50696
    public enum _Fields implements TFieldIdEnum {
-
 
50697
;
-
 
50698
 
-
 
50699
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
50700
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
50701
 
-
 
50702
      static {
-
 
50703
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
50704
          byId.put((int)field._thriftId, field);
-
 
50705
          byName.put(field.getFieldName(), field);
-
 
50706
        }
-
 
50707
      }
-
 
50708
 
-
 
50709
      /**
-
 
50710
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
50711
       */
-
 
50712
      public static _Fields findByThriftId(int fieldId) {
-
 
50713
        return byId.get(fieldId);
-
 
50714
      }
-
 
50715
 
-
 
50716
      /**
-
 
50717
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
50718
       * if it is not found.
-
 
50719
       */
-
 
50720
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
50721
        _Fields fields = findByThriftId(fieldId);
-
 
50722
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
50723
        return fields;
-
 
50724
      }
-
 
50725
 
-
 
50726
      /**
-
 
50727
       * Find the _Fields constant that matches name, or null if its not found.
-
 
50728
       */
-
 
50729
      public static _Fields findByName(String name) {
-
 
50730
        return byName.get(name);
-
 
50731
      }
-
 
50732
 
-
 
50733
      private final short _thriftId;
-
 
50734
      private final String _fieldName;
-
 
50735
 
-
 
50736
      _Fields(short thriftId, String fieldName) {
-
 
50737
        _thriftId = thriftId;
-
 
50738
        _fieldName = fieldName;
-
 
50739
      }
-
 
50740
 
-
 
50741
      public short getThriftFieldId() {
-
 
50742
        return _thriftId;
-
 
50743
      }
-
 
50744
 
-
 
50745
      public String getFieldName() {
-
 
50746
        return _fieldName;
-
 
50747
      }
-
 
50748
    }
-
 
50749
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
50750
    }});
-
 
50751
 
-
 
50752
    static {
-
 
50753
      FieldMetaData.addStructMetaDataMap(putUserNote_result.class, metaDataMap);
-
 
50754
    }
-
 
50755
 
-
 
50756
    public putUserNote_result() {
-
 
50757
    }
-
 
50758
 
-
 
50759
    /**
-
 
50760
     * Performs a deep copy on <i>other</i>.
-
 
50761
     */
-
 
50762
    public putUserNote_result(putUserNote_result other) {
-
 
50763
    }
-
 
50764
 
-
 
50765
    public putUserNote_result deepCopy() {
-
 
50766
      return new putUserNote_result(this);
-
 
50767
    }
-
 
50768
 
-
 
50769
    @Deprecated
-
 
50770
    public putUserNote_result clone() {
-
 
50771
      return new putUserNote_result(this);
-
 
50772
    }
-
 
50773
 
-
 
50774
    public void setFieldValue(_Fields field, Object value) {
-
 
50775
      switch (field) {
-
 
50776
      }
-
 
50777
    }
-
 
50778
 
-
 
50779
    public void setFieldValue(int fieldID, Object value) {
-
 
50780
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
50781
    }
-
 
50782
 
-
 
50783
    public Object getFieldValue(_Fields field) {
-
 
50784
      switch (field) {
-
 
50785
      }
-
 
50786
      throw new IllegalStateException();
-
 
50787
    }
-
 
50788
 
-
 
50789
    public Object getFieldValue(int fieldId) {
-
 
50790
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
50791
    }
-
 
50792
 
-
 
50793
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
50794
    public boolean isSet(_Fields field) {
-
 
50795
      switch (field) {
-
 
50796
      }
-
 
50797
      throw new IllegalStateException();
-
 
50798
    }
-
 
50799
 
-
 
50800
    public boolean isSet(int fieldID) {
-
 
50801
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
50802
    }
-
 
50803
 
-
 
50804
    @Override
-
 
50805
    public boolean equals(Object that) {
-
 
50806
      if (that == null)
-
 
50807
        return false;
-
 
50808
      if (that instanceof putUserNote_result)
-
 
50809
        return this.equals((putUserNote_result)that);
-
 
50810
      return false;
-
 
50811
    }
-
 
50812
 
-
 
50813
    public boolean equals(putUserNote_result that) {
-
 
50814
      if (that == null)
-
 
50815
        return false;
-
 
50816
 
-
 
50817
      return true;
-
 
50818
    }
-
 
50819
 
-
 
50820
    @Override
-
 
50821
    public int hashCode() {
-
 
50822
      return 0;
-
 
50823
    }
-
 
50824
 
-
 
50825
    public int compareTo(putUserNote_result other) {
-
 
50826
      if (!getClass().equals(other.getClass())) {
-
 
50827
        return getClass().getName().compareTo(other.getClass().getName());
-
 
50828
      }
-
 
50829
 
-
 
50830
      int lastComparison = 0;
-
 
50831
      putUserNote_result typedOther = (putUserNote_result)other;
-
 
50832
 
-
 
50833
      return 0;
-
 
50834
    }
-
 
50835
 
-
 
50836
    public void read(TProtocol iprot) throws TException {
-
 
50837
      TField field;
-
 
50838
      iprot.readStructBegin();
-
 
50839
      while (true)
-
 
50840
      {
-
 
50841
        field = iprot.readFieldBegin();
-
 
50842
        if (field.type == TType.STOP) { 
-
 
50843
          break;
-
 
50844
        }
-
 
50845
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
50846
        if (fieldId == null) {
-
 
50847
          TProtocolUtil.skip(iprot, field.type);
-
 
50848
        } else {
-
 
50849
          switch (fieldId) {
-
 
50850
          }
-
 
50851
          iprot.readFieldEnd();
-
 
50852
        }
-
 
50853
      }
-
 
50854
      iprot.readStructEnd();
-
 
50855
      validate();
-
 
50856
    }
-
 
50857
 
-
 
50858
    public void write(TProtocol oprot) throws TException {
-
 
50859
      oprot.writeStructBegin(STRUCT_DESC);
-
 
50860
 
-
 
50861
      oprot.writeFieldStop();
-
 
50862
      oprot.writeStructEnd();
-
 
50863
    }
-
 
50864
 
-
 
50865
    @Override
-
 
50866
    public String toString() {
-
 
50867
      StringBuilder sb = new StringBuilder("putUserNote_result(");
-
 
50868
      boolean first = true;
-
 
50869
 
-
 
50870
      sb.append(")");
-
 
50871
      return sb.toString();
-
 
50872
    }
-
 
50873
 
-
 
50874
    public void validate() throws TException {
-
 
50875
      // check for required fields
-
 
50876
    }
-
 
50877
 
-
 
50878
  }
-
 
50879
 
-
 
50880
  public static class getUserNotes_args implements TBase<getUserNotes_args._Fields>, java.io.Serializable, Cloneable, Comparable<getUserNotes_args>   {
50493
  public static class updateBrowseHistory_args implements TBase<updateBrowseHistory_args._Fields>, java.io.Serializable, Cloneable, Comparable<updateBrowseHistory_args>   {
50881
    private static final TStruct STRUCT_DESC = new TStruct("getUserNotes_args");
50494
    private static final TStruct STRUCT_DESC = new TStruct("updateBrowseHistory_args");
50882
 
50495
 
50883
    private static final TField USER_ID_FIELD_DESC = new TField("user_id", TType.I64, (short)1);
50496
    private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)1);
50884
    private static final TField ENTITY_ID_FIELD_DESC = new TField("entity_id", TType.I64, (short)2);
50497
    private static final TField ITEM_ID_FIELD_DESC = new TField("itemId", TType.I64, (short)2);
50885
 
50498
 
50886
    private long user_id;
50499
    private long userId;
50887
    private long entity_id;
50500
    private long itemId;
50888
 
50501
 
50889
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
50502
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
50890
    public enum _Fields implements TFieldIdEnum {
50503
    public enum _Fields implements TFieldIdEnum {
50891
      USER_ID((short)1, "user_id"),
50504
      USER_ID((short)1, "userId"),
50892
      ENTITY_ID((short)2, "entity_id");
50505
      ITEM_ID((short)2, "itemId");
50893
 
50506
 
50894
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
50507
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
50895
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
50508
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
50896
 
50509
 
50897
      static {
50510
      static {
Line 50941... Line 50554...
50941
        return _fieldName;
50554
        return _fieldName;
50942
      }
50555
      }
50943
    }
50556
    }
50944
 
50557
 
50945
    // isset id assignments
50558
    // isset id assignments
50946
    private static final int __USER_ID_ISSET_ID = 0;
50559
    private static final int __USERID_ISSET_ID = 0;
50947
    private static final int __ENTITY_ID_ISSET_ID = 1;
50560
    private static final int __ITEMID_ISSET_ID = 1;
50948
    private BitSet __isset_bit_vector = new BitSet(2);
50561
    private BitSet __isset_bit_vector = new BitSet(2);
50949
 
50562
 
50950
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
50563
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
50951
      put(_Fields.USER_ID, new FieldMetaData("user_id", TFieldRequirementType.DEFAULT, 
50564
      put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT, 
50952
          new FieldValueMetaData(TType.I64)));
50565
          new FieldValueMetaData(TType.I64)));
50953
      put(_Fields.ENTITY_ID, new FieldMetaData("entity_id", TFieldRequirementType.DEFAULT, 
50566
      put(_Fields.ITEM_ID, new FieldMetaData("itemId", TFieldRequirementType.DEFAULT, 
50954
          new FieldValueMetaData(TType.I64)));
50567
          new FieldValueMetaData(TType.I64)));
50955
    }});
50568
    }});
50956
 
50569
 
50957
    static {
50570
    static {
50958
      FieldMetaData.addStructMetaDataMap(getUserNotes_args.class, metaDataMap);
50571
      FieldMetaData.addStructMetaDataMap(updateBrowseHistory_args.class, metaDataMap);
50959
    }
50572
    }
50960
 
50573
 
50961
    public getUserNotes_args() {
50574
    public updateBrowseHistory_args() {
50962
    }
50575
    }
50963
 
50576
 
50964
    public getUserNotes_args(
50577
    public updateBrowseHistory_args(
50965
      long user_id,
50578
      long userId,
50966
      long entity_id)
50579
      long itemId)
50967
    {
50580
    {
50968
      this();
50581
      this();
50969
      this.user_id = user_id;
50582
      this.userId = userId;
50970
      setUser_idIsSet(true);
50583
      setUserIdIsSet(true);
50971
      this.entity_id = entity_id;
50584
      this.itemId = itemId;
50972
      setEntity_idIsSet(true);
50585
      setItemIdIsSet(true);
50973
    }
50586
    }
50974
 
50587
 
50975
    /**
50588
    /**
50976
     * Performs a deep copy on <i>other</i>.
50589
     * Performs a deep copy on <i>other</i>.
50977
     */
50590
     */
50978
    public getUserNotes_args(getUserNotes_args other) {
50591
    public updateBrowseHistory_args(updateBrowseHistory_args other) {
50979
      __isset_bit_vector.clear();
50592
      __isset_bit_vector.clear();
50980
      __isset_bit_vector.or(other.__isset_bit_vector);
50593
      __isset_bit_vector.or(other.__isset_bit_vector);
50981
      this.user_id = other.user_id;
50594
      this.userId = other.userId;
50982
      this.entity_id = other.entity_id;
50595
      this.itemId = other.itemId;
50983
    }
50596
    }
50984
 
50597
 
50985
    public getUserNotes_args deepCopy() {
50598
    public updateBrowseHistory_args deepCopy() {
50986
      return new getUserNotes_args(this);
50599
      return new updateBrowseHistory_args(this);
50987
    }
50600
    }
50988
 
50601
 
50989
    @Deprecated
50602
    @Deprecated
50990
    public getUserNotes_args clone() {
50603
    public updateBrowseHistory_args clone() {
50991
      return new getUserNotes_args(this);
50604
      return new updateBrowseHistory_args(this);
50992
    }
50605
    }
50993
 
50606
 
50994
    public long getUser_id() {
50607
    public long getUserId() {
50995
      return this.user_id;
50608
      return this.userId;
50996
    }
50609
    }
50997
 
50610
 
50998
    public getUserNotes_args setUser_id(long user_id) {
50611
    public updateBrowseHistory_args setUserId(long userId) {
50999
      this.user_id = user_id;
50612
      this.userId = userId;
51000
      setUser_idIsSet(true);
50613
      setUserIdIsSet(true);
51001
      return this;
50614
      return this;
51002
    }
50615
    }
51003
 
50616
 
51004
    public void unsetUser_id() {
50617
    public void unsetUserId() {
51005
      __isset_bit_vector.clear(__USER_ID_ISSET_ID);
50618
      __isset_bit_vector.clear(__USERID_ISSET_ID);
51006
    }
50619
    }
51007
 
50620
 
51008
    /** Returns true if field user_id is set (has been asigned a value) and false otherwise */
50621
    /** Returns true if field userId is set (has been asigned a value) and false otherwise */
51009
    public boolean isSetUser_id() {
50622
    public boolean isSetUserId() {
51010
      return __isset_bit_vector.get(__USER_ID_ISSET_ID);
50623
      return __isset_bit_vector.get(__USERID_ISSET_ID);
51011
    }
50624
    }
51012
 
50625
 
51013
    public void setUser_idIsSet(boolean value) {
50626
    public void setUserIdIsSet(boolean value) {
51014
      __isset_bit_vector.set(__USER_ID_ISSET_ID, value);
50627
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
51015
    }
50628
    }
51016
 
50629
 
51017
    public long getEntity_id() {
50630
    public long getItemId() {
51018
      return this.entity_id;
50631
      return this.itemId;
51019
    }
50632
    }
51020
 
50633
 
51021
    public getUserNotes_args setEntity_id(long entity_id) {
50634
    public updateBrowseHistory_args setItemId(long itemId) {
51022
      this.entity_id = entity_id;
50635
      this.itemId = itemId;
51023
      setEntity_idIsSet(true);
50636
      setItemIdIsSet(true);
51024
      return this;
50637
      return this;
51025
    }
50638
    }
51026
 
50639
 
51027
    public void unsetEntity_id() {
50640
    public void unsetItemId() {
51028
      __isset_bit_vector.clear(__ENTITY_ID_ISSET_ID);
50641
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
51029
    }
50642
    }
51030
 
50643
 
51031
    /** Returns true if field entity_id is set (has been asigned a value) and false otherwise */
50644
    /** Returns true if field itemId is set (has been asigned a value) and false otherwise */
51032
    public boolean isSetEntity_id() {
50645
    public boolean isSetItemId() {
51033
      return __isset_bit_vector.get(__ENTITY_ID_ISSET_ID);
50646
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
51034
    }
50647
    }
51035
 
50648
 
51036
    public void setEntity_idIsSet(boolean value) {
50649
    public void setItemIdIsSet(boolean value) {
51037
      __isset_bit_vector.set(__ENTITY_ID_ISSET_ID, value);
50650
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
51038
    }
50651
    }
51039
 
50652
 
51040
    public void setFieldValue(_Fields field, Object value) {
50653
    public void setFieldValue(_Fields field, Object value) {
51041
      switch (field) {
50654
      switch (field) {
51042
      case USER_ID:
50655
      case USER_ID:
51043
        if (value == null) {
50656
        if (value == null) {
51044
          unsetUser_id();
50657
          unsetUserId();
51045
        } else {
50658
        } else {
51046
          setUser_id((Long)value);
50659
          setUserId((Long)value);
51047
        }
50660
        }
51048
        break;
50661
        break;
51049
 
50662
 
51050
      case ENTITY_ID:
50663
      case ITEM_ID:
51051
        if (value == null) {
50664
        if (value == null) {
51052
          unsetEntity_id();
50665
          unsetItemId();
51053
        } else {
50666
        } else {
51054
          setEntity_id((Long)value);
50667
          setItemId((Long)value);
51055
        }
50668
        }
51056
        break;
50669
        break;
51057
 
50670
 
51058
      }
50671
      }
51059
    }
50672
    }
Line 51063... Line 50676...
51063
    }
50676
    }
51064
 
50677
 
51065
    public Object getFieldValue(_Fields field) {
50678
    public Object getFieldValue(_Fields field) {
51066
      switch (field) {
50679
      switch (field) {
51067
      case USER_ID:
50680
      case USER_ID:
51068
        return new Long(getUser_id());
50681
        return new Long(getUserId());
51069
 
50682
 
51070
      case ENTITY_ID:
50683
      case ITEM_ID:
51071
        return new Long(getEntity_id());
50684
        return new Long(getItemId());
51072
 
50685
 
51073
      }
50686
      }
51074
      throw new IllegalStateException();
50687
      throw new IllegalStateException();
51075
    }
50688
    }
51076
 
50689
 
Line 51080... Line 50693...
51080
 
50693
 
51081
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
50694
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
51082
    public boolean isSet(_Fields field) {
50695
    public boolean isSet(_Fields field) {
51083
      switch (field) {
50696
      switch (field) {
51084
      case USER_ID:
50697
      case USER_ID:
51085
        return isSetUser_id();
50698
        return isSetUserId();
51086
      case ENTITY_ID:
50699
      case ITEM_ID:
51087
        return isSetEntity_id();
50700
        return isSetItemId();
51088
      }
50701
      }
51089
      throw new IllegalStateException();
50702
      throw new IllegalStateException();
51090
    }
50703
    }
51091
 
50704
 
51092
    public boolean isSet(int fieldID) {
50705
    public boolean isSet(int fieldID) {
Line 51095... Line 50708...
51095
 
50708
 
51096
    @Override
50709
    @Override
51097
    public boolean equals(Object that) {
50710
    public boolean equals(Object that) {
51098
      if (that == null)
50711
      if (that == null)
51099
        return false;
50712
        return false;
51100
      if (that instanceof getUserNotes_args)
50713
      if (that instanceof updateBrowseHistory_args)
51101
        return this.equals((getUserNotes_args)that);
50714
        return this.equals((updateBrowseHistory_args)that);
51102
      return false;
50715
      return false;
51103
    }
50716
    }
51104
 
50717
 
51105
    public boolean equals(getUserNotes_args that) {
50718
    public boolean equals(updateBrowseHistory_args that) {
51106
      if (that == null)
50719
      if (that == null)
51107
        return false;
50720
        return false;
51108
 
50721
 
51109
      boolean this_present_user_id = true;
50722
      boolean this_present_userId = true;
51110
      boolean that_present_user_id = true;
50723
      boolean that_present_userId = true;
51111
      if (this_present_user_id || that_present_user_id) {
50724
      if (this_present_userId || that_present_userId) {
51112
        if (!(this_present_user_id && that_present_user_id))
50725
        if (!(this_present_userId && that_present_userId))
51113
          return false;
50726
          return false;
51114
        if (this.user_id != that.user_id)
50727
        if (this.userId != that.userId)
51115
          return false;
50728
          return false;
51116
      }
50729
      }
51117
 
50730
 
51118
      boolean this_present_entity_id = true;
50731
      boolean this_present_itemId = true;
51119
      boolean that_present_entity_id = true;
50732
      boolean that_present_itemId = true;
51120
      if (this_present_entity_id || that_present_entity_id) {
50733
      if (this_present_itemId || that_present_itemId) {
51121
        if (!(this_present_entity_id && that_present_entity_id))
50734
        if (!(this_present_itemId && that_present_itemId))
51122
          return false;
50735
          return false;
51123
        if (this.entity_id != that.entity_id)
50736
        if (this.itemId != that.itemId)
51124
          return false;
50737
          return false;
51125
      }
50738
      }
51126
 
50739
 
51127
      return true;
50740
      return true;
51128
    }
50741
    }
Line 51130... Line 50743...
51130
    @Override
50743
    @Override
51131
    public int hashCode() {
50744
    public int hashCode() {
51132
      return 0;
50745
      return 0;
51133
    }
50746
    }
51134
 
50747
 
51135
    public int compareTo(getUserNotes_args other) {
50748
    public int compareTo(updateBrowseHistory_args other) {
51136
      if (!getClass().equals(other.getClass())) {
50749
      if (!getClass().equals(other.getClass())) {
51137
        return getClass().getName().compareTo(other.getClass().getName());
50750
        return getClass().getName().compareTo(other.getClass().getName());
51138
      }
50751
      }
51139
 
50752
 
51140
      int lastComparison = 0;
50753
      int lastComparison = 0;
51141
      getUserNotes_args typedOther = (getUserNotes_args)other;
50754
      updateBrowseHistory_args typedOther = (updateBrowseHistory_args)other;
51142
 
50755
 
51143
      lastComparison = Boolean.valueOf(isSetUser_id()).compareTo(isSetUser_id());
50756
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(isSetUserId());
51144
      if (lastComparison != 0) {
50757
      if (lastComparison != 0) {
51145
        return lastComparison;
50758
        return lastComparison;
51146
      }
50759
      }
51147
      lastComparison = TBaseHelper.compareTo(user_id, typedOther.user_id);
50760
      lastComparison = TBaseHelper.compareTo(userId, typedOther.userId);
51148
      if (lastComparison != 0) {
50761
      if (lastComparison != 0) {
51149
        return lastComparison;
50762
        return lastComparison;
51150
      }
50763
      }
51151
      lastComparison = Boolean.valueOf(isSetEntity_id()).compareTo(isSetEntity_id());
50764
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(isSetItemId());
51152
      if (lastComparison != 0) {
50765
      if (lastComparison != 0) {
51153
        return lastComparison;
50766
        return lastComparison;
51154
      }
50767
      }
51155
      lastComparison = TBaseHelper.compareTo(entity_id, typedOther.entity_id);
50768
      lastComparison = TBaseHelper.compareTo(itemId, typedOther.itemId);
51156
      if (lastComparison != 0) {
50769
      if (lastComparison != 0) {
51157
        return lastComparison;
50770
        return lastComparison;
51158
      }
50771
      }
51159
      return 0;
50772
      return 0;
51160
    }
50773
    }
Line 51173... Line 50786...
51173
          TProtocolUtil.skip(iprot, field.type);
50786
          TProtocolUtil.skip(iprot, field.type);
51174
        } else {
50787
        } else {
51175
          switch (fieldId) {
50788
          switch (fieldId) {
51176
            case USER_ID:
50789
            case USER_ID:
51177
              if (field.type == TType.I64) {
50790
              if (field.type == TType.I64) {
51178
                this.user_id = iprot.readI64();
50791
                this.userId = iprot.readI64();
51179
                setUser_idIsSet(true);
50792
                setUserIdIsSet(true);
51180
              } else { 
50793
              } else { 
51181
                TProtocolUtil.skip(iprot, field.type);
50794
                TProtocolUtil.skip(iprot, field.type);
51182
              }
50795
              }
51183
              break;
50796
              break;
51184
            case ENTITY_ID:
50797
            case ITEM_ID:
51185
              if (field.type == TType.I64) {
50798
              if (field.type == TType.I64) {
51186
                this.entity_id = iprot.readI64();
50799
                this.itemId = iprot.readI64();
51187
                setEntity_idIsSet(true);
50800
                setItemIdIsSet(true);
51188
              } else { 
50801
              } else { 
51189
                TProtocolUtil.skip(iprot, field.type);
50802
                TProtocolUtil.skip(iprot, field.type);
51190
              }
50803
              }
51191
              break;
50804
              break;
51192
          }
50805
          }
Line 51200... Line 50813...
51200
    public void write(TProtocol oprot) throws TException {
50813
    public void write(TProtocol oprot) throws TException {
51201
      validate();
50814
      validate();
51202
 
50815
 
51203
      oprot.writeStructBegin(STRUCT_DESC);
50816
      oprot.writeStructBegin(STRUCT_DESC);
51204
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
50817
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
51205
      oprot.writeI64(this.user_id);
50818
      oprot.writeI64(this.userId);
51206
      oprot.writeFieldEnd();
50819
      oprot.writeFieldEnd();
51207
      oprot.writeFieldBegin(ENTITY_ID_FIELD_DESC);
50820
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
51208
      oprot.writeI64(this.entity_id);
50821
      oprot.writeI64(this.itemId);
51209
      oprot.writeFieldEnd();
50822
      oprot.writeFieldEnd();
51210
      oprot.writeFieldStop();
50823
      oprot.writeFieldStop();
51211
      oprot.writeStructEnd();
50824
      oprot.writeStructEnd();
51212
    }
50825
    }
51213
 
50826
 
51214
    @Override
50827
    @Override
51215
    public String toString() {
50828
    public String toString() {
51216
      StringBuilder sb = new StringBuilder("getUserNotes_args(");
50829
      StringBuilder sb = new StringBuilder("updateBrowseHistory_args(");
51217
      boolean first = true;
50830
      boolean first = true;
51218
 
50831
 
51219
      sb.append("user_id:");
50832
      sb.append("userId:");
51220
      sb.append(this.user_id);
50833
      sb.append(this.userId);
51221
      first = false;
50834
      first = false;
51222
      if (!first) sb.append(", ");
50835
      if (!first) sb.append(", ");
51223
      sb.append("entity_id:");
50836
      sb.append("itemId:");
51224
      sb.append(this.entity_id);
50837
      sb.append(this.itemId);
51225
      first = false;
50838
      first = false;
51226
      sb.append(")");
50839
      sb.append(")");
51227
      return sb.toString();
50840
      return sb.toString();
51228
    }
50841
    }
51229
 
50842
 
Line 51231... Line 50844...
51231
      // check for required fields
50844
      // check for required fields
51232
    }
50845
    }
51233
 
50846
 
51234
  }
50847
  }
51235
 
50848
 
51236
  public static class getUserNotes_result implements TBase<getUserNotes_result._Fields>, java.io.Serializable, Cloneable, Comparable<getUserNotes_result>   {
50849
  public static class updateBrowseHistory_result implements TBase<updateBrowseHistory_result._Fields>, java.io.Serializable, Cloneable, Comparable<updateBrowseHistory_result>   {
51237
    private static final TStruct STRUCT_DESC = new TStruct("getUserNotes_result");
50850
    private static final TStruct STRUCT_DESC = new TStruct("updateBrowseHistory_result");
51238
 
50851
 
51239
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
-
 
51240
 
50852
 
51241
    private List<UserNote> success;
-
 
51242
 
50853
 
51243
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
50854
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
51244
    public enum _Fields implements TFieldIdEnum {
50855
    public enum _Fields implements TFieldIdEnum {
51245
      SUCCESS((short)0, "success");
-
 
-
 
50856
;
51246
 
50857
 
51247
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
50858
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
51248
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
50859
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
51249
 
50860
 
51250
      static {
50861
      static {
Line 51292... Line 50903...
51292
 
50903
 
51293
      public String getFieldName() {
50904
      public String getFieldName() {
51294
        return _fieldName;
50905
        return _fieldName;
51295
      }
50906
      }
51296
    }
50907
    }
51297
 
-
 
51298
    // isset id assignments
-
 
51299
 
-
 
51300
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
50908
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
51301
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
51302
          new ListMetaData(TType.LIST, 
-
 
51303
              new StructMetaData(TType.STRUCT, UserNote.class))));
-
 
51304
    }});
50909
    }});
51305
 
50910
 
51306
    static {
50911
    static {
51307
      FieldMetaData.addStructMetaDataMap(getUserNotes_result.class, metaDataMap);
50912
      FieldMetaData.addStructMetaDataMap(updateBrowseHistory_result.class, metaDataMap);
51308
    }
-
 
51309
 
-
 
51310
    public getUserNotes_result() {
-
 
51311
    }
50913
    }
51312
 
50914
 
51313
    public getUserNotes_result(
50915
    public updateBrowseHistory_result() {
51314
      List<UserNote> success)
-
 
51315
    {
-
 
51316
      this();
-
 
51317
      this.success = success;
-
 
51318
    }
50916
    }
51319
 
50917
 
51320
    /**
50918
    /**
51321
     * Performs a deep copy on <i>other</i>.
50919
     * Performs a deep copy on <i>other</i>.
51322
     */
50920
     */
51323
    public getUserNotes_result(getUserNotes_result other) {
50921
    public updateBrowseHistory_result(updateBrowseHistory_result other) {
51324
      if (other.isSetSuccess()) {
-
 
51325
        List<UserNote> __this__success = new ArrayList<UserNote>();
-
 
51326
        for (UserNote other_element : other.success) {
-
 
51327
          __this__success.add(new UserNote(other_element));
-
 
51328
        }
-
 
51329
        this.success = __this__success;
-
 
51330
      }
-
 
51331
    }
50922
    }
51332
 
50923
 
51333
    public getUserNotes_result deepCopy() {
50924
    public updateBrowseHistory_result deepCopy() {
51334
      return new getUserNotes_result(this);
50925
      return new updateBrowseHistory_result(this);
51335
    }
50926
    }
51336
 
50927
 
51337
    @Deprecated
50928
    @Deprecated
51338
    public getUserNotes_result clone() {
50929
    public updateBrowseHistory_result clone() {
51339
      return new getUserNotes_result(this);
50930
      return new updateBrowseHistory_result(this);
51340
    }
-
 
51341
 
-
 
51342
    public int getSuccessSize() {
-
 
51343
      return (this.success == null) ? 0 : this.success.size();
-
 
51344
    }
-
 
51345
 
-
 
51346
    public java.util.Iterator<UserNote> getSuccessIterator() {
-
 
51347
      return (this.success == null) ? null : this.success.iterator();
-
 
51348
    }
-
 
51349
 
-
 
51350
    public void addToSuccess(UserNote elem) {
-
 
51351
      if (this.success == null) {
-
 
51352
        this.success = new ArrayList<UserNote>();
-
 
51353
      }
-
 
51354
      this.success.add(elem);
-
 
51355
    }
-
 
51356
 
-
 
51357
    public List<UserNote> getSuccess() {
-
 
51358
      return this.success;
-
 
51359
    }
-
 
51360
 
-
 
51361
    public getUserNotes_result setSuccess(List<UserNote> success) {
-
 
51362
      this.success = success;
-
 
51363
      return this;
-
 
51364
    }
-
 
51365
 
-
 
51366
    public void unsetSuccess() {
-
 
51367
      this.success = null;
-
 
51368
    }
-
 
51369
 
-
 
51370
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
51371
    public boolean isSetSuccess() {
-
 
51372
      return this.success != null;
-
 
51373
    }
-
 
51374
 
-
 
51375
    public void setSuccessIsSet(boolean value) {
-
 
51376
      if (!value) {
-
 
51377
        this.success = null;
-
 
51378
      }
-
 
51379
    }
50931
    }
51380
 
50932
 
51381
    public void setFieldValue(_Fields field, Object value) {
50933
    public void setFieldValue(_Fields field, Object value) {
51382
      switch (field) {
50934
      switch (field) {
51383
      case SUCCESS:
-
 
51384
        if (value == null) {
-
 
51385
          unsetSuccess();
-
 
51386
        } else {
-
 
51387
          setSuccess((List<UserNote>)value);
-
 
51388
        }
-
 
51389
        break;
-
 
51390
 
-
 
51391
      }
50935
      }
51392
    }
50936
    }
51393
 
50937
 
51394
    public void setFieldValue(int fieldID, Object value) {
50938
    public void setFieldValue(int fieldID, Object value) {
51395
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
50939
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
51396
    }
50940
    }
51397
 
50941
 
51398
    public Object getFieldValue(_Fields field) {
50942
    public Object getFieldValue(_Fields field) {
51399
      switch (field) {
50943
      switch (field) {
51400
      case SUCCESS:
-
 
51401
        return getSuccess();
-
 
51402
 
-
 
51403
      }
50944
      }
51404
      throw new IllegalStateException();
50945
      throw new IllegalStateException();
51405
    }
50946
    }
51406
 
50947
 
51407
    public Object getFieldValue(int fieldId) {
50948
    public Object getFieldValue(int fieldId) {
Line 51409... Line 50950...
51409
    }
50950
    }
51410
 
50951
 
51411
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
50952
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
51412
    public boolean isSet(_Fields field) {
50953
    public boolean isSet(_Fields field) {
51413
      switch (field) {
50954
      switch (field) {
51414
      case SUCCESS:
-
 
51415
        return isSetSuccess();
-
 
51416
      }
50955
      }
51417
      throw new IllegalStateException();
50956
      throw new IllegalStateException();
51418
    }
50957
    }
51419
 
50958
 
51420
    public boolean isSet(int fieldID) {
50959
    public boolean isSet(int fieldID) {
Line 51423... Line 50962...
51423
 
50962
 
51424
    @Override
50963
    @Override
51425
    public boolean equals(Object that) {
50964
    public boolean equals(Object that) {
51426
      if (that == null)
50965
      if (that == null)
51427
        return false;
50966
        return false;
51428
      if (that instanceof getUserNotes_result)
50967
      if (that instanceof updateBrowseHistory_result)
51429
        return this.equals((getUserNotes_result)that);
50968
        return this.equals((updateBrowseHistory_result)that);
51430
      return false;
50969
      return false;
51431
    }
50970
    }
51432
 
50971
 
51433
    public boolean equals(getUserNotes_result that) {
50972
    public boolean equals(updateBrowseHistory_result that) {
51434
      if (that == null)
50973
      if (that == null)
51435
        return false;
50974
        return false;
51436
 
50975
 
51437
      boolean this_present_success = true && this.isSetSuccess();
-
 
51438
      boolean that_present_success = true && that.isSetSuccess();
-
 
51439
      if (this_present_success || that_present_success) {
-
 
51440
        if (!(this_present_success && that_present_success))
-
 
51441
          return false;
-
 
51442
        if (!this.success.equals(that.success))
-
 
51443
          return false;
-
 
51444
      }
-
 
51445
 
-
 
51446
      return true;
50976
      return true;
51447
    }
50977
    }
51448
 
50978
 
51449
    @Override
50979
    @Override
51450
    public int hashCode() {
50980
    public int hashCode() {
51451
      return 0;
50981
      return 0;
51452
    }
50982
    }
51453
 
50983
 
51454
    public int compareTo(getUserNotes_result other) {
50984
    public int compareTo(updateBrowseHistory_result other) {
51455
      if (!getClass().equals(other.getClass())) {
50985
      if (!getClass().equals(other.getClass())) {
51456
        return getClass().getName().compareTo(other.getClass().getName());
50986
        return getClass().getName().compareTo(other.getClass().getName());
51457
      }
50987
      }
51458
 
50988
 
51459
      int lastComparison = 0;
50989
      int lastComparison = 0;
51460
      getUserNotes_result typedOther = (getUserNotes_result)other;
50990
      updateBrowseHistory_result typedOther = (updateBrowseHistory_result)other;
51461
 
50991
 
51462
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
51463
      if (lastComparison != 0) {
-
 
51464
        return lastComparison;
-
 
51465
      }
-
 
51466
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
51467
      if (lastComparison != 0) {
-
 
51468
        return lastComparison;
-
 
51469
      }
-
 
51470
      return 0;
50992
      return 0;
51471
    }
50993
    }
51472
 
50994
 
51473
    public void read(TProtocol iprot) throws TException {
50995
    public void read(TProtocol iprot) throws TException {
51474
      TField field;
50996
      TField field;
Line 51482... Line 51004...
51482
        _Fields fieldId = _Fields.findByThriftId(field.id);
51004
        _Fields fieldId = _Fields.findByThriftId(field.id);
51483
        if (fieldId == null) {
51005
        if (fieldId == null) {
51484
          TProtocolUtil.skip(iprot, field.type);
51006
          TProtocolUtil.skip(iprot, field.type);
51485
        } else {
51007
        } else {
51486
          switch (fieldId) {
51008
          switch (fieldId) {
51487
            case SUCCESS:
-
 
51488
              if (field.type == TType.LIST) {
-
 
51489
                {
-
 
51490
                  TList _list73 = iprot.readListBegin();
-
 
51491
                  this.success = new ArrayList<UserNote>(_list73.size);
-
 
51492
                  for (int _i74 = 0; _i74 < _list73.size; ++_i74)
-
 
51493
                  {
-
 
51494
                    UserNote _elem75;
-
 
51495
                    _elem75 = new UserNote();
-
 
51496
                    _elem75.read(iprot);
-
 
51497
                    this.success.add(_elem75);
-
 
51498
                  }
-
 
51499
                  iprot.readListEnd();
-
 
51500
                }
-
 
51501
              } else { 
-
 
51502
                TProtocolUtil.skip(iprot, field.type);
-
 
51503
              }
-
 
51504
              break;
-
 
51505
          }
51009
          }
51506
          iprot.readFieldEnd();
51010
          iprot.readFieldEnd();
51507
        }
51011
        }
51508
      }
51012
      }
51509
      iprot.readStructEnd();
51013
      iprot.readStructEnd();
Line 51511... Line 51015...
51511
    }
51015
    }
51512
 
51016
 
51513
    public void write(TProtocol oprot) throws TException {
51017
    public void write(TProtocol oprot) throws TException {
51514
      oprot.writeStructBegin(STRUCT_DESC);
51018
      oprot.writeStructBegin(STRUCT_DESC);
51515
 
51019
 
51516
      if (this.isSetSuccess()) {
-
 
51517
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
51518
        {
-
 
51519
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
-
 
51520
          for (UserNote _iter76 : this.success)
-
 
51521
          {
-
 
51522
            _iter76.write(oprot);
-
 
51523
          }
-
 
51524
          oprot.writeListEnd();
-
 
51525
        }
-
 
51526
        oprot.writeFieldEnd();
-
 
51527
      }
-
 
51528
      oprot.writeFieldStop();
51020
      oprot.writeFieldStop();
51529
      oprot.writeStructEnd();
51021
      oprot.writeStructEnd();
51530
    }
51022
    }
51531
 
51023
 
51532
    @Override
51024
    @Override
51533
    public String toString() {
51025
    public String toString() {
51534
      StringBuilder sb = new StringBuilder("getUserNotes_result(");
51026
      StringBuilder sb = new StringBuilder("updateBrowseHistory_result(");
51535
      boolean first = true;
51027
      boolean first = true;
51536
 
51028
 
51537
      sb.append("success:");
-
 
51538
      if (this.success == null) {
-
 
51539
        sb.append("null");
-
 
51540
      } else {
-
 
51541
        sb.append(this.success);
-
 
51542
      }
-
 
51543
      first = false;
-
 
51544
      sb.append(")");
51029
      sb.append(")");
51545
      return sb.toString();
51030
      return sb.toString();
51546
    }
51031
    }
51547
 
51032
 
51548
    public void validate() throws TException {
51033
    public void validate() throws TException {