Subversion Repositories SmartDukaan

Rev

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

Rev 7221 Rev 7410
Line 161... Line 161...
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;
164
    public String getOrderDeliveryMail(long orderId) throws org.apache.thrift.TException;
165
 
165
 
-
 
166
    public List<Long> getWarehouseIdsForAgent(String agentEmailId) throws org.apache.thrift.TException;
-
 
167
 
166
  }
168
  }
167
 
169
 
168
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
170
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
169
 
171
 
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;
172
    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 225... Line 227...
225
 
227
 
226
    public void getOrderConfirmationMail(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderConfirmationMail_call> resultHandler) throws org.apache.thrift.TException;
228
    public void getOrderConfirmationMail(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderConfirmationMail_call> resultHandler) throws org.apache.thrift.TException;
227
 
229
 
228
    public void getOrderDeliveryMail(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderDeliveryMail_call> resultHandler) throws org.apache.thrift.TException;
230
    public void getOrderDeliveryMail(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderDeliveryMail_call> resultHandler) throws org.apache.thrift.TException;
229
 
231
 
-
 
232
    public void getWarehouseIdsForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getWarehouseIdsForAgent_call> resultHandler) throws org.apache.thrift.TException;
-
 
233
 
230
  }
234
  }
231
 
235
 
232
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
236
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
233
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
237
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
234
      public Factory() {}
238
      public Factory() {}
Line 998... Line 1002...
998
        return result.success;
1002
        return result.success;
999
      }
1003
      }
1000
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderDeliveryMail failed: unknown result");
1004
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderDeliveryMail failed: unknown result");
1001
    }
1005
    }
1002
 
1006
 
-
 
1007
    public List<Long> getWarehouseIdsForAgent(String agentEmailId) throws org.apache.thrift.TException
-
 
1008
    {
-
 
1009
      send_getWarehouseIdsForAgent(agentEmailId);
-
 
1010
      return recv_getWarehouseIdsForAgent();
-
 
1011
    }
-
 
1012
 
-
 
1013
    public void send_getWarehouseIdsForAgent(String agentEmailId) throws org.apache.thrift.TException
-
 
1014
    {
-
 
1015
      getWarehouseIdsForAgent_args args = new getWarehouseIdsForAgent_args();
-
 
1016
      args.setAgentEmailId(agentEmailId);
-
 
1017
      sendBase("getWarehouseIdsForAgent", args);
-
 
1018
    }
-
 
1019
 
-
 
1020
    public List<Long> recv_getWarehouseIdsForAgent() throws org.apache.thrift.TException
-
 
1021
    {
-
 
1022
      getWarehouseIdsForAgent_result result = new getWarehouseIdsForAgent_result();
-
 
1023
      receiveBase(result, "getWarehouseIdsForAgent");
-
 
1024
      if (result.isSetSuccess()) {
-
 
1025
        return result.success;
-
 
1026
      }
-
 
1027
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getWarehouseIdsForAgent failed: unknown result");
-
 
1028
    }
-
 
1029
 
1003
  }
1030
  }
1004
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1031
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1005
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1032
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1006
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1033
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1007
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
1034
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 2042... Line 2069...
2042
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2069
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2043
        return (new Client(prot)).recv_getOrderDeliveryMail();
2070
        return (new Client(prot)).recv_getOrderDeliveryMail();
2044
      }
2071
      }
2045
    }
2072
    }
2046
 
2073
 
-
 
2074
    public void getWarehouseIdsForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<getWarehouseIdsForAgent_call> resultHandler) throws org.apache.thrift.TException {
-
 
2075
      checkReady();
-
 
2076
      getWarehouseIdsForAgent_call method_call = new getWarehouseIdsForAgent_call(agentEmailId, resultHandler, this, ___protocolFactory, ___transport);
-
 
2077
      this.___currentMethod = method_call;
-
 
2078
      ___manager.call(method_call);
-
 
2079
    }
-
 
2080
 
-
 
2081
    public static class getWarehouseIdsForAgent_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
2082
      private String agentEmailId;
-
 
