Subversion Repositories SmartDukaan

Rev

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

Rev 5864 Rev 6322
Line 158... Line 158...
158
     * @param startDatetime
158
     * @param startDatetime
159
     * @param endDatetime
159
     * @param endDatetime
160
     */
160
     */
161
    public List<String> getEmailsForNotificationsSent(long startDatetime, long endDatetime) throws HelperServiceException, org.apache.thrift.TException;
161
    public List<String> getEmailsForNotificationsSent(long startDatetime, long endDatetime) throws HelperServiceException, org.apache.thrift.TException;
162
 
162
 
-
 
163
    public String getOrderConfirmationMail(long orderId) throws org.apache.thrift.TException;
-
 
164
 
163
  }
165
  }
164
 
166
 
165
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
167
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
166
 
168
 
167
    public void saveUserEmailForSending(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveUserEmailForSending_call> resultHandler) throws org.apache.thrift.TException;
169
    public void saveUserEmailForSending(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveUserEmailForSending_call> resultHandler) throws org.apache.thrift.TException;
Line 218... Line 220...
218
 
220
 
219
    public void updateQuickLink(long id, String url, String text, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateQuickLink_call> resultHandler) throws org.apache.thrift.TException;
221
    public void updateQuickLink(long id, String url, String text, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateQuickLink_call> resultHandler) throws org.apache.thrift.TException;
220
 
222
 
221
    public void getEmailsForNotificationsSent(long startDatetime, long endDatetime, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmailsForNotificationsSent_call> resultHandler) throws org.apache.thrift.TException;
223
    public void getEmailsForNotificationsSent(long startDatetime, long endDatetime, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmailsForNotificationsSent_call> resultHandler) throws org.apache.thrift.TException;
222
 
224
 
-
 
225
    public void getOrderConfirmationMail(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderConfirmationMail_call> resultHandler) throws org.apache.thrift.TException;
-
 
226
 
223
  }
227
  }
224
 
228
 
225
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
229
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
226
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
230
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
227
      public Factory() {}
231
      public Factory() {}
Line 946... Line 950...
946
        throw result.hse;
950
        throw result.hse;
947
      }
951
      }
948
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEmailsForNotificationsSent failed: unknown result");
952
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEmailsForNotificationsSent failed: unknown result");
949
    }
953
    }
950
 
954
 
-
 
955
    public String getOrderConfirmationMail(long orderId) throws org.apache.thrift.TException
-
 
956
    {
-
 
957
      send_getOrderConfirmationMail(orderId);
-
 
958
      return recv_getOrderConfirmationMail();
-
 
959
    }
-
 
960
 
-
 
961
    public void send_getOrderConfirmationMail(long orderId) throws org.apache.thrift.TException
-
 
962
    {
-
 
963
      getOrderConfirmationMail_args args = new getOrderConfirmationMail_args();
-
 
964
      args.setOrderId(orderId);
-
 
965
      sendBase("getOrderConfirmationMail", args);
-
 
966
    }
-
 
967
 
-
 
968
    public String recv_getOrderConfirmationMail() throws org.apache.thrift.TException
-
 
969
    {
-
 
970
      getOrderConfirmationMail_result result = new getOrderConfirmationMail_result();
-
 
971
      receiveBase(result, "getOrderConfirmationMail");
-
 
972
      if (result.isSetSuccess()) {
-
 
973
        return result.success;
-
 
974
      }
-
 
975
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderConfirmationMail failed: unknown result");
-
 
976
    }
-
 
977
 
951
  }
978
  }
952
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
979
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
953
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
980
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
954
      private org.apache.thrift.async.TAsyncClientManager clientManager;
981
      private org.apache.thrift.async.TAsyncClientManager clientManager;
955
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
982
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 1929... Line 1956...
1929
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1956
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1930
        return (new Client(prot)).recv_getEmailsForNotificationsSent();
1957
        return (new Client(prot)).recv_getEmailsForNotificationsSent();
1931
      }
1958
      }
1932
    }
1959
    }
1933
 
1960
 
-
 
1961
    public void getOrderConfirmationMail(long orderId, org.apache.thrift.async.AsyncMethodCallback<getOrderConfirmationMail_call> resultHandler) throws org.apache.thrift.TException {
-
 
1962
      checkReady();
-
 
1963
      getOrderConfirmationMail_call method_call = new getOrderConfirmationMail_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
-
 
1964
      this.___currentMethod = method_call;
-
 
1965
      ___manager.call(method_call);
-
 
1966
    }
