Subversion Repositories SmartDukaan

Rev

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

Rev 7730 Rev 7742
Line 991... Line 991...
991
 
991
 
992
    public List<AmazonOrdersToAcknowledge> getAmazonOrdersToAcknowledge() throws org.apache.thrift.TException;
992
    public List<AmazonOrdersToAcknowledge> getAmazonOrdersToAcknowledge() throws org.apache.thrift.TException;
993
 
993
 
994
    public void changeAmazonOrderStatus(String amazonOrderCode, String status) throws org.apache.thrift.TException;
994
    public void changeAmazonOrderStatus(String amazonOrderCode, String status) throws org.apache.thrift.TException;
995
 
995
 
996
    public boolean updateTimestampForAmazonOrder(long orderId, long expectedDelivery, long promisedDelivery, long expectedShipping, long promisedShipping) throws org.apache.thrift.TException;
996
    public boolean updateTimestampForAmazonOrder(Map<Long,String> amazonOrderDelivery) throws org.apache.thrift.TException;
997
 
997
 
998
    public boolean updateSourceDetailTimestamp(long id, long lastUpdatedOn) throws org.apache.thrift.TException;
998
    public boolean updateSourceDetailTimestamp(long id, long lastUpdatedOn) throws org.apache.thrift.TException;
999
 
999
 
1000
    public List<Order> getOrdersByMobileNumber(String mobileNumber) throws org.apache.thrift.TException;
1000
    public List<Order> getOrdersByMobileNumber(String mobileNumber) throws org.apache.thrift.TException;
1001
 
1001
 
Line 1381... Line 1381...
1381
 
1381
 
1382
    public void getAmazonOrdersToAcknowledge(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAmazonOrdersToAcknowledge_call> resultHandler) throws org.apache.thrift.TException;
1382
    public void getAmazonOrdersToAcknowledge(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAmazonOrdersToAcknowledge_call> resultHandler) throws org.apache.thrift.TException;
1383
 
1383
 
1384
    public void changeAmazonOrderStatus(String amazonOrderCode, String status, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeAmazonOrderStatus_call> resultHandler) throws org.apache.thrift.TException;
1384
    public void changeAmazonOrderStatus(String amazonOrderCode, String status, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeAmazonOrderStatus_call> resultHandler) throws org.apache.thrift.TException;
1385
 
1385
 
1386
    public void updateTimestampForAmazonOrder(long orderId, long expectedDelivery, long promisedDelivery, long expectedShipping, long promisedShipping, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateTimestampForAmazonOrder_call> resultHandler) throws org.apache.thrift.TException;
1386
    public void updateTimestampForAmazonOrder(Map<Long,String> amazonOrderDelivery, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateTimestampForAmazonOrder_call> resultHandler) throws org.apache.thrift.TException;
1387
 
1387
 
1388
    public void updateSourceDetailTimestamp(long id, long lastUpdatedOn, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateSourceDetailTimestamp_call> resultHandler) throws org.apache.thrift.TException;
1388
    public void updateSourceDetailTimestamp(long id, long lastUpdatedOn, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateSourceDetailTimestamp_call> resultHandler) throws org.apache.thrift.TException;
1389
 
1389
 
1390
    public void getOrdersByMobileNumber(String mobileNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersByMobileNumber_call> resultHandler) throws org.apache.thrift.TException;
1390
    public void getOrdersByMobileNumber(String mobileNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersByMobileNumber_call> resultHandler) throws org.apache.thrift.TException;
1391
 
1391
 
Line 6100... Line 6100...
6100
      changeAmazonOrderStatus_result result = new changeAmazonOrderStatus_result();
6100
      changeAmazonOrderStatus_result result = new changeAmazonOrderStatus_result();
6101
      receiveBase(result, "changeAmazonOrderStatus");
6101
      receiveBase(result, "changeAmazonOrderStatus");
6102
      return;
6102
      return;
6103
    }
6103
    }
6104
 
6104
 
6105
    public boolean updateTimestampForAmazonOrder(long orderId, long expectedDelivery, long promisedDelivery, long expectedShipping, long promisedShipping) throws org.apache.thrift.TException
6105
    public boolean updateTimestampForAmazonOrder(Map<Long,String> amazonOrderDelivery) throws org.apache.thrift.TException
6106
    {
6106
    {
6107
      send_updateTimestampForAmazonOrder(orderId, expectedDelivery, promisedDelivery, expectedShipping, promisedShipping);
6107
      send_updateTimestampForAmazonOrder(amazonOrderDelivery);
6108
      return recv_updateTimestampForAmazonOrder();
6108
      return recv_updateTimestampForAmazonOrder();
6109
    }
6109
    }
6110
 
6110
 
6111
    public void send_updateTimestampForAmazonOrder(long orderId, long expectedDelivery, long promisedDelivery, long expectedShipping, long promisedShipping) throws org.apache.thrift.TException
6111
    public void send_updateTimestampForAmazonOrder(Map<Long,String> amazonOrderDelivery) throws org.apache.thrift.TException
6112
    {
6112
    {
6113
      updateTimestampForAmazonOrder_args args = new updateTimestampForAmazonOrder_args();
6113
      updateTimestampForAmazonOrder_args args = new updateTimestampForAmazonOrder_args();
6114
      args.setOrderId(orderId);
-
 
6115
      args.setExpectedDelivery(expectedDelivery);
-
 
6116
      args.setPromisedDelivery(promisedDelivery);
6114
      args.setAmazonOrderDelivery(amazonOrderDelivery);
6117
      args.setExpectedShipping(expectedShipping);
-
 
6118
      args.setPromisedShipping(promisedShipping);
-
 
6119
      sendBase("updateTimestampForAmazonOrder", args);
6115
      sendBase("updateTimestampForAmazonOrder", args);
6120
    }
6116
    }
6121
 
6117
 
6122
    public boolean recv_updateTimestampForAmazonOrder() throws org.apache.thrift.TException
6118
    public boolean recv_updateTimestampForAmazonOrder() throws org.apache.thrift.TException
6123
    {
6119
    {
Line 12803... Line 12799...
12803
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
12799
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
12804
        (new Client(prot)).recv_changeAmazonOrderStatus();
12800
        (new Client(prot)).recv_changeAmazonOrderStatus();
12805
      }
12801
      }
12806
    }
12802
    }
12807
 
12803
 
