Subversion Repositories SmartDukaan

Rev

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

Rev 1491 Rev 1590
Line 73... Line 73...
73
 
73
 
74
    public String getDefaultPincode(long userId) throws UserContextException, TException;
74
    public String getDefaultPincode(long userId) throws UserContextException, TException;
75
 
75
 
76
    public boolean saveUserCommunication(long userId, String replyTo, long communicationType, long orderId, String airwaybillNo, String productName, String subject, String message) throws UserCommunicationException, TException;
76
    public boolean saveUserCommunication(long userId, String replyTo, long communicationType, long orderId, String airwaybillNo, String productName, String subject, String message) throws UserCommunicationException, TException;
77
 
77
 
-
 
78
    public UserCommunication getUserCommunicationById(long id) throws UserCommunicationException, TException;
-
 
79
 
-
 
80
    public List<UserCommunication> getUserCommunicationByUser(long userId) throws UserCommunicationException, TException;
-
 
81
 
-
 
82
    public List<UserCommunication> getAllUserCommunications() throws UserCommunicationException, TException;
-
 
83
 
78
    public long createCart(long userId) throws ShoppingCartException, TException;
84
    public long createCart(long userId) throws ShoppingCartException, TException;
79
 
85
 
80
    public Cart getCurrentCart(long userId) throws ShoppingCartException, TException;
86
    public Cart getCurrentCart(long userId) throws ShoppingCartException, TException;
81
 
87
 
82
    public Cart getCart(long cartId) throws ShoppingCartException, TException;
88
    public Cart getCart(long cartId) throws ShoppingCartException, TException;
Line 951... Line 957...
951
        throw result.ucx;
957
        throw result.ucx;
952
      }
958
      }
953
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "saveUserCommunication failed: unknown result");
959
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "saveUserCommunication failed: unknown result");
954
    }
960
    }
955
 
961
 
-
 
962
    public UserCommunication getUserCommunicationById(long id) throws UserCommunicationException, TException
-
 
963
    {
-
 
964
      send_getUserCommunicationById(id);
-
 
965
      return recv_getUserCommunicationById();
-
 
966
    }
-
 
967
 
-
 
968
    public void send_getUserCommunicationById(long id) throws TException
-
 
969
    {
-
 
970
      oprot_.writeMessageBegin(new TMessage("getUserCommunicationById", TMessageType.CALL, seqid_));
-
 
971
      getUserCommunicationById_args args = new getUserCommunicationById_args();
-
 
972
      args.id = id;
-
 
973
      args.write(oprot_);
-
 
974
      oprot_.writeMessageEnd();
-
 
975
      oprot_.getTransport().flush();
-
 
976
    }
-
 
977
 
-
 
978
    public UserCommunication recv_getUserCommunicationById() throws UserCommunicationException, TException
-
 
979
    {
-
 
980
      TMessage msg = iprot_.readMessageBegin();
-
 
981
      if (msg.type == TMessageType.EXCEPTION) {
-
 
982
        TApplicationException x = TApplicationException.read(iprot_);
-
 
983
        iprot_.readMessageEnd();
-
 
984
        throw x;
-
 
985
      }
-
 
986
      getUserCommunicationById_result result = new getUserCommunicationById_result();
-
 
987
      result.read(iprot_);
-
 
988
      iprot_.readMessageEnd();
-
 
989
      if (result.isSetSuccess()) {
-
 
990
        return result.success;
-
 
991
      }
-
 
992
      if (result.ucx != null) {
-
 
993
        throw result.ucx;
-
 
994
      }
-
 
995
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getUserCommunicationById failed: unknown result");
-
 
996
    }
-
 
997
 
-
 
998
    public List<UserCommunication> getUserCommunicationByUser(long userId) throws UserCommunicationException, TException
-
 
999
    {
-
 
1000
      send_getUserCommunicationByUser(userId);
-
 
1001
      return recv_getUserCommunicationByUser();
-
 
1002
    }
-
 
1003
 
-
 
1004
    public void send_getUserCommunicationByUser(long userId) throws TException
-
 
1005
    {
-
 
1006
      oprot_.writeMessageBegin(new TMessage("getUserCommunicationByUser", TMessageType.CALL, seqid_));
-
 
1007
      getUserCommunicationByUser_args args = new getUserCommunicationByUser_args();
-
 
1008
      args.userId = userId;
-
 
1009
      args.write(oprot_);
-
 
1010
      oprot_.writeMessageEnd();
-
 
1011
      oprot_.getTransport().flush();
-
 
1012
    }
-
 
1013
 
-
 
1014
    public List<UserCommunication> recv_getUserCommunicationByUser() throws UserCommunicationException, TException
-
 
1015
    {
-
 
1016
      TMessage msg = iprot_.readMessageBegin();
-
 
1017
      if (msg.type == TMessageType.EXCEPTION) {
-
 
1018
        TApplicationException x = TApplicationException.read(iprot_);
-
 
1019
        iprot_.readMessageEnd();
-
 
1020
        throw x;
-
 
1021
      }
-
 
1022
      getUserCommunicationByUser_result result = new getUserCommunicationByUser_result();
-
 
1023
      result.read(iprot_);
-
 
1024
      iprot_.readMessageEnd();
-
 
1025
      if (result.isSetSuccess()) {
-
 
1026
        return result.success;
-
 
1027
      }
-
 
1028
      if (result.ucx != null) {
-
 
1029
        throw result.ucx;
-
 
1030
      }
-
 
1031
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getUserCommunicationByUser failed: unknown result");
-
 
1032
    }
-
 
1033
 
-
 
1034
    public List<UserCommunication> getAllUserCommunications() throws UserCommunicationException, TException
-
 
1035
    {
-
 
1036
      send_getAllUserCommunications();
-
 
1037
      return recv_getAllUserCommunications();
-
 
1038
    }
-
 
1039
 
-
 
1040
    public void send_getAllUserCommunications() throws TException
-
 
1041
    {
-
 
1042
      oprot_.writeMessageBegin(new TMessage("getAllUserCommunications", TMessageType.CALL, seqid_));
-
 
1043
      getAllUserCommunications_args args = new getAllUserCommunications_args();
-
 
1044
      args.write(oprot_);
-
 
1045
      oprot_.writeMessageEnd();
-
 
1046
      oprot_.getTransport().flush();
-
 
1047
    }
-
 
1048
 
-
 
1049
    public List<UserCommunication> recv_getAllUserCommunications() throws UserCommunicationException, TException
-
 
1050
    {
-
 
1051
      TMessage msg = iprot_.readMessageBegin();
-
 
1052
      if (msg.type == TMessageType.EXCEPTION) {
-
 
1053
        TApplicationException x = TApplicationException.read(iprot_);
-
 
1054
        iprot_.readMessageEnd();
-
 
1055
        throw x;
-
 
1056
      }
-
 
1057
      getAllUserCommunications_result result = new getAllUserCommunications_result();
-
 
1058
      result.read(iprot_);
-
 
1059
      iprot_.readMessageEnd();
-
 
1060
      if (result.isSetSuccess()) {
-
 
1061
        return result.success;
-
 
1062
      }
-
 
1063
      if (result.ucx != null) {
-
 
1064
        throw result.ucx;
-
 
1065
      }
-
 
1066
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAllUserCommunications failed: unknown result");
-
 
1067
    }
-
 
1068
 
956
    public long createCart(long userId) throws ShoppingCartException, TException
1069
    public long createCart(long userId) throws ShoppingCartException, TException
957
    {
1070
    {
958
      send_createCart(userId);
1071
      send_createCart(userId);
959
      return recv_createCart();
1072
      return recv_createCart();
960
    }
1073
    }
Line 1785... Line 1898...
1785
      processMap_.put("forgotPassword", new forgotPassword());
1898
      processMap_.put("forgotPassword", new forgotPassword());
1786
      processMap_.put("getAllAddressesForUser", new getAllAddressesForUser());
1899
      processMap_.put("getAllAddressesForUser", new getAllAddressesForUser());
1787
      processMap_.put("getDefaultAddressId", new getDefaultAddressId());
1900
      processMap_.put("getDefaultAddressId", new getDefaultAddressId());
1788
      processMap_.put("getDefaultPincode", new getDefaultPincode());
1901
      processMap_.put("getDefaultPincode", new getDefaultPincode());
1789
      processMap_.put("saveUserCommunication", new saveUserCommunication());
1902
      processMap_.put("saveUserCommunication", new saveUserCommunication());
-
 
1903
      processMap_.put("getUserCommunicationById", new getUserCommunicationById());
-
 
1904
      processMap_.put("getUserCommunicationByUser", new getUserCommunicationByUser());
-
 
1905
      processMap_.put("getAllUserCommunications", new getAllUserCommunications());
1790
      processMap_.put("createCart", new createCart());
1906
      processMap_.put("createCart", new createCart());
1791
      processMap_.put("getCurrentCart", new getCurrentCart());
1907
      processMap_.put("getCurrentCart", new getCurrentCart());
1792
      processMap_.put("getCart", new getCart());
1908
      processMap_.put("getCart", new getCart());
1793
      processMap_.put("getCartsForUser", new getCartsForUser());
1909
      processMap_.put("getCartsForUser", new getCartsForUser());
1794
      processMap_.put("getCartsByStatus", new getCartsByStatus());
1910
      processMap_.put("getCartsByStatus", new getCartsByStatus());
Line 2422... Line 2538...
2422
        oprot.getTransport().flush();
2538
        oprot.getTransport().flush();
2423
      }
2539
      }
2424
 
2540
 
2425
    }
2541
    }
2426
 
2542
 
-
 
2543
    private class getUserCommunicationById implements ProcessFunction {
-
 
2544
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
2545
      {
-
 
2546
        getUserCommunicationById_args args = new getUserCommunicationById_args();
-
 
2547
        args.read(iprot);
-
 
2548
        iprot.readMessageEnd();
-
 
2549
        getUserCommunicationById_result result = new getUserCommunicationById_result();
-
 
2550
        try {
-
 
2551
          result.success = iface_.getUserCommunicationById(args.id);
-
 
2552
        } catch (UserCommunicationException ucx) {
-
 
2553
          result.ucx = ucx;
-
 
2554
        } catch (Throwable th) {
-
 
2555
          LOGGER.error("Internal error processing getUserCommunicationById", th);
-
 
2556
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getUserCommunicationById");
-
 
2557
          oprot.writeMessageBegin(new TMessage("getUserCommunicationById", TMessageType.EXCEPTION, seqid));
-
 
2558
          x.write(oprot);
-
 
2559
          oprot.writeMessageEnd();
-
 
2560
          oprot.getTransport().flush();
-
 
2561
          return;
-
 
2562
        }
-
 
2563
        oprot.writeMessageBegin(new TMessage("getUserCommunicationById", TMessageType.REPLY, seqid));
-
 
2564
        result.write(oprot);
-
 
2565
        oprot.writeMessageEnd();
-
 
2566
        oprot.getTransport().flush();
-
 
2567
      }
-
 
2568
 
-
 
2569
    }
-
 
2570
 
-
 
2571
    private class getUserCommunicationByUser implements ProcessFunction {
-
 
2572
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
2573
      {
-
 
2574
        getUserCommunicationByUser_args args = new getUserCommunicationByUser_args();
-
 
2575
        args.read(iprot);
-
 
2576
        iprot.readMessageEnd();
-
 
2577
        getUserCommunicationByUser_result result = new getUserCommunicationByUser_result();
-
 
2578
        try {
-
 
2579
          result.success = iface_.getUserCommunicationByUser(args.userId);
-
 
2580
        } catch (UserCommunicationException ucx) {
-
 
2581
          result.ucx = ucx;
-
 
2582
        } catch (Throwable th) {
-
 
2583
          LOGGER.error("Internal error processing getUserCommunicationByUser", th);
-
 
2584
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getUserCommunicationByUser");
-
 
2585
          oprot.writeMessageBegin(new TMessage("getUserCommunicationByUser", TMessageType.EXCEPTION, seqid));
-
 
2586
          x.write(oprot);
-
 
2587
          oprot.writeMessageEnd();
-
 
2588
          oprot.getTransport().flush();
-
 
2589
          return;
-
 
2590
        }
-
 
2591
        oprot.writeMessageBegin(new TMessage("getUserCommunicationByUser", TMessageType.REPLY, seqid));
-
 
2592
        result.write(oprot);
-
 
2593
        oprot.writeMessageEnd();
-
 
2594
        oprot.getTransport().flush();
-
 
2595
      }
-
 
2596
 
-
 
2597
    }
