Subversion Repositories SmartDukaan

Rev

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

Rev 6788 Rev 7221
Line 159... Line 159...
159
     */
159
     */
160
    public List<String> getEmailsForNotificationsSent(long startDatetime, long endDatetime) throws HelperServiceException, org.apache.thrift.TException;
160
    public List<String> getEmailsForNotificationsSent(long startDatetime, long endDatetime) throws HelperServiceException, org.apache.thrift.TException;
161
 
161
 
162
    public String getOrderConfirmationMail(long orderId) throws org.apache.thrift.TException;
162
    public String getOrderConfirmationMail(long orderId) throws org.apache.thrift.TException;
163
 
163
 
-
 
164
    public String getOrderDeliveryMail(long orderId) throws org.apache.thrift.TException;
-
 
165
 
164
  }
166
  }
165
 
167
 
166
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
168
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
167
 
169
 
168
    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;
170
    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 221... Line 223...
221
 
223
 
222
    public void getEmailsForNotificationsSent(long startDatetime, long endDatetime, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmailsForNotificationsSent_call> resultHandler) throws org.apache.thrift.TException;
224
    public void getEmailsForNotificationsSent(long startDatetime, long endDatetime, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmailsForNotificationsSent_call> resultHandler) throws org.apache.thrift.TException;
223
 
225
 
224
    public void getOrderConfirmationMail(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderConfirmationMail_call> resultHandler) throws org.apache.thrift.TException;
226
    public void getOrderConfirmationMail(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderConfirmationMail_call> resultHandler) throws org.apache.thrift.TException;
225
 
227
 
-
 
228
    public void getOrderDeliveryMail(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderDeliveryMail_call> resultHandler) throws org.apache.thrift.TException;
-
 
229
 
226
  }
230
  }
227
 
231
 
228
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
232
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
229
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
233
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
230
      public Factory() {}
234
      public Factory() {}
Line 971... Line 975...
971
        return result.success;
975
        return result.success;
972
      }
976
      }
973
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderConfirmationMail failed: unknown result");
977
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderConfirmationMail failed: unknown result");
974
    }
978
    }
975
 
979
 
-
 
980
    public String getOrderDeliveryMail(long orderId) throws org.apache.thrift.TException
-
 
981
    {
-
 
982
      send_getOrderDeliveryMail(orderId);
-
 
983
      return recv_getOrderDeliveryMail();
-
 
984
    }
-
 
985
 
-
 
986
    public void send_getOrderDeliveryMail(long orderId) throws org.apache.thrift.TException
-
 
987
    {
-
 
988
      getOrderDeliveryMail_args args = new getOrderDeliveryMail_args();
-
 
989
      args.setOrderId(orderId);
-
 
990
      sendBase("getOrderDeliveryMail", args);
-
 
991
    }
-
 
992
 
-
 
993
    public String recv_getOrderDeliveryMail() throws org.apache.thrift.TException
-
 
994
    {
-
 
995
      getOrderDeliveryMail_result result = new getOrderDeliveryMail_result();
-
 
996
      receiveBase(result, "getOrderDeliveryMail");
-
 
997
      if (result.isSetSuccess()) {
-
 
998
        return result.success;
-
 
999
      }
-
 
1000
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderDeliveryMail failed: unknown result");
-
 
1001
    }
-
 
1002
 
976
  }
1003
  }
977
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1004
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
978
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1005
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
979
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1006
      private org.apache.thrift.async.TAsyncClientManager clientManager;
980
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
1007
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 1983... Line 2010...
1983
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2010
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1984
        return (new Client(prot)).recv_getOrderConfirmationMail();
2011
        return (new Client(prot)).recv_getOrderConfirmationMail();
1985
      }
2012
      }
1986
    }
2013
    }
1987
 
2014
 
-
 
