Subversion Repositories SmartDukaan

Rev

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

Rev 11531 Rev 11592
Line 542... Line 542...
542
 
542
 
543
    public PrivateDeal getPrivateDealDetails(long item_id) throws org.apache.thrift.TException;
543
    public PrivateDeal getPrivateDealDetails(long item_id) throws org.apache.thrift.TException;
544
 
544
 
545
    public List<Item> getPrivateDealItems(long offset, long limit) throws org.apache.thrift.TException;
545
    public List<Item> getPrivateDealItems(long offset, long limit) throws org.apache.thrift.TException;
546
 
546
 
-
 
547
    public Map<Long,PrivateDeal> getAllActivePrivateDeals() throws org.apache.thrift.TException;
-
 
548
 
547
    public boolean addOrUpdatePrivateDeal(PrivateDeal privateDeal) throws org.apache.thrift.TException;
549
    public boolean addOrUpdatePrivateDeal(PrivateDeal privateDeal) throws org.apache.thrift.TException;
548
 
550
 
549
  }
551
  }
550
 
552
 
551
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
553
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
Line 870... Line 872...
870
 
872
 
871
    public void getPrivateDealDetails(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPrivateDealDetails_call> resultHandler) throws org.apache.thrift.TException;
873
    public void getPrivateDealDetails(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPrivateDealDetails_call> resultHandler) throws org.apache.thrift.TException;
872
 
874
 
873
    public void getPrivateDealItems(long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPrivateDealItems_call> resultHandler) throws org.apache.thrift.TException;
875
    public void getPrivateDealItems(long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPrivateDealItems_call> resultHandler) throws org.apache.thrift.TException;
874
 
876
 
-
 
877
    public void getAllActivePrivateDeals(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllActivePrivateDeals_call> resultHandler) throws org.apache.thrift.TException;
-
 
878
 
875
    public void addOrUpdatePrivateDeal(PrivateDeal privateDeal, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdatePrivateDeal_call> resultHandler) throws org.apache.thrift.TException;
879
    public void addOrUpdatePrivateDeal(PrivateDeal privateDeal, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdatePrivateDeal_call> resultHandler) throws org.apache.thrift.TException;
876
 
880
 
877
  }
881
  }
878
 
882
 
879
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
883
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
Line 4708... Line 4712...
4708
        return result.success;
4712
        return result.success;
4709
      }
4713
      }
4710
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPrivateDealItems failed: unknown result");
4714
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPrivateDealItems failed: unknown result");
4711
    }
4715
    }
4712
 
4716
 
-
 
4717
    public Map<Long,PrivateDeal> getAllActivePrivateDeals() throws org.apache.thrift.TException
-
 
4718
    {
-
 
4719
      send_getAllActivePrivateDeals();
-
 
4720
      return recv_getAllActivePrivateDeals();
-
 
4721
    }
-
 
4722
 
-
 
4723
    public void send_getAllActivePrivateDeals() throws org.apache.thrift.TException
-
 
4724
    {
-
 
4725
      getAllActivePrivateDeals_args args = new getAllActivePrivateDeals_args();
-
 
4726
      sendBase("getAllActivePrivateDeals", args);
-
 
4727
    }
-
 
4728
 
-
 
4729
    public Map<Long,PrivateDeal> recv_getAllActivePrivateDeals() throws org.apache.thrift.TException
-
 
4730
    {
-
 
4731
      getAllActivePrivateDeals_result result = new getAllActivePrivateDeals_result();
-
 
4732
      receiveBase(result, "getAllActivePrivateDeals");
-
 
4733
      if (result.isSetSuccess()) {
-
 
4734
        return result.success;
-
 
4735
      }
-
 
4736
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllActivePrivateDeals failed: unknown result");
-
 
4737
    }
-
 
4738
 
4713
    public boolean addOrUpdatePrivateDeal(PrivateDeal privateDeal) throws org.apache.thrift.TException