-
 
2598
 
-
 
2599
    private class getAllUserCommunications implements ProcessFunction {
-
 
2600
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
2601
      {
-
 
2602
        getAllUserCommunications_args args = new getAllUserCommunications_args();
-
 
2603
        args.read(iprot);
-
 
2604
        iprot.readMessageEnd();
-
 
2605
        getAllUserCommunications_result result = new getAllUserCommunications_result();
-
 
2606
        try {
-
 
2607
          result.success = iface_.getAllUserCommunications();
-
 
2608
        } catch (UserCommunicationException ucx) {
-
 
2609
          result.ucx = ucx;
-
 
2610
        } catch (Throwable th) {
-
 
2611
          LOGGER.error("Internal error processing getAllUserCommunications", th);
-
 
2612
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getAllUserCommunications");
-
 
2613
          oprot.writeMessageBegin(new TMessage("getAllUserCommunications", TMessageType.EXCEPTION, seqid));
-
 
2614
          x.write(oprot);
-
 
2615
          oprot.writeMessageEnd();
-
 
2616
          oprot.getTransport().flush();
-
 
2617
          return;
-
 
2618
        }
-
 
2619
        oprot.writeMessageBegin(new TMessage("getAllUserCommunications", TMessageType.REPLY, seqid));
-
 
2620
        result.write(oprot);
-
 
2621
        oprot.writeMessageEnd();
-
 
2622
        oprot.getTransport().flush();
-
 
2623
      }
-
 
2624
 
-
 
2625
    }
-
 
2626
 
2427
    private class createCart implements ProcessFunction {
2627
    private class createCart implements ProcessFunction {
2428
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
2628
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
2429
      {
2629
      {
2430
        createCart_args args = new createCart_args();
2630
        createCart_args args = new createCart_args();
2431
        args.read(iprot);
2631
        args.read(iprot);
Line 17702... Line 17902...
17702
      // check for required fields
17902
      // check for required fields
17703
    }
17903
    }
17704
 
17904
 
17705
  }
17905
  }
17706
 
17906
 
-
 
17907
  public static class getUserCommunicationById_args implements TBase<getUserCommunicationById_args._Fields>, java.io.Serializable, Cloneable, Comparable<getUserCommunicationById_args>   {
-
 
17908
    private static final TStruct STRUCT_DESC = new TStruct("getUserCommunicationById_args");
-
 
17909
 
-
 
17910
    private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
-
 
17911
 
-
 
17912
    private long id;
-
 
17913
 
-
 
17914
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
17915
    public enum _Fields implements TFieldIdEnum {
-
 
17916
      ID((short)1, "id");
-
 
17917
 
-
 
17918
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
17919
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
17920
 
-
 
17921
      static {
-
 
17922
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
17923
          byId.put((int)field._thriftId, field);
-
 
17924
          byName.put(field.getFieldName(), field);
-
 
17925
        }
-
 
17926
      }
-
 
17927
 
-
 
17928
      /**
-
 
17929
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
17930
       */
-
 
17931
      public static _Fields findByThriftId(int fieldId) {
-
 
17932
        return byId.get(fieldId);
-
 
17933
      }
-
 
17934
 
-
 
17935
      /**
-
 
17936
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
17937
       * if it is not found.
-
 
17938
       */
-
 
17939
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
17940
        _Fields fields = findByThriftId(fieldId);
-
 
17941
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
17942
        return fields;
-
 
17943
      }
-
 
17944
 
-
 
17945
      /**
-
 
17946
       * Find the _Fields constant that matches name, or null if its not found.
-
 
17947
       */
-
 
17948
      public static _Fields findByName(String name) {
-
 
17949
        return byName.get(name);
-
 
17950
      }
-
 
17951
 
-
 
17952
      private final short _thriftId;
-
 
17953
      private final String _fieldName;
-
 
17954
 
-
 
17955
      _Fields(short thriftId, String fieldName) {
-
 
17956
        _thriftId = thriftId;
-
 
17957
        _fieldName = fieldName;
-
 
17958
      }
-
 
17959
 
-
 
17960
      public short getThriftFieldId() {
-
 
17961
        return _thriftId;
-
 
17962
      }
-
 
17963
 
-
 
17964
      public String getFieldName() {
-
 
17965
        return _fieldName;
-
 
17966
      }
-
 
17967
    }
-
 
17968
 
-
 
17969
    // isset id assignments
-
 
17970
    private static final int __ID_ISSET_ID = 0;
-
 
17971
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
17972
 
-
 
17973
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
17974
      put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
-
 
17975
          new FieldValueMetaData(TType.I64)));
-
 
17976
    }});
-
 
17977
 
-
 
17978
    static {
-
 
17979
      FieldMetaData.addStructMetaDataMap(getUserCommunicationById_args.class, metaDataMap);
-
 
17980
    }
-
 
17981
 
-
 
17982
    public getUserCommunicationById_args() {
-
 
17983
    }
-
 
17984
 
-
 
17985
    public getUserCommunicationById_args(
-
 
17986
      long id)
-
 
17987
    {
-
 
17988
      this();
-
 
17989
      this.id = id;
-
 
17990
      setIdIsSet(true);
-
 
17991
    }
-
 
17992
 
-
 
17993
    /**
-
 
17994
     * Performs a deep copy on <i>other</i>.
-
 
17995
     */
-
 
17996
    public getUserCommunicationById_args(getUserCommunicationById_args other) {
-
 
17997
      __isset_bit_vector.clear();
-
 
17998
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
17999
      this.id = other.id;
-
 
18000
    }
-
 
18001
 
-
 
18002
    public getUserCommunicationById_args deepCopy() {
-
 
18003
      return new getUserCommunicationById_args(this);
-
 
18004
    }
-
 
18005
 
-
 
18006
    @Deprecated
-
 
18007
    public getUserCommunicationById_args clone() {
-
 
18008
      return new getUserCommunicationById_args(this);
-
 
18009
    }
-
 
18010
 
-
 
18011
    public long getId() {
-
 
18012
      return this.id;
-
 
18013
    }
-
 
18014
 
-
 
18015
    public getUserCommunicationById_args setId(long id) {
-
 
18016
      this.id = id;
-
 
18017
      setIdIsSet(true);
-
 
18018
      return this;
-
 
18019
    }
-
 
18020
 
-
 
18021
    public void unsetId() {
-
 
18022
      __isset_bit_vector.clear(__ID_ISSET_ID);
-
 
18023
    }
-
 
18024
 
-
 
18025
    /** Returns true if field id is set (has been asigned a value) and false otherwise */
-
 
18026
    public boolean isSetId() {
-
 
18027
      return __isset_bit_vector.get(__ID_ISSET_ID);
-
 
18028
    }
-
 
18029
 
-
 
18030
    public void setIdIsSet(boolean value) {
-
 
18031
      __isset_bit_vector.set(__ID_ISSET_ID, value);
-
 
18032
    }
-
 
18033
 
-
 
18034
    public void setFieldValue(_Fields field, Object value) {
-
 
18035
      switch (field) {
-
 
18036
      case ID:
-
 
18037
        if (value == null) {
-
 
18038
          unsetId();
-
 
18039
        } else {
-
 
18040
          setId((Long)value);
-
 
18041
        }
-
 
18042
        break;
-
 
18043
 
-
 
18044
      }
-
 
18045
    }
-
 
18046
 
-
 
18047
    public void setFieldValue(int fieldID, Object value) {
-
 
18048
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
18049
    }
-
 
18050
 
-
 
18051
    public Object getFieldValue(_Fields field) {
-
 
18052
      switch (field) {
-
 
18053
      case ID:
-
 
18054
        return new Long(getId());
-
 
18055
 
-
 
18056
      }
-
 
18057
      throw new IllegalStateException();
-
 
18058
    }
-
 
18059
 
-
 
18060
    public Object getFieldValue(int fieldId) {
-
 
18061
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
18062
    }
-
 
18063
 
-
 
18064
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
18065
    public boolean isSet(_Fields field) {
-
 
18066
      switch (field) {
-
 
18067
      case ID:
-
 
18068
        return isSetId();
-
 
18069
      }
-
 
18070
      throw new IllegalStateException();
-
 
18071
    }
-
 
18072
 
-
 
18073
    public boolean isSet(int fieldID) {
-
 
18074
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
18075
    }
-
 
18076
 
-
 
18077
    @Override
-
 
18078
    public boolean equals(Object that) {
-
 
18079
      if (that == null)
-
 
18080
        return false;
-
 
18081
      if (that instanceof getUserCommunicationById_args)
-
 
18082
        return this.equals((getUserCommunicationById_args)that);
-
 
18083
      return false;
-
 
18084
    }
-
 
18085
 
-
 
18086
    public boolean equals(getUserCommunicationById_args that) {
-
 
18087
      if (that == null)
-
 
18088
        return false;
-
 
18089
 
-
 
18090
      boolean this_present_id = true;
-
 
18091
      boolean that_present_id = true;
-
 
18092
      if (this_present_id || that_present_id) {
-
 
18093
        if (!(this_present_id && that_present_id))
-
 
18094
          return false;
-
 
18095
        if (this.id != that.id)
-
 
18096
          return false;
-
 
18097
      }
-
 
18098
 
-
 
18099
      return true;
-
 
18100
    }
-
 
18101
 
-
 
18102
    @Override
-
 
18103
    public int hashCode() {
-
 
18104
      return 0;
-
 
18105
    }
-
 
18106
 
-
 
18107
    public int compareTo(getUserCommunicationById_args other) {
-
 
18108
      if (!getClass().equals(other.getClass())) {
-
 
18109
        return getClass().getName().compareTo(other.getClass().getName());
-
 
18110
      }
-
 
18111
 
-
 
18112
      int lastComparison = 0;
-
 
18113
      getUserCommunicationById_args typedOther = (getUserCommunicationById_args)other;
-
 
18114
 
-
 
18115
      lastComparison = Boolean.valueOf(isSetId()).compareTo(isSetId());
-
 
18116
      if (lastComparison != 0) {
-
 
18117
        return lastComparison;
-
 
18118
      }
-
 
18119
      lastComparison = TBaseHelper.compareTo(id, typedOther.id);
-
 
18120
      if (lastComparison != 0) {
-
 
18121
        return lastComparison;
-
 
18122
      }
-
 
18123
      return 0;
-
 
18124
    }
-
 
18125
 
-
 
18126
    public void read(TProtocol iprot) throws TException {
-
 
18127
      TField field;
-
 
18128
      iprot.readStructBegin();
-
 
18129
      while (true)
-
 
18130
      {
-
 
18131
        field = iprot.readFieldBegin();
-
 
18132
        if (field.type == TType.STOP) { 
-
 
18133
          break;
-
 
18134
        }
-
 
18135
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
18136
        if (fieldId == null) {
-
 
18137
          TProtocolUtil.skip(iprot, field.type);
-
 
18138
        } else {
-
 
18139
          switch (fieldId) {
-
 
18140
            case ID:
-
 
18141
              if (field.type == TType.I64) {
-
 
18142
                this.id = iprot.readI64();
-
 
18143
                setIdIsSet(true);
-
 
18144
              } else { 
-
 
18145
                TProtocolUtil.skip(iprot, field.type);
-
 
18146
              }
-
 
18147
              break;
-
 
18148
          }
-
 
18149
          iprot.readFieldEnd();
-
 
18150
        }
-
 
18151
      }
-
 
18152
      iprot.readStructEnd();
-
 
18153
      validate();
-
 
18154
    }
-
 
18155
 
-
 
18156
    public void write(TProtocol oprot) throws TException {
-
 
18157
      validate();
-
 
18158
 
-
 
18159
      oprot.writeStructBegin(STRUCT_DESC);
-
 
18160
      oprot.writeFieldBegin(ID_FIELD_DESC);
-
 
18161
      oprot.writeI64(this.id);
-
 
18162
      oprot.writeFieldEnd();
-
 
18163
      oprot.writeFieldStop();
-
 
18164
      oprot.writeStructEnd();
-
 
18165
    }
-
 
18166
 
-
 
18167
    @Override
-
 
18168
    public String toString() {
-
 
18169
      StringBuilder sb = new StringBuilder("getUserCommunicationById_args(");
-
 
18170
      boolean first = true;
-
 
18171
 
-
 
18172
      sb.append("id:");
-
 
18173
      sb.append(this.id);
-
 
18174
      first = false;
-
 
18175
      sb.append(")");
-
 
18176
      return sb.toString();
-
 
18177
    }