2015
    public void getOrderDeliveryMail(long orderId, org.apache.thrift.async.AsyncMethodCallback<getOrderDeliveryMail_call> resultHandler) throws org.apache.thrift.TException {
-
 
2016
      checkReady();
-
 
2017
      getOrderDeliveryMail_call method_call = new getOrderDeliveryMail_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
-
 
2018
      this.___currentMethod = method_call;
-
 
2019
      ___manager.call(method_call);
-
 
2020
    }
-
 
2021
 
-
 
2022
    public static class getOrderDeliveryMail_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
2023
      private long orderId;
-
 
2024
      public getOrderDeliveryMail_call(long orderId, org.apache.thrift.async.AsyncMethodCallback<getOrderDeliveryMail_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 {
-
 
2025
        super(client, protocolFactory, transport, resultHandler, false);
-
 
2026
        this.orderId = orderId;
-
 
2027
      }
-
 
2028
 
-
 
2029
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
2030
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrderDeliveryMail", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
2031
        getOrderDeliveryMail_args args = new getOrderDeliveryMail_args();
-
 
2032
        args.setOrderId(orderId);
-
 
2033
        args.write(prot);
-
 
2034
        prot.writeMessageEnd();
-
 
2035
      }
-
 
2036
 
-
 
2037
      public String getResult() throws org.apache.thrift.TException {
-
 
2038
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
2039
          throw new IllegalStateException("Method call not finished!");
-
 
2040
        }
-
 
2041
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
2042
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
2043
        return (new Client(prot)).recv_getOrderDeliveryMail();
-
 
2044
      }
-
 
2045
    }
-
 
2046
 
1988
  }
2047
  }
1989
 
2048
 
1990
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
2049
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1991
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
2050
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1992
    public Processor(I iface) {
2051
    public Processor(I iface) {
Line 2025... Line 2084...
2025
      processMap.put("saveQuickLink", new saveQuickLink());
2084
      processMap.put("saveQuickLink", new saveQuickLink());
2026
      processMap.put("getQuickLinks", new getQuickLinks());
2085
      processMap.put("getQuickLinks", new getQuickLinks());
2027
      processMap.put("updateQuickLink", new updateQuickLink());
2086
      processMap.put("updateQuickLink", new updateQuickLink());
2028
      processMap.put("getEmailsForNotificationsSent", new getEmailsForNotificationsSent());
2087
      processMap.put("getEmailsForNotificationsSent", new getEmailsForNotificationsSent());
2029
      processMap.put("getOrderConfirmationMail", new getOrderConfirmationMail());
2088
      processMap.put("getOrderConfirmationMail", new getOrderConfirmationMail());
-
 
2089
      processMap.put("getOrderDeliveryMail", new getOrderDeliveryMail());
2030
      return processMap;
2090
      return processMap;
2031
    }
2091
    }
2032
 
2092
 
2033
    private static class saveUserEmailForSending<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveUserEmailForSending_args> {
2093
    private static class saveUserEmailForSending<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveUserEmailForSending_args> {
2034
      public saveUserEmailForSending() {
2094
      public saveUserEmailForSending() {
Line 2585... Line 2645...
2585
        result.success = iface.getOrderConfirmationMail(args.orderId);
2645
        result.success = iface.getOrderConfirmationMail(args.orderId);
2586
        return result;
2646
        return result;
2587
      }
2647
      }
2588
    }
2648
    }
2589
 
2649
 
-
 
2650
    private static class getOrderDeliveryMail<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrderDeliveryMail_args> {
-
 
2651
      public getOrderDeliveryMail() {
-
 
2652
        super("getOrderDeliveryMail");
-
 
2653
      }
-
 
2654
 
-
 
2655
      protected getOrderDeliveryMail_args getEmptyArgsInstance() {
-
 
2656
        return new getOrderDeliveryMail_args();
-
 
2657
      }
-
 
2658
 
-
 
2659
      protected getOrderDeliveryMail_result getResult(I iface, getOrderDeliveryMail_args args) throws org.apache.thrift.TException {
-
 
2660
        getOrderDeliveryMail_result result = new getOrderDeliveryMail_result();
-
 
2661
        result.success = iface.getOrderDeliveryMail(args.orderId);
-
 
2662
        return result;
-
 
2663
      }
-
 
2664
    }