2083
      public getWarehouseIdsForAgent_call(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<getWarehouseIdsForAgent_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 {
-
 
2084
        super(client, protocolFactory, transport, resultHandler, false);
-
 
2085
        this.agentEmailId = agentEmailId;
-
 
2086
      }
-
 
2087
 
-
 
2088
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
2089
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getWarehouseIdsForAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
2090
        getWarehouseIdsForAgent_args args = new getWarehouseIdsForAgent_args();
-
 
2091
        args.setAgentEmailId(agentEmailId);
-
 
2092
        args.write(prot);
-
 
2093
        prot.writeMessageEnd();
-
 
2094
      }
-
 
2095
 
-
 
2096
      public List<Long> getResult() throws org.apache.thrift.TException {
-
 
2097
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
2098
          throw new IllegalStateException("Method call not finished!");
-
 
2099
        }
-
 
2100
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
2101
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
2102
        return (new Client(prot)).recv_getWarehouseIdsForAgent();
-
 
2103
      }
-
 
2104
    }
-
 
2105
 
2047
  }
2106
  }
2048
 
2107
 
2049
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
2108
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
2050
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
2109
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
2051
    public Processor(I iface) {
2110
    public Processor(I iface) {
Line 2085... Line 2144...
2085
      processMap.put("getQuickLinks", new getQuickLinks());
2144
      processMap.put("getQuickLinks", new getQuickLinks());
2086
      processMap.put("updateQuickLink", new updateQuickLink());
2145
      processMap.put("updateQuickLink", new updateQuickLink());
2087
      processMap.put("getEmailsForNotificationsSent", new getEmailsForNotificationsSent());
2146
      processMap.put("getEmailsForNotificationsSent", new getEmailsForNotificationsSent());
2088
      processMap.put("getOrderConfirmationMail", new getOrderConfirmationMail());
2147
      processMap.put("getOrderConfirmationMail", new getOrderConfirmationMail());
2089
      processMap.put("getOrderDeliveryMail", new getOrderDeliveryMail());
2148
      processMap.put("getOrderDeliveryMail", new getOrderDeliveryMail());
-
 
2149
      processMap.put("getWarehouseIdsForAgent", new getWarehouseIdsForAgent());
2090
      return processMap;
2150
      return processMap;
2091
    }
2151
    }
2092
 
2152
 
2093
    private static class saveUserEmailForSending<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveUserEmailForSending_args> {
2153
    private static class saveUserEmailForSending<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveUserEmailForSending_args> {
2094
      public saveUserEmailForSending() {
2154
      public saveUserEmailForSending() {
Line 2661... Line 2721...
2661
        result.success = iface.getOrderDeliveryMail(args.orderId);
2721
        result.success = iface.getOrderDeliveryMail(args.orderId);
2662
        return result;
2722
        return result;
2663
      }
2723
      }
2664
    }
2724
    }
2665
 
2725
 
-
 
2726
    private static class getWarehouseIdsForAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getWarehouseIdsForAgent_args> {
-
 
2727
      public getWarehouseIdsForAgent() {
-
 
2728
        super("getWarehouseIdsForAgent");
-
 
2729
      }
-
 
2730
 
-
 
2731
      protected getWarehouseIdsForAgent_args getEmptyArgsInstance() {
-
 
2732
        return new getWarehouseIdsForAgent_args();
-
 
2733
      }
-
 
2734
 
-
 
2735
      protected getWarehouseIdsForAgent_result getResult(I iface, getWarehouseIdsForAgent_args args) throws org.apache.thrift.TException {
-
 
2736
        getWarehouseIdsForAgent_result result = new getWarehouseIdsForAgent_result();
-
 
2737
        result.success = iface.getWarehouseIdsForAgent(args.agentEmailId);
-
 
2738
        return result;
-
 
2739
      }
-
 
2740
    }
-
 
2741
 
2666
  }
2742
  }
2667
 
2743
 