-
 
18178
 
-
 
18179
    public void validate() throws TException {
-
 
18180
      // check for required fields
-
 
18181
    }
-
 
18182
 
-
 
18183
  }
-
 
18184
 
-
 
18185
  public static class getUserCommunicationById_result implements TBase<getUserCommunicationById_result._Fields>, java.io.Serializable, Cloneable, Comparable<getUserCommunicationById_result>   {
-
 
18186
    private static final TStruct STRUCT_DESC = new TStruct("getUserCommunicationById_result");
-
 
18187
 
-
 
18188
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
-
 
18189
    private static final TField UCX_FIELD_DESC = new TField("ucx", TType.STRUCT, (short)1);
-
 
18190
 
-
 
18191
    private UserCommunication success;
-
 
18192
    private UserCommunicationException ucx;
-
 
18193
 
-
 
18194
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
18195
    public enum _Fields implements TFieldIdEnum {
-
 
18196
      SUCCESS((short)0, "success"),
-
 
18197
      UCX((short)1, "ucx");
-
 
18198
 
-
 
18199
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
18200
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
18201
 
-
 
18202
      static {
-
 
18203
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
18204
          byId.put((int)field._thriftId, field);
-
 
18205
          byName.put(field.getFieldName(), field);
-
 
18206
        }
-
 
18207
      }
-
 
18208
 
-
 
18209
      /**
-
 
18210
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
18211
       */
-
 
18212
      public static _Fields findByThriftId(int fieldId) {
-
 
18213
        return byId.get(fieldId);
-
 
18214
      }
-
 
18215
 
-
 
18216
      /**
-
 
18217
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
18218
       * if it is not found.
-
 
18219
       */
-
 
18220
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
18221
        _Fields fields = findByThriftId(fieldId);
-
 
18222
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
18223
        return fields;
-
 
18224
      }
-
 
18225
 
-
 
18226
      /**
-
 
18227
       * Find the _Fields constant that matches name, or null if its not found.
-
 
18228
       */
-
 
18229
      public static _Fields findByName(String name) {
-
 
18230
        return byName.get(name);
-
 
18231
      }
-
 
18232
 
-
 
18233
      private final short _thriftId;
-
 
18234
      private final String _fieldName;
-
 
18235
 
-
 
18236
      _Fields(short thriftId, String fieldName) {
-
 
18237
        _thriftId = thriftId;
-
 
18238
        _fieldName = fieldName;
-
 
18239
      }
-
 
18240
 
-
 
18241
      public short getThriftFieldId() {
-
 
18242
        return _thriftId;
-
 
18243
      }
-
 
18244
 
-
 
18245
      public String getFieldName() {
-
 
18246
        return _fieldName;
-
 
18247
      }
-
 
18248
    }
-
 
18249
 
-
 
18250
    // isset id assignments
-
 
18251
 
-
 
18252
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
18253
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
18254
          new StructMetaData(TType.STRUCT, UserCommunication.class)));
-
 
18255
      put(_Fields.UCX, new FieldMetaData("ucx", TFieldRequirementType.DEFAULT, 
-
 
18256
          new FieldValueMetaData(TType.STRUCT)));
-
 
18257
    }});
-
 
18258
 
-
 
18259
    static {
-
 
18260
      FieldMetaData.addStructMetaDataMap(getUserCommunicationById_result.class, metaDataMap);
-
 
18261
    }
-
 
18262
 
-
 
18263
    public getUserCommunicationById_result() {
-
 
18264
    }
-
 
18265
 
-
 
18266
    public getUserCommunicationById_result(
-
 
18267
      UserCommunication success,
-
 
18268
      UserCommunicationException ucx)
-
 
18269
    {
-
 
18270
      this();
-
 
18271
      this.success = success;
-
 
18272
      this.ucx = ucx;
-
 
18273
    }
-
 
18274
 
-
 
18275
    /**
-
 
18276
     * Performs a deep copy on <i>other</i>.
-
 
18277
     */
-
 
18278
    public getUserCommunicationById_result(getUserCommunicationById_result other) {
-
 
18279
      if (other.isSetSuccess()) {
-
 
18280
        this.success = new UserCommunication(other.success);
-
 
18281
      }
-
 
18282
      if (other.isSetUcx()) {
-
 
18283
        this.ucx = new UserCommunicationException(other.ucx);
-
 
18284
      }
-
 
18285
    }
-
 
18286
 
-
 
18287
    public getUserCommunicationById_result deepCopy() {
-
 
18288
      return new getUserCommunicationById_result(this);
-
 
18289
    }
-
 
18290
 
-
 
18291
    @Deprecated
-
 
18292
    public getUserCommunicationById_result clone() {
-
 
18293
      return new getUserCommunicationById_result(this);
-
 
18294
    }
-
 
18295
 
-
 
18296
    public UserCommunication getSuccess() {
-
 
18297
      return this.success;
-
 
18298
    }
-
 
18299
 
-
 
18300
    public getUserCommunicationById_result setSuccess(UserCommunication success) {
-
 
18301
      this.success = success;
-
 
18302
      return this;
-
 
18303
    }
-
 
18304
 
-
 
18305
    public void unsetSuccess() {
-
 
18306
      this.success = null;
-
 
18307
    }
-
 
18308
 
-
 
18309
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
18310
    public boolean isSetSuccess() {
-
 
18311
      return this.success != null;
-
 
18312
    }
-
 
18313
 
-
 
18314
    public void setSuccessIsSet(boolean value) {
-
 
18315
      if (!value) {
-
 
18316
        this.success = null;
-
 
18317
      }
-
 
18318
    }
-
 
18319
 
-
 
18320
    public UserCommunicationException getUcx() {
-
 
18321
      return this.ucx;
-
 
18322
    }
-
 
18323
 
-
 
18324
    public getUserCommunicationById_result setUcx(UserCommunicationException ucx) {
-
 
18325
      this.ucx = ucx;
-
 
18326
      return this;
-
 
18327
    }
-
 
18328
 
-
 
18329
    public void unsetUcx() {
-
 
18330
      this.ucx = null;
-
 
18331
    }
-
 
18332
 
-
 
18333
    /** Returns true if field ucx is set (has been asigned a value) and false otherwise */
-
 
18334
    public boolean isSetUcx() {
-
 
18335
      return this.ucx != null;
-
 
18336
    }
-
 
18337
 
-
 
18338
    public void setUcxIsSet(boolean value) {
-
 
18339
      if (!value) {
-
 
18340
        this.ucx = null;
-
 
18341
      }
-
 
18342
    }
-
 
18343
 
-
 
18344
    public void setFieldValue(_Fields field, Object value) {
-
 
18345
      switch (field) {
-
 
18346
      case SUCCESS:
-
 
18347
        if (value == null) {
-
 
18348
          unsetSuccess();
-
 
18349
        } else {
-
 
18350
          setSuccess((UserCommunication)value);
-
 
18351
        }
-
 
18352
        break;
-
 
18353
 
-
 
18354
      case UCX:
-
 
18355
        if (value == null) {
-
 
18356
          unsetUcx();
-
 
18357
        } else {
-
 
18358
          setUcx((UserCommunicationException)value);
-
 
18359
        }
-
 
18360
        break;
-
 
18361
 
-
 
18362
      }
-
 
18363
    }
-
 
18364
 
-
 
18365
    public void setFieldValue(int fieldID, Object value) {
-
 
18366
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
18367
    }
-
 
18368
 
-
 
18369
    public Object getFieldValue(_Fields field) {
-
 
18370
      switch (field) {
-
 
18371
      case SUCCESS:
-
 
18372
        return getSuccess();
-
 
18373
 
-
 
18374
      case UCX:
-
 
18375
        return getUcx();
-
 
18376
 
-
 
18377
      }
-
 
18378
      throw new IllegalStateException();
-
 
18379
    }
-
 
18380
 
-
 
18381
    public Object getFieldValue(int fieldId) {
-
 
18382
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
18383
    }
-
 
18384
 
-
 
18385
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
18386
    public boolean isSet(_Fields field) {
-
 
18387
      switch (field) {
-
 
18388
      case SUCCESS:
-
 
18389
        return isSetSuccess();
-
 
18390
      case UCX:
-
 
18391
        return isSetUcx();
-
 
18392
      }
-
 
18393
      throw new IllegalStateException();
-
 
18394
    }
-
 
18395
 
-
 
18396
    public boolean isSet(int fieldID) {
-
 
18397
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
18398
    }
-
 
18399
 
-
 
18400
    @Override
-
 
18401
    public boolean equals(Object that) {
-
 
18402
      if (that == null)
-
 
18403
        return false;
-
 
18404
      if (that instanceof getUserCommunicationById_result)
-
 
18405
        return this.equals((getUserCommunicationById_result)that);
-
 
18406
      return false;
-
 
18407
    }
-
 
18408
 
-
 
18409
    public boolean equals(getUserCommunicationById_result that) {
-
 
18410
      if (that == null)
-
 
18411
        return false;
-
 
18412
 
-
 
18413
      boolean this_present_success = true && this.isSetSuccess();
-
 
18414
      boolean that_present_success = true && that.isSetSuccess();
-
 
18415
      if (this_present_success || that_present_success) {
-
 
18416
        if (!(this_present_success && that_present_success))
-
 
18417
          return false;
-
 
18418
        if (!this.success.equals(that.success))
-
 
18419
          return false;
-
 
18420
      }
-
 
18421
 
-
 
18422
      boolean this_present_ucx = true && this.isSetUcx();
-
 
18423
      boolean that_present_ucx = true && that.isSetUcx();
-
 
18424
      if (this_present_ucx || that_present_ucx) {
-
 
18425
        if (!(this_present_ucx && that_present_ucx))
-
 
18426
          return false;
-
 
18427
        if (!this.ucx.equals(that.ucx))
-
 
18428
          return false;
-
 
18429
      }
-
 
18430
 
-
 
18431
      return true;
-
 
18432
    }
-
 
18433
 
-
 
18434
    @Override
-
 
18435
    public int hashCode() {
-
 
18436
      return 0;
-
 
18437
    }
-
 
18438
 
-
 
18439
    public int compareTo(getUserCommunicationById_result other) {
-
 
18440
      if (!getClass().equals(other.getClass())) {
-
 
18441
        return getClass().getName().compareTo(other.getClass().getName());
-
 
18442
      }
-
 
18443
 
-
 
18444
      int lastComparison = 0;
-
 
18445
      getUserCommunicationById_result typedOther = (getUserCommunicationById_result)other;
-
 
18446
 
-
 
18447
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
18448
      if (lastComparison != 0) {
-
 
18449
        return lastComparison;
-
 
18450
      }
-
 
18451
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
18452
      if (lastComparison != 0) {
-
 
18453
        return lastComparison;
-
 
18454
      }
-
 
18455
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(isSetUcx());
-
 
18456
      if (lastComparison != 0) {
-
 
18457
        return lastComparison;
-
 
18458
      }
-
 
18459
      lastComparison = TBaseHelper.compareTo(ucx, typedOther.ucx);
-
 
18460
      if (lastComparison != 0) {
-
 
18461
        return lastComparison;
-
 
18462
      }
-
 
18463
      return 0;
-
 
18464
    }
-
 
18465
 
-
 
18466
    public void read(TProtocol iprot) throws TException {
-
 
18467
      TField field;
-
 
18468
      iprot.readStructBegin();
-
 
18469
      while (true)
-
 
18470
      {
-
 
18471
        field = iprot.readFieldBegin();
-
 
18472
        if (field.type == TType.STOP) { 
-
 
18473
          break;
-
 
18474
        }
-
 
18475
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
18476
        if (fieldId == null) {
-
 
18477
          TProtocolUtil.skip(iprot, field.type);
-
 
18478
        } else {
-
 
18479
          switch (fieldId) {
-
 
18480
            case SUCCESS:
-
 
18481
              if (field.type == TType.STRUCT) {
-
 
18482
                this.success = new UserCommunication();
-
 
18483
                this.success.read(iprot);
-
 
18484
              } else { 
-
 
18485
                TProtocolUtil.skip(iprot, field.type);
-
 
18486
              }
-
 
18487
              break;
-
 
18488
            case UCX:
-
 
18489
              if (field.type == TType.STRUCT) {
-
 
18490
                this.ucx = new UserCommunicationException();
-
 
18491
                this.ucx.read(iprot);
-
 
18492
              } else { 
-
 
18493
                TProtocolUtil.skip(iprot, field.type);
-
 
18494
              }
-
 
18495
              break;
-
 
18496
          }
-
 
18497
          iprot.readFieldEnd();
-
 
18498
        }
-
 
18499
      }
-
 
18500
      iprot.readStructEnd();
-
 
18501
      validate();
-
 
18502
    }