-
 
2665
 
2590
  }
2666
  }
2591
 
2667
 
2592
  public static class saveUserEmailForSending_args implements org.apache.thrift.TBase<saveUserEmailForSending_args, saveUserEmailForSending_args._Fields>, java.io.Serializable, Cloneable   {
2668
  public static class saveUserEmailForSending_args implements org.apache.thrift.TBase<saveUserEmailForSending_args, saveUserEmailForSending_args._Fields>, java.io.Serializable, Cloneable   {
2593
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_args");
2669
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_args");
2594
 
2670
 
Line 4892... Line 4968...
4892
      }
4968
      }
4893
    }
4969
    }
4894
 
4970
 
4895
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4971
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4896
      try {
4972
      try {
4897
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
4898
        __isset_bit_vector = new BitSet(1);
-
 
4899
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4973
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4900
      } catch (org.apache.thrift.TException te) {
4974
      } catch (org.apache.thrift.TException te) {
4901
        throw new java.io.IOException(te);
4975
        throw new java.io.IOException(te);
4902
      }
4976
      }
4903
    }
4977
    }
Line 23103... Line 23177...
23103
      boolean first = true;
23177
      boolean first = true;
23104
 
23178
 
23105
      sb.append("success:");
23179
      sb.append("success:");
23106
      if (this.success == null) {
23180
      if (this.success == null) {
23107
        sb.append("null");
23181
        sb.append("null");
-
 
23182
      } else {
-
 
23183
        sb.append(this.success);
-
 
23184
      }
-
 
23185
      first = false;
-
 
23186
      sb.append(")");
-
 
23187
      return sb.toString();
-
 
23188
    }
-
 
23189
 
-
 
23190
    public void validate() throws org.apache.thrift.TException {
-
 
23191
      // check for required fields
-
 
23192
    }
-
 
23193
 
-
 
23194
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
23195
      try {
-
 
23196
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
23197
      } catch (org.apache.thrift.TException te) {
-
 
23198
        throw new java.io.IOException(te);
-
 
23199
      }
-
 
23200
    }
-
 
23201
 
-
 
23202
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
23203
      try {
-
 
23204
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
23205
      } catch (org.apache.thrift.TException te) {
-
 
23206
        throw new java.io.IOException(te);
-
 
23207
      }
-
 
23208
    }
-
 
23209
 
-
 
23210
  }
-
 
23211
 
-
 
23212
  public static class getOrderDeliveryMail_args implements org.apache.thrift.TBase<getOrderDeliveryMail_args, getOrderDeliveryMail_args._Fields>, java.io.Serializable, Cloneable   {
-
 
23213
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderDeliveryMail_args");
-
 
23214
 
-
 
23215
    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);
-
 
23216
 
-
 
23217
    private long orderId; // required
-
 
23218
 
-
 
23219
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
23220
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
23221
      ORDER_ID((short)1, "orderId");
-
 
23222
 
-
 
23223
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
23224
 
-
 
23225
      static {
-
 
23226
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
23227
          byName.put(field.getFieldName(), field);
-
 
23228
        }
-
 
23229
      }
-
 
23230
 
-
 
23231
      /**
-
 
23232
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
23233
       */
-
 
23234
      public static _Fields findByThriftId(int fieldId) {
-
 
23235
        switch(fieldId) {
-
 
23236
          case 1: // ORDER_ID
-
 
23237
            return ORDER_ID;
-
 
23238
          default:
-
 
23239
            return null;
-
 
23240
        }
-
 
23241
      }
-
 
23242
 
-
 
23243
      /**
-
 
23244
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
23245
       * if it is not found.
-
 
23246
       */