12808
    public void updateTimestampForAmazonOrder(long orderId, long expectedDelivery, long promisedDelivery, long expectedShipping, long promisedShipping, org.apache.thrift.async.AsyncMethodCallback<updateTimestampForAmazonOrder_call> resultHandler) throws org.apache.thrift.TException {
12804
    public void updateTimestampForAmazonOrder(Map<Long,String> amazonOrderDelivery, org.apache.thrift.async.AsyncMethodCallback<updateTimestampForAmazonOrder_call> resultHandler) throws org.apache.thrift.TException {
12809
      checkReady();
12805
      checkReady();
12810
      updateTimestampForAmazonOrder_call method_call = new updateTimestampForAmazonOrder_call(orderId, expectedDelivery, promisedDelivery, expectedShipping, promisedShipping, resultHandler, this, ___protocolFactory, ___transport);
12806
      updateTimestampForAmazonOrder_call method_call = new updateTimestampForAmazonOrder_call(amazonOrderDelivery, resultHandler, this, ___protocolFactory, ___transport);
12811
      this.___currentMethod = method_call;
12807
      this.___currentMethod = method_call;
12812
      ___manager.call(method_call);
12808
      ___manager.call(method_call);
12813
    }
12809
    }
12814
 
12810
 
12815
    public static class updateTimestampForAmazonOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
12811
    public static class updateTimestampForAmazonOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
12816
      private long orderId;
-
 
12817
      private long expectedDelivery;
-
 
12818
      private long promisedDelivery;
12812
      private Map<Long,String> amazonOrderDelivery;
12819
      private long expectedShipping;
-
 
12820
      private long promisedShipping;
-
 
12821
      public updateTimestampForAmazonOrder_call(long orderId, long expectedDelivery, long promisedDelivery, long expectedShipping, long promisedShipping, org.apache.thrift.async.AsyncMethodCallback<updateTimestampForAmazonOrder_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
12813
      public updateTimestampForAmazonOrder_call(Map<Long,String> amazonOrderDelivery, org.apache.thrift.async.AsyncMethodCallback<updateTimestampForAmazonOrder_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
12822
        super(client, protocolFactory, transport, resultHandler, false);
12814
        super(client, protocolFactory, transport, resultHandler, false);
12823
        this.orderId = orderId;
-
 
12824
        this.expectedDelivery = expectedDelivery;
-
 
12825
        this.promisedDelivery = promisedDelivery;
12815
        this.amazonOrderDelivery = amazonOrderDelivery;
12826
        this.expectedShipping = expectedShipping;
-
 
12827
        this.promisedShipping = promisedShipping;
-
 
12828
      }
12816
      }
12829
 
12817
 
12830
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
12818
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
12831
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateTimestampForAmazonOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
12819
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateTimestampForAmazonOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
12832
        updateTimestampForAmazonOrder_args args = new updateTimestampForAmazonOrder_args();
12820
        updateTimestampForAmazonOrder_args args = new updateTimestampForAmazonOrder_args();
12833
        args.setOrderId(orderId);
-
 
12834
        args.setExpectedDelivery(expectedDelivery);
-
 
12835
        args.setPromisedDelivery(promisedDelivery);
12821
        args.setAmazonOrderDelivery(amazonOrderDelivery);
12836
        args.setExpectedShipping(expectedShipping);
-
 
12837
        args.setPromisedShipping(promisedShipping);
-
 
12838
        args.write(prot);
12822
        args.write(prot);
12839
        prot.writeMessageEnd();
12823
        prot.writeMessageEnd();
12840
      }
12824
      }
12841
 
12825
 
12842
      public boolean getResult() throws org.apache.thrift.TException {
12826
      public boolean getResult() throws org.apache.thrift.TException {
Line 16647... Line 16631...
16647
        return new updateTimestampForAmazonOrder_args();
16631
        return new updateTimestampForAmazonOrder_args();
16648
      }
16632
      }
16649
 
16633
 
16650
      protected updateTimestampForAmazonOrder_result getResult(I iface, updateTimestampForAmazonOrder_args args) throws org.apache.thrift.TException {
16634
      protected updateTimestampForAmazonOrder_result getResult(I iface, updateTimestampForAmazonOrder_args args) throws org.apache.thrift.TException {
16651
        updateTimestampForAmazonOrder_result result = new updateTimestampForAmazonOrder_result();
16635
        updateTimestampForAmazonOrder_result result = new updateTimestampForAmazonOrder_result();
16652
        result.success = iface.updateTimestampForAmazonOrder(args.orderId, args.expectedDelivery, args.promisedDelivery, args.expectedShipping, args.promisedShipping);
16636
        result.success = iface.updateTimestampForAmazonOrder(args.amazonOrderDelivery);
16653
        result.setSuccessIsSet(true);
16637
        result.setSuccessIsSet(true);
16654
        return result;
16638
        return result;
16655
      }
16639
      }
16656
    }
16640
    }
16657
 
16641
 
Line 66192... Line 66176...
66192
      }
66176
      }
66193
    }
66177
    }
66194
 
66178
 
66195
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
66179
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
66196
      try {
66180
      try {
66197
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
66198
        __isset_bit_vector = new BitSet(1);
-
 
66199
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
66181
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
66200
      } catch (org.apache.thrift.TException te) {
66182
      } catch (org.apache.thrift.TException te) {
66201
        throw new java.io.IOException(te);
66183
        throw new java.io.IOException(te);
66202
      }
66184
      }
66203
    }
66185
    }
Line 66950... Line 66932...
66950
      }
66932
      }
66951
    }
66933
    }
66952
 
66934
 
66953
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
66935
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
66954
      try {
66936
      try {
66955
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
66956
        __isset_bit_vector = new BitSet(1);
-
 
66957
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
66937
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
66958
      } catch (org.apache.thrift.TException te) {
66938
      } catch (org.apache.thrift.TException te) {
66959
        throw new java.io.IOException(te);
66939
        throw new java.io.IOException(te);
66960
      }
66940
      }
66961
    }
66941
    }
Line 67625... Line 67605...
67625
      }
67605
      }
67626
    }
67606
    }
67627
 
67607
 
67628
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
67608
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
67629
      try {
67609
      try {
67630
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
67631
        __isset_bit_vector = new BitSet(1);
-
 
67632
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
67610
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
67633
      } catch (org.apache.thrift.TException te) {
67611
      } catch (org.apache.thrift.TException te) {
67634
        throw new java.io.IOException(te);
67612
        throw new java.io.IOException(te);
67635
      }
67613
      }
67636
    }
67614
    }
Line 77726... Line 77704...
77726
      }
77704
      }
77727
    }
77705
    }
77728
 
77706
 