-
 
1967
 
-
 
1968
    public static class getOrderConfirmationMail_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1969
      private long orderId;
-
 
1970
      public getOrderConfirmationMail_call(long orderId, org.apache.thrift.async.AsyncMethodCallback<getOrderConfirmationMail_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 {
-
 
1971
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1972
        this.orderId = orderId;
-
 
1973
      }
-
 
1974
 
-
 
1975
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1976
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrderConfirmationMail", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1977
        getOrderConfirmationMail_args args = new getOrderConfirmationMail_args();
-
 
1978
        args.setOrderId(orderId);
-
 
1979
        args.write(prot);
-
 
1980
        prot.writeMessageEnd();
-
 
1981
      }
-
 
1982
 
-
 
1983
      public String getResult() throws org.apache.thrift.TException {
-
 
1984
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1985
          throw new IllegalStateException("Method call not finished!");
-
 
1986
        }
-
 
1987
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1988
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1989
        return (new Client(prot)).recv_getOrderConfirmationMail();
-
 
1990
      }
-
 
1991
    }
-
 
1992
 
1934
  }
1993
  }
1935
 
1994
 
1936
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1995
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1937
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1996
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1938
    public Processor(I iface) {
1997
    public Processor(I iface) {
Line 1970... Line 2029...
1970
      processMap.put("getPermissionsForRoleName", new getPermissionsForRoleName());
2029
      processMap.put("getPermissionsForRoleName", new getPermissionsForRoleName());
1971
      processMap.put("saveQuickLink", new saveQuickLink());
2030
      processMap.put("saveQuickLink", new saveQuickLink());
1972
      processMap.put("getQuickLinks", new getQuickLinks());
2031
      processMap.put("getQuickLinks", new getQuickLinks());
1973
      processMap.put("updateQuickLink", new updateQuickLink());
2032
      processMap.put("updateQuickLink", new updateQuickLink());
1974
      processMap.put("getEmailsForNotificationsSent", new getEmailsForNotificationsSent());
2033
      processMap.put("getEmailsForNotificationsSent", new getEmailsForNotificationsSent());
-
 
2034
      processMap.put("getOrderConfirmationMail", new getOrderConfirmationMail());
1975
      return processMap;
2035
      return processMap;
1976
    }
2036
    }
1977
 
2037
 
1978
    private static class saveUserEmailForSending<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveUserEmailForSending_args> {
2038
    private static class saveUserEmailForSending<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveUserEmailForSending_args> {
1979
      public saveUserEmailForSending() {
2039
      public saveUserEmailForSending() {
Line 2514... Line 2574...
2514
        }
2574
        }
2515
        return result;
2575
        return result;
2516
      }
2576
      }
2517
    }
2577
    }
2518
 
2578
 
-
 
2579
    private static class getOrderConfirmationMail<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrderConfirmationMail_args> {
-
 
2580
      public getOrderConfirmationMail() {
-
 
2581
        super("getOrderConfirmationMail");
-
 
2582
      }
-
 
2583
 
-
 
2584
      protected getOrderConfirmationMail_args getEmptyArgsInstance() {
-
 
2585
        return new getOrderConfirmationMail_args();
-
 
2586
      }
-
 
2587
 
-
 
2588
      protected getOrderConfirmationMail_result getResult(I iface, getOrderConfirmationMail_args args) throws org.apache.thrift.TException {
-
 
2589
        getOrderConfirmationMail_result result = new getOrderConfirmationMail_result();
-
 
2590
        result.success = iface.getOrderConfirmationMail(args.orderId);
-
 
2591
        return result;
-
 
2592
      }
-
 
2593
    }
-
 
2594
 
2519
  }
2595
  }
2520
 
2596
 
2521
  public static class saveUserEmailForSending_args implements org.apache.thrift.TBase<saveUserEmailForSending_args, saveUserEmailForSending_args._Fields>, java.io.Serializable, Cloneable   {
2597
  public static class saveUserEmailForSending_args implements org.apache.thrift.TBase<saveUserEmailForSending_args, saveUserEmailForSending_args._Fields>, java.io.Serializable, Cloneable   {
2522
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_args");
2598
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_args");
2523
 
2599
 
Line 22538... Line 22614...
22538
      }
22614
      }
22539
      first = false;
