Subversion Repositories SmartDukaan

Rev

Rev 123 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 123 Rev 130
Line 70... Line 70...
70
 
70
 
71
    public boolean confirmSMSVerification(long userid) throws UserContextException, TException;
71
    public boolean confirmSMSVerification(long userid) throws UserContextException, TException;
72
 
72
 
73
    public boolean addSocialhandle(long userid, String socialService, String handle) throws UserContextException, TException;
73
    public boolean addSocialhandle(long userid, String socialService, String handle) throws UserContextException, TException;
74
 
74
 
-
 
75
    public boolean sendNewPasswordById(long userid) throws UserContextException, TException;
-
 
76
 
-
 
77
    public boolean sendNewPasswordByHandle(String emailOrHandle, boolean isEmail) throws UserContextException, TException;
-
 
78
 
75
  }
79
  }
76
 
80
 
77
  public static class Client implements Iface {
81
  public static class Client implements Iface {
78
    public Client(TProtocol prot)
82
    public Client(TProtocol prot)
79
    {
83
    {
Line 875... Line 879...
875
        throw result.ucx;
879
        throw result.ucx;
876
      }
880
      }
877
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "addSocialhandle failed: unknown result");
881
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "addSocialhandle failed: unknown result");
878
    }
882
    }
879
 
883
 
-
 
884
    public boolean sendNewPasswordById(long userid) throws UserContextException, TException
-
 
885
    {
-
 
886
      send_sendNewPasswordById(userid);
-
 
887
      return recv_sendNewPasswordById();
-
 
888
    }
-
 
889
 
-
 
890
    public void send_sendNewPasswordById(long userid) throws TException
-
 
891
    {
-
 
892
      oprot_.writeMessageBegin(new TMessage("sendNewPasswordById", TMessageType.CALL, seqid_));
-
 
893
      sendNewPasswordById_args args = new sendNewPasswordById_args();
-
 
894
      args.userid = userid;
-
 
895
      args.write(oprot_);
-
 
896
      oprot_.writeMessageEnd();
-
 
897
      oprot_.getTransport().flush();
-
 
898
    }
-
 
899
 
-
 
900
    public boolean recv_sendNewPasswordById() throws UserContextException, TException
-
 
901
    {
-
 
902
      TMessage msg = iprot_.readMessageBegin();
-
 
903
      if (msg.type == TMessageType.EXCEPTION) {
-
 
904
        TApplicationException x = TApplicationException.read(iprot_);
-
 
905
        iprot_.readMessageEnd();
-
 
906
        throw x;
-
 
907
      }
-
 
908
      sendNewPasswordById_result result = new sendNewPasswordById_result();
-
 
909
      result.read(iprot_);
-
 
910
      iprot_.readMessageEnd();
-
 
911
      if (result.isSetSuccess()) {
-
 
912
        return result.success;
-
 
913
      }
-
 
914
      if (result.ucx != null) {
-
 
915
        throw result.ucx;
-
 
916
      }
-
 
917
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "sendNewPasswordById failed: unknown result");
-
 
918
    }
-
 
919
 
-
 
920
    public boolean sendNewPasswordByHandle(String emailOrHandle, boolean isEmail) throws UserContextException, TException
-
 
921
    {
-
 
922
      send_sendNewPasswordByHandle(emailOrHandle, isEmail);
-
 
923
      return recv_sendNewPasswordByHandle();
-
 
924
    }
-
 
925
 
-
 
926
    public void send_sendNewPasswordByHandle(String emailOrHandle, boolean isEmail) throws TException
-
 
927
    {
-
 
928
      oprot_.writeMessageBegin(new TMessage("sendNewPasswordByHandle", TMessageType.CALL, seqid_));
-
 
929
      sendNewPasswordByHandle_args args = new sendNewPasswordByHandle_args();
-
 
930
      args.emailOrHandle = emailOrHandle;
-
 
931
      args.isEmail = isEmail;
-
 
932
      args.write(oprot_);
-
 
933
      oprot_.writeMessageEnd();
-
 
934
      oprot_.getTransport().flush();
-
 
935
    }
-
 
936
 
-
 
937
    public boolean recv_sendNewPasswordByHandle() throws UserContextException, TException
-
 
938
    {
-
 
939
      TMessage msg = iprot_.readMessageBegin();
-
 
940
      if (msg.type == TMessageType.EXCEPTION) {
-
 
941
        TApplicationException x = TApplicationException.read(iprot_);
-
 
942
        iprot_.readMessageEnd();
-
 
943
        throw x;
-
 
944
      }
-
 
945
      sendNewPasswordByHandle_result result = new sendNewPasswordByHandle_result();
-
 
946
      result.read(iprot_);
-
 
947
      iprot_.readMessageEnd();
-
 
948
      if (result.isSetSuccess()) {
-
 
949
        return result.success;
-
 
950
      }
-
 
951
      if (result.ucx != null) {
-
 
952
        throw result.ucx;
-
 
953
      }
-
 
954
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "sendNewPasswordByHandle failed: unknown result");
-
 
955
    }
-
 
956
 
880
  }
957
  }
881
  public static class Processor implements TProcessor {
958
  public static class Processor implements TProcessor {
882
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
959
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
883
    public Processor(Iface iface)
960
    public Processor(Iface iface)
884
    {
961
    {
Line 902... Line 979...
902
      processMap_.put("sendEmailVerification", new sendEmailVerification());
979
      processMap_.put("sendEmailVerification", new sendEmailVerification());
903
      processMap_.put("sendSMSVerification", new sendSMSVerification());
980
      processMap_.put("sendSMSVerification", new sendSMSVerification());
904
      processMap_.put("confirmEmailVerification", new confirmEmailVerification());
981
      processMap_.put("confirmEmailVerification", new confirmEmailVerification());
905
      processMap_.put("confirmSMSVerification", new confirmSMSVerification());
982
      processMap_.put("confirmSMSVerification", new confirmSMSVerification());
906
      processMap_.put("addSocialhandle", new addSocialhandle());
983
      processMap_.put("addSocialhandle", new addSocialhandle());
-
 
984
      processMap_.put("sendNewPasswordById", new sendNewPasswordById());
-
 
985
      processMap_.put("sendNewPasswordByHandle", new sendNewPasswordByHandle());
907
    }
986
    }
908
 
987
 
909
    protected static interface ProcessFunction {
988
    protected static interface ProcessFunction {
910
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException;
989
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException;
911
    }
990
    }
Line 1531... Line 1610...
1531
        oprot.getTransport().flush();
1610
        oprot.getTransport().flush();
1532
      }
1611
      }
1533
 
1612
 
1534
    }
1613
    }
1535
 
1614
 
-
 
1615
    private class sendNewPasswordById implements ProcessFunction {
-
 
1616
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
1617
      {
-
 
1618
        sendNewPasswordById_args args = new sendNewPasswordById_args();
-
 
1619
        args.read(iprot);
-
 
1620
        iprot.readMessageEnd();
-
 
1621
        sendNewPasswordById_result result = new sendNewPasswordById_result();
-
 
1622
        try {
-
 
1623
          result.success = iface_.sendNewPasswordById(args.userid);
-
 
1624
          result.setSuccessIsSet(true);
-
 
1625
        } catch (UserContextException ucx) {
-
 
1626
          result.ucx = ucx;
-
 
1627
        } catch (Throwable th) {
-
 
1628
          LOGGER.error("Internal error processing sendNewPasswordById", th);
-
 
1629
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing sendNewPasswordById");
-
 
1630
          oprot.writeMessageBegin(new TMessage("sendNewPasswordById", TMessageType.EXCEPTION, seqid));
-
 
1631
          x.write(oprot);
-
 
1632
          oprot.writeMessageEnd();
-
 
1633
          oprot.getTransport().flush();
-
 
1634
          return;
-
 
1635
        }
-
 
1636
        oprot.writeMessageBegin(new TMessage("sendNewPasswordById", TMessageType.REPLY, seqid));
-
 
1637
        result.write(oprot);
-
 
1638
        oprot.writeMessageEnd();
-
 
1639
        oprot.getTransport().flush();
-
 
1640
      }
-
 
1641
 
-
 
1642
    }
-
 
1643
 
-
 