4739
    public boolean addOrUpdatePrivateDeal(PrivateDeal privateDeal) throws org.apache.thrift.TException
4714
    {
4740
    {
4715
      send_addOrUpdatePrivateDeal(privateDeal);
4741
      send_addOrUpdatePrivateDeal(privateDeal);
4716
      return recv_addOrUpdatePrivateDeal();
4742
      return recv_addOrUpdatePrivateDeal();
4717
    }
4743
    }
Line 10054... Line 10080...
10054
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
10080
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
10055
        return (new Client(prot)).recv_getPrivateDealItems();
10081
        return (new Client(prot)).recv_getPrivateDealItems();
10056
      }
10082
      }
10057
    }
10083
    }
10058
 
10084
 
-
 
10085
    public void getAllActivePrivateDeals(org.apache.thrift.async.AsyncMethodCallback<getAllActivePrivateDeals_call> resultHandler) throws org.apache.thrift.TException {
-
 
10086
      checkReady();
-
 
10087
      getAllActivePrivateDeals_call method_call = new getAllActivePrivateDeals_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
10088
      this.___currentMethod = method_call;
-
 
10089
      ___manager.call(method_call);
-
 
10090
    }
-
 
10091
 
-
 
10092
    public static class getAllActivePrivateDeals_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
10093
      public getAllActivePrivateDeals_call(org.apache.thrift.async.AsyncMethodCallback<getAllActivePrivateDeals_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 {
-
 
10094
        super(client, protocolFactory, transport, resultHandler, false);
-
 
10095
      }
-
 
10096
 
-
 
10097
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
10098
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllActivePrivateDeals", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
10099
        getAllActivePrivateDeals_args args = new getAllActivePrivateDeals_args();
-
 
10100
        args.write(prot);
-
 
10101
        prot.writeMessageEnd();
-
 
10102
      }
-
 
10103
 
-
 
10104
      public Map<Long,PrivateDeal> getResult() throws org.apache.thrift.TException {
-
 
10105
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
10106
          throw new IllegalStateException("Method call not finished!");
-
 
10107
        }
-
 
10108
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
10109
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
10110
        return (new Client(prot)).recv_getAllActivePrivateDeals();
-
 
10111
      }
-
 
10112
    }
-
 
10113
 
10059
    public void addOrUpdatePrivateDeal(PrivateDeal privateDeal, org.apache.thrift.async.AsyncMethodCallback<addOrUpdatePrivateDeal_call> resultHandler) throws org.apache.thrift.TException {
10114
    public void addOrUpdatePrivateDeal(PrivateDeal privateDeal, org.apache.thrift.async.AsyncMethodCallback<addOrUpdatePrivateDeal_call> resultHandler) throws org.apache.thrift.TException {
10060
      checkReady();
10115
      checkReady();
10061
      addOrUpdatePrivateDeal_call method_call = new addOrUpdatePrivateDeal_call(privateDeal, resultHandler, this, ___protocolFactory, ___transport);
10116
      addOrUpdatePrivateDeal_call method_call = new addOrUpdatePrivateDeal_call(privateDeal, resultHandler, this, ___protocolFactory, ___transport);
10062
      this.___currentMethod = method_call;
10117
      this.___currentMethod = method_call;
10063
      ___manager.call(method_call);
10118
      ___manager.call(method_call);
Line 10260... Line 10315...
10260
      processMap.put("getAllFbbPricingItems", new getAllFbbPricingItems());
10315
      processMap.put("getAllFbbPricingItems", new getAllFbbPricingItems());
10261
      processMap.put("getCountForMarketplaceHistory", new getCountForMarketplaceHistory());
10316
      processMap.put("getCountForMarketplaceHistory", new getCountForMarketplaceHistory());
10262
      processMap.put("getMarketplaceHistoryByDate", new getMarketplaceHistoryByDate());
10317
      processMap.put("getMarketplaceHistoryByDate", new getMarketplaceHistoryByDate());
10263
      processMap.put("getPrivateDealDetails", new getPrivateDealDetails());
10318
      processMap.put("getPrivateDealDetails", new getPrivateDealDetails());
10264
      processMap.put("getPrivateDealItems", new getPrivateDealItems());
10319
      processMap.put("getPrivateDealItems", new getPrivateDealItems());
-
 
10320
      processMap.put("getAllActivePrivateDeals", new getAllActivePrivateDeals());
10265
      processMap.put("addOrUpdatePrivateDeal", new addOrUpdatePrivateDeal());
10321
      processMap.put("addOrUpdatePrivateDeal", new addOrUpdatePrivateDeal());
10266
      return processMap;
10322
      return processMap;
10267
    }
10323
    }