22615
      first = false;
22540
      sb.append(")");
22616
      sb.append(")");
22541
      return sb.toString();
22617
      return sb.toString();
22542
    }
22618
    }
-
 
22619
 
-
 
22620
    public void validate() throws org.apache.thrift.TException {
-
 
22621
      // check for required fields
-
 
22622
    }
-
 
22623
 
-
 
22624
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
22625
      try {
-
 
22626
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
22627
      } catch (org.apache.thrift.TException te) {
-
 
22628
        throw new java.io.IOException(te);
-
 
22629
      }
-
 
22630
    }
-
 
22631
 
-
 
22632
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
22633
      try {
-
 
22634
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
22635
      } catch (org.apache.thrift.TException te) {
-
 
22636
        throw new java.io.IOException(te);
-
 
22637
      }
-
 
22638
    }
-
 
22639
 
-
 
22640
  }
-
 
22641
 
-
 
22642
  public static class getOrderConfirmationMail_args implements org.apache.thrift.TBase<getOrderConfirmationMail_args, getOrderConfirmationMail_args._Fields>, java.io.Serializable, Cloneable   {
-
 
22643
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderConfirmationMail_args");
-
 
22644
 
-
 
22645
    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);
-
 
22646
 
-
 
22647
    private long orderId; // required
-
 
22648
 
-
 
22649
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
22650
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
22651
      ORDER_ID((short)1, "orderId");
-
 
22652
 
-
 
22653
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
22654
 
-
 
22655
      static {
-
 
22656
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
22657
          byName.put(field.getFieldName(), field);
-
 
22658
        }
-
 
22659
      }
-
 
22660
 
-
 
22661
      /**
-
 
22662
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
22663
       */
-
 
22664
      public static _Fields findByThriftId(int fieldId) {
-
 
22665
        switch(fieldId) {
-
 
22666
          case 1: // ORDER_ID
-
 
22667
            return ORDER_ID;
-
 
22668
          default:
-
 
22669
            return null;
-
 
22670
        }
-
 
22671
      }
-
 
22672
 
-
 
22673
      /**
-
 
22674
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
22675
       * if it is not found.
-
 
22676
       */
-
 
22677
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
22678
        _Fields fields = findByThriftId(fieldId);
-
 
22679
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
22680
        return fields;
-
 
22681
      }
-
 
22682
 
-
 
22683
      /**
-
 
22684
       * Find the _Fields constant that matches name, or null if its not found.
-
 
22685
       */
-
 
22686
      public static _Fields findByName(String name) {
-
 
22687
        return byName.get(name);
-
 
22688
      }
-
 
22689
 
-
 
22690
      private final short _thriftId;
-
 
22691
      private final String _fieldName;
-
 
22692
 
-
 
22693
      _Fields(short thriftId, String fieldName) {
-
 
22694
        _thriftId = thriftId;
-
 
22695
        _fieldName = fieldName;
-
 
22696
      }
-
 
22697
 
-
 
22698
      public short getThriftFieldId() {
-
 
22699
        return _thriftId;
-
 
22700
      }
-
 
22701
 
-
 
22702
      public String getFieldName() {
-
 
22703
        return _fieldName;
-
 
22704
      }
-
 
22705
    }
-
 
22706
 
-
 
22707
    // isset id assignments
-
 
22708
    private static final int __ORDERID_ISSET_ID = 0;
-
 
22709
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
22710
 
-
 
22711
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
22712
    static {
-
 
22713
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
22714
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
22715
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
22716
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
22717
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderConfirmationMail_args.class, metaDataMap);
-
 
22718
    }
-
 
22719
 
-
 
22720
    public getOrderConfirmationMail_args() {
-
 
22721
    }
-
 
22722
 
-
 
22723
    public getOrderConfirmationMail_args(
-
 
22724
      long orderId)
-
 
22725
    {
-
 
22726
      this();
-
 
22727
      this.orderId = orderId;
-
 
22728
      setOrderIdIsSet(true);
-
 
22729
    }
-
 
22730
 
-
 
22731
    /**
-
 
22732
     * Performs a deep copy on <i>other</i>.
-
 
22733
     */
-
 
22734
    public getOrderConfirmationMail_args(getOrderConfirmationMail_args other) {
-
 
22735
      __isset_bit_vector.clear();
-
 
22736
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
22737
      this.orderId = other.orderId;
-
 
22738
    }