1644
    private class sendNewPasswordByHandle implements ProcessFunction {
-
 
1645
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
1646
      {
-
 
1647
        sendNewPasswordByHandle_args args = new sendNewPasswordByHandle_args();
-
 
1648
        args.read(iprot);
-
 
1649
        iprot.readMessageEnd();
-
 
1650
        sendNewPasswordByHandle_result result = new sendNewPasswordByHandle_result();
-
 
1651
        try {
-
 
1652
          result.success = iface_.sendNewPasswordByHandle(args.emailOrHandle, args.isEmail);
-
 
1653
          result.setSuccessIsSet(true);
-
 
1654
        } catch (UserContextException ucx) {
-
 
1655
          result.ucx = ucx;
-
 
1656
        } catch (Throwable th) {
-
 
1657
          LOGGER.error("Internal error processing sendNewPasswordByHandle", th);
-
 
1658
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing sendNewPasswordByHandle");
-
 
1659
          oprot.writeMessageBegin(new TMessage("sendNewPasswordByHandle", TMessageType.EXCEPTION, seqid));
-
 
1660
          x.write(oprot);
-
 
1661
          oprot.writeMessageEnd();
-
 
1662
          oprot.getTransport().flush();
-
 
1663
          return;
-
 
1664
        }
-
 
1665
        oprot.writeMessageBegin(new TMessage("sendNewPasswordByHandle", TMessageType.REPLY, seqid));
-
 
1666
        result.write(oprot);
-
 
1667
        oprot.writeMessageEnd();
-
 
1668
        oprot.getTransport().flush();
-
 
1669
      }
-
 
1670
 
-
 
1671
    }
-
 
1672
 
1536
  }
1673
  }
1537
 
1674
 
1538
  public static class createContext_args implements TBase<createContext_args._Fields>, java.io.Serializable, Cloneable   {
1675
  public static class createContext_args implements TBase<createContext_args._Fields>, java.io.Serializable, Cloneable   {
1539
    private static final TStruct STRUCT_DESC = new TStruct("createContext_args");
1676
    private static final TStruct STRUCT_DESC = new TStruct("createContext_args");
1540
 
1677
 
Line 16456... Line 16593...
16456
      boolean first = true;
16593
      boolean first = true;
16457
 
16594
 
16458
      sb.append("success:");
16595
      sb.append("success:");
16459
      sb.append(this.success);
16596
      sb.append(this.success);
16460
      first = false;
16597
      first = false;
-
 
16598
      if (!first) sb.append(", ");
-
 
16599
      sb.append("ucx:");
-
 
16600
      if (this.ucx == null) {
-
 
16601
        sb.append("null");
-
 
16602
      } else {
-
 
16603
        sb.append(this.ucx);
-
 
16604
      }
-
 
16605
      first = false;
-
 
16606
      sb.append(")");
-
 
16607
      return sb.toString();
-
 
16608
    }
-
 
16609
 
-
 
16610
    public void validate() throws TException {
-
 
16611
      // check for required fields
-
 
16612
    }
-
 
16613
 
-
 
16614
  }
-
 
16615
 
-
 
16616
  public static class sendNewPasswordById_args implements TBase<sendNewPasswordById_args._Fields>, java.io.Serializable, Cloneable, Comparable<sendNewPasswordById_args>   {
-
 
16617
    private static final TStruct STRUCT_DESC = new TStruct("sendNewPasswordById_args");
-
 
16618
 
-
 
16619
    private static final TField USERID_FIELD_DESC = new TField("userid", TType.I64, (short)1);
-
 
16620
 
-
 
16621
    private long userid;
-
 
16622
 
-
 
16623
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
16624
    public enum _Fields implements TFieldIdEnum {
-
 
16625
      USERID((short)1, "userid");
-
 
16626
 
-
 
16627
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
16628
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
16629
 
-
 
16630
      static {
-
 
16631
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
16632
          byId.put((int)field._thriftId, field);
-
 
16633
          byName.put(field.getFieldName(), field);
-
 
16634
        }
-
 
16635
      }
-
 
16636
 
-
 
16637
      /**
-
 
16638
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
16639
       */
-
 
16640
      public static _Fields findByThriftId(int fieldId) {
-
 
16641
        return byId.get(fieldId);
-
 
16642
      }
-
 
16643
 
-
 
16644
      /**
-
 
16645
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
16646
       * if it is not found.
-
 
16647
       */
-
 
16648
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
16649
        _Fields fields = findByThriftId(fieldId);
-
 
16650
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
16651
        return fields;
-
 
16652
      }
-
 
16653
 
-
 
16654
      /**
-
 
16655
       * Find the _Fields constant that matches name, or null if its not found.
-
 
16656
       */
-
 
16657
      public static _Fields findByName(String name) {
-
 
16658
        return byName.get(name);
-
 
16659
      }
-
 
16660
 
-
 
16661
      private final short _thriftId;
-
 
16662
      private final String _fieldName;
-
 
16663
 
-
 
16664
      _Fields(short thriftId, String fieldName) {
-
 
16665
        _thriftId = thriftId;
-
 
16666
        _fieldName = fieldName;
-
 
16667
      }
-
 
16668
 
-
 
16669
      public short getThriftFieldId() {
-
 
16670
        return _thriftId;
-
 
16671
      }
-
 
16672
 
-
 
16673
      public String getFieldName() {
-
 
16674
        return _fieldName;
-
 
16675
      }
-
 
16676
    }
-
 
16677
 
-
 
16678
    // isset id assignments
-
 
16679
    private static final int __USERID_ISSET_ID = 0;
-
 
16680
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
16681
 
-
 
16682
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
16683
      put(_Fields.USERID, new FieldMetaData("userid", TFieldRequirementType.DEFAULT, 
-
 
16684
          new FieldValueMetaData(TType.I64)));
-
 
16685
    }});
-
 
16686
 
-
 
16687
    static {
-
 
16688
      FieldMetaData.addStructMetaDataMap(sendNewPasswordById_args.class, metaDataMap);
-
 
16689
    }
-
 
16690
 
-
 
16691
    public sendNewPasswordById_args() {
-
 
16692
    }
-
 
16693
 
-
 
16694
    public sendNewPasswordById_args(
-
 
16695
      long userid)
-
 
16696
    {
-
 
16697
      this();
-
 
16698
      this.userid = userid;
-
 
16699
      setUseridIsSet(true);
-
 
16700
    }
-
 
16701
 
-
 
16702
    /**
-
 
16703
     * Performs a deep copy on <i>other</i>.
-
 
16704
     */
-
 
16705
    public sendNewPasswordById_args(sendNewPasswordById_args other) {
-
 
16706
      __isset_bit_vector.clear();
-
 
16707
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
16708
      this.userid = other.userid;
-
 
16709
    }
-
 
16710
 
-
 
16711
    public sendNewPasswordById_args deepCopy() {
-
 
16712
      return new sendNewPasswordById_args(this);
-
 
16713
    }
-
 
16714
 
-
 
16715
    @Deprecated
-
 
16716
    public sendNewPasswordById_args clone() {
-
 
16717
      return new sendNewPasswordById_args(this);
-
 
16718
    }
-
 
16719
 
-
 
16720
    public long getUserid() {
-
 
16721
      return this.userid;
-
 
16722
    }
-
 
16723
 
-
 
16724
    public sendNewPasswordById_args setUserid(long userid) {
-
 
16725
      this.userid = userid;
-
 
16726
      setUseridIsSet(true);
-
 
16727
      return this;
-
 
16728
    }
-
 
16729
 
-
 
16730
    public void unsetUserid() {
-
 
16731
      __isset_bit_vector.clear(__USERID_ISSET_ID);
-
 
16732
    }
-
 
16733
 
-
 
16734
    /** Returns true if field userid is set (has been asigned a value) and false otherwise */
-
 
16735
    public boolean isSetUserid() {
-
 
16736
      return __isset_bit_vector.get(__USERID_ISSET_ID);
-
 
16737
    }
-
 
16738
 
-
 
16739
    public void setUseridIsSet(boolean value) {
-
 
16740
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
-
 
16741
    }
-
 
16742
 
-
 
16743
    public void setFieldValue(_Fields field, Object value) {
-
 
16744
      switch (field) {
-
 
16745
      case USERID:
-
 
16746
        if (value == null) {
-
 
16747
          unsetUserid();
-
 
16748
        } else {
-
 
16749
          setUserid((Long)value);
-
 
16750
        }
-
 
16751
        break;
-
 
16752
 
-
 
16753
      }
-
 
16754
    }