-
 
23247
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
23248
        _Fields fields = findByThriftId(fieldId);
-
 
23249
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
23250
        return fields;
-
 
23251
      }
-
 
23252
 
-
 
23253
      /**
-
 
23254
       * Find the _Fields constant that matches name, or null if its not found.
-
 
23255
       */
-
 
23256
      public static _Fields findByName(String name) {
-
 
23257
        return byName.get(name);
-
 
23258
      }
-
 
23259
 
-
 
23260
      private final short _thriftId;
-
 
23261
      private final String _fieldName;
-
 
23262
 
-
 
23263
      _Fields(short thriftId, String fieldName) {
-
 
23264
        _thriftId = thriftId;
-
 
23265
        _fieldName = fieldName;
-
 
23266
      }
-
 
23267
 
-
 
23268
      public short getThriftFieldId() {
-
 
23269
        return _thriftId;
-
 
23270
      }
-
 
23271
 
-
 
23272
      public String getFieldName() {
-
 
23273
        return _fieldName;
-
 
23274
      }
-
 
23275
    }
-
 
23276
 
-
 
23277
    // isset id assignments
-
 
23278
    private static final int __ORDERID_ISSET_ID = 0;
-
 
23279
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
23280
 
-
 
23281
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
23282
    static {
-
 
23283
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
23284
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
23285
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
23286
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
23287
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderDeliveryMail_args.class, metaDataMap);
-
 
23288
    }
-
 
23289
 
-
 
23290
    public getOrderDeliveryMail_args() {
-
 
23291
    }
-
 
23292
 
-
 
23293
    public getOrderDeliveryMail_args(
-
 
23294
      long orderId)
-
 
23295
    {
-
 
23296
      this();
-
 
23297
      this.orderId = orderId;
-
 
23298
      setOrderIdIsSet(true);
-
 
23299
    }
-
 
23300
 
-
 
23301
    /**
-
 
23302
     * Performs a deep copy on <i>other</i>.
-
 
23303
     */
-
 
23304
    public getOrderDeliveryMail_args(getOrderDeliveryMail_args other) {
-
 
23305
      __isset_bit_vector.clear();
-
 
23306
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
23307
      this.orderId = other.orderId;
-
 
23308
    }
-
 
23309
 
-
 
23310
    public getOrderDeliveryMail_args deepCopy() {
-
 
23311
      return new getOrderDeliveryMail_args(this);
-
 
23312
    }
-
 
23313
 
-
 
23314
    @Override
-
 
23315
    public void clear() {
-
 
23316
      setOrderIdIsSet(false);
-
 
23317
      this.orderId = 0;
-
 
23318
    }
-
 
23319
 
-
 
23320
    public long getOrderId() {
-
 
23321
      return this.orderId;
-
 
23322
    }
-
 
23323
 
-
 
23324
    public void setOrderId(long orderId) {
-
 
23325
      this.orderId = orderId;
-
 
23326
      setOrderIdIsSet(true);
-
 
23327
    }
-
 
23328
 
-
 
23329
    public void unsetOrderId() {
-
 
23330
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
-
 
23331
    }
-
 
23332
 
-
 
23333
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
-
 
23334
    public boolean isSetOrderId() {
-
 
23335
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
-
 
23336
    }
-
 
23337
 
-
 
23338
    public void setOrderIdIsSet(boolean value) {
-
 
23339
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
23340
    }
-
 
23341
 
-
 
23342
    public void setFieldValue(_Fields field, Object value) {
-
 
23343
      switch (field) {
-
 
23344
      case ORDER_ID:
-
 
23345
        if (value == null) {
-
 
23346
          unsetOrderId();
-
 
23347
        } else {
-
 
23348
          setOrderId((Long)value);
-
 
23349
        }
-
 
23350
        break;
-
 
23351
 
-
 
23352
      }
-
 
23353
    }
-
 
23354
 
-
 