-
 
22739
 
-
 
22740
    public getOrderConfirmationMail_args deepCopy() {
-
 
22741
      return new getOrderConfirmationMail_args(this);
-
 
22742
    }
-
 
22743
 
-
 
22744
    @Override
-
 
22745
    public void clear() {
-
 
22746
      setOrderIdIsSet(false);
-
 
22747
      this.orderId = 0;
-
 
22748
    }
-
 
22749
 
-
 
22750
    public long getOrderId() {
-
 
22751
      return this.orderId;
-
 
22752
    }
-
 
22753
 
-
 
22754
    public void setOrderId(long orderId) {
-
 
22755
      this.orderId = orderId;
-
 
22756
      setOrderIdIsSet(true);
-
 
22757
    }
-
 
22758
 
-
 
22759
    public void unsetOrderId() {
-
 
22760
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
-
 
22761
    }
-
 
22762
 
-
 
22763
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
-
 
22764
    public boolean isSetOrderId() {
-
 
22765
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
-
 
22766
    }
-
 
22767
 
-
 
22768
    public void setOrderIdIsSet(boolean value) {
-
 
22769
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
22770
    }
-
 
22771
 
-
 
22772
    public void setFieldValue(_Fields field, Object value) {
-
 
22773
      switch (field) {
-
 
22774
      case ORDER_ID:
-
 
22775
        if (value == null) {
-
 
22776
          unsetOrderId();
-
 
22777
        } else {
-
 
22778
          setOrderId((Long)value);
-
 
22779
        }
-
 
22780
        break;
-
 
22781
 
-
 
22782
      }
-
 
22783
    }
-
 
22784
 
-
 
22785
    public Object getFieldValue(_Fields field) {
-
 
22786
      switch (field) {
-
 
22787
      case ORDER_ID:
-
 
22788
        return Long.valueOf(getOrderId());
-
 
22789
 
-
 
22790
      }
-
 
22791
      throw new IllegalStateException();
-
 
22792
    }
-
 
22793
 
-
 
22794
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
22795
    public boolean isSet(_Fields field) {
-
 
22796
      if (field == null) {
-
 
22797
        throw new IllegalArgumentException();
-
 
22798
      }
-
 
22799
 
-
 
22800
      switch (field) {
-
 
22801
      case ORDER_ID:
-
 
22802
        return isSetOrderId();
-
 
22803
      }
-
 
22804
      throw new IllegalStateException();
-
 
22805
    }
-
 
22806
 
-
 
22807
    @Override
-
 
22808
    public boolean equals(Object that) {
-
 
22809
      if (that == null)
-
 
22810
        return false;
-
 
22811
      if (that instanceof getOrderConfirmationMail_args)
-
 
22812
        return this.equals((getOrderConfirmationMail_args)that);
-
 
22813
      return false;
-
 
22814
    }
-
 
22815
 
-
 
22816
    public boolean equals(getOrderConfirmationMail_args that) {
-
 
22817
      if (that == null)
-
 
22818
        return false;
-
 
22819
 
-
 
22820
      boolean this_present_orderId = true;
-
 
22821
      boolean that_present_orderId = true;
-
 
22822
      if (this_present_orderId || that_present_orderId) {
-
 
22823
        if (!(this_present_orderId && that_present_orderId))
-
 
22824
          return false;
-
 
22825
        if (this.orderId != that.orderId)
-
 
22826
          return false;
-
 
22827
      }
-
 
22828
 
-
 
22829
      return true;
-
 
22830
    }
-
 
22831
 
-
 
22832
    @Override
-
 
22833
    public int hashCode() {
-
 
22834
      return 0;
-
 
22835
    }
-
 
22836
 
-
 
22837
    public int compareTo(getOrderConfirmationMail_args other) {
-
 
22838
      if (!getClass().equals(other.getClass())) {
-
 
22839
        return getClass().getName().compareTo(other.getClass().getName());
-
 
22840
      }
-
 
22841
 
-
 
22842
      int lastComparison = 0;
-
 
22843
      getOrderConfirmationMail_args typedOther = (getOrderConfirmationMail_args)other;
-
 
22844
 
-
 
22845
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
-
 
22846
      if (lastComparison != 0) {
-
 
22847
        return lastComparison;
-
 
22848
      }
-
 
22849
      if (isSetOrderId()) {
-
 
22850
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
-
 
22851
        if (lastComparison != 0) {
-
 
22852
          return lastComparison;
-
 
22853
        }
-
 
22854
      }
-
 
22855
      return 0;
-
 
22856
    }