-
 
16755
 
-
 
16756
    public void setFieldValue(int fieldID, Object value) {
-
 
16757
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
16758
    }
-
 
16759
 
-
 
16760
    public Object getFieldValue(_Fields field) {
-
 
16761
      switch (field) {
-
 
16762
      case USERID:
-
 
16763
        return new Long(getUserid());
-
 
16764
 
-
 
16765
      }
-
 
16766
      throw new IllegalStateException();
-
 
16767
    }
-
 
16768
 
-
 
16769
    public Object getFieldValue(int fieldId) {
-
 
16770
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
16771
    }
-
 
16772
 
-
 
16773
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
16774
    public boolean isSet(_Fields field) {
-
 
16775
      switch (field) {
-
 
16776
      case USERID:
-
 
16777
        return isSetUserid();
-
 
16778
      }
-
 
16779
      throw new IllegalStateException();
-
 
16780
    }
-
 
16781
 
-
 
16782
    public boolean isSet(int fieldID) {
-
 
16783
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
16784
    }
-
 
16785
 
-
 
16786
    @Override
-
 
16787
    public boolean equals(Object that) {
-
 
16788
      if (that == null)
-
 
16789
        return false;
-
 
16790
      if (that instanceof sendNewPasswordById_args)
-
 
16791
        return this.equals((sendNewPasswordById_args)that);
-
 
16792
      return false;
-
 
16793
    }
-
 
16794
 
-
 
16795
    public boolean equals(sendNewPasswordById_args that) {
-
 
16796
      if (that == null)
-
 
16797
        return false;
-
 
16798
 
-
 
16799
      boolean this_present_userid = true;
-
 
16800
      boolean that_present_userid = true;
-
 
16801
      if (this_present_userid || that_present_userid) {
-
 
16802
        if (!(this_present_userid && that_present_userid))
-
 
16803
          return false;
-
 
16804
        if (this.userid != that.userid)
-
 
16805
          return false;
-
 
16806
      }
-
 
16807
 
-
 
16808
      return true;
-
 
16809
    }
-
 
16810
 
-
 
16811
    @Override
-
 
16812
    public int hashCode() {
-
 
16813
      return 0;
-
 
16814
    }
-
 
16815
 
-
 
16816
    public int compareTo(sendNewPasswordById_args other) {
-
 
16817
      if (!getClass().equals(other.getClass())) {
-
 
16818
        return getClass().getName().compareTo(other.getClass().getName());
-
 
16819
      }
-
 
16820
 
-
 
16821
      int lastComparison = 0;
-
 
16822
      sendNewPasswordById_args typedOther = (sendNewPasswordById_args)other;
-
 
16823
 
-
 
16824
      lastComparison = Boolean.valueOf(isSetUserid()).compareTo(isSetUserid());
-
 
16825
      if (lastComparison != 0) {
-
 
16826
        return lastComparison;
-
 
16827
      }
-
 
16828
      lastComparison = TBaseHelper.compareTo(userid, typedOther.userid);
-
 
16829
      if (lastComparison != 0) {
-
 
16830
        return lastComparison;
-
 
16831
      }
-
 
16832
      return 0;
-
 
16833
    }
-
 
16834
 
-
 
16835
    public void read(TProtocol iprot) throws TException {
-
 
16836
      TField field;
-
 
16837
      iprot.readStructBegin();
-
 
16838
      while (true)
-
 
16839
      {
-
 
16840
        field = iprot.readFieldBegin();
-
 
16841
        if (field.type == TType.STOP) { 
-
 
16842
          break;
-
 
16843
        }
-
 
16844
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
16845
        if (fieldId == null) {
-
 
16846
          TProtocolUtil.skip(iprot, field.type);
-
 
16847
        } else {
-
 
16848
          switch (fieldId) {
-
 
16849
            case USERID:
-
 
16850
              if (field.type == TType.I64) {
-
 
16851
                this.userid = iprot.readI64();
-
 
16852
                setUseridIsSet(true);
-
 
16853
              } else { 
-
 
16854
                TProtocolUtil.skip(iprot, field.type);
-
 
16855
              }
-
 
16856
              break;
-
 
16857
          }
-
 
16858
          iprot.readFieldEnd();
-
 
16859
        }
-
 
16860
      }
-
 
16861
      iprot.readStructEnd();
-
 
16862
      validate();
-
 
16863
    }
-
 
16864
 
-
 
16865
    public void write(TProtocol oprot) throws TException {
-
 
16866
      validate();
-
 
16867
 
-
 
16868
      oprot.writeStructBegin(STRUCT_DESC);
-
 
16869
      oprot.writeFieldBegin(USERID_FIELD_DESC);
-
 
16870
      oprot.writeI64(this.userid);
-
 
16871
      oprot.writeFieldEnd();
-
 
16872
      oprot.writeFieldStop();
-
 
16873
      oprot.writeStructEnd();
-
 
16874
    }
-
 
16875
 
-
 
16876
    @Override
-
 
16877
    public String toString() {
-
 
16878
      StringBuilder sb = new StringBuilder("sendNewPasswordById_args(");
-
 
16879
      boolean first = true;
-
 
16880
 
-
 
16881
      sb.append("userid:");
-
 
16882
      sb.append(this.userid);
-
 
16883
      first = false;
-
 
16884
      sb.append(")");
-
 
16885
      return sb.toString();
-
 
16886
    }
-
 
16887
 
-
 
16888
    public void validate() throws TException {
-
 
16889
      // check for required fields
-
 
16890
    }
-
 
16891
 
-
 
16892
  }
-
 
16893
 
-
 
16894
  public static class sendNewPasswordById_result implements TBase<sendNewPasswordById_result._Fields>, java.io.Serializable, Cloneable, Comparable<sendNewPasswordById_result>   {
-
 
16895
    private static final TStruct STRUCT_DESC = new TStruct("sendNewPasswordById_result");
-
 
16896
 
-
 
16897
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
-
 
16898
    private static final TField UCX_FIELD_DESC = new TField("ucx", TType.STRUCT, (short)1);
-
 
16899
 
-
 
16900
    private boolean success;
-
 
16901
    private UserContextException ucx;
-
 
16902
 
-
 
16903
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
16904
    public enum _Fields implements TFieldIdEnum {
-
 
16905
      SUCCESS((short)0, "success"),
-
 
16906
      UCX((short)1, "ucx");
-
 
16907
 
-
 
16908
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
16909
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
16910
 
-
 
16911
      static {
-
 
16912
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
16913
          byId.put((int)field._thriftId, field);
-
 
16914
          byName.put(field.getFieldName(), field);
-
 
16915
        }
-
 
16916
      }
-
 
16917
 
-
 
16918
      /**
-
 
16919
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
16920
       */
-
 
16921
      public static _Fields findByThriftId(int fieldId) {
-
 
16922
        return byId.get(fieldId);
-
 
16923
      }
-
 
16924
 
-
 
16925
      /**
-
 
16926
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
16927
       * if it is not found.
-
 
16928
       */
-
 
16929
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
16930
        _Fields fields = findByThriftId(fieldId);
-
 
16931
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
16932
        return fields;
-
 
16933
      }
-
 
16934
 
-
 
16935
      /**
-
 
16936
       * Find the _Fields constant that matches name, or null if its not found.
-
 
16937
       */
-
 
16938
      public static _Fields findByName(String name) {
-
 
16939
        return byName.get(name);
-
 
16940
      }
-
 
16941
 
-
 
16942
      private final short _thriftId;
-
 
16943
      private final String _fieldName;
-
 
16944
 
-
 
16945
      _Fields(short thriftId, String fieldName) {
-
 
16946
        _thriftId = thriftId;
-
 
16947
        _fieldName = fieldName;
-
 
16948
      }
-
 
16949
 
-
 
16950
      public short getThriftFieldId() {
-
 
16951
        return _thriftId;
-
 
16952
      }
-
 
16953
 
-
 
16954
      public String getFieldName() {
-
 
16955
        return _fieldName;
-
 
16956
      }
-
 
16957
    }
-
 
16958
 
-
 
16959
    // isset id assignments
-
 
16960
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
16961
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
16962
 
-
 
16963
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
16964
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
16965
          new FieldValueMetaData(TType.BOOL)));
-
 