10268
 
10324
 
10269
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
10325
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
Line 13062... Line 13118...
13062
        result.success = iface.getPrivateDealItems(args.offset, args.limit);
13118
        result.success = iface.getPrivateDealItems(args.offset, args.limit);
13063
        return result;
13119
        return result;
13064
      }
13120
      }
13065
    }
13121
    }
13066
 
13122
 
-
 
13123
    private static class getAllActivePrivateDeals<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllActivePrivateDeals_args> {
-
 
13124
      public getAllActivePrivateDeals() {
-
 
13125
        super("getAllActivePrivateDeals");
-
 
13126
      }
-
 
13127
 
-
 
13128
      protected getAllActivePrivateDeals_args getEmptyArgsInstance() {
-
 
13129
        return new getAllActivePrivateDeals_args();
-
 
13130
      }
-
 
13131
 
-
 
13132
      protected getAllActivePrivateDeals_result getResult(I iface, getAllActivePrivateDeals_args args) throws org.apache.thrift.TException {
-
 
13133
        getAllActivePrivateDeals_result result = new getAllActivePrivateDeals_result();
-
 
13134
        result.success = iface.getAllActivePrivateDeals();
-
 
13135
        return result;
-
 
13136
      }
-
 
13137
    }
-
 
13138
 
13067
    private static class addOrUpdatePrivateDeal<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addOrUpdatePrivateDeal_args> {
13139
    private static class addOrUpdatePrivateDeal<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addOrUpdatePrivateDeal_args> {
13068
      public addOrUpdatePrivateDeal() {
13140
      public addOrUpdatePrivateDeal() {
13069
        super("addOrUpdatePrivateDeal");
13141
        super("addOrUpdatePrivateDeal");
13070
      }
13142
      }
13071
 
13143
 
Line 116595... Line 116667...
116595
      boolean first = true;
116667
      boolean first = true;
116596
 
116668
 
116597
      sb.append("success:");
116669
      sb.append("success:");
116598
      if (this.success == null) {
116670
      if (this.success == null) {
116599
        sb.append("null");
116671
        sb.append("null");
-
 
116672
      } else {
-
 
116673
        sb.append(this.success);
-
 
116674
      }
-
 
116675
      first = false;
-
 
116676
      sb.append(")");
-
 
116677
      return sb.toString();
-
 
116678
    }
-
 
116679
 
-
 
116680
    public void validate() throws org.apache.thrift.TException {
-
 
116681
      // check for required fields
-
 
116682
    }
-
 
116683
 
-
 
116684
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
116685
      try {
-
 
116686
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
116687
      } catch (org.apache.thrift.TException te) {
-
 
116688
        throw new java.io.IOException(te);
-
 
116689
      }
-
 
116690
    }
-
 
116691
 
-
 
116692
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
116693
      try {
-
 
116694
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
116695
      } catch (org.apache.thrift.TException te) {
-
 
116696
        throw new java.io.IOException(te);
-
 
116697
      }
-
 
116698
    }
-
 
116699
 
-
 
116700
  }
-
 
116701
 
-
 