-
 
22857
 
-
 
22858
    public _Fields fieldForId(int fieldId) {
-
 
22859
      return _Fields.findByThriftId(fieldId);
-
 
22860
    }
-
 
22861
 
-
 
22862
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
22863
      org.apache.thrift.protocol.TField field;
-
 
22864
      iprot.readStructBegin();
-
 
22865
      while (true)
-
 
22866
      {
-
 
22867
        field = iprot.readFieldBegin();
-
 
22868
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
22869
          break;
-
 
22870
        }
-
 
22871
        switch (field.id) {
-
 
22872
          case 1: // ORDER_ID
-
 
22873
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
22874
              this.orderId = iprot.readI64();
-
 
22875
              setOrderIdIsSet(true);
-
 
22876
            } else { 
-
 
22877
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
22878
            }
-
 
22879
            break;
-
 
22880
          default:
-
 
22881
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
22882
        }
-
 
22883
        iprot.readFieldEnd();
-
 
22884
      }
-
 
22885
      iprot.readStructEnd();
-
 
22886
      validate();
-
 
22887
    }
-
 
22888
 
-
 
22889
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
22890
      validate();
-
 
22891
 
-
 
22892
      oprot.writeStructBegin(STRUCT_DESC);
-
 
22893
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
22894
      oprot.writeI64(this.orderId);
-
 
22895
      oprot.writeFieldEnd();
-
 
22896
      oprot.writeFieldStop();
-
 
22897
      oprot.writeStructEnd();
-
 
22898
    }
-
 
22899
 
-
 
22900
    @Override
-
 
22901
    public String toString() {
-
 
22902
      StringBuilder sb = new StringBuilder("getOrderConfirmationMail_args(");
-
 
22903
      boolean first = true;
-
 
22904
 
-
 
22905
      sb.append("orderId:");
-
 
22906
      sb.append(this.orderId);
-
 
22907
      first = false;
-
 
22908
      sb.append(")");
-
 
22909
      return sb.toString();
-
 
22910
    }
-
 
22911
 
-
 
22912
    public void validate() throws org.apache.thrift.TException {
-
 
22913
      // check for required fields
-
 
22914
    }
-
 
22915
 
-
 
22916
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
22917
      try {
-
 
22918
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
22919
      } catch (org.apache.thrift.TException te) {
-
 
22920
        throw new java.io.IOException(te);
-
 
22921
      }
-
 
22922
    }
-
 
22923
 
-
 
22924
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
22925
      try {
-
 
22926
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
22927
        __isset_bit_vector = new BitSet(1);
-
 
22928
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
22929
      } catch (org.apache.thrift.TException te) {
-
 
22930
        throw new java.io.IOException(te);
-
 
22931
      }
-
 
22932
    }
-
 
22933
 
-
 
22934
  }
-
 
22935
 
-
 
22936
  public static class getOrderConfirmationMail_result implements org.apache.thrift.TBase<getOrderConfirmationMail_result, getOrderConfirmationMail_result._Fields>, java.io.Serializable, Cloneable   {
-
 
22937
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderConfirmationMail_result");
-
 
22938
 
-
 
22939
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0);
-
 
22940
 
-
 
22941
    private String success; // required
-
 
22942
 
-
 
22943
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
22944
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
22945
      SUCCESS((short)0, "success");
-
 
22946
 
-
 
22947
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
22948
 
-
 
22949
      static {
-
 
22950
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
22951
          byName.put(field.getFieldName(), field);
-
 
22952
        }
-
 
22953
      }
-
 
22954
 
-
 
22955
      /**
-
 
22956
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
22957
       */
-
 
22958
      public static _Fields findByThriftId(int fieldId) {
-
 
22959
        switch(fieldId) {
-
 
22960
          case 0: // SUCCESS
-
 
22961
            return SUCCESS;
-
 
22962
          default:
-
 
22963
            return null;
-
 
22964
        }
-
 
22965
      }
-
 
22966
 
-
 
22967
      /**
-
 
22968
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
22969
       * if it is not found.
-
 
22970
       */
-
 
22971
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
22972
        _Fields fields = findByThriftId(fieldId);
-
 
22973
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
22974
        return fields;
-
 
22975
      }