23355
    public Object getFieldValue(_Fields field) {
-
 
23356
      switch (field) {
-
 
23357
      case ORDER_ID:
-
 
23358
        return Long.valueOf(getOrderId());
-
 
23359
 
-
 
23360
      }
-
 
23361
      throw new IllegalStateException();
-
 
23362
    }
-
 
23363
 
-
 
23364
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
23365
    public boolean isSet(_Fields field) {
-
 
23366
      if (field == null) {
-
 
23367
        throw new IllegalArgumentException();
-
 
23368
      }
-
 
23369
 
-
 
23370
      switch (field) {
-
 
23371
      case ORDER_ID:
-
 
23372
        return isSetOrderId();
-
 
23373
      }
-
 
23374
      throw new IllegalStateException();
-
 
23375
    }
-
 
23376
 
-
 
23377
    @Override
-
 
23378
    public boolean equals(Object that) {
-
 
23379
      if (that == null)
-
 
23380
        return false;
-
 
23381
      if (that instanceof getOrderDeliveryMail_args)
-
 
23382
        return this.equals((getOrderDeliveryMail_args)that);
-
 
23383
      return false;
-
 
23384
    }
-
 
23385
 
-
 
23386
    public boolean equals(getOrderDeliveryMail_args that) {
-
 
23387
      if (that == null)
-
 
23388
        return false;
-
 
23389
 
-
 
23390
      boolean this_present_orderId = true;
-
 
23391
      boolean that_present_orderId = true;
-
 
23392
      if (this_present_orderId || that_present_orderId) {
-
 
23393
        if (!(this_present_orderId && that_present_orderId))
-
 
23394
          return false;
-
 
23395
        if (this.orderId != that.orderId)
-
 
23396
          return false;
-
 
23397
      }
-
 
23398
 
-
 
23399
      return true;
-
 
23400
    }
-
 
23401
 
-
 
23402
    @Override
-
 
23403
    public int hashCode() {
-
 
23404
      return 0;
-
 
23405
    }
-
 
23406
 
-
 
23407
    public int compareTo(getOrderDeliveryMail_args other) {
-
 
23408
      if (!getClass().equals(other.getClass())) {
-
 
23409
        return getClass().getName().compareTo(other.getClass().getName());
-
 
23410
      }
-
 
23411
 
-
 
23412
      int lastComparison = 0;
-
 
23413
      getOrderDeliveryMail_args typedOther = (getOrderDeliveryMail_args)other;
-
 
23414
 
-
 
23415
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
-
 
23416
      if (lastComparison != 0) {
-
 
23417
        return lastComparison;
-
 
23418
      }
-
 
23419
      if (isSetOrderId()) {
-
 
23420
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
-
 
23421
        if (lastComparison != 0) {
-
 
23422
          return lastComparison;
-
 
23423
        }
-
 
23424
      }
-
 
23425
      return 0;
-
 
23426
    }
-
 
23427
 
-
 
23428
    public _Fields fieldForId(int fieldId) {
-
 
23429
      return _Fields.findByThriftId(fieldId);
-
 
23430
    }
-
 
23431
 
-
 
23432
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
23433
      org.apache.thrift.protocol.TField field;
-
 
23434
      iprot.readStructBegin();
-
 
23435
      while (true)
-
 
23436
      {
-
 
23437
        field = iprot.readFieldBegin();
-
 
23438
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
23439
          break;
-
 
23440
        }
-
 
23441
        switch (field.id) {
-
 
23442
          case 1: // ORDER_ID
-
 
23443
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
23444
              this.orderId = iprot.readI64();
-
 
23445
              setOrderIdIsSet(true);
-
 
23446
            } else { 
-
 
23447
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
23448
            }
-
 
23449
            break;
-
 
23450
          default:
-
 
23451
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
23452
        }
-
 
23453
        iprot.readFieldEnd();
-
 
23454
      }
-
 
23455
      iprot.readStructEnd();