-
 
18503
 
-
 
18504
    public void write(TProtocol oprot) throws TException {
-
 
18505
      oprot.writeStructBegin(STRUCT_DESC);
-
 
18506
 
-
 
18507
      if (this.isSetSuccess()) {
-
 
18508
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
18509
        this.success.write(oprot);
-
 
18510
        oprot.writeFieldEnd();
-
 
18511
      } else if (this.isSetUcx()) {
-
 
18512
        oprot.writeFieldBegin(UCX_FIELD_DESC);
-
 
18513
        this.ucx.write(oprot);
-
 
18514
        oprot.writeFieldEnd();
-
 
18515
      }
-
 
18516
      oprot.writeFieldStop();
-
 
18517
      oprot.writeStructEnd();
-
 
18518
    }
-
 
18519
 
-
 
18520
    @Override
-
 
18521
    public String toString() {
-
 
18522
      StringBuilder sb = new StringBuilder("getUserCommunicationById_result(");
-
 
18523
      boolean first = true;
-
 
18524
 
-
 
18525
      sb.append("success:");
-
 
18526
      if (this.success == null) {
-
 
18527
        sb.append("null");
-
 
18528
      } else {
-
 
18529
        sb.append(this.success);
-
 
18530
      }
-
 
18531
      first = false;
-
 
18532
      if (!first) sb.append(", ");
-
 
18533
      sb.append("ucx:");
-
 
18534
      if (this.ucx == null) {
-
 
18535
        sb.append("null");
-
 
18536
      } else {
-
 
18537
        sb.append(this.ucx);
-
 
18538
      }
-
 
18539
      first = false;
-
 
18540
      sb.append(")");
-
 
18541
      return sb.toString();
-
 
18542
    }
-
 
18543
 
-
 
18544
    public void validate() throws TException {
-
 
18545
      // check for required fields
-
 
18546
    }
-
 
18547
 
-
 
18548
  }
-
 
18549
 
-
 
18550
  public static class getUserCommunicationByUser_args implements TBase<getUserCommunicationByUser_args._Fields>, java.io.Serializable, Cloneable, Comparable<getUserCommunicationByUser_args>   {
-
 
18551
    private static final TStruct STRUCT_DESC = new TStruct("getUserCommunicationByUser_args");
-
 
18552
 
-
 
18553
    private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)1);
-
 
18554
 
-
 
18555
    private long userId;
-
 
18556
 
-
 
18557
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
18558
    public enum _Fields implements TFieldIdEnum {
-
 
18559
      USER_ID((short)1, "userId");
-
 
18560
 
-
 
18561
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
18562
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
18563
 
-
 
18564
      static {
-
 
18565
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
18566
          byId.put((int)field._thriftId, field);
-
 
18567
          byName.put(field.getFieldName(), field);
-
 
18568
        }
-
 
18569
      }
-
 
18570
 
-
 
18571
      /**
-
 
18572
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
18573
       */
-
 
18574
      public static _Fields findByThriftId(int fieldId) {
-
 
18575
        return byId.get(fieldId);
-
 
18576
      }
-
 
18577
 
-
 
18578
      /**
-
 
18579
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
18580
       * if it is not found.
-
 
18581
       */
-
 
18582
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
18583
        _Fields fields = findByThriftId(fieldId);
-
 
18584
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
18585
        return fields;
-
 
18586
      }
-
 
18587
 
-
 
18588
      /**
-
 
18589
       * Find the _Fields constant that matches name, or null if its not found.
-
 
18590
       */
-
 
18591
      public static _Fields findByName(String name) {
-
 
18592
        return byName.get(name);
-
 
18593
      }
-
 
18594
 
-
 
18595
      private final short _thriftId;
-
 
18596
      private final String _fieldName;
-
 
18597
 
-
 
18598
      _Fields(short thriftId, String fieldName) {
-
 
18599
        _thriftId = thriftId;
-
 
18600
        _fieldName = fieldName;
-
 
18601
      }
-
 
18602
 
-
 
18603
      public short getThriftFieldId() {
-
 
18604
        return _thriftId;
-
 
18605
      }
-
 
18606
 
-
 
18607
      public String getFieldName() {
-
 
18608
        return _fieldName;
-
 
18609
      }
-
 
18610
    }
-
 
18611
 
-
 
18612
    // isset id assignments
-
 
18613
    private static final int __USERID_ISSET_ID = 0;
-
 
18614
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
18615
 
-
 
18616
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
18617
      put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT, 
-
 
18618
          new FieldValueMetaData(TType.I64)));
-
 
18619
    }});
-
 
18620
 
-
 
18621
    static {
-
 
18622
      FieldMetaData.addStructMetaDataMap(getUserCommunicationByUser_args.class, metaDataMap);
-
 
18623
    }
-
 
18624
 
-
 
18625
    public getUserCommunicationByUser_args() {
-
 
18626
    }
-
 
18627
 
-
 
18628
    public getUserCommunicationByUser_args(
-
 
18629
      long userId)
-
 
18630
    {
-
 
18631
      this();
-
 
18632
      this.userId = userId;
-
 
18633
      setUserIdIsSet(true);
-
 
18634
    }
-
 
18635
 
-
 
18636
    /**
-
 
18637
     * Performs a deep copy on <i>other</i>.
-
 
18638
     */
-
 
18639
    public getUserCommunicationByUser_args(getUserCommunicationByUser_args other) {
-
 
18640
      __isset_bit_vector.clear();
-
 
18641
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
18642
      this.userId = other.userId;
-
 
18643
    }
-
 
18644
 
-
 
18645
    public getUserCommunicationByUser_args deepCopy() {
-
 
18646
      return new getUserCommunicationByUser_args(this);
-
 
18647
    }
-
 
18648
 
-
 
18649
    @Deprecated
-
 
18650
    public getUserCommunicationByUser_args clone() {
-
 
18651
      return new getUserCommunicationByUser_args(this);
-
 
18652
    }
-
 
18653
 
-
 
18654
    public long getUserId() {
-
 
18655
      return this.userId;
-
 
18656
    }
-
 
18657
 
-
 
18658
    public getUserCommunicationByUser_args setUserId(long userId) {
-
 
18659
      this.userId = userId;
-
 
18660
      setUserIdIsSet(true);
-
 
18661
      return this;
-
 
18662
    }
-
 
18663
 
-
 
18664
    public void unsetUserId() {
-
 
18665
      __isset_bit_vector.clear(__USERID_ISSET_ID);
-
 
18666
    }
-
 
18667
 
-
 
18668
    /** Returns true if field userId is set (has been asigned a value) and false otherwise */
-
 
18669
    public boolean isSetUserId() {
-
 
18670
      return __isset_bit_vector.get(__USERID_ISSET_ID);
-
 
18671
    }
-
 
18672
 
-
 
18673
    public void setUserIdIsSet(boolean value) {
-
 
18674
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
-
 
18675
    }
-
 
18676
 
-
 
18677
    public void setFieldValue(_Fields field, Object value) {
-
 
18678
      switch (field) {
-
 
18679
      case USER_ID:
-
 
18680
        if (value == null) {
-
 
18681
          unsetUserId();
-
 
18682
        } else {
-
 
18683
          setUserId((Long)value);
-
 
18684
        }
-
 
18685
        break;
-
 
18686
 
-
 
18687
      }
-
 
18688
    }
-
 
18689
 
-
 
18690
    public void setFieldValue(int fieldID, Object value) {
-
 
18691
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
18692
    }
-
 
18693
 
-
 
18694
    public Object getFieldValue(_Fields field) {
-
 
18695
      switch (field) {
-
 
18696
      case USER_ID:
-
 
18697
        return new Long(getUserId());
-
 
18698
 
-
 
18699
      }
-
 
18700
      throw new IllegalStateException();
-
 
18701
    }
-
 
18702
 
-
 
18703
    public Object getFieldValue(int fieldId) {
-
 
18704
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
18705
    }
-
 
18706
 
-
 
18707
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
18708
    public boolean isSet(_Fields field) {
-
 
18709
      switch (field) {
-
 
18710
      case USER_ID:
-
 
18711
        return isSetUserId();
-
 
18712
      }
-
 
18713
      throw new IllegalStateException();
-
 
18714
    }
-
 
18715
 
-
 
18716
    public boolean isSet(int fieldID) {
-
 
18717
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
18718
    }
-
 
18719
 
-
 
18720
    @Override
-
 
18721
    public boolean equals(Object that) {
-
 
18722
      if (that == null)
-
 
18723
        return false;
-
 
18724
      if (that instanceof getUserCommunicationByUser_args)
-
 
18725
        return this.equals((getUserCommunicationByUser_args)that);
-
 
18726
      return false;
-
 
18727
    }
-
 
18728
 
-
 
18729
    public boolean equals(getUserCommunicationByUser_args that) {
-
 
18730
      if (that == null)
-
 
18731
        return false;
-
 
18732
 
-
 
18733
      boolean this_present_userId = true;
-
 
18734
      boolean that_present_userId = true;
-
 
18735
      if (this_present_userId || that_present_userId) {
-
 
18736
        if (!(this_present_userId && that_present_userId))
-
 
18737
          return false;
-
 
18738
        if (this.userId != that.userId)
-
 
18739
          return false;
-
 
18740
      }
-
 
18741
 
-
 
18742
      return true;
-
 
18743
    }
-
 
18744
 
-
 
18745
    @Override
-
 
18746
    public int hashCode() {
-
 
18747
      return 0;
-
 
18748
    }
-
 
18749
 
-
 
18750
    public int compareTo(getUserCommunicationByUser_args other) {
-
 
18751
      if (!getClass().equals(other.getClass())) {
-
 
18752
        return getClass().getName().compareTo(other.getClass().getName());
-
 
18753
      }
-
 
18754
 
-
 
18755
      int lastComparison = 0;
-
 
18756
      getUserCommunicationByUser_args typedOther = (getUserCommunicationByUser_args)other;
-
 
18757
 
-
 
18758
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(isSetUserId());
-
 
18759
      if (lastComparison != 0) {
-
 
18760
        return lastComparison;
-
 
18761
      }
-
 
18762
      lastComparison = TBaseHelper.compareTo(userId, typedOther.userId);
-
 
18763
      if (lastComparison != 0) {
-
 
18764
        return lastComparison;
-
 
18765
      }
-
 
18766
      return 0;
-
 
18767
    }
-
 
18768
 
-
 
18769
    public void read(TProtocol iprot) throws TException {
-
 
18770
      TField field;
-
 
18771
      iprot.readStructBegin();
-
 
18772
      while (true)
-
 
18773
      {
-
 
18774
        field = iprot.readFieldBegin();
-
 
18775
        if (field.type == TType.STOP) { 
-
 
18776
          break;
-
 
18777
        }
-
 
18778
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
18779
        if (fieldId == null) {
-
 
18780
          TProtocolUtil.skip(iprot, field.type);
-
 
18781
        } else {
-
 
18782
          switch (fieldId) {
-
 
18783
            case USER_ID:
-
 
18784
              if (field.type == TType.I64) {
-
 
18785
                this.userId = iprot.readI64();
-
 
18786
                setUserIdIsSet(true);
-
 
18787
              } else { 
-
 
18788
                TProtocolUtil.skip(iprot, field.type);
-
 
18789
              }
-
 
18790
              break;
-
 
18791
          }
-
 
18792
          iprot.readFieldEnd();
-
 
18793
        }
-
 
18794
      }
-
 
18795
      iprot.readStructEnd();
-
 
18796
      validate();
-
 
18797
    }
-
 
18798
 
-
 
18799
    public void write(TProtocol oprot) throws TException {
-
 
18800
      validate();
-
 
18801
 
-
 
18802
      oprot.writeStructBegin(STRUCT_DESC);
-
 
18803
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
-
 
18804
      oprot.writeI64(this.userId);
-
 
18805
      oprot.writeFieldEnd();
-
 
18806
      oprot.writeFieldStop();
-
 
18807
      oprot.writeStructEnd();
-
 
18808
    }
-
 
18809
 
-
 
18810
    @Override
-
 