116702
  public static class getAllActivePrivateDeals_args implements org.apache.thrift.TBase<getAllActivePrivateDeals_args, getAllActivePrivateDeals_args._Fields>, java.io.Serializable, Cloneable   {
-
 
116703
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllActivePrivateDeals_args");
-
 
116704
 
-
 
116705
 
-
 
116706
 
-
 
116707
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
116708
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
116709
;
-
 
116710
 
-
 
116711
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
116712
 
-
 
116713
      static {
-
 
116714
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
116715
          byName.put(field.getFieldName(), field);
-
 
116716
        }
-
 
116717
      }
-
 
116718
 
-
 
116719
      /**
-
 
116720
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
116721
       */
-
 
116722
      public static _Fields findByThriftId(int fieldId) {
-
 
116723
        switch(fieldId) {
-
 
116724
          default:
-
 
116725
            return null;
-
 
116726
        }
-
 
116727
      }
-
 
116728
 
-
 
116729
      /**
-
 
116730
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
116731
       * if it is not found.
-
 
116732
       */
-
 
116733
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
116734
        _Fields fields = findByThriftId(fieldId);
-
 
116735
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
116736
        return fields;
-
 
116737
      }
-
 
116738
 
-
 
116739
      /**
-
 
116740
       * Find the _Fields constant that matches name, or null if its not found.
-
 
116741
       */
-
 
116742
      public static _Fields findByName(String name) {
-
 
116743
        return byName.get(name);
-
 
116744
      }
-
 
116745
 
-
 
116746
      private final short _thriftId;
-
 
116747
      private final String _fieldName;
-
 
116748
 
-
 
116749
      _Fields(short thriftId, String fieldName) {
-
 
116750
        _thriftId = thriftId;
-
 
116751
        _fieldName = fieldName;
-
 
116752
      }
-
 
116753
 
-
 
116754
      public short getThriftFieldId() {
-
 
116755
        return _thriftId;
-
 
116756
      }
-
 
116757
 
-
 
116758
      public String getFieldName() {
-
 
116759
        return _fieldName;
-
 
116760
      }
-
 
116761
    }
-
 
116762
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
116763
    static {
-
 
116764
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
116765
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
116766
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllActivePrivateDeals_args.class, metaDataMap);
-
 
116767
    }
-
 
116768
 
-
 
116769
    public getAllActivePrivateDeals_args() {
-
 
116770
    }
-
 
116771
 
-
 
116772
    /**
-
 
116773
     * Performs a deep copy on <i>other</i>.
-
 
116774
     */
-
 
116775
    public getAllActivePrivateDeals_args(getAllActivePrivateDeals_args other) {
-
 
116776
    }
-
 
116777
 
-
 
116778
    public getAllActivePrivateDeals_args deepCopy() {
-
 
116779
      return new getAllActivePrivateDeals_args(this);
-
 
116780
    }
-
 
116781
 
-
 
116782
    @Override
-
 
116783
    public void clear() {
-
 
116784
    }
-
 
116785
 
-
 
116786
    public void setFieldValue(_Fields field, Object value) {
-
 
116787
      switch (field) {
-
 
116788
      }
-
 
116789
    }
-
 
116790
 
-
 
116791
    public Object getFieldValue(_Fields field) {
-
 
116792
      switch (field) {
-
 
116793
      }
-
 
116794
      throw new IllegalStateException();
-
 
116795
    }
-
 
116796
 
-
 
116797
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
116798
    public boolean isSet(_Fields field) {
-
 
116799
      if (field == null) {
-
 
116800
        throw new IllegalArgumentException();
-
 
116801
      }
-
 
116802
 
-
 
116803
      switch (field) {
-
 
116804
      }
-
 
116805
      throw new IllegalStateException();
-
 
116806
    }
-
 
116807
 
-
 
116808
    @Override
-
 
116809
    public boolean equals(Object that) {
-
 
116810
      if (that == null)
-
 
116811
        return false;
-
 
116812
      if (that instanceof getAllActivePrivateDeals_args)
-
 
116813
        return this.equals((getAllActivePrivateDeals_args)that);
-
 
116814
      return false;
-
 
116815
    }