-
 
23456
      validate();
-
 
23457
    }
-
 
23458
 
-
 
23459
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
23460
      validate();
-
 
23461
 
-
 
23462
      oprot.writeStructBegin(STRUCT_DESC);
-
 
23463
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
23464
      oprot.writeI64(this.orderId);
-
 
23465
      oprot.writeFieldEnd();
-
 
23466
      oprot.writeFieldStop();
-
 
23467
      oprot.writeStructEnd();
-
 
23468
    }
-
 
23469
 
-
 
23470
    @Override
-
 
23471
    public String toString() {
-
 
23472
      StringBuilder sb = new StringBuilder("getOrderDeliveryMail_args(");
-
 
23473
      boolean first = true;
-
 
23474
 
-
 
23475
      sb.append("orderId:");
-
 
23476
      sb.append(this.orderId);
-
 
23477
      first = false;
-
 
23478
      sb.append(")");
-
 
23479
      return sb.toString();
-
 
23480
    }
-
 
23481
 
-
 
23482
    public void validate() throws org.apache.thrift.TException {
-
 
23483
      // check for required fields
-
 
23484
    }
-
 
23485
 
-
 
23486
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
23487
      try {
-
 
23488
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
23489
      } catch (org.apache.thrift.TException te) {
-
 
23490
        throw new java.io.IOException(te);
-
 
23491
      }
-
 
23492
    }
-
 
23493
 
-
 
23494
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
23495
      try {
-
 
23496
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
23497
        __isset_bit_vector = new BitSet(1);
-
 
23498
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
23499
      } catch (org.apache.thrift.TException te) {
-
 
23500
        throw new java.io.IOException(te);
-
 
23501
      }
-
 
23502
    }
-
 
23503
 
-
 
23504
  }
-
 
23505
 
-
 
23506
  public static class getOrderDeliveryMail_result implements org.apache.thrift.TBase<getOrderDeliveryMail_result, getOrderDeliveryMail_result._Fields>, java.io.Serializable, Cloneable   {
-
 
23507
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderDeliveryMail_result");
-
 
23508
 
-
 
23509
    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);
-
 
23510
 
-
 
23511
    private String success; // required
-
 
23512
 
-
 
23513
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
23514
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
23515
      SUCCESS((short)0, "success");
-
 
23516
 
-
 
23517
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
23518
 
-
 
23519
      static {
-
 
23520
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
23521
          byName.put(field.getFieldName(), field);
-
 
23522
        }
-
 
23523
      }
-
 
23524
 
-
 
23525
      /**
-
 
23526
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
23527
       */
-
 
23528
      public static _Fields findByThriftId(int fieldId) {
-
 
23529
        switch(fieldId) {
-
 
23530
          case 0: // SUCCESS
-
 
23531
            return SUCCESS;
-
 
23532
          default:
-
 
23533
            return null;
-
 
23534
        }
-
 
23535
      }
-
 
23536
 
-
 
23537
      /**
-
 
23538
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
23539
       * if it is not found.
-
 
23540
       */
-
 
23541
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
23542
        _Fields fields = findByThriftId(fieldId);
-
 
23543
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
23544
        return fields;
-
 
23545
      }
-
 
23546
 
-
 
23547
      /**
-
 
23548
       * Find the _Fields constant that matches name, or null if its not found.
-
 
23549
       */
-
 
23550
      public static _Fields findByName(String name) {
-
 
23551
        return byName.get(name);
-
 
23552
      }
-
 
23553
 
-
 
23554
      private final short _thriftId;
-
 
23555
      private final String _fieldName;
-
 
23556
 
-
 
23557
      _Fields(short thriftId, String fieldName) {
-
 
23558
        _thriftId = thriftId;
-
 
23559
        _fieldName = fieldName;
-
 
23560
      }
-
 
23561
 
-
 
23562
      public short getThriftFieldId() {
-
 
23563
        return _thriftId;
-
 
23564
      }