18811
    public String toString() {
-
 
18812
      StringBuilder sb = new StringBuilder("getUserCommunicationByUser_args(");
-
 
18813
      boolean first = true;
-
 
18814
 
-
 
18815
      sb.append("userId:");
-
 
18816
      sb.append(this.userId);
-
 
18817
      first = false;
-
 
18818
      sb.append(")");
-
 
18819
      return sb.toString();
-
 
18820
    }
-
 
18821
 
-
 
18822
    public void validate() throws TException {
-
 
18823
      // check for required fields
-
 
18824
    }
-
 
18825
 
-
 
18826
  }
-
 
18827
 
-
 
18828
  public static class getUserCommunicationByUser_result implements TBase<getUserCommunicationByUser_result._Fields>, java.io.Serializable, Cloneable, Comparable<getUserCommunicationByUser_result>   {
-
 
18829
    private static final TStruct STRUCT_DESC = new TStruct("getUserCommunicationByUser_result");
-
 
18830
 
-
 
18831
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
-
 
18832
    private static final TField UCX_FIELD_DESC = new TField("ucx", TType.STRUCT, (short)1);
-
 
18833
 
-
 
18834
    private List<UserCommunication> success;
-
 
18835
    private UserCommunicationException ucx;
-
 
18836
 
-
 
18837
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
18838
    public enum _Fields implements TFieldIdEnum {
-
 
18839
      SUCCESS((short)0, "success"),
-
 
18840
      UCX((short)1, "ucx");
-
 
18841
 
-
 
18842
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
18843
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
18844
 
-
 
18845
      static {
-
 
18846
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
18847
          byId.put((int)field._thriftId, field);
-
 
18848
          byName.put(field.getFieldName(), field);
-
 
18849
        }
-
 
18850
      }
-
 
18851
 
-
 
18852
      /**
-
 
18853
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
18854
       */
-
 
18855
      public static _Fields findByThriftId(int fieldId) {
-
 
18856
        return byId.get(fieldId);
-
 
18857
      }
-
 
18858
 
-
 
18859
      /**
-
 
18860
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
18861
       * if it is not found.
-
 
18862
       */
-
 
18863
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
18864
        _Fields fields = findByThriftId(fieldId);
-
 
18865
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
18866
        return fields;
-
 
18867
      }
-
 
18868
 
-
 
18869
      /**
-
 
18870
       * Find the _Fields constant that matches name, or null if its not found.
-
 
18871
       */
-
 
18872
      public static _Fields findByName(String name) {
-
 
18873
        return byName.get(name);
-
 
18874
      }
-
 
18875
 
-
 
18876
      private final short _thriftId;
-
 
18877
      private final String _fieldName;
-
 
18878
 
-
 
18879
      _Fields(short thriftId, String fieldName) {
-
 
18880
        _thriftId = thriftId;
-
 
18881
        _fieldName = fieldName;
-
 
18882
      }
-
 
18883
 
-
 
18884
      public short getThriftFieldId() {
-
 
18885
        return _thriftId;
-
 
18886
      }
-
 
18887
 
-
 
18888
      public String getFieldName() {
-
 
18889
        return _fieldName;
-
 
18890
      }
-
 
18891
    }
-
 
18892
 
-
 
18893
    // isset id assignments
-
 
18894
 
-
 
18895
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
18896
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
18897
          new ListMetaData(TType.LIST, 
-
 
18898
              new StructMetaData(TType.STRUCT, UserCommunication.class))));
-
 
18899
      put(_Fields.UCX, new FieldMetaData("ucx", TFieldRequirementType.DEFAULT, 
-
 
18900
          new FieldValueMetaData(TType.STRUCT)));
-
 
18901
    }});
-
 
18902
 
-
 
18903
    static {
-
 
18904
      FieldMetaData.addStructMetaDataMap(getUserCommunicationByUser_result.class, metaDataMap);
-
 
18905
    }
-
 
18906
 
-
 
18907
    public getUserCommunicationByUser_result() {
-
 
18908
    }
-
 
18909
 
-
 
18910
    public getUserCommunicationByUser_result(
-
 
18911
      List<UserCommunication> success,
-
 
18912
      UserCommunicationException ucx)
-
 
18913
    {
-
 
18914
      this();
-
 
18915
      this.success = success;
-
 
18916
      this.ucx = ucx;
-
 
18917
    }
-
 
18918
 
-
 
18919
    /**
-
 
18920
     * Performs a deep copy on <i>other</i>.
-
 
18921
     */
-
 
18922
    public getUserCommunicationByUser_result(getUserCommunicationByUser_result other) {
-
 
18923
      if (other.isSetSuccess()) {
-
 
18924
        List<UserCommunication> __this__success = new ArrayList<UserCommunication>();
-
 
18925
        for (UserCommunication other_element : other.success) {
-
 
18926
          __this__success.add(new UserCommunication(other_element));
-
 
18927
        }
-
 
18928
        this.success = __this__success;
-
 
18929
      }
-
 
18930
      if (other.isSetUcx()) {
-
 
18931
        this.ucx = new UserCommunicationException(other.ucx);
-
 
18932
      }
-
 
18933
    }
-
 
18934
 
-
 
18935
    public getUserCommunicationByUser_result deepCopy() {
-
 
18936
      return new getUserCommunicationByUser_result(this);
-
 
18937
    }
-
 
18938
 
-
 
18939
    @Deprecated
-
 
18940
    public getUserCommunicationByUser_result clone() {
-
 
18941
      return new getUserCommunicationByUser_result(this);
-
 
18942
    }
-
 
18943
 
-
 
18944
    public int getSuccessSize() {
-
 
18945
      return (this.success == null) ? 0 : this.success.size();
-
 
18946
    }
-
 
18947
 
-
 
18948
    public java.util.Iterator<UserCommunication> getSuccessIterator() {
-
 
18949
      return (this.success == null) ? null : this.success.iterator();
-
 
18950
    }
-
 
18951
 
-
 
18952
    public void addToSuccess(UserCommunication elem) {
-
 
18953
      if (this.success == null) {
-
 
18954
        this.success = new ArrayList<UserCommunication>();
-
 
18955
      }
-
 
18956
      this.success.add(elem);
-
 
18957
    }
-
 
18958
 
-
 
18959
    public List<UserCommunication> getSuccess() {
-
 
18960
      return this.success;
-
 
18961
    }
-
 
18962
 
-
 
18963
    public getUserCommunicationByUser_result setSuccess(List<UserCommunication> success) {
-
 
18964
      this.success = success;
-
 
18965
      return this;
-
 
18966
    }
-
 
18967
 
-
 
18968
    public void unsetSuccess() {
-
 
18969
      this.success = null;
-
 
18970
    }
-
 
18971
 
-
 
18972
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
18973
    public boolean isSetSuccess() {
-
 
18974
      return this.success != null;
-
 
18975
    }
-
 
18976
 
-
 
18977
    public void setSuccessIsSet(boolean value) {
-
 
18978
      if (!value) {
-
 
18979
        this.success = null;
-
 
18980
      }
-
 
18981
    }
-
 
18982
 
-
 
18983
    public UserCommunicationException getUcx() {
-
 
18984
      return this.ucx;
-
 
18985
    }
-
 
18986
 
-
 
18987
    public getUserCommunicationByUser_result setUcx(UserCommunicationException ucx) {
-
 
18988
      this.ucx = ucx;
-
 
18989
      return this;
-
 
18990
    }
-
 
18991
 
-
 
18992
    public void unsetUcx() {
-
 
18993
      this.ucx = null;
-
 
18994
    }
-
 
18995
 
-
 
18996
    /** Returns true if field ucx is set (has been asigned a value) and false otherwise */
-
 
18997
    public boolean isSetUcx() {
-
 
18998
      return this.ucx != null;
-
 
18999
    }
-
 
19000
 
-
 
19001
    public void setUcxIsSet(boolean value) {
-
 
19002
      if (!value) {
-
 
19003
        this.ucx = null;
-
 
19004
      }
-
 
19005
    }
-
 
19006
 
-
 
19007
    public void setFieldValue(_Fields field, Object value) {
-
 
19008
      switch (field) {
-
 
19009
      case SUCCESS:
-
 
19010
        if (value == null) {
-
 
19011
          unsetSuccess();
-
 
19012
        } else {
-
 
19013
          setSuccess((List<UserCommunication>)value);
-
 
19014
        }
-
 
19015
        break;
-
 
19016
 
-
 
19017
      case UCX:
-
 
19018
        if (value == null) {
-
 
19019
          unsetUcx();
-
 
19020
        } else {
-
 
19021
          setUcx((UserCommunicationException)value);
-
 
19022
        }
-
 
19023
        break;
-
 
19024
 
-
 
19025
      }
-
 
19026
    }
-
 
19027
 
-
 
19028
    public void setFieldValue(int fieldID, Object value) {
-
 
19029
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
19030
    }
-
 
19031
 
-
 
19032
    public Object getFieldValue(_Fields field) {
-
 
19033
      switch (field) {
-
 
19034
      case SUCCESS:
-
 
19035
        return getSuccess();
-
 
19036
 
-
 
19037
      case UCX:
-
 
19038
        return getUcx();
-
 
19039
 
-
 
19040
      }
-
 
19041
      throw new IllegalStateException();
-
 
19042
    }
-
 
19043
 
-
 
19044
    public Object getFieldValue(int fieldId) {
-
 
19045
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
19046
    }
-
 
19047
 
-
 
19048
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
19049
    public boolean isSet(_Fields field) {
-
 
19050
      switch (field) {
-
 
19051
      case SUCCESS:
-
 
19052
        return isSetSuccess();
-
 
19053
      case UCX:
-
 
19054
        return isSetUcx();
-
 
19055
      }
-
 
19056
      throw new IllegalStateException();
-
 
19057
    }
-
 
19058
 
-
 
19059
    public boolean isSet(int fieldID) {
-
 
19060
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
19061
    }
-
 
19062
 
-
 
19063
    @Override
-
 
19064
    public boolean equals(Object that) {
-
 
19065
      if (that == null)
-
 
19066
        return false;
-
 
19067
      if (that instanceof getUserCommunicationByUser_result)
-
 
19068
        return this.equals((getUserCommunicationByUser_result)that);
-
 
19069
      return false;
-
 
19070
    }
-
 
19071
 
-
 
19072
    public boolean equals(getUserCommunicationByUser_result that) {
-
 
19073
      if (that == null)
-
 
19074
        return false;
-
 
19075
 
-
 
19076
      boolean this_present_success = true && this.isSetSuccess();
-
 
19077
      boolean that_present_success = true && that.isSetSuccess();
-
 
19078
      if (this_present_success || that_present_success) {
-
 
19079
        if (!(this_present_success && that_present_success))
-
 
19080
          return false;
-
 
19081
        if (!this.success.equals(that.success))
-
 
19082
          return false;
-
 
19083
      }
-
 
19084
 
-
 
19085
      boolean this_present_ucx = true && this.isSetUcx();
-
 
19086
      boolean that_present_ucx = true && that.isSetUcx();
-
 
19087
      if (this_present_ucx || that_present_ucx) {
-
 
19088
        if (!(this_present_ucx && that_present_ucx))
-
 
19089
          return false;
-
 
19090
        if (!this.ucx.equals(that.ucx))
-
 
19091
          return false;
-
 
19092
      }
-
 
19093
 
-
 
19094
      return true;
-
 
19095
    }
-
 
19096
 
-
 
19097
    @Override
-
 
19098
    public int hashCode() {
-
 
19099
      return 0;
-
 
19100
    }
-
 
19101
 
-
 
19102
    public int compareTo(getUserCommunicationByUser_result other) {
-
 
19103
      if (!getClass().equals(other.getClass())) {
-
 
19104
        return getClass().getName().compareTo(other.getClass().getName());
-
 
19105
      }
-
 
19106
 
-
 
19107
      int lastComparison = 0;
-
 
19108
      getUserCommunicationByUser_result typedOther = (getUserCommunicationByUser_result)other;
-
 
19109
 
-
 
19110
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
19111
      if (lastComparison != 0) {
-
 
19112
        return lastComparison;
-
 
19113
      }
-
 
19114
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
19115
      if (lastComparison != 0) {
-
 
19116
        return lastComparison;
-
 
19117
      }
-
 
19118
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(isSetUcx());
-
 
19119
      if (lastComparison != 0) {
-
 
19120
        return lastComparison;
-
 
19121
      }
-
 
19122
      lastComparison = TBaseHelper.compareTo(ucx, typedOther.ucx);
-
 
19123
      if (lastComparison != 0) {
-
 
19124
        return lastComparison;
-
 
19125
      }
-
 
19126
      return 0;
-
 
19127
    }