16966
      put(_Fields.UCX, new FieldMetaData("ucx", TFieldRequirementType.DEFAULT, 
-
 
16967
          new FieldValueMetaData(TType.STRUCT)));
-
 
16968
    }});
-
 
16969
 
-
 
16970
    static {
-
 
16971
      FieldMetaData.addStructMetaDataMap(sendNewPasswordById_result.class, metaDataMap);
-
 
16972
    }
-
 
16973
 
-
 
16974
    public sendNewPasswordById_result() {
-
 
16975
    }
-
 
16976
 
-
 
16977
    public sendNewPasswordById_result(
-
 
16978
      boolean success,
-
 
16979
      UserContextException ucx)
-
 
16980
    {
-
 
16981
      this();
-
 
16982
      this.success = success;
-
 
16983
      setSuccessIsSet(true);
-
 
16984
      this.ucx = ucx;
-
 
16985
    }
-
 
16986
 
-
 
16987
    /**
-
 
16988
     * Performs a deep copy on <i>other</i>.
-
 
16989
     */
-
 
16990
    public sendNewPasswordById_result(sendNewPasswordById_result other) {
-
 
16991
      __isset_bit_vector.clear();
-
 
16992
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
16993
      this.success = other.success;
-
 
16994
      if (other.isSetUcx()) {
-
 
16995
        this.ucx = new UserContextException(other.ucx);
-
 
16996
      }
-
 
16997
    }
-
 
16998
 
-
 
16999
    public sendNewPasswordById_result deepCopy() {
-
 
17000
      return new sendNewPasswordById_result(this);
-
 
17001
    }
-
 
17002
 
-
 
17003
    @Deprecated
-
 
17004
    public sendNewPasswordById_result clone() {
-
 
17005
      return new sendNewPasswordById_result(this);
-
 
17006
    }
-
 
17007
 
-
 
17008
    public boolean isSuccess() {
-
 
17009
      return this.success;
-
 
17010
    }
-
 
17011
 
-
 
17012
    public sendNewPasswordById_result setSuccess(boolean success) {
-
 
17013
      this.success = success;
-
 
17014
      setSuccessIsSet(true);
-
 
17015
      return this;
-
 
17016
    }
-
 
17017
 
-
 
17018
    public void unsetSuccess() {
-
 
17019
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
17020
    }
-
 
17021
 
-
 
17022
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
17023
    public boolean isSetSuccess() {
-
 
17024
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
17025
    }
-
 
17026
 
-
 
17027
    public void setSuccessIsSet(boolean value) {
-
 
17028
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
17029
    }
-
 
17030
 
-
 
17031
    public UserContextException getUcx() {
-
 
17032
      return this.ucx;
-
 
17033
    }
-
 
17034
 
-
 
17035
    public sendNewPasswordById_result setUcx(UserContextException ucx) {
-
 
17036
      this.ucx = ucx;
-
 
17037
      return this;
-
 
17038
    }
-
 
17039
 
-
 
17040
    public void unsetUcx() {
-
 
17041
      this.ucx = null;
-
 
17042
    }
-
 
17043
 
-
 
17044
    /** Returns true if field ucx is set (has been asigned a value) and false otherwise */
-
 
17045
    public boolean isSetUcx() {
-
 
17046
      return this.ucx != null;
-
 
17047
    }
-
 
17048
 
-
 
17049
    public void setUcxIsSet(boolean value) {
-
 
17050
      if (!value) {
-
 
17051
        this.ucx = null;
-
 
17052
      }
-
 
17053
    }
-
 
17054
 
-
 
17055
    public void setFieldValue(_Fields field, Object value) {
-
 
17056
      switch (field) {
-
 
17057
      case SUCCESS:
-
 
17058
        if (value == null) {
-
 
17059
          unsetSuccess();
-
 
17060
        } else {
-
 
17061
          setSuccess((Boolean)value);
-
 
17062
        }
-
 
17063
        break;
-
 
17064
 
-
 
17065
      case UCX:
-
 
17066
        if (value == null) {
-
 
17067
          unsetUcx();
-
 
17068
        } else {
-
 
17069
          setUcx((UserContextException)value);
-
 
17070
        }
-
 
17071
        break;
-
 
17072
 
-
 
17073
      }
-
 
17074
    }
-
 
17075
 
-
 
17076
    public void setFieldValue(int fieldID, Object value) {
-
 
17077
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
17078
    }
-
 
17079
 
-
 
17080
    public Object getFieldValue(_Fields field) {
-
 
17081
      switch (field) {
-
 
17082
      case SUCCESS:
-
 
17083
        return new Boolean(isSuccess());
-
 
17084
 
-
 
17085
      case UCX:
-
 
17086
        return getUcx();
-
 
17087
 
-
 
17088
      }
-
 
17089
      throw new IllegalStateException();
-
 
17090
    }
-
 
17091
 
-
 
17092
    public Object getFieldValue(int fieldId) {
-
 
17093
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
17094
    }
-
 
17095
 
-
 
17096
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
17097
    public boolean isSet(_Fields field) {
-
 
17098
      switch (field) {
-
 
17099
      case SUCCESS:
-
 
17100
        return isSetSuccess();
-
 
17101
      case UCX:
-
 
17102
        return isSetUcx();
-
 
17103
      }
-
 
17104
      throw new IllegalStateException();
-
 
17105
    }
-
 
17106
 
-
 
17107
    public boolean isSet(int fieldID) {
-
 
17108
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
17109
    }
-
 
17110
 
-
 
17111
    @Override
-
 
17112
    public boolean equals(Object that) {
-
 
17113
      if (that == null)
-
 
17114
        return false;
-
 
17115
      if (that instanceof sendNewPasswordById_result)
-
 
17116
        return this.equals((sendNewPasswordById_result)that);
-
 
17117
      return false;
-
 
17118
    }
-
 
17119
 
-
 
17120
    public boolean equals(sendNewPasswordById_result that) {
-
 
17121
      if (that == null)
-
 
17122
        return false;
-
 
17123
 
-
 
17124
      boolean this_present_success = true;
-
 
17125
      boolean that_present_success = true;
-
 
17126
      if (this_present_success || that_present_success) {
-
 
17127
        if (!(this_present_success && that_present_success))
-
 
17128
          return false;
-
 
17129
        if (this.success != that.success)
-
 
17130
          return false;
-
 
17131
      }
-
 
17132
 
-
 
17133
      boolean this_present_ucx = true && this.isSetUcx();
-
 
17134
      boolean that_present_ucx = true && that.isSetUcx();
-
 
17135
      if (this_present_ucx || that_present_ucx) {
-
 
17136
        if (!(this_present_ucx && that_present_ucx))
-
 
17137
          return false;
-
 
17138
        if (!this.ucx.equals(that.ucx))
-
 
17139
          return false;
-
 
17140
      }
-
 
17141
 
-
 
17142
      return true;
-
 
17143
    }
-
 
17144
 
-
 
17145
    @Override
-
 
17146
    public int hashCode() {
-
 
17147
      return 0;
-
 
17148
    }
-
 
17149
 
-
 
17150
    public int compareTo(sendNewPasswordById_result other) {
-
 
17151
      if (!getClass().equals(other.getClass())) {
-
 
17152
        return getClass().getName().compareTo(other.getClass().getName());
-
 
17153
      }
-
 
17154
 
-
 
17155
      int lastComparison = 0;
-
 
17156
      sendNewPasswordById_result typedOther = (sendNewPasswordById_result)other;
-
 
17157
 
-
 
17158
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
17159
      if (lastComparison != 0) {
-
 
17160
        return lastComparison;
-
 
17161
      }
-
 
17162
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
17163
      if (lastComparison != 0) {
-
 
17164
        return lastComparison;
-
 
17165
      }
-
 
17166
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(isSetUcx());
-
 
17167
      if (lastComparison != 0) {
-
 
17168
        return lastComparison;
-
 
17169
      }
-
 
17170
      lastComparison = TBaseHelper.compareTo(ucx, typedOther.ucx);
-
 
17171
      if (lastComparison != 0) {
-
 
17172
        return lastComparison;
-
 
17173
      }
-
 
17174
      return 0;
-
 
17175
    }
-
 
17176
 
-
 