-
 
23565
 
-
 
23566
      public String getFieldName() {
-
 
23567
        return _fieldName;
-
 
23568
      }
-
 
23569
    }
-
 
23570
 
-
 
23571
    // isset id assignments
-
 
23572
 
-
 
23573
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
23574
    static {
-
 
23575
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
23576
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
23577
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
23578
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
23579
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderDeliveryMail_result.class, metaDataMap);
-
 
23580
    }
-
 
23581
 
-
 
23582
    public getOrderDeliveryMail_result() {
-
 
23583
    }
-
 
23584
 
-
 
23585
    public getOrderDeliveryMail_result(
-
 
23586
      String success)
-
 
23587
    {
-
 
23588
      this();
-
 
23589
      this.success = success;
-
 
23590
    }
-
 
23591
 
-
 
23592
    /**
-
 
23593
     * Performs a deep copy on <i>other</i>.
-
 
23594
     */
-
 
23595
    public getOrderDeliveryMail_result(getOrderDeliveryMail_result other) {
-
 
23596
      if (other.isSetSuccess()) {
-
 
23597
        this.success = other.success;
-
 
23598
      }
-
 
23599
    }
-
 
23600
 
-
 
23601
    public getOrderDeliveryMail_result deepCopy() {
-
 
23602
      return new getOrderDeliveryMail_result(this);
-
 
23603
    }
-
 
23604
 
-
 
23605
    @Override
-
 
23606
    public void clear() {
-
 
23607
      this.success = null;
-
 
23608
    }
-
 
23609
 
-
 
23610
    public String getSuccess() {
-
 
23611
      return this.success;
-
 
23612
    }
-
 
23613
 
-
 
23614
    public void setSuccess(String success) {
-
 
23615
      this.success = success;
-
 
23616
    }
-
 
23617
 
-
 
23618
    public void unsetSuccess() {
-
 
23619
      this.success = null;
-
 
23620
    }
-
 
23621
 
-
 
23622
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
23623
    public boolean isSetSuccess() {
-
 
23624
      return this.success != null;
-
 
23625
    }
-
 
23626
 
-
 
23627
    public void setSuccessIsSet(boolean value) {
-
 
23628
      if (!value) {
-
 
23629
        this.success = null;
-
 
23630
      }
-
 
23631
    }
-
 
23632
 
-
 
23633
    public void setFieldValue(_Fields field, Object value) {
-
 
23634
      switch (field) {
-
 
23635
      case SUCCESS:
-
 
23636
        if (value == null) {
-
 
23637
          unsetSuccess();
-
 
23638
        } else {
-
 
23639
          setSuccess((String)value);
-
 
23640
        }
-
 
23641
        break;
-
 
23642
 
-
 
23643
      }
-
 
23644
    }
-
 
23645
 
-
 
23646
    public Object getFieldValue(_Fields field) {
-
 
23647
      switch (field) {
-
 
23648
      case SUCCESS:
-
 
23649
        return getSuccess();
-
 
23650
 
-
 
23651
      }
-
 
23652
      throw new IllegalStateException();
-
 
23653
    }
-
 
23654
 
-
 
23655
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
23656
    public boolean isSet(_Fields field) {
-
 
23657
      if (field == null) {
-
 
23658
        throw new IllegalArgumentException();
-
 
23659
      }
-
 
23660
 
-
 
23661
      switch (field) {
-
 
23662
      case SUCCESS:
-
 
23663
        return isSetSuccess();
-
 
23664
      }
-
 
23665
      throw new IllegalStateException();
-
 
23666
    }
-
 
23667
 
-
 
23668
    @Override
-
 
23669
    public boolean equals(Object that) {
-
 
23670
      if (that == null)
-
 
23671
        return false;
-
 
23672
      if (that instanceof getOrderDeliveryMail_result)
-
 
23673
        return this.equals((getOrderDeliveryMail_result)that);
-
 
23674
      return false;
-
 
23675
    }