-
 
19128
 
-
 
19129
    public void read(TProtocol iprot) throws TException {
-
 
19130
      TField field;
-
 
19131
      iprot.readStructBegin();
-
 
19132
      while (true)
-
 
19133
      {
-
 
19134
        field = iprot.readFieldBegin();
-
 
19135
        if (field.type == TType.STOP) { 
-
 
19136
          break;
-
 
19137
        }
-
 
19138
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
19139
        if (fieldId == null) {
-
 
19140
          TProtocolUtil.skip(iprot, field.type);
-
 
19141
        } else {
-
 
19142
          switch (fieldId) {
-
 
19143
            case SUCCESS:
-
 
19144
              if (field.type == TType.LIST) {
-
 
19145
                {
-
 
19146
                  TList _list20 = iprot.readListBegin();
-
 
19147
                  this.success = new ArrayList<UserCommunication>(_list20.size);
-
 
19148
                  for (int _i21 = 0; _i21 < _list20.size; ++_i21)
-
 
19149
                  {
-
 
19150
                    UserCommunication _elem22;
-
 
19151
                    _elem22 = new UserCommunication();
-
 
19152
                    _elem22.read(iprot);
-
 
19153
                    this.success.add(_elem22);
-
 
19154
                  }
-
 
19155
                  iprot.readListEnd();
-
 
19156
                }
-
 
19157
              } else { 
-
 
19158
                TProtocolUtil.skip(iprot, field.type);
-
 
19159
              }
-
 
19160
              break;
-
 
19161
            case UCX:
-
 
19162
              if (field.type == TType.STRUCT) {
-
 
19163
                this.ucx = new UserCommunicationException();
-
 
19164
                this.ucx.read(iprot);
-
 
19165
              } else { 
-
 
19166
                TProtocolUtil.skip(iprot, field.type);
-
 
19167
              }
-
 
19168
              break;
-
 
19169
          }
-
 
19170
          iprot.readFieldEnd();
-
 
19171
        }
-
 
19172
      }
-
 
19173
      iprot.readStructEnd();
-
 
19174
      validate();
-
 
19175
    }
-
 
19176
 
-
 
19177
    public void write(TProtocol oprot) throws TException {
-
 
19178
      oprot.writeStructBegin(STRUCT_DESC);
-
 
19179
 
-
 
19180
      if (this.isSetSuccess()) {
-
 
19181
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
19182
        {
-
 
19183
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
-
 
19184
          for (UserCommunication _iter23 : this.success)
-
 
19185
          {
-
 
19186
            _iter23.write(oprot);
-
 
19187
          }
-
 
19188
          oprot.writeListEnd();
-
 
19189
        }
-
 
19190
        oprot.writeFieldEnd();
-
 
19191
      } else if (this.isSetUcx()) {
-
 
19192
        oprot.writeFieldBegin(UCX_FIELD_DESC);
-
 
19193
        this.ucx.write(oprot);
-
 
19194
        oprot.writeFieldEnd();
-
 
19195
      }
-
 
19196
      oprot.writeFieldStop();
-
 
19197
      oprot.writeStructEnd();
-
 
19198
    }
-
 
19199
 
-
 
19200
    @Override
-
 
19201
    public String toString() {
-
 
19202
      StringBuilder sb = new StringBuilder("getUserCommunicationByUser_result(");
-
 
19203
      boolean first = true;
-
 
19204
 
-
 
19205
      sb.append("success:");
-
 
19206
      if (this.success == null) {
-
 
19207
        sb.append("null");
-
 
19208
      } else {
-
 
19209
        sb.append(this.success);
-
 
19210
      }
-
 
19211
      first = false;
-
 
19212
      if (!first) sb.append(", ");
-
 
19213
      sb.append("ucx:");
-
 
19214
      if (this.ucx == null) {
-
 
19215
        sb.append("null");
-
 
19216
      } else {
-
 
19217
        sb.append(this.ucx);
-
 
19218
      }
-
 
19219
      first = false;
-
 
19220
      sb.append(")");
-
 
19221
      return sb.toString();
-
 
19222
    }
-
 
19223
 
-
 
19224
    public void validate() throws TException {
-
 
19225
      // check for required fields
-
 
19226
    }
-
 
19227
 
-
 
19228
  }
-
 
19229
 
-
 
19230
  public static class getAllUserCommunications_args implements TBase<getAllUserCommunications_args._Fields>, java.io.Serializable, Cloneable, Comparable<getAllUserCommunications_args>   {
-
 
19231
    private static final TStruct STRUCT_DESC = new TStruct("getAllUserCommunications_args");
-
 
19232
 
-
 
19233
 
-
 
19234
 
-
 
19235
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
19236
    public enum _Fields implements TFieldIdEnum {
-
 
19237
;
-
 
19238
 
-
 
19239
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
19240
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
19241
 
-
 
19242
      static {
-
 
19243
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
19244
          byId.put((int)field._thriftId, field);
-
 
19245
          byName.put(field.getFieldName(), field);
-
 
19246
        }
-
 
19247
      }
-
 
19248
 
-
 
19249
      /**
-
 
19250
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
19251
       */
-
 
19252
      public static _Fields findByThriftId(int fieldId) {
-
 
19253
        return byId.get(fieldId);
-
 
19254
      }
-
 
19255
 
-
 
19256
      /**
-
 
19257
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
19258
       * if it is not found.
-
 
19259
       */
-
 
19260
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
19261
        _Fields fields = findByThriftId(fieldId);
-
 
19262
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
19263
        return fields;
-
 
19264
      }
-
 
19265
 
-
 
19266
      /**
-
 
19267
       * Find the _Fields constant that matches name, or null if its not found.
-
 
19268
       */
-
 
19269
      public static _Fields findByName(String name) {
-
 
19270
        return byName.get(name);
-
 
19271
      }
-
 
19272
 
-
 
19273
      private final short _thriftId;
-
 
19274
      private final String _fieldName;
-
 
19275
 
-
 
19276
      _Fields(short thriftId, String fieldName) {
-
 
19277
        _thriftId = thriftId;
-
 
19278
        _fieldName = fieldName;
-
 
19279
      }
-
 
19280
 
-
 
19281
      public short getThriftFieldId() {
-
 
19282
        return _thriftId;
-
 
19283
      }
-
 
19284
 
-
 
19285
      public String getFieldName() {
-
 
19286
        return _fieldName;
-
 
19287
      }
-
 
19288
    }
-
 
19289
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
19290
    }});
-
 
19291
 
-
 
19292
    static {
-
 
19293
      FieldMetaData.addStructMetaDataMap(getAllUserCommunications_args.class, metaDataMap);
-
 
19294
    }
-
 
19295
 
-
 
19296
    public getAllUserCommunications_args() {
-
 
19297
    }
-
 
19298
 
-
 
19299
    /**
-
 
19300
     * Performs a deep copy on <i>other</i>.
-
 
19301
     */
-
 
19302
    public getAllUserCommunications_args(getAllUserCommunications_args other) {
-
 
19303
    }
-
 
19304
 
-
 
19305
    public getAllUserCommunications_args deepCopy() {
-
 
19306
      return new getAllUserCommunications_args(this);
-
 
19307
    }
-
 
19308
 
-
 
19309
    @Deprecated
-
 
19310
    public getAllUserCommunications_args clone() {
-
 
19311
      return new getAllUserCommunications_args(this);
-
 
19312
    }
-
 
19313
 
-
 
19314
    public void setFieldValue(_Fields field, Object value) {
-
 
19315
      switch (field) {
-
 
19316
      }
-
 
19317
    }
-
 
19318
 
-
 
19319
    public void setFieldValue(int fieldID, Object value) {
-
 
19320
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
19321
    }
-
 
19322
 
-
 
19323
    public Object getFieldValue(_Fields field) {
-
 
19324
      switch (field) {
-
 
19325
      }
-
 
19326
      throw new IllegalStateException();
-
 
19327
    }
-
 
19328
 
-
 
19329
    public Object getFieldValue(int fieldId) {
-
 
19330
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
19331
    }
-
 
19332
 
-
 
19333
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
19334
    public boolean isSet(_Fields field) {
-
 
19335
      switch (field) {
-
 
19336
      }
-
 
19337
      throw new IllegalStateException();
-
 
19338
    }
-
 
19339
 
-
 
19340
    public boolean isSet(int fieldID) {
-
 
19341
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
19342
    }
-
 
19343
 
-
 
19344
    @Override
-
 
19345
    public boolean equals(Object that) {
-
 
19346
      if (that == null)
-
 
19347
        return false;
-
 
19348
      if (that instanceof getAllUserCommunications_args)
-
 
19349
        return this.equals((getAllUserCommunications_args)that);
-
 
19350
      return false;
-
 
19351
    }
-
 
19352
 
-
 
19353
    public boolean equals(getAllUserCommunications_args that) {
-
 
19354
      if (that == null)
-
 
19355
        return false;
-
 
19356
 
-
 
19357
      return true;
-
 
19358
    }
-
 
19359
 
-
 
19360
    @Override
-
 
19361
    public int hashCode() {
-
 
19362
      return 0;
-
 
19363
    }
-
 
19364
 
-
 
19365
    public int compareTo(getAllUserCommunications_args other) {
-
 
19366
      if (!getClass().equals(other.getClass())) {
-
 
19367
        return getClass().getName().compareTo(other.getClass().getName());
-
 
19368
      }
-
 
19369
 
-
 
19370
      int lastComparison = 0;
-
 
19371
      getAllUserCommunications_args typedOther = (getAllUserCommunications_args)other;
-
 
19372
 
-
 
19373
      return 0;
-
 
19374
    }
-
 
19375
 
-
 
19376
    public void read(TProtocol iprot) throws TException {
-
 
19377
      TField field;
-
 
19378
      iprot.readStructBegin();
-
 
19379
      while (true)
-
 
19380
      {
-
 
19381
        field = iprot.readFieldBegin();
-
 
19382
        if (field.type == TType.STOP) { 
-
 
19383
          break;
-
 
19384
        }
-
 
19385
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
19386
        if (fieldId == null) {
-
 
19387
          TProtocolUtil.skip(iprot, field.type);
-
 
19388
        } else {
-
 
19389
          switch (fieldId) {
-
 
19390
          }
-
 
19391
          iprot.readFieldEnd();
-
 
19392
        }
-
 
19393
      }
-
 
19394
      iprot.readStructEnd();
-
 
19395
      validate();
-
 
19396
    }
-
 
19397
 
-
 
19398
    public void write(TProtocol oprot) throws TException {
-
 
19399
      validate();
-
 
19400
 
-
 
19401
      oprot.writeStructBegin(STRUCT_DESC);
-
 
19402
      oprot.writeFieldStop();
-
 
19403
      oprot.writeStructEnd();
-
 
19404
    }
-
 
19405
 
-
 
19406
    @Override
-
 
19407
    public String toString() {
-
 
19408
      StringBuilder sb = new StringBuilder("getAllUserCommunications_args(");
-
 
19409
      boolean first = true;
-
 
19410
 
-
 
19411
      sb.append(")");
-
 
19412
      return sb.toString();
-
 
19413
    }
-
 
19414
 
-
 
19415
    public void validate() throws TException {
-
 
19416
      // check for required fields
-
 
19417
    }
-
 
19418
 
-
 
19419
  }
-
 
19420
 
-
 
19421
  public static class getAllUserCommunications_result implements TBase<getAllUserCommunications_result._Fields>, java.io.Serializable, Cloneable, Comparable<getAllUserCommunications_result>   {
-
 
19422
    private static final TStruct STRUCT_DESC = new TStruct("getAllUserCommunications_result");
-
 
19423
 
-
 
19424
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
-
 
19425
    private static final TField UCX_FIELD_DESC = new TField("ucx", TType.STRUCT, (short)1);
-
 
19426
 
-
 
19427
    private List<UserCommunication> success;
-
 
19428
    private UserCommunicationException ucx;
-
 
19429
 
-
 
19430
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
19431
    public enum _Fields implements TFieldIdEnum {
-
 
19432
      SUCCESS((short)0, "success"),
-
 
19433
      UCX((short)1, "ucx");
-
 
19434
 
-
 
19435
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
19436
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
19437
 
-
 
19438
      static {
-
 
19439
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
19440
          byId.put((int)field._thriftId, field);
-
 
19441
          byName.put(field.getFieldName(), field);
-
 
19442
        }
-
 
19443
      }
-
 
19444
 
-
 
19445
      /**
-
 
19446
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
19447
       */
-
 
19448
      public static _Fields findByThriftId(int fieldId) {
-
 
19449
        return byId.get(fieldId);
-
 
19450
      }
-
 
19451
 
-
 
19452
      /**
-
 
19453
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
19454
       * if it is not found.
-
 
19455
       */
-
 
19456
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
19457
        _Fields fields = findByThriftId(fieldId);
-
 
19458
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
19459
        return fields;
-
 
19460
      }