17177
    public void read(TProtocol iprot) throws TException {
-
 
17178
      TField field;
-
 
17179
      iprot.readStructBegin();
-
 
17180
      while (true)
-
 
17181
      {
-
 
17182
        field = iprot.readFieldBegin();
-
 
17183
        if (field.type == TType.STOP) { 
-
 
17184
          break;
-
 
17185
        }
-
 
17186
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
17187
        if (fieldId == null) {
-
 
17188
          TProtocolUtil.skip(iprot, field.type);
-
 
17189
        } else {
-
 
17190
          switch (fieldId) {
-
 
17191
            case SUCCESS:
-
 
17192
              if (field.type == TType.BOOL) {
-
 
17193
                this.success = iprot.readBool();
-
 
17194
                setSuccessIsSet(true);
-
 
17195
              } else { 
-
 
17196
                TProtocolUtil.skip(iprot, field.type);
-
 
17197
              }
-
 
17198
              break;
-
 
17199
            case UCX:
-
 
17200
              if (field.type == TType.STRUCT) {
-
 
17201
                this.ucx = new UserContextException();
-
 
17202
                this.ucx.read(iprot);
-
 
17203
              } else { 
-
 
17204
                TProtocolUtil.skip(iprot, field.type);
-
 
17205
              }
-
 
17206
              break;
-
 
17207
          }
-
 
17208
          iprot.readFieldEnd();
-
 
17209
        }
-
 
17210
      }
-
 
17211
      iprot.readStructEnd();
-
 
17212
      validate();
-
 
17213
    }
-
 
17214
 
-
 
17215
    public void write(TProtocol oprot) throws TException {
-
 
17216
      oprot.writeStructBegin(STRUCT_DESC);
-
 
17217
 
-
 
17218
      if (this.isSetSuccess()) {
-
 
17219
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
17220
        oprot.writeBool(this.success);
-
 
17221
        oprot.writeFieldEnd();
-
 
17222
      } else if (this.isSetUcx()) {
-
 
17223
        oprot.writeFieldBegin(UCX_FIELD_DESC);
-
 
17224
        this.ucx.write(oprot);
-
 
17225
        oprot.writeFieldEnd();
-
 
17226
      }
-
 
17227
      oprot.writeFieldStop();
-
 
17228
      oprot.writeStructEnd();
-
 
17229
    }
-
 
17230
 
-
 
17231
    @Override
-
 
17232
    public String toString() {
-
 
17233
      StringBuilder sb = new StringBuilder("sendNewPasswordById_result(");
-
 
17234
      boolean first = true;
-
 
17235
 
-
 
17236
      sb.append("success:");
-
 
17237
      sb.append(this.success);
-
 
17238
      first = false;
-
 
17239
      if (!first) sb.append(", ");
-
 
17240
      sb.append("ucx:");
-
 
17241
      if (this.ucx == null) {
-
 
17242
        sb.append("null");
-
 
17243
      } else {
-
 
17244
        sb.append(this.ucx);
-
 
17245
      }
-
 
17246
      first = false;
-
 
17247
      sb.append(")");
-
 
17248
      return sb.toString();
-
 
17249
    }
-
 
17250
 
-
 
17251
    public void validate() throws TException {
-
 
17252
      // check for required fields
-
 
17253
    }
-
 
17254
 
-
 
17255
  }
-
 
17256
 
-
 
17257
  public static class sendNewPasswordByHandle_args implements TBase<sendNewPasswordByHandle_args._Fields>, java.io.Serializable, Cloneable, Comparable<sendNewPasswordByHandle_args>   {
-
 
17258
    private static final TStruct STRUCT_DESC = new TStruct("sendNewPasswordByHandle_args");
-
 
17259
 
-
 
17260
    private static final TField EMAIL_OR_HANDLE_FIELD_DESC = new TField("emailOrHandle", TType.STRING, (short)1);
-
 
17261
    private static final TField IS_EMAIL_FIELD_DESC = new TField("isEmail", TType.BOOL, (short)2);
-
 
17262
 
-
 
17263
    private String emailOrHandle;
-
 
17264
    private boolean isEmail;
-
 
17265
 
-
 
17266
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
17267
    public enum _Fields implements TFieldIdEnum {
-
 
17268
      EMAIL_OR_HANDLE((short)1, "emailOrHandle"),
-
 
17269
      IS_EMAIL((short)2, "isEmail");
-
 
17270
 
-
 
17271
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
17272
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
17273
 
-
 
17274
      static {
-
 
17275
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
17276
          byId.put((int)field._thriftId, field);
-
 
17277
          byName.put(field.getFieldName(), field);
-
 
17278
        }
-
 
17279
      }
-
 
17280
 
-
 
17281
      /**
-
 
17282
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
17283
       */
-
 
17284
      public static _Fields findByThriftId(int fieldId) {
-
 
17285
        return byId.get(fieldId);
-
 
17286
      }
-
 
17287
 
-
 
17288
      /**
-
 
17289
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
17290
       * if it is not found.
-
 
17291
       */
-
 
17292
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
17293
        _Fields fields = findByThriftId(fieldId);
-
 
17294
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
17295
        return fields;
-
 
17296
      }
-
 
17297
 
-
 
17298
      /**
-
 
17299
       * Find the _Fields constant that matches name, or null if its not found.
-
 
17300
       */
-
 
17301
      public static _Fields findByName(String name) {
-
 
17302
        return byName.get(name);
-
 
17303
      }
-
 
17304
 
-
 
17305
      private final short _thriftId;
-
 
17306
      private final String _fieldName;
-
 
17307
 
-
 
17308
      _Fields(short thriftId, String fieldName) {
-
 
17309
        _thriftId = thriftId;
-
 
17310
        _fieldName = fieldName;
-
 
17311
      }
-
 
17312
 
-
 
17313
      public short getThriftFieldId() {
-
 
17314
        return _thriftId;
-
 
17315
      }
-
 
17316
 
-
 
17317
      public String getFieldName() {
-
 
17318
        return _fieldName;
-
 
17319
      }
-
 
17320
    }
-
 
17321
 
-
 
17322
    // isset id assignments
-
 
17323
    private static final int __ISEMAIL_ISSET_ID = 0;
-
 
17324
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
17325
 
-
 
17326
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
17327
      put(_Fields.EMAIL_OR_HANDLE, new FieldMetaData("emailOrHandle", TFieldRequirementType.DEFAULT, 
-
 
17328
          new FieldValueMetaData(TType.STRING)));
-
 
17329
      put(_Fields.IS_EMAIL, new FieldMetaData("isEmail", TFieldRequirementType.DEFAULT, 
-
 
17330
          new FieldValueMetaData(TType.BOOL)));
-
 
17331
    }});
-
 
17332
 
-
 
17333
    static {
-
 
17334
      FieldMetaData.addStructMetaDataMap(sendNewPasswordByHandle_args.class, metaDataMap);
-
 
17335
    }
-
 
17336
 
-
 
17337
    public sendNewPasswordByHandle_args() {
-
 
17338
    }
-
 
17339
 
-
 
17340
    public sendNewPasswordByHandle_args(
-
 
17341
      String emailOrHandle,
-
 
17342
      boolean isEmail)
-
 
17343
    {
-
 
17344
      this();
-
 
17345
      this.emailOrHandle = emailOrHandle;
-
 
17346
      this.isEmail = isEmail;
-
 
17347
      setIsEmailIsSet(true);
-
 
17348
    }
-
 
17349
 
-
 
17350
    /**
-
 
17351
     * Performs a deep copy on <i>other</i>.
-
 
17352
     */
-
 
17353
    public sendNewPasswordByHandle_args(sendNewPasswordByHandle_args other) {
-
 
17354
      __isset_bit_vector.clear();
-
 
17355
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
17356
      if (other.isSetEmailOrHandle()) {
-
 
17357
        this.emailOrHandle = other.emailOrHandle;
-
 
17358
      }
-
 
17359
      this.isEmail = other.isEmail;
-
 
17360
    }
-
 
17361
 
-
 
17362
    public sendNewPasswordByHandle_args deepCopy() {
-
 
17363
      return new sendNewPasswordByHandle_args(this);
-
 
17364
    }
-
 
17365
 
-
 
17366
    @Deprecated
-
 
17367
    public sendNewPasswordByHandle_args clone() {
-
 
17368
      return new sendNewPasswordByHandle_args(this);
-
 
17369
    }
-
 
17370
 
-
 
17371
    public String getEmailOrHandle() {
-
 
17372
      return this.emailOrHandle;
-
 
17373
    }