77729
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
77707
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
77730
      try {
77708
      try {
-
 
77709
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
77710
        __isset_bit_vector = new BitSet(1);
77731
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
77711
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
77732
      } catch (org.apache.thrift.TException te) {
77712
      } catch (org.apache.thrift.TException te) {
77733
        throw new java.io.IOException(te);
77713
        throw new java.io.IOException(te);
77734
      }
77714
      }
77735
    }
77715
    }
Line 106658... Line 106638...
106658
      }
106638
      }
106659
    }
106639
    }
106660
 
106640
 
106661
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
106641
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
106662
      try {
106642
      try {
106663
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
106664
        __isset_bit_vector = new BitSet(1);
-
 
106665
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
106643
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
106666
      } catch (org.apache.thrift.TException te) {
106644
      } catch (org.apache.thrift.TException te) {
106667
        throw new java.io.IOException(te);
106645
        throw new java.io.IOException(te);
106668
      }
106646
      }
106669
    }
106647
    }
Line 151733... Line 151711...
151733
  }
151711
  }
151734
 
151712
 
151735
  public static class updateTimestampForAmazonOrder_args implements org.apache.thrift.TBase<updateTimestampForAmazonOrder_args, updateTimestampForAmazonOrder_args._Fields>, java.io.Serializable, Cloneable   {
151713
  public static class updateTimestampForAmazonOrder_args implements org.apache.thrift.TBase<updateTimestampForAmazonOrder_args, updateTimestampForAmazonOrder_args._Fields>, java.io.Serializable, Cloneable   {
151736
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateTimestampForAmazonOrder_args");
151714
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateTimestampForAmazonOrder_args");
151737
 
151715
 
151738
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
151739
    private static final org.apache.thrift.protocol.TField EXPECTED_DELIVERY_FIELD_DESC = new org.apache.thrift.protocol.TField("expectedDelivery", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
151740
    private static final org.apache.thrift.protocol.TField PROMISED_DELIVERY_FIELD_DESC = new org.apache.thrift.protocol.TField("promisedDelivery", org.apache.thrift.protocol.TType.I64, (short)3);
151716
    private static final org.apache.thrift.protocol.TField AMAZON_ORDER_DELIVERY_FIELD_DESC = new org.apache.thrift.protocol.TField("amazonOrderDelivery", org.apache.thrift.protocol.TType.MAP, (short)1);
151741
    private static final org.apache.thrift.protocol.TField EXPECTED_SHIPPING_FIELD_DESC = new org.apache.thrift.protocol.TField("expectedShipping", org.apache.thrift.protocol.TType.I64, (short)4);
-
 
151742
    private static final org.apache.thrift.protocol.TField PROMISED_SHIPPING_FIELD_DESC = new org.apache.thrift.protocol.TField("promisedShipping", org.apache.thrift.protocol.TType.I64, (short)5);
-
 
151743
 
151717
 
151744
    private long orderId; // required
-
 
151745
    private long expectedDelivery; // required
-
 
151746
    private long promisedDelivery; // required
151718
    private Map<Long,String> amazonOrderDelivery; // required
151747
    private long expectedShipping; // required
-
 
151748
    private long promisedShipping; // required
-
 
151749
 
151719
 
151750
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
151720
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
151751
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
151721
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
151752
      ORDER_ID((short)1, "orderId"),
-
 
151753
      EXPECTED_DELIVERY((short)2, "expectedDelivery"),
-
 
151754
      PROMISED_DELIVERY((short)3, "promisedDelivery"),
151722
      AMAZON_ORDER_DELIVERY((short)1, "amazonOrderDelivery");
151755
      EXPECTED_SHIPPING((short)4, "expectedShipping"),
-
 
151756
      PROMISED_SHIPPING((short)5, "promisedShipping");
-
 
151757
 
151723
 
151758
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
151724
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
151759
 
151725
 
151760
      static {
151726
      static {
151761
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
151727
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 151766... Line 151732...
151766
      /**
151732
      /**
151767
       * Find the _Fields constant that matches fieldId, or null if its not found.
151733
       * Find the _Fields constant that matches fieldId, or null if its not found.
151768
       */
151734
       */
151769
      public static _Fields findByThriftId(int fieldId) {
151735
      public static _Fields findByThriftId(int fieldId) {
151770
        switch(fieldId) {
151736
        switch(fieldId) {
151771
          case 1: // ORDER_ID
-
 
151772
            return ORDER_ID;
-
 
151773
          case 2: // EXPECTED_DELIVERY
-
 
151774
            return EXPECTED_DELIVERY;
-
 
151775
          case 3: // PROMISED_DELIVERY
151737
          case 1: // AMAZON_ORDER_DELIVERY
151776
            return PROMISED_DELIVERY;
151738
            return AMAZON_ORDER_DELIVERY;
151777
          case 4: // EXPECTED_SHIPPING
-
 
151778
            return EXPECTED_SHIPPING;
-
 
151779
          case 5: // PROMISED_SHIPPING
-
 
151780
            return PROMISED_SHIPPING;
-
 
151781
          default:
151739
          default:
151782
            return null;
151740
            return null;
151783
        }
151741
        }
151784
      }
151742
      }
151785
 
151743
 
Line 151816... Line 151774...
151816
        return _fieldName;
151774
        return _fieldName;
151817
      }
151775
      }
151818
    }
151776
    }
151819
 
151777
 
151820
    // isset id assignments
151778
    // isset id assignments
151821
    private static final int __ORDERID_ISSET_ID = 0;
-
 
151822
    private static final int __EXPECTEDDELIVERY_ISSET_ID = 1;
-
 
151823
    private static final int __PROMISEDDELIVERY_ISSET_ID = 2;
-
 
151824
    private static final int __EXPECTEDSHIPPING_ISSET_ID = 3;
-
 
151825
    private static final int __PROMISEDSHIPPING_ISSET_ID = 4;
-
 
151826
    private BitSet __isset_bit_vector = new BitSet(5);
-
 
151827
 
151779
 
151828
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
151780
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
151829
    static {
151781
    static {
151830
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
151782
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
151831
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
151832
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
151833
      tmpMap.put(_Fields.EXPECTED_DELIVERY, new org.apache.thrift.meta_data.FieldMetaData("expectedDelivery", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
151834
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
151835
      tmpMap.put(_Fields.PROMISED_DELIVERY, new org.apache.thrift.meta_data.FieldMetaData("promisedDelivery", org.apache.thrift.TFieldRequirementType.DEFAULT, 
151783
      tmpMap.put(_Fields.AMAZON_ORDER_DELIVERY, new org.apache.thrift.meta_data.FieldMetaData("amazonOrderDelivery", org.apache.thrift.TFieldRequirementType.DEFAULT, 
151836
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
151784
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
151837
      tmpMap.put(_Fields.EXPECTED_SHIPPING, new org.apache.thrift.meta_data.FieldMetaData("expectedShipping", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
151838
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
151785
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
151839
      tmpMap.put(_Fields.PROMISED_SHIPPING, new org.apache.thrift.meta_data.FieldMetaData("promisedShipping", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
151840
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
151786
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
151841
      metaDataMap = Collections.unmodifiableMap(tmpMap);
151787
      metaDataMap = Collections.unmodifiableMap(tmpMap);
151842
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateTimestampForAmazonOrder_args.class, metaDataMap);
151788
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateTimestampForAmazonOrder_args.class, metaDataMap);
151843
    }
151789
    }
151844
 
151790
 
151845
    public updateTimestampForAmazonOrder_args() {
151791
    public updateTimestampForAmazonOrder_args() {
151846
    }
151792
    }
151847
 
151793
 
151848
    public updateTimestampForAmazonOrder_args(
151794
    public updateTimestampForAmazonOrder_args(
151849
      long orderId,
-
 
151850
      long expectedDelivery,
-
 
151851
      long promisedDelivery,
151795
      Map<Long,String> amazonOrderDelivery)
151852
      long expectedShipping,
-
 
151853
      long promisedShipping)
-
 
151854
    {
151796
    {
151855
      this();
151797
      this();
151856
      this.orderId = orderId;
-
 
151857
      setOrderIdIsSet(true);
-
 
151858
      this.expectedDelivery = expectedDelivery;
-
 
151859
      setExpectedDeliveryIsSet(true);
-
 
151860
      this.promisedDelivery = promisedDelivery;
151798
      this.amazonOrderDelivery = amazonOrderDelivery;
151861
      setPromisedDeliveryIsSet(true);
-
 
151862
      this.expectedShipping = expectedShipping;
-
 
151863
      setExpectedShippingIsSet(true);
-
 
151864
      this.promisedShipping = promisedShipping;
-
 
151865
      setPromisedShippingIsSet(true);
-
 
151866
    }
151799
    }
151867
 
151800
 
151868
    /**
151801
    /**
151869
     * Performs a deep copy on <i>other</i>.
151802
     * Performs a deep copy on <i>other</i>.
151870
     */
151803
     */
151871
    public updateTimestampForAmazonOrder_args(updateTimestampForAmazonOrder_args other) {
151804
    public updateTimestampForAmazonOrder_args(updateTimestampForAmazonOrder_args other) {
151872
      __isset_bit_vector.clear();
-
 
151873
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
151874
      this.orderId = other.orderId;
-
 
151875
      this.expectedDelivery = other.expectedDelivery;
151805
      if (other.isSetAmazonOrderDelivery()) {
151876
      this.promisedDelivery = other.promisedDelivery;
151806
        Map<Long,String> __this__amazonOrderDelivery = new HashMap<Long,String>();
151877
      this.expectedShipping = other.expectedShipping;
-
 
151878
      this.promisedShipping = other.promisedShipping;
-
 
151879
    }
-
 
151880
 
-
 
151881
    public updateTimestampForAmazonOrder_args deepCopy() {
-
 
151882
      return new updateTimestampForAmazonOrder_args(this);
151807
        for (Map.Entry<Long, String> other_element : other.amazonOrderDelivery.entrySet()) {
151883
    }
-
 
151884
 
-
 
151885
    @Override
-
 
151886
    public void clear() {
-
 
151887
      setOrderIdIsSet(false);
-
 
151888
      this.orderId = 0;
-
 
151889
      setExpectedDeliveryIsSet(false);
-
 
151890
      this.expectedDelivery = 0;
-
 
151891
      setPromisedDeliveryIsSet(false);
-
 
151892
      this.promisedDelivery = 0;
-
 
151893
      setExpectedShippingIsSet(false);
-
 
151894
      this.expectedShipping = 0;
-
 
151895
      setPromisedShippingIsSet(false);
-
 
151896
      this.promisedShipping = 0;
-
 
151897
    }
-
 
151898
 
-
 
151899
    public long getOrderId() {
-
 
151900
      return this.orderId;
-
 
151901
    }
-
 
151902
 
-
 
151903
    public void setOrderId(long orderId) {
-
 
151904
      this.orderId = orderId;
-
 
151905
      setOrderIdIsSet(true);
-
 
151906
    }
-
 
151907
 
-
 
151908
    public void unsetOrderId() {
-
 
151909
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
-
 
151910
    }
-
 
151911
 
151808
 
151912
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
-
 
151913
    public boolean isSetOrderId() {
-
 
151914
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
-
 
151915
    }
-
 
151916
 
-
 
151917
    public void setOrderIdIsSet(boolean value) {
-
 
151918
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
151919
    }
-
 
151920
 
-
 
151921
    public long getExpectedDelivery() {
-
 
151922
      return this.expectedDelivery;
-
 
151923
    }
-
 
151924
 
-
 
151925
    public void setExpectedDelivery(long expectedDelivery) {
-
 
151926
      this.expectedDelivery = expectedDelivery;
151809
          Long other_element_key = other_element.getKey();
151927
      setExpectedDeliveryIsSet(true);
-
 
151928
    }
-
 
151929
 
-
 
151930
    public void unsetExpectedDelivery() {
-
 
151931
      __isset_bit_vector.clear(__EXPECTEDDELIVERY_ISSET_ID);
-
 
151932
    }
-
 
151933
 
-
 
151934
    /** Returns true if field expectedDelivery is set (has been assigned a value) and false otherwise */
-
 
151935
    public boolean isSetExpectedDelivery() {
-
 
151936
      return __isset_bit_vector.get(__EXPECTEDDELIVERY_ISSET_ID);
-
 
151937
    }
-
 
151938
 
-
 
151939
    public void setExpectedDeliveryIsSet(boolean value) {
-
 
151940
      __isset_bit_vector.set(__EXPECTEDDELIVERY_ISSET_ID, value);
151810
          String other_element_value = other_element.getValue();
151941
    }
-
 
151942
 
-
 
151943
    public long getPromisedDelivery() {
-
 
151944
      return this.promisedDelivery;
-
 
151945
    }
-
 
151946
 
-
 
151947
    public void setPromisedDelivery(long promisedDelivery) {
-
 
151948
      this.promisedDelivery = promisedDelivery;
-
 
151949
      setPromisedDeliveryIsSet(true);
-
 
151950
    }
-
 
151951
 
-
 
151952
    public void unsetPromisedDelivery() {
-
 
151953
      __isset_bit_vector.clear(__PROMISEDDELIVERY_ISSET_ID);
-
 
151954
    }
-
 
151955
 
151811
 
151956
    /** Returns true if field promisedDelivery is set (has been assigned a value) and false otherwise */
-
 
151957
    public boolean isSetPromisedDelivery() {
-
 
151958
      return __isset_bit_vector.get(__PROMISEDDELIVERY_ISSET_ID);
151812
          Long __this__amazonOrderDelivery_copy_key = other_element_key;
151959
    }
-
 
151960
 
151813
 
151961
    public void setPromisedDeliveryIsSet(boolean value) {
151814
          String __this__amazonOrderDelivery_copy_value = other_element_value;
151962
      __isset_bit_vector.set(__PROMISEDDELIVERY_ISSET_ID, value);
-
 
151963
    }
-
 
151964
 
151815
 
-
 
151816
          __this__amazonOrderDelivery.put(__this__amazonOrderDelivery_copy_key, __this__amazonOrderDelivery_copy_value);
151965
    public long getExpectedShipping() {
151817
        }
151966
      return this.expectedShipping;
151818
        this.amazonOrderDelivery = __this__amazonOrderDelivery;
-
 
151819
      }
151967
    }
151820
    }
151968
 
151821
 
151969
    public void setExpectedShipping(long expectedShipping) {
151822
    public updateTimestampForAmazonOrder_args deepCopy() {
151970
      this.expectedShipping = expectedShipping;
151823
      return new updateTimestampForAmazonOrder_args(this);
151971
      setExpectedShippingIsSet(true);
-
 
151972
    }
151824
    }
151973
 
151825
 
-
 
151826
    @Override
151974
    public void unsetExpectedShipping() {
151827
    public void clear() {
151975
      __isset_bit_vector.clear(__EXPECTEDSHIPPING_ISSET_ID);
151828
      this.amazonOrderDelivery = null;
151976
    }
151829
    }
151977
 
151830
 
151978
    /** Returns true if field expectedShipping is set (has been assigned a value) and false otherwise */
-
 
151979
    public boolean isSetExpectedShipping() {
151831
    public int getAmazonOrderDeliverySize() {
151980
      return __isset_bit_vector.get(__EXPECTEDSHIPPING_ISSET_ID);
151832
      return (this.amazonOrderDelivery == null) ? 0 : this.amazonOrderDelivery.size();
151981
    }
151833
    }
151982
 
151834
 
151983
    public void setExpectedShippingIsSet(boolean value) {
151835
    public void putToAmazonOrderDelivery(long key, String val) {
-
 
151836
      if (this.amazonOrderDelivery == null) {
151984
      __isset_bit_vector.set(__EXPECTEDSHIPPING_ISSET_ID, value);
151837
        this.amazonOrderDelivery = new HashMap<Long,String>();
-
 
151838
      }
-
 
151839
      this.amazonOrderDelivery.put(key, val);
151985
    }
151840
    }
151986
 
151841
 
151987
    public long getPromisedShipping() {
151842
    public Map<Long,String> getAmazonOrderDelivery() {
151988
      return this.promisedShipping;
151843
      return this.amazonOrderDelivery;
151989
    }
151844
    }
151990
 
151845
 
151991
    public void setPromisedShipping(long promisedShipping) {
151846
    public void setAmazonOrderDelivery(Map<Long,String> amazonOrderDelivery) {
151992
      this.promisedShipping = promisedShipping;
151847
      this.amazonOrderDelivery = amazonOrderDelivery;
151993
      setPromisedShippingIsSet(true);
-
 
151994
    }
151848
    }
151995
 
151849
 
151996
    public void unsetPromisedShipping() {
151850
    public void unsetAmazonOrderDelivery() {
151997
      __isset_bit_vector.clear(__PROMISEDSHIPPING_ISSET_ID);
151851
      this.amazonOrderDelivery = null;
151998
    }
151852
    }
151999
 
151853
 
152000
    /** Returns true if field promisedShipping is set (has been assigned a value) and false otherwise */
151854
    /** Returns true if field amazonOrderDelivery is set (has been assigned a value) and false otherwise */
152001
    public boolean isSetPromisedShipping() {
151855
    public boolean isSetAmazonOrderDelivery() {
152002
      return __isset_bit_vector.get(__PROMISEDSHIPPING_ISSET_ID);
151856
      return this.amazonOrderDelivery != null;
152003
    }
151857
    }
152004
 
151858
 
152005
    public void setPromisedShippingIsSet(boolean value) {
151859
    public void setAmazonOrderDeliveryIsSet(boolean value) {
-
 
151860
      if (!value) {
152006
      __isset_bit_vector.set(__PROMISEDSHIPPING_ISSET_ID, value);
151861
        this.amazonOrderDelivery = null;
-
 
151862
      }
152007
    }
151863
    }
152008
 
151864
 
152009
    public void setFieldValue(_Fields field, Object value) {
151865
    public void setFieldValue(_Fields field, Object value) {
152010
      switch (field) {
151866
      switch (field) {
152011
      case ORDER_ID:
-
 
152012
        if (value == null) {
-
 
152013
          unsetOrderId();
-
 
152014
        } else {
-
 
152015
          setOrderId((Long)value);
-
 
152016
        }
-
 
152017
        break;
-
 
152018
 
-
 
152019
      case EXPECTED_DELIVERY:
-
 
152020
        if (value == null) {
-
 
152021
          unsetExpectedDelivery();
-
 
152022
        } else {
-
 
152023
          setExpectedDelivery((Long)value);
-
 
152024
        }
-
 
152025
        break;
-
 
152026
 
-
 
152027
      case PROMISED_DELIVERY:
151867
      case AMAZON_ORDER_DELIVERY:
152028
        if (value == null) {
-
 
152029
          unsetPromisedDelivery();
-
 
152030
        } else {
-
 
152031
          setPromisedDelivery((Long)value);
-
 
152032
        }
-
 
152033
        break;
-
 
152034
 
-
 
152035
      case EXPECTED_SHIPPING:
-
 
152036
        if (value == null) {
-
 
152037
          unsetExpectedShipping();
-
 
152038
        } else {
-
 
152039
          setExpectedShipping((Long)value);
-
 
152040
        }
-
 
152041
        break;
-
 
152042
 
-
 
152043
      case PROMISED_SHIPPING:
-
 
152044
        if (value == null) {
151868
        if (value == null) {
152045
          unsetPromisedShipping();
151869
          unsetAmazonOrderDelivery();
152046
        } else {
151870
        } else {
152047
          setPromisedShipping((Long)value);
151871
          setAmazonOrderDelivery((Map<Long,String>)value);
152048
        }
151872
        }
152049
        break;
151873
        break;
152050
 
151874
 
152051
      }
151875
      }
152052
    }
151876
    }
152053
 
151877
 
152054
    public Object getFieldValue(_Fields field) {
151878
    public Object getFieldValue(_Fields field) {
152055
      switch (field) {
151879
      switch (field) {
152056
      case ORDER_ID:
-
 
152057
        return Long.valueOf(getOrderId());
-
 
152058
 
-
 
152059
      case EXPECTED_DELIVERY:
-
 
152060
        return Long.valueOf(getExpectedDelivery());
-
 
152061
 
-
 
152062
      case PROMISED_DELIVERY:
151880
      case AMAZON_ORDER_DELIVERY:
152063
        return Long.valueOf(getPromisedDelivery());
151881
        return getAmazonOrderDelivery();
152064
 
-
 
152065
      case EXPECTED_SHIPPING:
-
 
152066
        return Long.valueOf(getExpectedShipping());
-
 
152067
 
-
 
152068
      case PROMISED_SHIPPING:
-
 
152069
        return Long.valueOf(getPromisedShipping());
-
 
152070
 
151882
 
152071
      }
151883
      }
152072
      throw new IllegalStateException();
151884
      throw new IllegalStateException();
152073
    }
151885
    }
152074
 
151886
 
Line 152077... Line 151889...
152077
      if (field == null) {
151889
      if (field == null) {
152078
        throw new IllegalArgumentException();
151890
        throw new IllegalArgumentException();
152079
      }
151891
      }
152080
 
151892
 
152081
      switch (field) {
151893
      switch (field) {
152082
      case ORDER_ID:
-
 
152083
        return isSetOrderId();
-
 
152084
      case EXPECTED_DELIVERY:
-
 
152085
        return isSetExpectedDelivery();
-
 
152086
      case PROMISED_DELIVERY:
151894
      case AMAZON_ORDER_DELIVERY:
152087
        return isSetPromisedDelivery();
151895
        return isSetAmazonOrderDelivery();
152088
      case EXPECTED_SHIPPING:
-
 
152089
        return isSetExpectedShipping();
-
 
152090
      case PROMISED_SHIPPING:
-
 
152091
        return isSetPromisedShipping();
-
 
152092
      }
151896
      }
152093
      throw new IllegalStateException();
151897
      throw new IllegalStateException();
152094
    }
151898
    }
152095
 
151899
 
152096
    @Override
151900
    @Override
Line 152104... Line 151908...
152104
 
151908
 
152105
    public boolean equals(updateTimestampForAmazonOrder_args that) {
151909
    public boolean equals(updateTimestampForAmazonOrder_args that) {
152106
      if (that == null)
151910
      if (that == null)
152107
        return false;
151911
        return false;
152108
 
151912
 
152109
      boolean this_present_orderId = true;
-
 
152110
      boolean that_present_orderId = true;
-
 
152111
      if (this_present_orderId || that_present_orderId) {
-
 
152112
        if (!(this_present_orderId && that_present_orderId))
-
 
152113
          return false;
-
 
152114
        if (this.orderId != that.orderId)
-
 
152115
          return false;
-
 
152116
      }
-
 
152117
 
-
 
152118
      boolean this_present_expectedDelivery = true;
-
 
152119
      boolean that_present_expectedDelivery = true;
-
 
152120
      if (this_present_expectedDelivery || that_present_expectedDelivery) {
151913
      boolean this_present_amazonOrderDelivery = true && this.isSetAmazonOrderDelivery();
152121
        if (!(this_present_expectedDelivery && that_present_expectedDelivery))
151914
      boolean that_present_amazonOrderDelivery = true && that.isSetAmazonOrderDelivery();
152122
          return false;
-
 
152123
        if (this.expectedDelivery != that.expectedDelivery)
-
 
152124
          return false;
-
 
152125
      }
-
 
152126
 
-
 
152127
      boolean this_present_promisedDelivery = true;
-
 
152128
      boolean that_present_promisedDelivery = true;
-
 
152129
      if (this_present_promisedDelivery || that_present_promisedDelivery) {
151915
      if (this_present_amazonOrderDelivery || that_present_amazonOrderDelivery) {
152130
        if (!(this_present_promisedDelivery && that_present_promisedDelivery))
151916
        if (!(this_present_amazonOrderDelivery && that_present_amazonOrderDelivery))
152131
          return false;
151917
          return false;
152132
        if (this.promisedDelivery != that.promisedDelivery)
151918
        if (!this.amazonOrderDelivery.equals(that.amazonOrderDelivery))
152133
          return false;
-
 
152134
      }
-
 
152135
 
-
 
152136
      boolean this_present_expectedShipping = true;
-
 
152137
      boolean that_present_expectedShipping = true;
-
 
152138
      if (this_present_expectedShipping || that_present_expectedShipping) {
-
 
152139
        if (!(this_present_expectedShipping && that_present_expectedShipping))
-
 
152140
          return false;
-
 
152141
        if (this.expectedShipping != that.expectedShipping)
-
 
152142
          return false;
-
 
152143
      }
-
 
152144
 
-
 
152145
      boolean this_present_promisedShipping = true;
-
 
152146
      boolean that_present_promisedShipping = true;
-
 
152147
      if (this_present_promisedShipping || that_present_promisedShipping) {
-
 
152148
        if (!(this_present_promisedShipping && that_present_promisedShipping))
-
 
152149
          return false;
-
 
152150
        if (this.promisedShipping != that.promisedShipping)
-
 
152151
          return false;
151919
          return false;
152152
      }
151920
      }
152153
 
151921
 
152154
      return true;
151922
      return true;
152155
    }
151923
    }
Line 152165... Line 151933...
152165
      }
151933
      }
152166
 
151934
 
152167
      int lastComparison = 0;
151935
      int lastComparison = 0;
152168
      updateTimestampForAmazonOrder_args typedOther = (updateTimestampForAmazonOrder_args)other;
151936
      updateTimestampForAmazonOrder_args typedOther = (updateTimestampForAmazonOrder_args)other;
152169
 
151937
 
152170
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
-
 
152171
      if (lastComparison != 0) {
-
 
152172
        return lastComparison;
-
 
152173
      }
-
 
152174
      if (isSetOrderId()) {
-
 
152175
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
-
 
152176
        if (lastComparison != 0) {
-
 
152177
          return lastComparison;
-
 
152178
        }
-
 
152179
      }
-
 
152180
      lastComparison = Boolean.valueOf(isSetExpectedDelivery()).compareTo(typedOther.isSetExpectedDelivery());
-
 
152181
      if (lastComparison != 0) {
-
 
152182
        return lastComparison;
-
 
152183
      }
-
 
152184
      if (isSetExpectedDelivery()) {
-
 
152185
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.expectedDelivery, typedOther.expectedDelivery);
-
 
152186
        if (lastComparison != 0) {
-
 
152187
          return lastComparison;
-
 
152188
        }
-
 
152189
      }
-
 
152190
      lastComparison = Boolean.valueOf(isSetPromisedDelivery()).compareTo(typedOther.isSetPromisedDelivery());
151938
      lastComparison = Boolean.valueOf(isSetAmazonOrderDelivery()).compareTo(typedOther.isSetAmazonOrderDelivery());
152191
      if (lastComparison != 0) {
-
 
152192
        return lastComparison;
-
 
152193
      }
-
 
152194
      if (isSetPromisedDelivery()) {
-
 
152195
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.promisedDelivery, typedOther.promisedDelivery);
-
 
152196
        if (lastComparison != 0) {
-
 
152197
          return lastComparison;
-
 
152198
        }
-
 
152199
      }
-
 
152200
      lastComparison = Boolean.valueOf(isSetExpectedShipping()).compareTo(typedOther.isSetExpectedShipping());
-
 
152201
      if (lastComparison != 0) {
-
 
152202
        return lastComparison;
-
 
152203
      }
-
 
152204
      if (isSetExpectedShipping()) {
-
 
152205
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.expectedShipping, typedOther.expectedShipping);
-
 
152206
        if (lastComparison != 0) {
-
 
152207
          return lastComparison;
-
 
152208
        }
-
 
152209
      }
-
 
152210
      lastComparison = Boolean.valueOf(isSetPromisedShipping()).compareTo(typedOther.isSetPromisedShipping());
-
 
152211
      if (lastComparison != 0) {
151939
      if (lastComparison != 0) {
152212
        return lastComparison;
151940
        return lastComparison;
152213
      }
151941
      }
152214
      if (isSetPromisedShipping()) {
151942
      if (isSetAmazonOrderDelivery()) {
152215
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.promisedShipping, typedOther.promisedShipping);
151943
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amazonOrderDelivery, typedOther.amazonOrderDelivery);
152216
        if (lastComparison != 0) {
151944
        if (lastComparison != 0) {
152217
          return lastComparison;
151945
          return lastComparison;
152218
        }
151946
        }
152219
      }
151947
      }