-
 
116816
 
-
 
116817
    public boolean equals(getAllActivePrivateDeals_args that) {
-
 
116818
      if (that == null)
-
 
116819
        return false;
-
 
116820
 
-
 
116821
      return true;
-
 
116822
    }
-
 
116823
 
-
 
116824
    @Override
-
 
116825
    public int hashCode() {
-
 
116826
      return 0;
-
 
116827
    }
-
 
116828
 
-
 
116829
    public int compareTo(getAllActivePrivateDeals_args other) {
-
 
116830
      if (!getClass().equals(other.getClass())) {
-
 
116831
        return getClass().getName().compareTo(other.getClass().getName());
-
 
116832
      }
-
 
116833
 
-
 
116834
      int lastComparison = 0;
-
 
116835
      getAllActivePrivateDeals_args typedOther = (getAllActivePrivateDeals_args)other;
-
 
116836
 
-
 
116837
      return 0;
-
 
116838
    }
-
 
116839
 
-
 
116840
    public _Fields fieldForId(int fieldId) {
-
 
116841
      return _Fields.findByThriftId(fieldId);
-
 
116842
    }
-
 
116843
 
-
 
116844
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
116845
      org.apache.thrift.protocol.TField field;
-
 
116846
      iprot.readStructBegin();
-
 
116847
      while (true)
-
 
116848
      {
-
 
116849
        field = iprot.readFieldBegin();
-
 
116850
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
116851
          break;
-
 
116852
        }
-
 
116853
        switch (field.id) {
-
 
116854
          default:
-
 
116855
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
116856
        }
-
 
116857
        iprot.readFieldEnd();
-
 
116858
      }
-
 
116859
      iprot.readStructEnd();
-
 
116860
      validate();
-
 
116861
    }
-
 
116862
 
-
 
116863
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
116864
      validate();
-
 
116865
 
-
 
116866
      oprot.writeStructBegin(STRUCT_DESC);
-
 
116867
      oprot.writeFieldStop();
-
 
116868
      oprot.writeStructEnd();
-
 
116869
    }
-
 
116870
 
-
 
116871
    @Override
-
 
116872
    public String toString() {
-
 
116873
      StringBuilder sb = new StringBuilder("getAllActivePrivateDeals_args(");
-
 
116874
      boolean first = true;
-
 
116875
 
-
 
116876
      sb.append(")");
-
 
116877
      return sb.toString();
-
 
116878
    }
-
 
116879
 
-
 
116880
    public void validate() throws org.apache.thrift.TException {
-
 
116881
      // check for required fields
-
 
116882
    }
-
 
116883
 
-
 
116884
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
116885
      try {
-
 
116886
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
116887
      } catch (org.apache.thrift.TException te) {
-
 
116888
        throw new java.io.IOException(te);
-
 
116889
      }
-
 
116890
    }
-
 
116891
 
-
 
116892
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
116893
      try {
-
 
116894
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
116895
      } catch (org.apache.thrift.TException te) {
-
 
116896
        throw new java.io.IOException(te);
-
 
116897
      }
-
 
116898
    }
-
 
116899
 
-
 
116900
  }
-
 
116901
 
-
 
116902
  public static class getAllActivePrivateDeals_result implements org.apache.thrift.TBase<getAllActivePrivateDeals_result, getAllActivePrivateDeals_result._Fields>, java.io.Serializable, Cloneable   {
-
 
116903
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllActivePrivateDeals_result");
-
 
116904
 
-
 
116905
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);
-
 
116906
 
-
 
116907
    private Map<Long,PrivateDeal> success; // required
-
 
116908
 
-
 
116909
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
116910
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
116911
      SUCCESS((short)0, "success");
-
 
116912
 
-
 
116913
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
116914
 
-
 
116915
      static {
-
 
116916
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
116917
          byName.put(field.getFieldName(), field);
-
 
116918
        }