-
 
17374
 
-
 
17375
    public sendNewPasswordByHandle_args setEmailOrHandle(String emailOrHandle) {
-
 
17376
      this.emailOrHandle = emailOrHandle;
-
 
17377
      return this;
-
 
17378
    }
-
 
17379
 
-
 
17380
    public void unsetEmailOrHandle() {
-
 
17381
      this.emailOrHandle = null;
-
 
17382
    }
-
 
17383
 
-
 
17384
    /** Returns true if field emailOrHandle is set (has been asigned a value) and false otherwise */
-
 
17385
    public boolean isSetEmailOrHandle() {
-
 
17386
      return this.emailOrHandle != null;
-
 
17387
    }
-
 
17388
 
-
 
17389
    public void setEmailOrHandleIsSet(boolean value) {
-
 
17390
      if (!value) {
-
 
17391
        this.emailOrHandle = null;
-
 
17392
      }
-
 
17393
    }
-
 
17394
 
-
 
17395
    public boolean isIsEmail() {
-
 
17396
      return this.isEmail;
-
 
17397
    }
-
 
17398
 
-
 
17399
    public sendNewPasswordByHandle_args setIsEmail(boolean isEmail) {
-
 
17400
      this.isEmail = isEmail;
-
 
17401
      setIsEmailIsSet(true);
-
 
17402
      return this;
-
 
17403
    }
-
 
17404
 
-
 
17405
    public void unsetIsEmail() {
-
 
17406
      __isset_bit_vector.clear(__ISEMAIL_ISSET_ID);
-
 
17407
    }
-
 
17408
 
-
 
17409
    /** Returns true if field isEmail is set (has been asigned a value) and false otherwise */
-
 
17410
    public boolean isSetIsEmail() {
-
 
17411
      return __isset_bit_vector.get(__ISEMAIL_ISSET_ID);
-
 
17412
    }
-
 
17413
 
-
 
17414
    public void setIsEmailIsSet(boolean value) {
-
 
17415
      __isset_bit_vector.set(__ISEMAIL_ISSET_ID, value);
-
 
17416
    }
-
 
17417
 
-
 
17418
    public void setFieldValue(_Fields field, Object value) {
-
 
17419
      switch (field) {
-
 
17420
      case EMAIL_OR_HANDLE:
-
 
17421
        if (value == null) {
-
 
17422
          unsetEmailOrHandle();
-
 
17423
        } else {
-
 
17424
          setEmailOrHandle((String)value);
-
 
17425
        }
-
 
17426
        break;
-
 
17427
 
-
 
17428
      case IS_EMAIL:
-
 
17429
        if (value == null) {
-
 
17430
          unsetIsEmail();
-
 
17431
        } else {
-
 
17432
          setIsEmail((Boolean)value);
-
 
17433
        }
-
 
17434
        break;
-
 
17435
 
-
 
17436
      }
-
 
17437
    }
-
 
17438
 
-
 
17439
    public void setFieldValue(int fieldID, Object value) {
-
 
17440
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
17441
    }
-
 
17442
 
-
 
17443
    public Object getFieldValue(_Fields field) {
-
 
17444
      switch (field) {
-
 
17445
      case EMAIL_OR_HANDLE:
-
 
17446
        return getEmailOrHandle();
-
 
17447
 
-
 
17448
      case IS_EMAIL:
-
 
17449
        return new Boolean(isIsEmail());
-
 
17450
 
-
 
17451
      }
-
 
17452
      throw new IllegalStateException();
-
 
17453
    }
-
 
17454
 
-
 
17455
    public Object getFieldValue(int fieldId) {
-
 
17456
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
17457
    }
-
 
17458
 
-
 
17459
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
17460
    public boolean isSet(_Fields field) {
-
 
17461
      switch (field) {
-
 
17462
      case EMAIL_OR_HANDLE:
-
 
17463
        return isSetEmailOrHandle();
-
 
17464
      case IS_EMAIL:
-
 
17465
        return isSetIsEmail();
-
 
17466
      }
-
 
17467
      throw new IllegalStateException();
-
 
17468
    }
-
 
17469
 
-
 
17470
    public boolean isSet(int fieldID) {
-
 
17471
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
17472
    }
-
 
17473
 
-
 
17474
    @Override
-
 
17475
    public boolean equals(Object that) {
-
 
17476
      if (that == null)
-
 
17477
        return false;
-
 
17478
      if (that instanceof sendNewPasswordByHandle_args)
-
 
17479
        return this.equals((sendNewPasswordByHandle_args)that);
-
 
17480
      return false;
-
 
17481
    }
-
 
17482
 
-
 
17483
    public boolean equals(sendNewPasswordByHandle_args that) {
-
 
17484
      if (that == null)
-
 
17485
        return false;
-
 
17486
 
-
 
17487
      boolean this_present_emailOrHandle = true && this.isSetEmailOrHandle();
-
 
17488
      boolean that_present_emailOrHandle = true && that.isSetEmailOrHandle();
-
 
17489
      if (this_present_emailOrHandle || that_present_emailOrHandle) {
-
 
17490
        if (!(this_present_emailOrHandle && that_present_emailOrHandle))
-
 
17491
          return false;
-
 
17492
        if (!this.emailOrHandle.equals(that.emailOrHandle))
-
 
17493
          return false;
-
 
17494
      }
-
 
17495
 
-
 
17496
      boolean this_present_isEmail = true;
-
 
17497
      boolean that_present_isEmail = true;
-
 
17498
      if (this_present_isEmail || that_present_isEmail) {
-
 
17499
        if (!(this_present_isEmail && that_present_isEmail))
-
 
17500
          return false;
-
 
17501
        if (this.isEmail != that.isEmail)
-
 
17502
          return false;
-
 
17503
      }
-
 
17504
 
-
 
17505
      return true;
-
 
17506
    }
-
 
17507
 
-
 
17508
    @Override
-
 
17509
    public int hashCode() {
-
 
17510
      return 0;
-
 
17511
    }
-
 
17512
 
-
 
17513
    public int compareTo(sendNewPasswordByHandle_args other) {
-
 
17514
      if (!getClass().equals(other.getClass())) {
-
 
17515
        return getClass().getName().compareTo(other.getClass().getName());
-
 
17516
      }
-
 
17517
 
-
 
17518
      int lastComparison = 0;
-
 
17519
      sendNewPasswordByHandle_args typedOther = (sendNewPasswordByHandle_args)other;
-
 
17520
 
-
 
17521
      lastComparison = Boolean.valueOf(isSetEmailOrHandle()).compareTo(isSetEmailOrHandle());
-
 
17522
      if (lastComparison != 0) {
-
 
17523
        return lastComparison;
-
 
17524
      }
-
 
17525
      lastComparison = TBaseHelper.compareTo(emailOrHandle, typedOther.emailOrHandle);
-
 
17526
      if (lastComparison != 0) {
-
 
17527
        return lastComparison;
-
 
17528
      }
-
 
17529
      lastComparison = Boolean.valueOf(isSetIsEmail()).compareTo(isSetIsEmail());
-
 
17530
      if (lastComparison != 0) {
-
 
17531
        return lastComparison;
-
 
17532
      }
-
 
17533
      lastComparison = TBaseHelper.compareTo(isEmail, typedOther.isEmail);
-
 
17534
      if (lastComparison != 0) {
-
 
17535
        return lastComparison;
-
 
17536
      }
-
 
17537
      return 0;
-
 
17538
    }
-
 
17539
 
-
 
17540
    public void read(TProtocol iprot) throws TException {
-
 
17541
      TField field;
-
 
17542
      iprot.readStructBegin();
-
 
17543
      while (true)
-
 
17544
      {
-
 
17545
        field = iprot.readFieldBegin();
-
 
17546
        if (field.type == TType.STOP) { 
-
 
17547
          break;
-
 
17548
        }
-
 
17549
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
17550
        if (fieldId == null) {
-
 
17551
          TProtocolUtil.skip(iprot, field.type);
-
 
17552
        } else {
-
 
17553
          switch (fieldId) {
-
 
17554
            case EMAIL_OR_HANDLE:
-
 
17555
              if (field.type == TType.STRING) {
-
 
17556
                this.emailOrHandle = iprot.readString();
-
 
17557
              } else { 
-
 
17558
                TProtocolUtil.skip(iprot, field.type);
-
 
17559
              }
-
 
17560
              break;
-
 
17561
            case IS_EMAIL:
-
 
17562
              if (field.type == TType.BOOL) {
-
 
17563
                this.isEmail = iprot.readBool();
-
 
17564
                setIsEmailIsSet(true);
-
 
17565
              } else { 
-
 
17566
                TProtocolUtil.skip(iprot, field.type);
-
 
17567
              }
-
 
17568
              break;
-
 
17569
          }
-
 
17570
          iprot.readFieldEnd();
-
 
17571
        }
-
 
17572
      }
-
 
17573
      iprot.readStructEnd();
-
 
17574
      validate();
-
 
17575
    }