152220
      return 0;
151948
      return 0;
Line 152232... Line 151960...
152232
        field = iprot.readFieldBegin();
151960
        field = iprot.readFieldBegin();
152233
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
151961
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
152234
          break;
151962
          break;
152235
        }
151963
        }
152236
        switch (field.id) {
151964
        switch (field.id) {
152237
          case 1: // ORDER_ID
151965
          case 1: // AMAZON_ORDER_DELIVERY
152238
            if (field.type == org.apache.thrift.protocol.TType.I64) {
151966
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
152239
              this.orderId = iprot.readI64();
-
 
152240
              setOrderIdIsSet(true);
-
 
152241
            } else { 
151967
              {
152242
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
151968
                org.apache.thrift.protocol.TMap _map474 = iprot.readMapBegin();
152243
            }
-
 
152244
            break;
-
 
152245
          case 2: // EXPECTED_DELIVERY
-
 
152246
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
152247
              this.expectedDelivery = iprot.readI64();
151969
                this.amazonOrderDelivery = new HashMap<Long,String>(2*_map474.size);
152248
              setExpectedDeliveryIsSet(true);
-
 
152249
            } else { 
-
 
152250
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
151970
                for (int _i475 = 0; _i475 < _map474.size; ++_i475)
152251
            }
151971
                {
152252
            break;
-
 
152253
          case 3: // PROMISED_DELIVERY
151972
                  long _key476; // required
152254
            if (field.type == org.apache.thrift.protocol.TType.I64) {
151973
                  String _val477; // required
152255
              this.promisedDelivery = iprot.readI64();
151974
                  _key476 = iprot.readI64();
152256
              setPromisedDeliveryIsSet(true);
151975
                  _val477 = iprot.readString();
152257
            } else { 
-
 
152258
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
151976
                  this.amazonOrderDelivery.put(_key476, _val477);
152259
            }
151977
                }
152260
            break;
-
 
152261
          case 4: // EXPECTED_SHIPPING
-
 
152262
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
152263
              this.expectedShipping = iprot.readI64();
-
 
152264
              setExpectedShippingIsSet(true);
151978
                iprot.readMapEnd();
152265
            } else { 
-
 
152266
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
152267
            }
151979
              }