-
 
19461
 
-
 
19462
      /**
-
 
19463
       * Find the _Fields constant that matches name, or null if its not found.
-
 
19464
       */
-
 
19465
      public static _Fields findByName(String name) {
-
 
19466
        return byName.get(name);
-
 
19467
      }
-
 
19468
 
-
 
19469
      private final short _thriftId;
-
 
19470
      private final String _fieldName;
-
 
19471
 
-
 
19472
      _Fields(short thriftId, String fieldName) {
-
 
19473
        _thriftId = thriftId;
-
 
19474
        _fieldName = fieldName;
-
 
19475
      }
-
 
19476
 
-
 
19477
      public short getThriftFieldId() {
-
 
19478
        return _thriftId;
-
 
19479
      }
-
 
19480
 
-
 
19481
      public String getFieldName() {
-
 
19482
        return _fieldName;
-
 
19483
      }
-
 
19484
    }
-
 
19485
 
-
 
19486
    // isset id assignments
-
 
19487
 
-
 
19488
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
19489
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
19490
          new ListMetaData(TType.LIST, 
-
 
19491
              new StructMetaData(TType.STRUCT, UserCommunication.class))));
-
 
19492
      put(_Fields.UCX, new FieldMetaData("ucx", TFieldRequirementType.DEFAULT, 
-
 
19493
          new FieldValueMetaData(TType.STRUCT)));
-
 
19494
    }});
-
 
19495
 
-
 
19496
    static {
-
 
19497
      FieldMetaData.addStructMetaDataMap(getAllUserCommunications_result.class, metaDataMap);
-
 
19498
    }
-
 
19499
 
-
 
19500
    public getAllUserCommunications_result() {
-
 
19501
    }
-
 
19502
 
-
 
19503
    public getAllUserCommunications_result(
-
 
19504
      List<UserCommunication> success,
-
 
19505
      UserCommunicationException ucx)
-
 
19506
    {
-
 
19507
      this();
-
 
19508
      this.success = success;
-
 
19509
      this.ucx = ucx;
-
 
19510
    }
-
 
19511
 
-
 
19512
    /**
-
 
19513
     * Performs a deep copy on <i>other</i>.
-
 
19514
     */
-
 
19515
    public getAllUserCommunications_result(getAllUserCommunications_result other) {
-
 
19516
      if (other.isSetSuccess()) {
-
 
19517
        List<UserCommunication> __this__success = new ArrayList<UserCommunication>();
-
 
19518
        for (UserCommunication other_element : other.success) {
-
 
19519
          __this__success.add(new UserCommunication(other_element));
-
 
19520
        }
-
 
19521
        this.success = __this__success;
-
 
19522
      }
-
 
19523
      if (other.isSetUcx()) {
-
 
19524
        this.ucx = new UserCommunicationException(other.ucx);
-
 
19525
      }
-
 
19526
    }
-
 
19527
 
-
 
19528
    public getAllUserCommunications_result deepCopy() {
-
 
19529
      return new getAllUserCommunications_result(this);
-
 
19530
    }
-
 
19531
 
-
 
19532
    @Deprecated
-
 
19533
    public getAllUserCommunications_result clone() {
-
 
19534
      return new getAllUserCommunications_result(this);
-
 
19535
    }
-
 
19536
 
-
 
19537
    public int getSuccessSize() {
-
 
19538
      return (this.success == null) ? 0 : this.success.size();
-
 
19539
    }
-
 
19540
 
-
 
19541
    public java.util.Iterator<UserCommunication> getSuccessIterator() {
-
 
19542
      return (this.success == null) ? null : this.success.iterator();
-
 
19543
    }
-
 
19544
 
-
 
19545
    public void addToSuccess(UserCommunication elem) {
-
 
19546
      if (this.success == null) {
-
 
19547
        this.success = new ArrayList<UserCommunication>();
-
 
19548
      }
-
 
19549
      this.success.add(elem);
-
 
19550
    }
-
 
19551
 
-
 
19552
    public List<UserCommunication> getSuccess() {
-
 
19553
      return this.success;
-
 
19554
    }
-
 
19555
 
-
 
19556
    public getAllUserCommunications_result setSuccess(List<UserCommunication> success) {
-
 
19557
      this.success = success;
-
 
19558
      return this;
-
 
19559
    }
-
 
19560
 
-
 
19561
    public void unsetSuccess() {
-
 
19562
      this.success = null;
-
 
19563
    }
-
 
19564
 
-
 
19565
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
19566
    public boolean isSetSuccess() {
-
 
19567
      return this.success != null;
-
 
19568
    }
-
 
19569
 
-
 
19570
    public void setSuccessIsSet(boolean value) {
-
 
19571
      if (!value) {
-
 
19572
        this.success = null;
-
 
19573
      }
-
 
19574
    }
-
 
19575
 
-
 
19576
    public UserCommunicationException getUcx() {
-
 
19577
      return this.ucx;
-
 
19578
    }
-
 
19579
 
-
 
19580
    public getAllUserCommunications_result setUcx(UserCommunicationException ucx) {
-
 
19581
      this.ucx = ucx;
-
 
19582
      return this;
-
 
19583
    }
-
 
19584
 
-
 
19585
    public void unsetUcx() {
-
 
19586
      this.ucx = null;
-
 
19587
    }
-
 
19588
 
-
 
19589
    /** Returns true if field ucx is set (has been asigned a value) and false otherwise */
-
 
19590
    public boolean isSetUcx() {
-
 
19591
      return this.ucx != null;
-
 
19592
    }
-
 
19593
 
-
 
19594
    public void setUcxIsSet(boolean value) {
-
 
19595
      if (!value) {
-
 
19596
        this.ucx = null;
-
 
19597
      }
-
 
19598
    }
-
 
19599
 
-
 
19600
    public void setFieldValue(_Fields field, Object value) {
-
 
19601
      switch (field) {
-
 
19602
      case SUCCESS:
-
 
19603
        if (value == null) {
-
 
19604
          unsetSuccess();
-
 
19605
        } else {
-
 
19606
          setSuccess((List<UserCommunication>)value);
-
 
19607
        }
-
 
19608
        break;
-
 
19609
 
-
 
19610
      case UCX:
-
 
19611
        if (value == null) {
-
 
19612
          unsetUcx();
-
 
19613
        } else {
-
 
19614
          setUcx((UserCommunicationException)value);
-
 
19615
        }
-
 
19616
        break;
-
 
19617
 
-
 
19618
      }
-
 
19619
    }
-
 
19620
 
-
 
19621
    public void setFieldValue(int fieldID, Object value) {
-
 
19622
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
19623
    }
-
 
19624
 
-
 
19625
    public Object getFieldValue(_Fields field) {
-
 
19626
      switch (field) {
-
 
19627
      case SUCCESS:
-
 
19628
        return getSuccess();
-
 
19629
 
-
 
19630
      case UCX:
-
 
19631
        return getUcx();
-
 
19632
 
-
 
19633
      }
-
 
19634
      throw new IllegalStateException();
-
 
19635
    }
-
 
19636
 
-
 
19637
    public Object getFieldValue(int fieldId) {
-
 
19638
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
19639
    }
-
 
19640
 
-
 
19641
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
19642
    public boolean isSet(_Fields field) {
-
 
19643
      switch (field) {
-
 
19644
      case SUCCESS:
-
 
19645
        return isSetSuccess();
-
 
19646
      case UCX:
-
 
19647
        return isSetUcx();
-
 
19648
      }
-
 
19649
      throw new IllegalStateException();
-
 
19650
    }
-
 
19651
 
-
 
19652
    public boolean isSet(int fieldID) {
-
 
19653
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
19654
    }
-
 
19655
 
-
 
19656
    @Override
-
 
19657
    public boolean equals(Object that) {
-
 
19658
      if (that == null)
-
 
19659
        return false;
-
 
19660
      if (that instanceof getAllUserCommunications_result)
-
 
19661
        return this.equals((getAllUserCommunications_result)that);
-
 
19662
      return false;
-
 
19663
    }
-
 
19664
 
-
 
19665
    public boolean equals(getAllUserCommunications_result that) {
-
 
19666
      if (that == null)
-
 
19667
        return false;
-
 
19668
 
-
 
19669
      boolean this_present_success = true && this.isSetSuccess();
-
 
19670
      boolean that_present_success = true && that.isSetSuccess();
-
 
19671
      if (this_present_success || that_present_success) {
-
 
19672
        if (!(this_present_success && that_present_success))
-
 
19673
          return false;
-
 
19674
        if (!this.success.equals(that.success))
-
 
19675
          return false;
-
 
19676
      }
-
 
19677
 
-
 
19678
      boolean this_present_ucx = true && this.isSetUcx();
-
 
19679
      boolean that_present_ucx = true && that.isSetUcx();
-
 
19680
      if (this_present_ucx || that_present_ucx) {
-
 
19681
        if (!(this_present_ucx && that_present_ucx))
-
 
19682
          return false;
-
 
19683
        if (!this.ucx.equals(that.ucx))
-
 
19684
          return false;
-
 
19685
      }
-
 
19686
 
-
 
19687
      return true;
-
 
19688
    }
-
 
19689
 
-
 
19690
    @Override
-
 
19691
    public int hashCode() {
-
 
19692
      return 0;
-
 
19693
    }
-
 
19694
 
-
 
19695
    public int compareTo(getAllUserCommunications_result other) {
-
 
19696
      if (!getClass().equals(other.getClass())) {
-
 
19697
        return getClass().getName().compareTo(other.getClass().getName());
-
 
19698
      }
-
 
19699
 
-
 
19700
      int lastComparison = 0;
-
 
19701
      getAllUserCommunications_result typedOther = (getAllUserCommunications_result)other;
-
 
19702
 
-
 
19703
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
19704
      if (lastComparison != 0) {
-
 
19705
        return lastComparison;
-
 
19706
      }
-
 
19707
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
19708
      if (lastComparison != 0) {
-
 
19709
        return lastComparison;
-
 
19710
      }
-
 
19711
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(isSetUcx());
-
 
19712
      if (lastComparison != 0) {
-
 
19713
        return lastComparison;
-
 
19714
      }
-
 
19715
      lastComparison = TBaseHelper.compareTo(ucx, typedOther.ucx);
-
 
19716
      if (lastComparison != 0) {
-
 
19717
        return lastComparison;
-
 
19718
      }
-
 
19719
      return 0;
-
 
19720
    }
-
 
19721
 
-
 
19722
    public void read(TProtocol iprot) throws TException {
-
 
19723
      TField field;
-
 
19724
      iprot.readStructBegin();
-
 
19725
      while (true)
-
 
19726
      {
-
 
19727
        field = iprot.readFieldBegin();
-
 
19728
        if (field.type == TType.STOP) { 
-
 
19729
          break;
-
 
19730
        }
-
 
19731
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
19732
        if (fieldId == null) {
-
 
19733
          TProtocolUtil.skip(iprot, field.type);
-
 
19734
        } else {
-
 
19735
          switch (fieldId) {
-
 
19736
            case SUCCESS:
-
 
19737
              if (field.type == TType.LIST) {
-
 
19738
                {
-
 
19739
                  TList _list24 = iprot.readListBegin();
-
 
19740
                  this.success = new ArrayList<UserCommunication>(_list24.size);
-
 
19741
                  for (int _i25 = 0; _i25 < _list24.size; ++_i25)
-
 
19742
                  {
-
 
19743
                    UserCommunication _elem26;
-
 
19744
                    _elem26 = new UserCommunication();
-
 
19745
                    _elem26.read(iprot);
-
 
19746
                    this.success.add(_elem26);
-
 
19747
                  }
-
 
19748
                  iprot.readListEnd();
-
 
19749
                }
-
 
19750
              } else { 
-
 
19751
                TProtocolUtil.skip(iprot, field.type);
-
 
19752
              }
-
 
19753
              break;
-
 
19754
            case UCX:
-
 
19755
              if (field.type == TType.STRUCT) {
-
 
19756
                this.ucx = new UserCommunicationException();
-
 
19757
                this.ucx.read(iprot);
-
 
19758
              } else { 
-
 
19759
                TProtocolUtil.skip(iprot, field.type);
-
 
19760
              }
-
 
19761
              break;
-
 
19762
          }
-
 
19763
          iprot.readFieldEnd();
-
 
19764
        }
-
 
19765
      }
-
 
19766
      iprot.readStructEnd();
-
 
19767
      validate();
-
 
19768
    }