-
 
17576
 
-
 
17577
    public void write(TProtocol oprot) throws TException {
-
 
17578
      validate();
-
 
17579
 
-
 
17580
      oprot.writeStructBegin(STRUCT_DESC);
-
 
17581
      if (this.emailOrHandle != null) {
-
 
17582
        oprot.writeFieldBegin(EMAIL_OR_HANDLE_FIELD_DESC);
-
 
17583
        oprot.writeString(this.emailOrHandle);
-
 
17584
        oprot.writeFieldEnd();
-
 
17585
      }
-
 
17586
      oprot.writeFieldBegin(IS_EMAIL_FIELD_DESC);
-
 
17587
      oprot.writeBool(this.isEmail);
-
 
17588
      oprot.writeFieldEnd();
-
 
17589
      oprot.writeFieldStop();
-
 
17590
      oprot.writeStructEnd();
-
 
17591
    }
-
 
17592
 
-
 
17593
    @Override
-
 
17594
    public String toString() {
-
 
17595
      StringBuilder sb = new StringBuilder("sendNewPasswordByHandle_args(");
-
 
17596
      boolean first = true;
-
 
17597
 
-
 
17598
      sb.append("emailOrHandle:");
-
 
17599
      if (this.emailOrHandle == null) {
-
 
17600
        sb.append("null");
-
 
17601
      } else {
-
 
17602
        sb.append(this.emailOrHandle);
-
 
17603
      }
-
 
17604
      first = false;
-
 
17605
      if (!first) sb.append(", ");
-
 
17606
      sb.append("isEmail:");
-
 
17607
      sb.append(this.isEmail);
-
 
17608
      first = false;
-
 
17609
      sb.append(")");
-
 
17610
      return sb.toString();
-
 
17611
    }
-
 
17612
 
-
 
17613
    public void validate() throws TException {
-
 
17614
      // check for required fields
-
 
17615
    }
-
 
17616
 
-
 
17617
  }
-
 
17618
 
-
 
17619
  public static class sendNewPasswordByHandle_result implements TBase<sendNewPasswordByHandle_result._Fields>, java.io.Serializable, Cloneable, Comparable<sendNewPasswordByHandle_result>   {
-
 
17620
    private static final TStruct STRUCT_DESC = new TStruct("sendNewPasswordByHandle_result");
-
 
17621
 
-
 
17622
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
-
 
17623
    private static final TField UCX_FIELD_DESC = new TField("ucx", TType.STRUCT, (short)1);
-
 
17624
 
-
 
17625
    private boolean success;
-
 
17626
    private UserContextException ucx;
-
 
17627
 
-
 
17628
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
17629
    public enum _Fields implements TFieldIdEnum {
-
 
17630
      SUCCESS((short)0, "success"),
-
 
17631
      UCX((short)1, "ucx");
-
 
17632
 
-
 
17633
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
17634
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
17635
 
-
 
17636
      static {
-
 
17637
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
17638
          byId.put((int)field._thriftId, field);
-
 
17639
          byName.put(field.getFieldName(), field);
-
 
17640
        }
-
 
17641
      }
-
 
17642
 
-
 
17643
      /**
-
 
17644
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
17645
       */
-
 
17646
      public static _Fields findByThriftId(int fieldId) {
-
 
17647
        return byId.get(fieldId);
-
 
17648
      }
-
 
17649
 
-
 
17650
      /**
-
 
17651
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
17652
       * if it is not found.
-
 
17653
       */
-
 
17654
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
17655
        _Fields fields = findByThriftId(fieldId);
-
 
17656
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
17657
        return fields;
-
 
17658
      }
-
 
17659
 
-
 
17660
      /**
-
 
17661
       * Find the _Fields constant that matches name, or null if its not found.
-
 
17662
       */
-
 
17663
      public static _Fields findByName(String name) {
-
 
17664
        return byName.get(name);
-
 
17665
      }
-
 
17666
 
-
 
17667
      private final short _thriftId;
-
 
17668
      private final String _fieldName;
-
 
17669
 
-
 
17670
      _Fields(short thriftId, String fieldName) {
-
 
17671
        _thriftId = thriftId;
-
 
17672
        _fieldName = fieldName;
-
 
17673
      }
-
 
17674
 
-
 
17675
      public short getThriftFieldId() {
-
 
17676
        return _thriftId;
-
 
17677
      }
-
 
17678
 
-
 
17679
      public String getFieldName() {
-
 
17680
        return _fieldName;
-
 
17681
      }
-
 
17682
    }
-
 
17683
 
-
 
17684
    // isset id assignments
-
 
17685
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
17686
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
17687
 
-
 
17688
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
17689
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
17690
          new FieldValueMetaData(TType.BOOL)));
-
 
17691
      put(_Fields.UCX, new FieldMetaData("ucx", TFieldRequirementType.DEFAULT, 
-
 
17692
          new FieldValueMetaData(TType.STRUCT)));
-
 
17693
    }});
-
 
17694
 
-
 
17695
    static {
-
 
17696
      FieldMetaData.addStructMetaDataMap(sendNewPasswordByHandle_result.class, metaDataMap);
-
 
17697
    }
-
 
17698
 
-
 
17699
    public sendNewPasswordByHandle_result() {
-
 
17700
    }
-
 
17701
 
-
 
17702
    public sendNewPasswordByHandle_result(
-
 
17703
      boolean success,
-
 
17704
      UserContextException ucx)
-
 
17705
    {
-
 
17706
      this();
-
 
17707
      this.success = success;
-
 
17708
      setSuccessIsSet(true);
-
 
17709
      this.ucx = ucx;
-
 
17710
    }
-
 
17711
 
-
 
17712
    /**
-
 
17713
     * Performs a deep copy on <i>other</i>.
-
 
17714
     */
-
 
17715
    public sendNewPasswordByHandle_result(sendNewPasswordByHandle_result other) {
-
 
17716
      __isset_bit_vector.clear();
-
 
17717
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
17718
      this.success = other.success;
-
 
17719
      if (other.isSetUcx()) {
-
 
17720
        this.ucx = new UserContextException(other.ucx);
-
 
17721
      }
-
 
17722
    }
-
 
17723
 
-
 
17724
    public sendNewPasswordByHandle_result deepCopy() {
-
 
17725
      return new sendNewPasswordByHandle_result(this);
-
 
17726
    }
-
 
17727
 
-
 
17728
    @Deprecated
-
 
17729
    public sendNewPasswordByHandle_result clone() {
-
 
17730
      return new sendNewPasswordByHandle_result(this);
-
 
17731
    }
-
 
17732
 
-
 
17733
    public boolean isSuccess() {
-
 
17734
      return this.success;
-
 
17735
    }
-
 
17736
 
-
 
17737
    public sendNewPasswordByHandle_result setSuccess(boolean success) {
-
 
17738
      this.success = success;
-
 
17739
      setSuccessIsSet(true);
-
 
17740
      return this;
-
 
17741
    }
-
 
17742
 
-
 
17743
    public void unsetSuccess() {
-
 
17744
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
17745
    }
-
 
17746
 
-
 
17747
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
17748
    public boolean isSetSuccess() {
-
 
17749
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
17750
    }
-
 
17751
 
-
 
17752
    public void setSuccessIsSet(boolean value) {
-
 
17753
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
17754
    }
-
 
17755
 
-
 
17756
    public UserContextException getUcx() {
-
 
17757
      return this.ucx;
-
 
17758
    }
-
 
17759
 
-
 
17760
    public sendNewPasswordByHandle_result setUcx(UserContextException ucx) {
-
 
17761
      this.ucx = ucx;
-
 
17762
      return this;
-
 
17763
    }
-
 
17764
 
-
 