152268
            break;
-
 
152269
          case 5: // PROMISED_SHIPPING
-
 
152270
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
152271
              this.promisedShipping = iprot.readI64();
-
 
152272
              setPromisedShippingIsSet(true);
-
 
152273
            } else { 
151980
            } else { 
152274
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
151981
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
152275
            }
151982
            }
152276
            break;
151983
            break;
152277
          default:
151984
          default:
Line 152285... Line 151992...
152285
 
151992
 
152286
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
151993
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
152287
      validate();
151994
      validate();
152288
 
151995
 
152289
      oprot.writeStructBegin(STRUCT_DESC);
151996
      oprot.writeStructBegin(STRUCT_DESC);
152290
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
152291
      oprot.writeI64(this.orderId);
-
 
152292
      oprot.writeFieldEnd();
151997
      if (this.amazonOrderDelivery != null) {
152293
      oprot.writeFieldBegin(EXPECTED_DELIVERY_FIELD_DESC);
151998
        oprot.writeFieldBegin(AMAZON_ORDER_DELIVERY_FIELD_DESC);
152294
      oprot.writeI64(this.expectedDelivery);
-
 
152295
      oprot.writeFieldEnd();
151999
        {
152296
      oprot.writeFieldBegin(PROMISED_DELIVERY_FIELD_DESC);
152000
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, this.amazonOrderDelivery.size()));
152297
      oprot.writeI64(this.promisedDelivery);
