public void read()

in library/src/main/java/com/theguardian/bridget/thrift/User.java [4946:4981]


      public void read(org.apache.thrift.protocol.TProtocol iprot, signIn_args struct) throws org.apache.thrift.TException {
        org.apache.thrift.protocol.TField schemeField;
        iprot.readStructBegin();
        while (true)
        {
          schemeField = iprot.readFieldBegin();
          if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
            break;
          }
          switch (schemeField.id) {
            case 1: // REASON
              if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
                struct.reason = com.theguardian.bridget.thrift.SignInScreenReason.findByValue(iprot.readI32());
                struct.setReasonIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            case 2: // REFERRER
              if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
                struct.referrer = com.theguardian.bridget.thrift.SignInScreenReferrer.findByValue(iprot.readI32());
                struct.setReferrerIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            default:
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
          }
          iprot.readFieldEnd();
        }
        iprot.readStructEnd();

        // check for required fields of primitive type, which can't be checked in the validate method
        struct.validate();
      }