-
 
22976
 
-
 
22977
      /**
-
 
22978
       * Find the _Fields constant that matches name, or null if its not found.
-
 
22979
       */
-
 
22980
      public static _Fields findByName(String name) {
-
 
22981
        return byName.get(name);
-
 
22982
      }
-
 
22983
 
-
 
22984
      private final short _thriftId;
-
 
22985
      private final String _fieldName;
-
 
22986
 
-
 
22987
      _Fields(short thriftId, String fieldName) {
-
 
22988
        _thriftId = thriftId;
-
 
22989
        _fieldName = fieldName;
-
 
22990
      }
-
 
22991
 
-
 
22992
      public short getThriftFieldId() {
-
 
22993
        return _thriftId;
-
 
22994
      }
-
 
22995
 
-
 
22996
      public String getFieldName() {
-
 
22997
        return _fieldName;
-
 
22998
      }
-
 
22999
    }
-
 
23000
 
-
 
23001
    // isset id assignments
-
 
23002
 
-
 
23003
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
23004
    static {
-
 
23005
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
23006
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
23007
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
23008
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
23009
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderConfirmationMail_result.class, metaDataMap);
-
 
23010
    }
-
 
23011
 
-
 
23012
    public getOrderConfirmationMail_result() {
-
 
23013
    }
-
 
23014
 
-
 
23015
    public getOrderConfirmationMail_result(
-
 
23016
      String success)
-
 
23017
    {
-
 
23018
      this();
-
 
23019
      this.success = success;
-
 
23020
    }
-
 
23021
 
-
 
23022
    /**
-
 
23023
     * Performs a deep copy on <i>other</i>.
-
 
23024
     */
-
 
23025
    public getOrderConfirmationMail_result(getOrderConfirmationMail_result other) {
-
 
23026
      if (other.isSetSuccess()) {
-
 
23027
        this.success = other.success;
-
 
23028
      }
-
 
23029
    }
-
 
23030
 
-
 
23031
    public getOrderConfirmationMail_result deepCopy() {
-
 
23032
      return new getOrderConfirmationMail_result(this);
-
 
23033
    }
-
 
23034
 
-
 
23035
    @Override
-
 
23036
    public void clear() {
-
 
23037
      this.success = null;
-
 
23038
    }
-
 
23039
 
-
 
23040
    public String getSuccess() {
-
 
23041
      return this.success;
-
 
23042
    }
-
 
23043
 
-
 
23044
    public void setSuccess(String success) {
-
 
23045
      this.success = success;
-
 
23046
    }
-
 
23047
 
-
 
23048
    public void unsetSuccess() {
-
 
23049
      this.success = null;
-
 
23050
    }
-
 
23051
 
-
 
23052
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
23053
    public boolean isSetSuccess() {
-
 
23054
      return this.success != null;
-
 
23055
    }
-
 
23056
 
-
 
23057
    public void setSuccessIsSet(boolean value) {
-
 
23058
      if (!value) {
-
 
23059
        this.success = null;
-
 
23060
      }
-
 
23061
    }
-
 
23062
 
-
 
23063
    public void setFieldValue(_Fields field, Object value) {
-
 
23064
      switch (field) {
-
 
23065
      case SUCCESS:
-
 
23066
        if (value == null) {
-
 
23067
          unsetSuccess();
-
 
23068
        } else {
-
 
23069
          setSuccess((String)value);
-
 
23070
        }
-
 
23071
        break;
-
 
23072
 
-
 
23073
      }
-
 
23074
    }
-
 
23075
 
-
 
23076
    public Object getFieldValue(_Fields field) {
-
 
23077
      switch (field) {
-
 
23078
      case SUCCESS:
-
 
23079
        return getSuccess();
-
 
23080
 
-
 
23081
      }
-
 
23082
      throw new IllegalStateException();
-
 
23083
    }
-
 
23084
 
-
 
23085
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
23086
    public boolean isSet(_Fields field) {
-
 
23087
      if (field == null) {
-
 
23088
        throw new IllegalArgumentException();
-
 
23089
      }
-
 
23090
 
-
 
23091
      switch (field) {
-
 
23092
      case SUCCESS:
-
 
23093
        return isSetSuccess();
-
 
23094
      }
-
 
23095
      throw new IllegalStateException();
-
 
23096
    }
-
 
23097
 
-
 
23098
    @Override
-
 