152001
          for (Map.Entry<Long, String> _iter478 : this.amazonOrderDelivery.entrySet())
152298
      oprot.writeFieldEnd();
152002
          {
152299
      oprot.writeFieldBegin(EXPECTED_SHIPPING_FIELD_DESC);
152003
            oprot.writeI64(_iter478.getKey());
152300
      oprot.writeI64(this.expectedShipping);
152004
            oprot.writeString(_iter478.getValue());
-
 
152005
          }
152301
      oprot.writeFieldEnd();
152006
          oprot.writeMapEnd();
152302
      oprot.writeFieldBegin(PROMISED_SHIPPING_FIELD_DESC);
-
 
152303
      oprot.writeI64(this.promisedShipping);
152007
        }
152304
      oprot.writeFieldEnd();
152008
        oprot.writeFieldEnd();
-
 
152009
      }
152305
      oprot.writeFieldStop();
152010
      oprot.writeFieldStop();
152306
      oprot.writeStructEnd();
152011
      oprot.writeStructEnd();
152307
    }
152012
    }
152308
 
152013
 
152309
    @Override
152014
    @Override
152310
    public String toString() {
152015
    public String toString() {
152311
      StringBuilder sb = new StringBuilder("updateTimestampForAmazonOrder_args(");
152016
      StringBuilder sb = new StringBuilder("updateTimestampForAmazonOrder_args(");
152312
      boolean first = true;
152017
      boolean first = true;
152313
 
152018
 
152314
      sb.append("orderId:");
-
 
152315
      sb.append(this.orderId);
-
 
152316
      first = false;
-
 
152317
      if (!first) sb.append(", ");
-
 
152318
      sb.append("expectedDelivery:");
152019
      sb.append("amazonOrderDelivery:");
152319
      sb.append(this.expectedDelivery);
152020
      if (this.amazonOrderDelivery == null) {
152320
      first = false;
-
 
152321
      if (!first) sb.append(", ");
152021
        sb.append("null");
152322
      sb.append("promisedDelivery:");
-
 
152323
      sb.append(this.promisedDelivery);
-
 
152324
      first = false;
152022
      } else {
152325
      if (!first) sb.append(", ");
-
 
152326
      sb.append("expectedShipping:");
-
 
152327
      sb.append(this.expectedShipping);
152023
        sb.append(this.amazonOrderDelivery);
152328
      first = false;
152024
      }
152329
      if (!first) sb.append(", ");
-
 
152330
      sb.append("promisedShipping:");
-
 
152331
      sb.append(this.promisedShipping);
-
 
152332
      first = false;
152025
      first = false;
152333
      sb.append(")");
152026
      sb.append(")");
152334
      return sb.toString();
152027
      return sb.toString();
152335
    }
152028
    }