2668
  public static class saveUserEmailForSending_args implements org.apache.thrift.TBase<saveUserEmailForSending_args, saveUserEmailForSending_args._Fields>, java.io.Serializable, Cloneable   {
2744
  public static class saveUserEmailForSending_args implements org.apache.thrift.TBase<saveUserEmailForSending_args, saveUserEmailForSending_args._Fields>, java.io.Serializable, Cloneable   {
2669
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_args");
2745
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_args");
2670
 
2746
 
Line 23764... Line 23840...
23764
      boolean first = true;
23840
      boolean first = true;
23765
 
23841
 
23766
      sb.append("success:");
23842
      sb.append("success:");
23767
      if (this.success == null) {
23843
      if (this.success == null) {
23768
        sb.append("null");
23844
        sb.append("null");
-
 
23845
      } else {
-
 
23846
        sb.append(this.success);
-
 
23847
      }
-
 
23848
      first = false;
-
 
23849
      sb.append(")");
-
 
23850
      return sb.toString();
-
 
23851
    }
-
 
23852
 
-
 
23853
    public void validate() throws org.apache.thrift.TException {
-
 
23854
      // check for required fields
-
 
23855
    }
-
 
23856
 
-
 
23857
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
23858
      try {
-
 
23859
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
23860
      } catch (org.apache.thrift.TException te) {
-
 
23861
        throw new java.io.IOException(te);
-
 
23862
      }
-
 
23863
    }
-
 
23864
 
-
 
23865
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
23866
      try {
-
 
23867
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
23868
      } catch (org.apache.thrift.TException te) {
-
 
23869
        throw new java.io.IOException(te);
-
 
23870
      }
-
 
23871
    }
-
 
23872
 
-
 
23873
  }
-
 
23874
 
-
 
23875
  public static class getWarehouseIdsForAgent_args implements org.apache.thrift.TBase<getWarehouseIdsForAgent_args, getWarehouseIdsForAgent_args._Fields>, java.io.Serializable, Cloneable   {
-
 
23876
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouseIdsForAgent_args");
-
 
23877
 
-
 
23878
    private static final org.apache.thrift.protocol.TField AGENT_EMAIL_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("agentEmailId", org.apache.thrift.protocol.TType.STRING, (short)1);
-
 
23879
 
-
 
23880
    private String agentEmailId; // required
-
 
23881
 
-
 
23882
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
23883
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
23884
      AGENT_EMAIL_ID((short)1, "agentEmailId");
-
 
23885
 
-
 
23886
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
23887
 
-
 
23888
      static {
-
 
23889
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
23890
          byName.put(field.getFieldName(), field);
-
 
23891
        }
-
 
23892
      }
-
 
23893
 
-
 
23894
      /**
-
 
23895
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
23896
       */
-
 
23897
      public static _Fields findByThriftId(int fieldId) {
-
 
23898
        switch(fieldId) {
-
 
23899
          case 1: // AGENT_EMAIL_ID
-
 
23900
            return AGENT_EMAIL_ID;
-
 
23901
          default:
-
 
23902
            return null;
-
 
23903
        }
-
 
23904
      }
-
 
23905
 
-
 
23906
      /**
-
 
23907
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
23908
       * if it is not found.
-
 
23909
       */
-
 
23910
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
23911
        _Fields fields = findByThriftId(fieldId);
-
 
23912
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
23913
        return fields;
-
 
23914
      }
-
 
23915
 
-
 
23916
      /**
-
 
23917
       * Find the _Fields constant that matches name, or null if its not found.
-
 
23918
       */
-
 
23919
      public static _Fields findByName(String name) {
-
 
23920
        return byName.get(name);
-
 
23921
      }
-
 
23922
 
-
 
23923
      private final short _thriftId;
-
 
23924
      private final String _fieldName;
-
 
23925
 
-
 
23926
      _Fields(short thriftId, String fieldName) {
-
 
23927
        _thriftId = thriftId;
-
 
23928
        _fieldName = fieldName;
-
 
23929
      }
-
 
23930
 
-
 
23931
      public short getThriftFieldId() {
-
 
23932
        return _thriftId;
-
 
23933
      }
-
 
23934
 
-
 
23935
      public String getFieldName() {
-
 
23936
        return _fieldName;
-
 
23937
      }
-
 
23938
    }
-
 
23939
 
-
 
23940
    // isset id assignments
-
 
23941
 
-
 