-
 
116919
      }
-
 
116920
 
-
 
116921
      /**
-
 
116922
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
116923
       */
-
 
116924
      public static _Fields findByThriftId(int fieldId) {
-
 
116925
        switch(fieldId) {
-
 
116926
          case 0: // SUCCESS
-
 
116927
            return SUCCESS;
-
 
116928
          default:
-
 
116929
            return null;
-
 
116930
        }
-
 
116931
      }
-
 
116932
 
-
 
116933
      /**
-
 
116934
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
116935
       * if it is not found.
-
 
116936
       */
-
 
116937
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
116938
        _Fields fields = findByThriftId(fieldId);
-
 
116939
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
116940
        return fields;
-
 
116941
      }
-
 
116942
 
-
 
116943
      /**
-
 
116944
       * Find the _Fields constant that matches name, or null if its not found.
-
 
116945
       */
-
 
116946
      public static _Fields findByName(String name) {
-
 
116947
        return byName.get(name);
-
 
116948
      }
-
 
116949
 
-
 
116950
      private final short _thriftId;
-
 
116951
      private final String _fieldName;
-
 
116952
 
-
 
116953
      _Fields(short thriftId, String fieldName) {
-
 
116954
        _thriftId = thriftId;
-
 
116955
        _fieldName = fieldName;
-
 
116956
      }
-
 
116957
 
-
 
116958
      public short getThriftFieldId() {
-
 
116959
        return _thriftId;
-
 
116960
      }
-
 
116961
 
-
 
116962
      public String getFieldName() {
-
 
116963
        return _fieldName;
-
 
116964
      }
-
 
116965
    }
-
 
116966
 
-
 
116967
    // isset id assignments
-
 
116968
 
-
 
116969
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
116970
    static {
-
 
116971
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
116972
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
116973
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
-
 
116974
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
-
 
116975
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PrivateDeal.class))));
-
 
116976
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
116977
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllActivePrivateDeals_result.class, metaDataMap);
-
 
116978
    }
-
 
116979
 
-
 
116980
    public getAllActivePrivateDeals_result() {
-
 
116981
    }
-
 
116982
 
-
 
116983
    public getAllActivePrivateDeals_result(
-
 
116984
      Map<Long,PrivateDeal> success)
-
 
116985
    {
-
 
116986
      this();
-
 
116987
      this.success = success;
-
 
116988
    }
-
 
116989
 
-
 
116990
    /**
-
 
116991
     * Performs a deep copy on <i>other</i>.
-
 
116992
     */
-
 
116993
    public getAllActivePrivateDeals_result(getAllActivePrivateDeals_result other) {
-
 
116994
      if (other.isSetSuccess()) {
-
 
116995
        Map<Long,PrivateDeal> __this__success = new HashMap<Long,PrivateDeal>();
-
 
116996
        for (Map.Entry<Long, PrivateDeal> other_element : other.success.entrySet()) {
-
 
116997
 
-
 
116998
          Long other_element_key = other_element.getKey();
-
 
116999
          PrivateDeal other_element_value = other_element.getValue();
-
 
117000
 
-
 
117001
          Long __this__success_copy_key = other_element_key;
-
 
117002
 
-
 
117003
          PrivateDeal __this__success_copy_value = new PrivateDeal(other_element_value);
-
 
117004
 
-
 
117005
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
-
 
117006
        }
-
 
117007
        this.success = __this__success;
-
 
117008
      }
-
 
117009
    }
-
 
117010
 
-
 
117011
    public getAllActivePrivateDeals_result deepCopy() {
-
 
117012
      return new getAllActivePrivateDeals_result(this);
-
 
117013
    }
-
 
117014
 
-
 
117015
    @Override
-
 
117016
    public void clear() {
-
 
117017
      this.success = null;
-
 
117018
    }
-
 
117019
 
-
 
117020
    public int getSuccessSize() {
-
 
117021
      return (this.success == null) ? 0 : this.success.size();
-
 
117022
    }