152336
 
152029
 
Line 152346... Line 152039...
152346
      }
152039
      }
152347
    }
152040
    }
152348
 
152041
 
152349
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
152042
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
152350
      try {
152043
      try {
152351
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
152352
        __isset_bit_vector = new BitSet(1);
-
 
152353
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
152044
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
152354
      } catch (org.apache.thrift.TException te) {
152045
      } catch (org.apache.thrift.TException te) {
152355
        throw new java.io.IOException(te);
152046
        throw new java.io.IOException(te);
152356
      }
152047
      }
152357
    }
152048
    }
Line 153863... Line 153554...
153863
        }
153554
        }
153864
        switch (field.id) {
153555
        switch (field.id) {
153865
          case 0: // SUCCESS
153556
          case 0: // SUCCESS
153866
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
153557
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
153867
              {
153558
              {
153868
                org.apache.thrift.protocol.TList _list474 = iprot.readListBegin();
153559
                org.apache.thrift.protocol.TList _list479 = iprot.readListBegin();
153869
                this.success = new ArrayList<Order>(_list474.size);
153560
                this.success = new ArrayList<Order>(_list479.size);
153870
                for (int _i475 = 0; _i475 < _list474.size; ++_i475)
153561
                for (int _i480 = 0; _i480 < _list479.size; ++_i480)
153871
                {
153562
                {
153872
                  Order _elem476; // required
153563
                  Order _elem481; // required
153873
                  _elem476 = new Order();
153564
                  _elem481 = new Order();
153874
                  _elem476.read(iprot);
153565
                  _elem481.read(iprot);
153875
                  this.success.add(_elem476);
153566
                  this.success.add(_elem481);
153876
                }
153567
                }
153877
                iprot.readListEnd();
153568
                iprot.readListEnd();
153878
              }
153569
              }
153879
            } else { 
153570
            } else { 
153880
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
153571
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 153894... Line 153585...
153894
 
153585
 
153895
      if (this.isSetSuccess()) {
153586
      if (this.isSetSuccess()) {
153896
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
153587
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
153897
        {
153588
        {
153898
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
153589
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
153899
          for (Order _iter477 : this.success)
153590
          for (Order _iter482 : this.success)
153900
          {
153591
          {
153901
            _iter477.write(oprot);
153592
            _iter482.write(oprot);
153902
          }
153593
          }
153903
          oprot.writeListEnd();
153594
          oprot.writeListEnd();
153904
        }
153595
        }
153905
        oprot.writeFieldEnd();
153596
        oprot.writeFieldEnd();
153906
      }
153597
      }
Line 154488... Line 154179...
154488
        }
154179
        }