23942
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
23943
    static {
-
 
23944
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
23945
      tmpMap.put(_Fields.AGENT_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("agentEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
23946
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
23947
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
23948
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouseIdsForAgent_args.class, metaDataMap);
-
 
23949
    }
-
 
23950
 
-
 
23951
    public getWarehouseIdsForAgent_args() {
-
 
23952
    }
-
 
23953
 
-
 
23954
    public getWarehouseIdsForAgent_args(
-
 
23955
      String agentEmailId)
-
 
23956
    {
-
 
23957
      this();
-
 
23958
      this.agentEmailId = agentEmailId;
-
 
23959
    }
-
 
23960
 
-
 
23961
    /**
-
 
23962
     * Performs a deep copy on <i>other</i>.
-
 
23963
     */
-
 
23964
    public getWarehouseIdsForAgent_args(getWarehouseIdsForAgent_args other) {
-
 
23965
      if (other.isSetAgentEmailId()) {
-
 
23966
        this.agentEmailId = other.agentEmailId;
-
 
23967
      }
-
 
23968
    }
-
 
23969
 
-
 
23970
    public getWarehouseIdsForAgent_args deepCopy() {
-
 
23971
      return new getWarehouseIdsForAgent_args(this);
-
 
23972
    }
-
 
23973
 
-
 
23974
    @Override
-
 
23975
    public void clear() {
-
 
23976
      this.agentEmailId = null;
-
 
23977
    }
-
 
23978
 
-
 
23979
    public String getAgentEmailId() {
-
 
23980
      return this.agentEmailId;
-
 
23981
    }
-
 
23982
 
-
 
23983
    public void setAgentEmailId(String agentEmailId) {
-
 
23984
      this.agentEmailId = agentEmailId;
-
 
23985
    }
-
 
23986
 
-
 
23987
    public void unsetAgentEmailId() {
-
 
23988
      this.agentEmailId = null;
-
 
23989
    }
-
 
23990
 
-
 
23991
    /** Returns true if field agentEmailId is set (has been assigned a value) and false otherwise */
-
 
23992
    public boolean isSetAgentEmailId() {
-
 
23993
      return this.agentEmailId != null;
-
 
23994
    }
-
 
23995
 
-
 
23996
    public void setAgentEmailIdIsSet(boolean value) {
-
 
23997
      if (!value) {
-
 
23998
        this.agentEmailId = null;
-
 
23999
      }
-
 
24000
    }
-
 
24001
 
-
 
24002
    public void setFieldValue(_Fields field, Object value) {
-
 
24003
      switch (field) {
-
 
24004
      case AGENT_EMAIL_ID:
-
 
24005
        if (value == null) {
-
 
24006
          unsetAgentEmailId();
-
 
24007
        } else {
-
 
24008
          setAgentEmailId((String)value);
-
 
24009
        }
-
 
24010
        break;
-
 
24011
 
-
 
24012
      }
-
 
24013
    }
-
 
24014
 
-
 
24015
    public Object getFieldValue(_Fields field) {
-
 
24016
      switch (field) {
-
 
24017
      case AGENT_EMAIL_ID:
-
 
24018
        return getAgentEmailId();
-
 
24019
 
-
 
24020
      }
-
 
24021
      throw new IllegalStateException();
-
 
24022
    }
-
 
24023
 
-
 
24024
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
24025
    public boolean isSet(_Fields field) {
-
 
24026
      if (field == null) {
-
 
24027
        throw new IllegalArgumentException();
-
 
24028
      }
-
 
24029
 
-
 
24030
      switch (field) {
-
 
24031
      case AGENT_EMAIL_ID:
-
 
24032
        return isSetAgentEmailId();
-
 
24033
      }
-
 
24034
      throw new IllegalStateException();
-
 
24035
    }
-
 
24036
 
-
 
24037
    @Override
-
 
24038
    public boolean equals(Object that) {
-
 
24039
      if (that == null)
-
 
24040
        return false;
-
 
24041
      if (that instanceof getWarehouseIdsForAgent_args)
-
 
24042
        return this.equals((getWarehouseIdsForAgent_args)that);
-
 
24043
      return false;
-
 
24044
    }
-
 
24045
 
-
 
24046
    public boolean equals(getWarehouseIdsForAgent_args that) {
-
 
24047
      if (that == null)
-
 
24048
        return false;
-
 
24049
 
-
 
24050
      boolean this_present_agentEmailId = true && this.isSetAgentEmailId();
-
 
24051
      boolean that_present_agentEmailId = true && that.isSetAgentEmailId();
-
 
24052
      if (this_present_agentEmailId || that_present_agentEmailId) {
-
 
24053
        if (!(this_present_agentEmailId && that_present_agentEmailId))
-
 
24054
          return false;
-
 
24055
        if (!this.agentEmailId.equals(that.agentEmailId))
-
 
24056
          return false;
-
 
24057
      }
-
 
24058
 
-
 
24059
      return true;
-
 
24060
    }
-
 
24061
 
-
 
24062
    @Override
-
 
24063
    public int hashCode() {
-
 
24064
      return 0;
-
 
24065
    }
-
 
24066
 
-
 
24067
    public int compareTo(getWarehouseIdsForAgent_args other) {
-
 
24068
      if (!getClass().equals(other.getClass())) {
-
 
24069
        return getClass().getName().compareTo(other.getClass().getName());
-
 
24070
      }
-
 
24071
 
-
 
24072
      int lastComparison = 0;
-
 
24073
      getWarehouseIdsForAgent_args typedOther = (getWarehouseIdsForAgent_args)other;
-
 
24074
 
-
 
24075
      lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(typedOther.isSetAgentEmailId());
-
 
24076
      if (lastComparison != 0) {
-
 
24077
        return lastComparison;
-
 
24078
      }
-
 
24079
      if (isSetAgentEmailId()) {
-
 
24080
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentEmailId, typedOther.agentEmailId);
-
 
24081
        if (lastComparison != 0) {
-
 
24082
          return lastComparison;
-
 
24083
        }
-
 
24084
      }
-
 
24085
      return 0;
-
 
24086
    }