-
 
117023
 
-
 
117024
    public void putToSuccess(long key, PrivateDeal val) {
-
 
117025
      if (this.success == null) {
-
 
117026
        this.success = new HashMap<Long,PrivateDeal>();
-
 
117027
      }
-
 
117028
      this.success.put(key, val);
-
 
117029
    }
-
 
117030
 
-
 
117031
    public Map<Long,PrivateDeal> getSuccess() {
-
 
117032
      return this.success;
-
 
117033
    }
-
 
117034
 
-
 
117035
    public void setSuccess(Map<Long,PrivateDeal> success) {
-
 
117036
      this.success = success;
-
 
117037
    }
-
 
117038
 
-
 
117039
    public void unsetSuccess() {
-
 
117040
      this.success = null;
-
 
117041
    }
-
 
117042
 
-
 
117043
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
117044
    public boolean isSetSuccess() {
-
 
117045
      return this.success != null;
-
 
117046
    }
-
 
117047
 
-
 
117048
    public void setSuccessIsSet(boolean value) {
-
 
117049
      if (!value) {
-
 
117050
        this.success = null;
-
 
117051
      }
-
 
117052
    }
-
 
117053
 
-
 
117054
    public void setFieldValue(_Fields field, Object value) {
-
 
117055
      switch (field) {
-
 
117056
      case SUCCESS:
-
 
117057
        if (value == null) {
-
 
117058
          unsetSuccess();
-
 
117059
        } else {
-
 
117060
          setSuccess((Map<Long,PrivateDeal>)value);
-
 
117061
        }
-
 
117062
        break;
-
 
117063
 
-
 
117064
      }
-
 
117065
    }
-
 
117066
 
-
 
117067
    public Object getFieldValue(_Fields field) {
-
 
117068
      switch (field) {
-
 
117069
      case SUCCESS:
-
 
117070
        return getSuccess();
-
 
117071
 
-
 
117072
      }
-
 
117073
      throw new IllegalStateException();
-
 
117074
    }
-
 
117075
 
-
 
117076
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
117077
    public boolean isSet(_Fields field) {
-
 
117078
      if (field == null) {
-
 
117079
        throw new IllegalArgumentException();
-
 
117080
      }
-
 
117081
 
-
 
117082
      switch (field) {
-
 
117083
      case SUCCESS:
-
 
117084
        return isSetSuccess();
-
 
117085
      }
-
 
117086
      throw new IllegalStateException();
-
 
117087
    }
-
 
117088
 
-
 
117089
    @Override
-
 
117090
    public boolean equals(Object that) {
-
 
117091
      if (that == null)
-
 
117092
        return false;
-
 
117093
      if (that instanceof getAllActivePrivateDeals_result)
-
 
117094
        return this.equals((getAllActivePrivateDeals_result)that);
-
 
117095
      return false;
-
 
117096
    }
-
 
117097
 
-
 
117098
    public boolean equals(getAllActivePrivateDeals_result that) {
-
 
117099
      if (that == null)
-
 
117100
        return false;
-
 
117101
 
-
 
117102
      boolean this_present_success = true && this.isSetSuccess();
-
 
117103
      boolean that_present_success = true && that.isSetSuccess();
-
 
117104
      if (this_present_success || that_present_success) {
-
 
117105
        if (!(this_present_success && that_present_success))
-
 
117106
          return false;
-
 
117107
        if (!this.success.equals(that.success))
-
 
117108
          return false;
-
 
117109
      }
-
 
117110
 
-
 
117111
      return true;
-
 
117112
    }
-
 
117113
 
-
 
117114
    @Override
-
 
117115
    public int hashCode() {
-
 
117116
      return 0;
-
 
117117
    }
-
 
117118
 
-
 