23099
    public boolean equals(Object that) {
-
 
23100
      if (that == null)
-
 
23101
        return false;
-
 
23102
      if (that instanceof getOrderConfirmationMail_result)
-
 
23103
        return this.equals((getOrderConfirmationMail_result)that);
-
 
23104
      return false;
-
 
23105
    }
-
 
23106
 
-
 
23107
    public boolean equals(getOrderConfirmationMail_result that) {
-
 
23108
      if (that == null)
-
 
23109
        return false;
-
 
23110
 
-
 
23111
      boolean this_present_success = true && this.isSetSuccess();
-
 
23112
      boolean that_present_success = true && that.isSetSuccess();
-
 
23113
      if (this_present_success || that_present_success) {
-
 
23114
        if (!(this_present_success && that_present_success))
-
 
23115
          return false;
-
 
23116
        if (!this.success.equals(that.success))
-
 
23117
          return false;
-
 
23118
      }
-
 
23119
 
-
 
23120
      return true;
-
 
23121
    }
-
 
23122
 
-
 
23123
    @Override
-
 
23124
    public int hashCode() {
-
 
23125
      return 0;
-
 
23126
    }
-
 
23127
 
-
 
23128
    public int compareTo(getOrderConfirmationMail_result other) {
-
 
23129
      if (!getClass().equals(other.getClass())) {
-
 
23130
        return getClass().getName().compareTo(other.getClass().getName());
-
 
23131
      }
-
 
23132
 
-
 
23133
      int lastComparison = 0;
-
 
23134
      getOrderConfirmationMail_result typedOther = (getOrderConfirmationMail_result)other;
-
 
23135
 
-
 
23136
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
23137
      if (lastComparison != 0) {
-
 
23138
        return lastComparison;
-
 
23139
      }
-
 
23140
      if (isSetSuccess()) {
-
 
23141
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
23142
        if (lastComparison != 0) {
-
 
23143
          return lastComparison;
-
 
23144
        }
-
 
23145
      }
-
 
23146
      return 0;
-
 
23147
    }
-
 
23148
 
-
 
23149
    public _Fields fieldForId(int fieldId) {
-
 
23150
      return _Fields.findByThriftId(fieldId);
-
 
23151
    }
-
 
23152
 
-
 
23153
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
23154
      org.apache.thrift.protocol.TField field;
-
 
23155
      iprot.readStructBegin();
-
 
23156
      while (true)
-
 
23157
      {
-
 
23158
        field = iprot.readFieldBegin();
-
 
23159
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
23160
          break;
-
 
23161
        }
-
 
23162
        switch (field.id) {
-
 
23163
          case 0: // SUCCESS
-
 
23164
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
23165
              this.success = iprot.readString();
-
 
23166
            } else { 
-
 
23167
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
23168
            }
-
 
23169
            break;
-
 
23170
          default:
-
 
23171
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
23172
        }
-
 
23173
        iprot.readFieldEnd();
-
 
23174
      }
-
 
23175
      iprot.readStructEnd();
-
 
23176
      validate();
-
 
23177
    }
-
 
23178
 
-
 
23179
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
23180
      oprot.writeStructBegin(STRUCT_DESC);
-
 
23181
 
-
 
23182
      if (this.isSetSuccess()) {
-
 
23183
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
23184
        oprot.writeString(this.success);
-
 
23185
        oprot.writeFieldEnd();
-
 
23186
      }
-
 
23187
      oprot.writeFieldStop();
-
 
23188
      oprot.writeStructEnd();
-
 
23189
    }
-
 
23190
 
-
 
23191
    @Override
-
 
23192
    public String toString() {
-
 
23193
      StringBuilder sb = new StringBuilder("getOrderConfirmationMail_result(");
-
 
23194
      boolean first = true;
-
 
23195
 
-
 
23196
      sb.append("success:");
-
 
23197
      if (this.success == null) {
-
 
23198
        sb.append("null");
-
 
23199
      } else {
-
 
23200
        sb.append(this.success);
-
 
23201
      }
-
 
23202
      first = false;
-
 
23203
      sb.append(")");
-
 
23204
      return sb.toString();
-
 
23205
    }
22543
 
23206
 
22544
    public void validate() throws org.apache.thrift.TException {
23207
    public void validate() throws org.apache.thrift.TException {
22545
      // check for required fields
23208
      // check for required fields
22546
    }
23209
    }
22547
 
23210