-
 
24087
 
-
 
24088
    public _Fields fieldForId(int fieldId) {
-
 
24089
      return _Fields.findByThriftId(fieldId);
-
 
24090
    }
-
 
24091
 
-
 
24092
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
24093
      org.apache.thrift.protocol.TField field;
-
 
24094
      iprot.readStructBegin();
-
 
24095
      while (true)
-
 
24096
      {
-
 
24097
        field = iprot.readFieldBegin();
-
 
24098
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
24099
          break;
-
 
24100
        }
-
 
24101
        switch (field.id) {
-
 
24102
          case 1: // AGENT_EMAIL_ID
-
 
24103
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
24104
              this.agentEmailId = iprot.readString();
-
 
24105
            } else { 
-
 
24106
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
24107
            }
-
 
24108
            break;
-
 
24109
          default:
-
 
24110
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
24111
        }
-
 
24112
        iprot.readFieldEnd();
-
 
24113
      }
-
 
24114
      iprot.readStructEnd();
-
 
24115
      validate();
-
 
24116
    }
-
 
24117
 
-
 
24118
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
24119
      validate();
-
 
24120
 
-
 
24121
      oprot.writeStructBegin(STRUCT_DESC);
-
 
24122
      if (this.agentEmailId != null) {
-
 
24123
        oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);
-
 
24124
        oprot.writeString(this.agentEmailId);
-
 
24125
        oprot.writeFieldEnd();
-
 
24126
      }
-
 
24127
      oprot.writeFieldStop();
-
 
24128
      oprot.writeStructEnd();
-
 
24129
    }
-
 
24130
 
-
 
24131
    @Override
-
 
24132
    public String toString() {
-
 
24133
      StringBuilder sb = new StringBuilder("getWarehouseIdsForAgent_args(");
-
 
24134
      boolean first = true;
-
 
24135
 
-
 
24136
      sb.append("agentEmailId:");
-
 
24137
      if (this.agentEmailId == null) {
-
 
24138
        sb.append("null");
-
 
24139
      } else {
-
 
24140
        sb.append(this.agentEmailId);
-
 
24141
      }
-
 
24142
      first = false;
-
 
24143
      sb.append(")");
-
 
24144
      return sb.toString();
-
 
24145
    }