117119
    public int compareTo(getAllActivePrivateDeals_result other) {
-
 
117120
      if (!getClass().equals(other.getClass())) {
-
 
117121
        return getClass().getName().compareTo(other.getClass().getName());
-
 
117122
      }
-
 
117123
 
-
 
117124
      int lastComparison = 0;
-
 
117125
      getAllActivePrivateDeals_result typedOther = (getAllActivePrivateDeals_result)other;
-
 
117126
 
-
 
117127
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
117128
      if (lastComparison != 0) {
-
 
117129
        return lastComparison;
-
 
117130
      }
-
 
117131
      if (isSetSuccess()) {
-
 
117132
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
117133
        if (lastComparison != 0) {
-
 
117134
          return lastComparison;
-
 
117135
        }
-
 
117136
      }
-
 
117137
      return 0;
-
 
117138
    }
-
 
117139
 
-
 
117140
    public _Fields fieldForId(int fieldId) {
-
 
117141
      return _Fields.findByThriftId(fieldId);
-
 
117142
    }
-
 
117143
 
-
 
117144
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
117145
      org.apache.thrift.protocol.TField field;
-
 
117146
      iprot.readStructBegin();
-
 
117147
      while (true)
-
 
117148
      {
-
 
117149
        field = iprot.readFieldBegin();
-
 
117150
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
117151
          break;
-
 
117152
        }
-
 
117153
        switch (field.id) {
-
 
117154
          case 0: // SUCCESS
-
 
117155
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
-
 
117156
              {
-
 
117157
                org.apache.thrift.protocol.TMap _map373 = iprot.readMapBegin();
-
 
117158
                this.success = new HashMap<Long,PrivateDeal>(2*_map373.size);
-
 
117159
                for (int _i374 = 0; _i374 < _map373.size; ++_i374)
-
 
117160
                {
-
 
117161
                  long _key375; // required
-
 
117162
                  PrivateDeal _val376; // required
-
 
117163
                  _key375 = iprot.readI64();
-
 
117164
                  _val376 = new PrivateDeal();
-
 
117165
                  _val376.read(iprot);
-
 
117166
                  this.success.put(_key375, _val376);
-
 
117167
                }
-
 
117168
                iprot.readMapEnd();
-
 
117169
              }
-
 
117170
            } else { 
-
 
117171
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
117172
            }
-
 
117173
            break;
-
 
117174
          default:
-
 
117175
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
117176
        }
-
 
117177
        iprot.readFieldEnd();
-
 
117178
      }
-
 
117179
      iprot.readStructEnd();
-
 
117180
      validate();
-
 
117181
    }
-
 
117182
 
-
 
117183
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
117184
      oprot.writeStructBegin(STRUCT_DESC);
-
 
117185
 
-
 
117186
      if (this.isSetSuccess()) {
-
 
117187
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
117188
        {
-
 
117189
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
117190
          for (Map.Entry<Long, PrivateDeal> _iter377 : this.success.entrySet())
-
 
117191
          {
-
 
117192
            oprot.writeI64(_iter377.getKey());
-
 
117193
            _iter377.getValue().write(oprot);
-
 
117194
          }
-
 
117195
          oprot.writeMapEnd();
-
 
117196
        }
-
 
117197
        oprot.writeFieldEnd();
-
 
117198
      }
-
 
117199
      oprot.writeFieldStop();
-
 
117200
      oprot.writeStructEnd();
-
 
117201
    }
-
 
117202
 
-
 
117203
    @Override
-
 
117204
    public String toString() {
-
 
117205
      StringBuilder sb = new StringBuilder("getAllActivePrivateDeals_result(");
-
 
117206
      boolean first = true;
-
 
117207
 
-
 
117208
      sb.append("success:");
-
 
117209
      if (this.success == null) {
-
 
117210
        sb.append("null");
116600
      } else {
117211
      } else {
116601
        sb.append(this.success);
117212
        sb.append(this.success);
116602
      }
117213
      }
116603
      first = false;
117214
      first = false;
116604
      sb.append(")");
117215
      sb.append(")");