-
 
19769
 
-
 
19770
    public void write(TProtocol oprot) throws TException {
-
 
19771
      oprot.writeStructBegin(STRUCT_DESC);
-
 
19772
 
-
 
19773
      if (this.isSetSuccess()) {
-
 
19774
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
19775
        {
-
 
19776
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
-
 
19777
          for (UserCommunication _iter27 : this.success)
-
 
19778
          {
-
 
19779
            _iter27.write(oprot);
-
 
19780
          }
-
 
19781
          oprot.writeListEnd();
-
 
19782
        }
-
 
19783
        oprot.writeFieldEnd();
-
 
19784
      } else if (this.isSetUcx()) {
-
 
19785
        oprot.writeFieldBegin(UCX_FIELD_DESC);
-
 
19786
        this.ucx.write(oprot);
-
 
19787
        oprot.writeFieldEnd();
-
 
19788
      }
-
 
19789
      oprot.writeFieldStop();
-
 
19790
      oprot.writeStructEnd();
-
 
19791
    }
-
 
19792
 
-
 
19793
    @Override
-
 
19794
    public String toString() {
-
 
19795
      StringBuilder sb = new StringBuilder("getAllUserCommunications_result(");
-
 
19796
      boolean first = true;
-
 
19797
 
-
 
19798
      sb.append("success:");
-
 
19799
      if (this.success == null) {
-
 
19800
        sb.append("null");
-
 
19801
      } else {
-
 
19802
        sb.append(this.success);
-
 
19803
      }
-
 
19804
      first = false;
-
 
19805
      if (!first) sb.append(", ");
-
 
19806
      sb.append("ucx:");
-
 
19807
      if (this.ucx == null) {
-
 
19808
        sb.append("null");
-
 
19809
      } else {
-
 
19810
        sb.append(this.ucx);
-
 
19811
      }
-
 
19812
      first = false;
-
 
19813
      sb.append(")");
-
 
19814
      return sb.toString();
-
 
19815
    }
-
 
19816
 
-
 
19817
    public void validate() throws TException {
-
 
19818
      // check for required fields
-
 
19819
    }
-
 
19820
 
-
 
19821
  }
-
 
19822
 
17707
  public static class createCart_args implements TBase<createCart_args._Fields>, java.io.Serializable, Cloneable, Comparable<createCart_args>   {
19823
  public static class createCart_args implements TBase<createCart_args._Fields>, java.io.Serializable, Cloneable, Comparable<createCart_args>   {
17708
    private static final TStruct STRUCT_DESC = new TStruct("createCart_args");
19824
    private static final TStruct STRUCT_DESC = new TStruct("createCart_args");
17709
 
19825
 
17710
    private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)1);
19826
    private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)1);
17711
 
19827
 
Line 20329... Line 22445...
20329
        } else {
22445
        } else {
20330
          switch (fieldId) {
22446
          switch (fieldId) {
20331
            case SUCCESS:
22447
            case SUCCESS:
20332
              if (field.type == TType.LIST) {
22448
              if (field.type == TType.LIST) {
20333
                {
22449
                {
20334
                  TList _list20 = iprot.readListBegin();
22450
                  TList _list28 = iprot.readListBegin();
20335
                  this.success = new ArrayList<Cart>(_list20.size);
22451
                  this.success = new ArrayList<Cart>(_list28.size);
20336
                  for (int _i21 = 0; _i21 < _list20.size; ++_i21)
22452
                  for (int _i29 = 0; _i29 < _list28.size; ++_i29)
20337
                  {
22453
                  {
20338
                    Cart _elem22;
22454
                    Cart _elem30;
20339
                    _elem22 = new Cart();
22455
                    _elem30 = new Cart();
20340
                    _elem22.read(iprot);
22456
                    _elem30.read(iprot);
20341
                    this.success.add(_elem22);
22457
                    this.success.add(_elem30);
20342
                  }
22458
                  }
20343
                  iprot.readListEnd();
22459
                  iprot.readListEnd();
20344
                }
22460
                }
20345
              } else { 
22461
              } else { 
20346
                TProtocolUtil.skip(iprot, field.type);
22462
                TProtocolUtil.skip(iprot, field.type);
Line 20367... Line 22483...
20367
 
22483
 
20368
      if (this.isSetSuccess()) {
22484
      if (this.isSetSuccess()) {
20369
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22485
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20370
        {
22486
        {
20371
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
22487
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
20372
          for (Cart _iter23 : this.success)
22488
          for (Cart _iter31 : this.success)
20373
          {
22489
          {
20374
            _iter23.write(oprot);
22490
            _iter31.write(oprot);
20375
          }
22491
          }
20376
          oprot.writeListEnd();
22492
          oprot.writeListEnd();
20377
        }
22493
        }
20378
        oprot.writeFieldEnd();
22494
        oprot.writeFieldEnd();
20379
      } else if (this.isSetScx()) {
22495
      } else if (this.isSetScx()) {
Line 21032... Line 23148...
21032
        } else {
23148
        } else {
21033
          switch (fieldId) {
23149
          switch (fieldId) {
21034
            case SUCCESS:
23150
            case SUCCESS:
21035
              if (field.type == TType.LIST) {
23151
              if (field.type == TType.LIST) {
21036
                {
23152
                {
21037
                  TList _list24 = iprot.readListBegin();
23153
                  TList _list32 = iprot.readListBegin();
21038
                  this.success = new ArrayList<Cart>(_list24.size);
23154
                  this.success = new ArrayList<Cart>(_list32.size);
21039
                  for (int _i25 = 0; _i25 < _list24.size; ++_i25)
23155
                  for (int _i33 = 0; _i33 < _list32.size; ++_i33)
21040
                  {
23156
                  {
21041
                    Cart _elem26;
23157
                    Cart _elem34;
21042
                    _elem26 = new Cart();
23158
                    _elem34 = new Cart();
21043
                    _elem26.read(iprot);
23159
                    _elem34.read(iprot);
21044
                    this.success.add(_elem26);
23160
                    this.success.add(_elem34);
21045
                  }
23161
                  }
21046
                  iprot.readListEnd();
23162
                  iprot.readListEnd();
21047
                }
23163
                }
21048
              } else { 
23164
              } else { 
21049
                TProtocolUtil.skip(iprot, field.type);
23165
                TProtocolUtil.skip(iprot, field.type);
Line 21070... Line 23186...
21070
 
23186
 
21071
      if (this.isSetSuccess()) {
23187
      if (this.isSetSuccess()) {
21072
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23188
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21073
        {
23189
        {
21074
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
23190
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
21075
          for (Cart _iter27 : this.success)
23191
          for (Cart _iter35 : this.success)
21076
          {
23192
          {
21077
            _iter27.write(oprot);
23193
            _iter35.write(oprot);
21078
          }
23194
          }
21079
          oprot.writeListEnd();
23195
          oprot.writeListEnd();
21080
        }
23196
        }
21081
        oprot.writeFieldEnd();
23197
        oprot.writeFieldEnd();
21082
      } else if (this.isSetScx()) {
23198
      } else if (this.isSetScx()) {
Line 21894... Line 24010...
21894
        } else {
24010
        } else {
21895
          switch (fieldId) {
24011
          switch (fieldId) {
21896
            case SUCCESS:
24012
            case SUCCESS:
21897
              if (field.type == TType.LIST) {
24013
              if (field.type == TType.LIST) {
21898
                {
24014
                {
21899
                  TList _list28 = iprot.readListBegin();
24015
                  TList _list36 = iprot.readListBegin();
21900
                  this.success = new ArrayList<Cart>(_list28.size);
24016
                  this.success = new ArrayList<Cart>(_list36.size);
21901
                  for (int _i29 = 0; _i29 < _list28.size; ++_i29)
24017
                  for (int _i37 = 0; _i37 < _list36.size; ++_i37)
21902
                  {
24018
                  {
21903
                    Cart _elem30;
24019
                    Cart _elem38;
21904
                    _elem30 = new Cart();
24020
                    _elem38 = new Cart();
21905
                    _elem30.read(iprot);
24021
                    _elem38.read(iprot);
21906
                    this.success.add(_elem30);
24022
                    this.success.add(_elem38);
21907
                  }
24023
                  }
21908
                  iprot.readListEnd();
24024
                  iprot.readListEnd();
21909
                }
24025
                }
21910
              } else { 
24026
              } else { 
21911
                TProtocolUtil.skip(iprot, field.type);
24027
                TProtocolUtil.skip(iprot, field.type);
Line 21932... Line 24048...
21932
 
24048
 
21933
      if (this.isSetSuccess()) {
24049
      if (this.isSetSuccess()) {
21934
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24050
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21935
        {
24051
        {
21936
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
24052
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
21937
          for (Cart _iter31 : this.success)
24053
          for (Cart _iter39 : this.success)
21938
          {
24054
          {
21939
            _iter31.write(oprot);
24055
            _iter39.write(oprot);
21940
          }
24056
          }
21941
          oprot.writeListEnd();
24057
          oprot.writeListEnd();
21942
        }
24058
        }
21943
        oprot.writeFieldEnd();
24059
        oprot.writeFieldEnd();
21944
      } else if (this.isSetScx()) {
24060
      } else if (this.isSetScx()) {
Line 28862... Line 30978...
28862
              }
30978
              }
28863
              break;
30979
              break;
28864
            case ITEMS:
30980
            case ITEMS:
28865
              if (field.type == TType.MAP) {
30981
              if (field.type == TType.MAP) {
28866
                {
30982
                {
28867
                  TMap _map32 = iprot.readMapBegin();
30983
                  TMap _map40 = iprot.readMapBegin();
28868
                  this.items = new HashMap<Long,Double>(2*_map32.size);
30984
                  this.items = new HashMap<Long,Double>(2*_map40.size);
28869
                  for (int _i33 = 0; _i33 < _map32.size; ++_i33)
30985
                  for (int _i41 = 0; _i41 < _map40.size; ++_i41)
28870
                  {
30986
                  {
28871
                    long _key34;
30987
                    long _key42;
28872
                    double _val35;
30988
                    double _val43;
28873
                    _key34 = iprot.readI64();
30989
                    _key42 = iprot.readI64();
28874
                    _val35 = iprot.readDouble();
30990
                    _val43 = iprot.readDouble();
28875
                    this.items.put(_key34, _val35);
30991
                    this.items.put(_key42, _val43);
28876
                  }
30992
                  }
28877
                  iprot.readMapEnd();
30993
                  iprot.readMapEnd();
28878
                }
30994
                }
28879
              } else { 
30995
              } else { 
28880
                TProtocolUtil.skip(iprot, field.type);
30996
                TProtocolUtil.skip(iprot, field.type);
Line 28897... Line 31013...
28897
      oprot.writeFieldEnd();
31013
      oprot.writeFieldEnd();
28898
      if (this.items != null) {
31014
      if (this.items != null) {
28899
        oprot.writeFieldBegin(ITEMS_FIELD_DESC);
31015
        oprot.writeFieldBegin(ITEMS_FIELD_DESC);
28900
        {
31016
        {
28901
          oprot.writeMapBegin(new TMap(TType.I64, TType.DOUBLE, this.items.size()));
31017
          oprot.writeMapBegin(new TMap(TType.I64, TType.DOUBLE, this.items.size()));
28902
          for (Map.Entry<Long, Double> _iter36 : this.items.entrySet())
31018
          for (Map.Entry<Long, Double> _iter44 : this.items.entrySet())
28903
          {
31019
          {
28904
            oprot.writeI64(_iter36.getKey());
31020
            oprot.writeI64(_iter44.getKey());
28905
            oprot.writeDouble(_iter36.getValue());
31021
            oprot.writeDouble(_iter44.getValue());
28906
          }
31022
          }
28907
          oprot.writeMapEnd();
31023
          oprot.writeMapEnd();
28908
        }
31024
        }
28909
        oprot.writeFieldEnd();
31025
        oprot.writeFieldEnd();
28910
      }
31026
      }