-
 
24146
 
-
 
24147
    public void validate() throws org.apache.thrift.TException {
-
 
24148
      // check for required fields
-
 
24149
    }
-
 
24150
 
-
 
24151
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
24152
      try {
-
 
24153
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
24154
      } catch (org.apache.thrift.TException te) {
-
 
24155
        throw new java.io.IOException(te);
-
 
24156
      }
-
 
24157
    }
-
 
24158
 
-
 
24159
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
24160
      try {
-
 
24161
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
24162
      } catch (org.apache.thrift.TException te) {
-
 
24163
        throw new java.io.IOException(te);
-
 
24164
      }
-
 
24165
    }
-
 
24166
 
-
 
24167
  }
-
 
24168
 
-
 
24169
  public static class getWarehouseIdsForAgent_result implements org.apache.thrift.TBase<getWarehouseIdsForAgent_result, getWarehouseIdsForAgent_result._Fields>, java.io.Serializable, Cloneable   {
-
 
24170
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouseIdsForAgent_result");
-
 
24171
 
-
 
24172
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
-
 
24173
 
-
 
24174
    private List<Long> success; // required
-
 
24175
 
-
 
24176
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
24177
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
24178
      SUCCESS((short)0, "success");
-
 
24179
 
-
 
24180
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
24181
 
-
 
24182
      static {
-
 
24183
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
24184
          byName.put(field.getFieldName(), field);
-
 
24185
        }
-
 
24186
      }
-
 
24187
 
-
 
24188
      /**
-
 
24189
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
24190
       */
-
 
24191
      public static _Fields findByThriftId(int fieldId) {
-
 
24192
        switch(fieldId) {
-
 
24193
          case 0: // SUCCESS
-
 
24194
            return SUCCESS;
-
 
24195
          default:
-
 
24196
            return null;
-
 
24197
        }
-
 
24198
      }
-
 
24199
 
-
 
24200
      /**
-
 
24201
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
24202
       * if it is not found.
-
 
24203
       */
-
 
24204
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
24205
        _Fields fields = findByThriftId(fieldId);
-
 
24206
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
24207
        return fields;
-
 
24208
      }
-
 
24209
 
-
 
24210
      /**
-
 
24211
       * Find the _Fields constant that matches name, or null if its not found.
-
 
24212
       */
-
 
24213
      public static _Fields findByName(String name) {
-
 
24214
        return byName.get(name);
-
 
24215
      }
-
 
24216
 
-
 
24217
      private final short _thriftId;
-
 
24218
      private final String _fieldName;
-
 
24219
 
-
 
24220
      _Fields(short thriftId, String fieldName) {
-
 
24221
        _thriftId = thriftId;
-
 
24222
        _fieldName = fieldName;
-
 
24223
      }
-
 
24224
 
-
 
24225
      public short getThriftFieldId() {
-
 
24226
        return _thriftId;
-
 
24227
      }
-
 
24228
 
-
 
24229
      public String getFieldName() {
-
 
24230
        return _fieldName;
-
 
24231
      }
-
 
24232
    }
-
 
24233
 
-
 
24234
    // isset id assignments
-
 
24235
 
-
 
24236
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
24237
    static {
-
 
24238
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
24239
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
24240
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
24241
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
-
 
24242
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
24243
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouseIdsForAgent_result.class, metaDataMap);
-
 
24244
    }
-
 
24245
 
-
 
24246
    public getWarehouseIdsForAgent_result() {
-
 
24247
    }
-
 
24248
 
-
 
24249
    public getWarehouseIdsForAgent_result(
-
 
24250
      List<Long> success)
-
 
24251
    {
-
 
24252
      this();
-
 
24253
      this.success = success;
-
 
24254
    }
-
 
24255
 
-
 
24256
    /**
-
 
24257
     * Performs a deep copy on <i>other</i>.
-
 
24258
     */
-
 
24259
    public getWarehouseIdsForAgent_result(getWarehouseIdsForAgent_result other) {
-
 
24260
      if (other.isSetSuccess()) {
-
 
24261
        List<Long> __this__success = new ArrayList<Long>();
-
 
24262
        for (Long other_element : other.success) {
-
 
24263
          __this__success.add(other_element);
-
 
24264
        }
-
 
24265
        this.success = __this__success;
-
 
24266
      }
-
 
24267
    }