17765
    public void unsetUcx() {
-
 
17766
      this.ucx = null;
-
 
17767
    }
-
 
17768
 
-
 
17769
    /** Returns true if field ucx is set (has been asigned a value) and false otherwise */
-
 
17770
    public boolean isSetUcx() {
-
 
17771
      return this.ucx != null;
-
 
17772
    }
-
 
17773
 
-
 
17774
    public void setUcxIsSet(boolean value) {
-
 
17775
      if (!value) {
-
 
17776
        this.ucx = null;
-
 
17777
      }
-
 
17778
    }
-
 
17779
 
-
 
17780
    public void setFieldValue(_Fields field, Object value) {
-
 
17781
      switch (field) {
-
 
17782
      case SUCCESS:
-
 
17783
        if (value == null) {
-
 
17784
          unsetSuccess();
-
 
17785
        } else {
-
 
17786
          setSuccess((Boolean)value);
-
 
17787
        }
-
 
17788
        break;
-
 
17789
 
-
 
17790
      case UCX:
-
 
17791
        if (value == null) {
-
 
17792
          unsetUcx();
-
 
17793
        } else {
-
 
17794
          setUcx((UserContextException)value);
-
 
17795
        }
-
 
17796
        break;
-
 
17797
 
-
 
17798
      }
-
 
17799
    }
-
 
17800
 
-
 
17801
    public void setFieldValue(int fieldID, Object value) {
-
 
17802
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
17803
    }
-
 
17804
 
-
 
17805
    public Object getFieldValue(_Fields field) {
-
 
17806
      switch (field) {
-
 
17807
      case SUCCESS:
-
 
17808
        return new Boolean(isSuccess());
-
 
17809
 
-
 
17810
      case UCX:
-
 
17811
        return getUcx();
-
 
17812
 
-
 
17813
      }
-
 
17814
      throw new IllegalStateException();
-
 
17815
    }
-
 
17816
 
-
 
17817
    public Object getFieldValue(int fieldId) {
-
 
17818
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
17819
    }
-
 
17820
 
-
 
17821
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
17822
    public boolean isSet(_Fields field) {
-
 
17823
      switch (field) {
-
 
17824
      case SUCCESS:
-
 
17825
        return isSetSuccess();
-
 
17826
      case UCX:
-
 
17827
        return isSetUcx();
-
 
17828
      }
-
 
17829
      throw new IllegalStateException();
-
 
17830
    }
-
 
17831
 
-
 
17832
    public boolean isSet(int fieldID) {
-
 
17833
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
17834
    }
-
 
17835
 
-
 
17836
    @Override
-
 
17837
    public boolean equals(Object that) {
-
 
17838
      if (that == null)
-
 
17839
        return false;
-
 
17840
      if (that instanceof sendNewPasswordByHandle_result)
-
 
17841
        return this.equals((sendNewPasswordByHandle_result)that);
-
 
17842
      return false;
-
 
17843
    }
-
 
17844
 
-
 
17845
    public boolean equals(sendNewPasswordByHandle_result that) {
-
 
17846
      if (that == null)
-
 
17847
        return false;
-
 
17848
 
-
 
17849
      boolean this_present_success = true;
-
 
17850
      boolean that_present_success = true;
-
 
17851
      if (this_present_success || that_present_success) {
-
 
17852
        if (!(this_present_success && that_present_success))
-
 
17853
          return false;
-
 
17854
        if (this.success != that.success)
-
 
17855
          return false;
-
 
17856
      }
-
 
17857
 
-
 
17858
      boolean this_present_ucx = true && this.isSetUcx();
-
 
17859
      boolean that_present_ucx = true && that.isSetUcx();
-
 
17860
      if (this_present_ucx || that_present_ucx) {
-
 
17861
        if (!(this_present_ucx && that_present_ucx))
-
 
17862
          return false;
-
 
17863
        if (!this.ucx.equals(that.ucx))
-
 
17864
          return false;
-
 
17865
      }
-
 
17866
 
-
 
17867
      return true;
-
 
17868
    }
-
 
17869
 
-
 
17870
    @Override
-
 
17871
    public int hashCode() {
-
 
17872
      return 0;
-
 
17873
    }
-
 
17874
 
-
 
17875
    public int compareTo(sendNewPasswordByHandle_result other) {
-
 
17876
      if (!getClass().equals(other.getClass())) {
-
 
17877
        return getClass().getName().compareTo(other.getClass().getName());
-
 
17878
      }
-
 
17879
 
-
 
17880
      int lastComparison = 0;
-
 
17881
      sendNewPasswordByHandle_result typedOther = (sendNewPasswordByHandle_result)other;
-
 
17882
 
-
 
17883
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
17884
      if (lastComparison != 0) {
-
 
17885
        return lastComparison;
-
 
17886
      }
-
 
17887
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
17888
      if (lastComparison != 0) {
-
 
17889
        return lastComparison;
-
 
17890
      }
-
 
17891
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(isSetUcx());
-
 
17892
      if (lastComparison != 0) {
-
 
17893
        return lastComparison;
-
 
17894
      }
-
 
17895
      lastComparison = TBaseHelper.compareTo(ucx, typedOther.ucx);
-
 
17896
      if (lastComparison != 0) {
-
 
17897
        return lastComparison;
-
 
17898
      }
-
 
17899
      return 0;
-
 
17900
    }
-
 
17901
 
-
 
17902
    public void read(TProtocol iprot) throws TException {
-
 
17903
      TField field;
-
 
17904
      iprot.readStructBegin();
-
 
17905
      while (true)
-
 
17906
      {
-
 
17907
        field = iprot.readFieldBegin();
-
 
17908
        if (field.type == TType.STOP) { 
-
 
17909
          break;
-
 
17910
        }
-
 
17911
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
17912
        if (fieldId == null) {
-
 
17913
          TProtocolUtil.skip(iprot, field.type);
-
 
17914
        } else {
-
 
17915
          switch (fieldId) {
-
 
17916
            case SUCCESS:
-
 
17917
              if (field.type == TType.BOOL) {
-
 
17918
                this.success = iprot.readBool();
-
 
17919
                setSuccessIsSet(true);
-
 
17920
              } else { 
-
 
17921
                TProtocolUtil.skip(iprot, field.type);
-
 
17922
              }
-
 
17923
              break;
-
 
17924
            case UCX:
-
 
17925
              if (field.type == TType.STRUCT) {
-
 
17926
                this.ucx = new UserContextException();
-
 
17927
                this.ucx.read(iprot);
-
 
17928
              } else { 
-
 
17929
                TProtocolUtil.skip(iprot, field.type);
-
 
17930
              }
-
 
17931
              break;
-
 
17932
          }
-
 
17933
          iprot.readFieldEnd();
-
 
17934
        }
-
 
17935
      }
-
 
17936
      iprot.readStructEnd();
-
 
17937
      validate();
-
 
17938
    }
-
 
17939
 
-
 
17940
    public void write(TProtocol oprot) throws TException {
-
 
17941
      oprot.writeStructBegin(STRUCT_DESC);
-
 
17942
 
-
 
17943
      if (this.isSetSuccess()) {
-
 
17944
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
17945
        oprot.writeBool(this.success);
-
 
17946
        oprot.writeFieldEnd();
-
 
17947
      } else if (this.isSetUcx()) {
-
 
17948
        oprot.writeFieldBegin(UCX_FIELD_DESC);
-
 
17949
        this.ucx.write(oprot);
-
 
17950
        oprot.writeFieldEnd();
-
 
17951
      }
-
 
17952
      oprot.writeFieldStop();
-
 
17953
      oprot.writeStructEnd();
-
 
17954
    }
-
 
17955
 
-
 
17956
    @Override
-
 
17957
    public String toString() {
-
 
17958
      StringBuilder sb = new StringBuilder("sendNewPasswordByHandle_result(");
-
 
17959
      boolean first = true;
-
 
17960
 
-
 
17961
      sb.append("success:");
-
 
17962
      sb.append(this.success);
-
 
17963
      first = false;
16461
      if (!first) sb.append(", ");
17964
      if (!first) sb.append(", ");
16462
      sb.append("ucx:");
17965
      sb.append("ucx:");
16463
      if (this.ucx == null) {
17966
      if (this.ucx == null) {
16464
        sb.append("null");
17967
        sb.append("null");
16465
      } else {
17968
      } else {