154489
        switch (field.id) {
154180
        switch (field.id) {
154490
          case 0: // SUCCESS
154181
          case 0: // SUCCESS
154491
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
154182
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
154492
              {
154183
              {
154493
                org.apache.thrift.protocol.TList _list478 = iprot.readListBegin();
154184
                org.apache.thrift.protocol.TList _list483 = iprot.readListBegin();
154494
                this.success = new ArrayList<Order>(_list478.size);
154185
                this.success = new ArrayList<Order>(_list483.size);
154495
                for (int _i479 = 0; _i479 < _list478.size; ++_i479)
154186
                for (int _i484 = 0; _i484 < _list483.size; ++_i484)
154496
                {
154187
                {
154497
                  Order _elem480; // required
154188
                  Order _elem485; // required
154498
                  _elem480 = new Order();
154189
                  _elem485 = new Order();
154499
                  _elem480.read(iprot);
154190
                  _elem485.read(iprot);
154500
                  this.success.add(_elem480);
154191
                  this.success.add(_elem485);
154501
                }
154192
                }
154502
                iprot.readListEnd();
154193
                iprot.readListEnd();
154503
              }
154194
              }
154504
            } else { 
154195
            } else { 
154505
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
154196
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 154519... Line 154210...
154519
 
154210
 
154520
      if (this.isSetSuccess()) {
154211
      if (this.isSetSuccess()) {
154521
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
154212
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
154522
        {
154213
        {
154523
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
154214
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
154524
          for (Order _iter481 : this.success)
154215
          for (Order _iter486 : this.success)
154525
          {
154216
          {
154526
            _iter481.write(oprot);
154217
            _iter486.write(oprot);
154527
          }
154218
          }
154528
          oprot.writeListEnd();
154219
          oprot.writeListEnd();
154529
        }
154220
        }
154530
        oprot.writeFieldEnd();
154221
        oprot.writeFieldEnd();
154531
      }
154222
      }