-
 
24268
 
-
 
24269
    public getWarehouseIdsForAgent_result deepCopy() {
-
 
24270
      return new getWarehouseIdsForAgent_result(this);
-
 
24271
    }
-
 
24272
 
-
 
24273
    @Override
-
 
24274
    public void clear() {
-
 
24275
      this.success = null;
-
 
24276
    }
-
 
24277
 
-
 
24278
    public int getSuccessSize() {
-
 
24279
      return (this.success == null) ? 0 : this.success.size();
-
 
24280
    }
-
 
24281
 
-
 
24282
    public java.util.Iterator<Long> getSuccessIterator() {
-
 
24283
      return (this.success == null) ? null : this.success.iterator();
-
 
24284
    }
-
 
24285
 
-
 
24286
    public void addToSuccess(long elem) {
-
 
24287
      if (this.success == null) {
-
 
24288
        this.success = new ArrayList<Long>();
-
 
24289
      }
-
 
24290
      this.success.add(elem);
-
 
24291
    }
-
 
24292
 
-
 
24293
    public List<Long> getSuccess() {
-
 
24294
      return this.success;
-
 
24295
    }
-
 
24296
 
-
 
24297
    public void setSuccess(List<Long> success) {
-
 
24298
      this.success = success;
-
 
24299
    }
-
 
24300
 
-
 
24301
    public void unsetSuccess() {
-
 
24302
      this.success = null;
-
 
24303
    }
-
 
24304
 
-
 
24305
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
24306
    public boolean isSetSuccess() {
-
 
24307
      return this.success != null;
-
 
24308
    }
-
 
24309
 
-
 
24310
    public void setSuccessIsSet(boolean value) {
-
 
24311
      if (!value) {
-
 
24312
        this.success = null;
-
 
24313
      }
-
 
24314
    }
-
 
24315
 
-
 
24316
    public void setFieldValue(_Fields field, Object value) {
-
 
24317
      switch (field) {
-
 
24318
      case SUCCESS:
-
 
24319
        if (value == null) {
-
 
24320
          unsetSuccess();
-
 
24321
        } else {
-
 
24322
          setSuccess((List<Long>)value);
-
 
24323
        }
-
 
24324
        break;
-
 
24325
 
-
 
24326
      }
-
 
24327
    }
-
 
24328
 
-
 
24329
    public Object getFieldValue(_Fields field) {
-
 
24330
      switch (field) {
-
 
24331
      case SUCCESS:
-
 
24332
        return getSuccess();
-
 
24333
 
-
 
24334
      }
-
 
24335
      throw new IllegalStateException();
-
 
24336
    }
-
 
24337
 
-
 
24338
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
24339
    public boolean isSet(_Fields field) {
-
 
24340
      if (field == null) {
-
 
24341
        throw new IllegalArgumentException();
-
 
24342
      }
-
 
24343
 
-
 
24344
      switch (field) {
-
 
24345
      case SUCCESS:
-
 
24346
        return isSetSuccess();
-
 
24347
      }
-
 
24348
      throw new IllegalStateException();
-
 
24349
    }
-
 
24350
 
-
 
24351
    @Override
-
 
24352
    public boolean equals(Object that) {
-
 
24353
      if (that == null)
-
 
24354
        return false;
-
 
24355
      if (that instanceof getWarehouseIdsForAgent_result)
-
 
24356
        return this.equals((getWarehouseIdsForAgent_result)that);
-
 
24357
      return false;
-
 
24358
    }
-
 
24359
 
-
 
24360
    public boolean equals(getWarehouseIdsForAgent_result that) {
-
 
24361
      if (that == null)
-
 
24362
        return false;
-
 
24363
 
-
 
24364
      boolean this_present_success = true && this.isSetSuccess();
-
 
24365
      boolean that_present_success = true && that.isSetSuccess();
-
 
24366
      if (this_present_success || that_present_success) {
-
 
24367
        if (!(this_present_success && that_present_success))
-
 
24368
          return false;
-
 
24369
        if (!this.success.equals(that.success))
-
 
24370
          return false;
-
 
24371
      }
-
 
24372
 
-
 
24373
      return true;
-
 
24374
    }