-
 
23676
 
-
 
23677
    public boolean equals(getOrderDeliveryMail_result that) {
-
 
23678
      if (that == null)
-
 
23679
        return false;
-
 
23680
 
-
 
23681
      boolean this_present_success = true && this.isSetSuccess();
-
 
23682
      boolean that_present_success = true && that.isSetSuccess();
-
 
23683
      if (this_present_success || that_present_success) {
-
 
23684
        if (!(this_present_success && that_present_success))
-
 
23685
          return false;
-
 
23686
        if (!this.success.equals(that.success))
-
 
23687
          return false;
-
 
23688
      }
-
 
23689
 
-
 
23690
      return true;
-
 
23691
    }
-
 
23692
 
-
 
23693
    @Override
-
 
23694
    public int hashCode() {
-
 
23695
      return 0;
-
 
23696
    }
-
 
23697
 
-
 
23698
    public int compareTo(getOrderDeliveryMail_result other) {
-
 
23699
      if (!getClass().equals(other.getClass())) {
-
 
23700
        return getClass().getName().compareTo(other.getClass().getName());
-
 
23701
      }
-
 
23702
 
-
 
23703
      int lastComparison = 0;
-
 
23704
      getOrderDeliveryMail_result typedOther = (getOrderDeliveryMail_result)other;
-
 
23705
 
-
 
23706
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
23707
      if (lastComparison != 0) {
-
 
23708
        return lastComparison;
-
 
23709
      }
-
 
23710
      if (isSetSuccess()) {
-
 
23711
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
23712
        if (lastComparison != 0) {
-
 
23713
          return lastComparison;
-
 
23714
        }
-
 
23715
      }
-
 
23716
      return 0;
-
 
23717
    }
-
 
23718
 
-
 
23719
    public _Fields fieldForId(int fieldId) {
-
 
23720
      return _Fields.findByThriftId(fieldId);
-
 
23721
    }
-
 
23722
 
-
 
23723
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
23724
      org.apache.thrift.protocol.TField field;
-
 
23725
      iprot.readStructBegin();
-
 
23726
      while (true)
-
 
23727
      {
-
 
23728
        field = iprot.readFieldBegin();
-
 
23729
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
23730
          break;
-
 
23731
        }
-
 
23732
        switch (field.id) {
-
 
23733
          case 0: // SUCCESS
-
 
23734
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
23735
              this.success = iprot.readString();
-
 
23736
            } else { 
-
 
23737
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
23738
            }
-
 
23739
            break;
-
 
23740
          default:
-
 
23741
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
23742
        }
-
 
23743
        iprot.readFieldEnd();
-
 
23744
      }
-
 
23745
      iprot.readStructEnd();
-
 
23746
      validate();
-
 
23747
    }
-
 
23748
 
-
 
23749
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
23750
      oprot.writeStructBegin(STRUCT_DESC);
-
 
23751
 
-
 
23752
      if (this.isSetSuccess()) {
-
 
23753
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
23754
        oprot.writeString(this.success);
-
 
23755
        oprot.writeFieldEnd();
-
 
23756
      }
-
 
23757
      oprot.writeFieldStop();
-
 
23758
      oprot.writeStructEnd();
-
 
23759
    }
-
 
23760
 
-
 
23761
    @Override
-
 
23762
    public String toString() {
-
 
23763
      StringBuilder sb = new StringBuilder("getOrderDeliveryMail_result(");
-
 
23764
      boolean first = true;
-
 
23765
 
-
 
23766
      sb.append("success:");
-
 
23767
      if (this.success == null) {
-
 
23768
        sb.append("null");
23108
      } else {
23769
      } else {
23109
        sb.append(this.success);
23770
        sb.append(this.success);
23110
      }
23771
      }
23111
      first = false;
23772
      first = false;
23112
      sb.append(")");
23773
      sb.append(")");