-
 
24375
 
-
 
24376
    @Override
-
 
24377
    public int hashCode() {
-
 
24378
      return 0;
-
 
24379
    }
-
 
24380
 
-
 
24381
    public int compareTo(getWarehouseIdsForAgent_result other) {
-
 
24382
      if (!getClass().equals(other.getClass())) {
-
 
24383
        return getClass().getName().compareTo(other.getClass().getName());
-
 
24384
      }
-
 
24385
 
-
 
24386
      int lastComparison = 0;
-
 
24387
      getWarehouseIdsForAgent_result typedOther = (getWarehouseIdsForAgent_result)other;
-
 
24388
 
-
 
24389
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
24390
      if (lastComparison != 0) {
-
 
24391
        return lastComparison;
-
 
24392
      }
-
 
24393
      if (isSetSuccess()) {
-
 
24394
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
24395
        if (lastComparison != 0) {
-
 
24396
          return lastComparison;
-
 
24397
        }
-
 
24398
      }
-
 
24399
      return 0;
-
 
24400
    }
-
 
24401
 
-
 
24402
    public _Fields fieldForId(int fieldId) {
-
 
24403
      return _Fields.findByThriftId(fieldId);
-
 
24404
    }
-
 
24405
 
-
 
24406
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
24407
      org.apache.thrift.protocol.TField field;
-
 
24408
      iprot.readStructBegin();
-
 
24409
      while (true)
-
 
24410
      {
-
 
24411
        field = iprot.readFieldBegin();
-
 
24412
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
24413
          break;
-
 
24414
        }
-
 
24415
        switch (field.id) {
-
 
24416
          case 0: // SUCCESS
-
 
24417
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
24418
              {
-
 
24419
                org.apache.thrift.protocol.TList _list69 = iprot.readListBegin();
-
 
24420
                this.success = new ArrayList<Long>(_list69.size);
-
 
24421
                for (int _i70 = 0; _i70 < _list69.size; ++_i70)
-
 
24422
                {
-
 
24423
                  long _elem71; // required
-
 
24424
                  _elem71 = iprot.readI64();
-
 
24425
                  this.success.add(_elem71);
-
 
24426
                }
-
 
24427
                iprot.readListEnd();
-
 
24428
              }
-
 
24429
            } else { 
-
 
24430
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
24431
            }
-
 
24432
            break;
-
 
24433
          default:
-
 
24434
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
24435
        }
-
 
24436
        iprot.readFieldEnd();
-
 
24437
      }
-
 
24438
      iprot.readStructEnd();
-
 
24439
      validate();
-
 
24440
    }
-
 
24441
 
-
 
24442
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
24443
      oprot.writeStructBegin(STRUCT_DESC);
-
 
24444
 
-
 
24445
      if (this.isSetSuccess()) {
-
 
24446
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
24447
        {
-
 
24448
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
-
 
24449
          for (long _iter72 : this.success)
-
 
24450
          {
-
 
24451
            oprot.writeI64(_iter72);
-
 
24452
          }
-
 
24453
          oprot.writeListEnd();
-
 
24454
        }
-
 
24455
        oprot.writeFieldEnd();
-
 
24456
      }
-
 
24457
      oprot.writeFieldStop();
-
 
24458
      oprot.writeStructEnd();
-
 
24459
    }
-
 
24460
 
-
 
24461
    @Override
-
 
24462
    public String toString() {
-
 
24463
      StringBuilder sb = new StringBuilder("getWarehouseIdsForAgent_result(");
-
 
24464
      boolean first = true;
-
 
24465
 
-
 
24466
      sb.append("success:");
-
 
24467
      if (this.success == null) {
-
 
24468
        sb.append("null");
23769
      } else {
24469
      } else {
23770
        sb.append(this.success);
24470
        sb.append(this.success);
23771
      }
24471
      }
23772
      first = false;
24472
      first = false;
23773
      sb.append(")");
24473
      sb.append(")");