diff options
Diffstat (limited to 'dozentenmodulserver/src/main/java/server')
| -rw-r--r-- | dozentenmodulserver/src/main/java/server/ServerHandler.java | 6 | ||||
| -rw-r--r-- | dozentenmodulserver/src/main/java/server/generated/Server.java | 1375 |
2 files changed, 1141 insertions, 240 deletions
diff --git a/dozentenmodulserver/src/main/java/server/ServerHandler.java b/dozentenmodulserver/src/main/java/server/ServerHandler.java index 054ab706..44f97308 100644 --- a/dozentenmodulserver/src/main/java/server/ServerHandler.java +++ b/dozentenmodulserver/src/main/java/server/ServerHandler.java @@ -661,4 +661,10 @@ public class ServerHandler implements Server.Iface { return; } + @Override + public List<Image> getImageList(String userID) throws TException { + return sql.getImageList(userID); + } + + }// end class diff --git a/dozentenmodulserver/src/main/java/server/generated/Server.java b/dozentenmodulserver/src/main/java/server/generated/Server.java index 088b4293..57b31c81 100644 --- a/dozentenmodulserver/src/main/java/server/generated/Server.java +++ b/dozentenmodulserver/src/main/java/server/generated/Server.java @@ -56,6 +56,8 @@ public class Server { public List<Image> getImageListAllTemplates() throws org.apache.thrift.TException; + public List<Image> getImageList(String userID) throws org.apache.thrift.TException; + public List<Lecture> getLectureList() throws org.apache.thrift.TException; public List<Lecture> getLectureListPermissionRead(String userID) throws org.apache.thrift.TException; @@ -114,6 +116,7 @@ public class Server { public void deleteAllAdditionalLecturePermissions(String lectureID, String userID) throws org.apache.thrift.TException; + } public interface AsyncIface { @@ -138,6 +141,8 @@ public class Server { public void getImageListAllTemplates(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getImageList(String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getLectureList(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getLectureListPermissionRead(String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; @@ -464,6 +469,29 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getImageListAllTemplates failed: unknown result"); } + public List<Image> getImageList(String userID) throws org.apache.thrift.TException + { + send_getImageList(userID); + return recv_getImageList(); + } + + public void send_getImageList(String userID) throws org.apache.thrift.TException + { + getImageList_args args = new getImageList_args(); + args.setUserID(userID); + sendBase("getImageList", args); + } + + public List<Image> recv_getImageList() throws org.apache.thrift.TException + { + getImageList_result result = new getImageList_result(); + receiveBase(result, "getImageList"); + if (result.isSetSuccess()) { + return result.success; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getImageList failed: unknown result"); + } + public List<Lecture> getLectureList() throws org.apache.thrift.TException { send_getLectureList(); @@ -1587,6 +1615,38 @@ public class Server { } } + public void getImageList(String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + getImageList_call method_call = new getImageList_call(userID, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class getImageList_call extends org.apache.thrift.async.TAsyncMethodCall { + private String userID; + public getImageList_call(String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + super(client, protocolFactory, transport, resultHandler, false); + this.userID = userID; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getImageList", org.apache.thrift.protocol.TMessageType.CALL, 0)); + getImageList_args args = new getImageList_args(); + args.setUserID(userID); + args.write(prot); + prot.writeMessageEnd(); + } + + public List<Image> getResult() throws org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { + throw new IllegalStateException("Method call not finished!"); + } + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + return (new Client(prot)).recv_getImageList(); + } + } + public void getLectureList(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getLectureList_call method_call = new getLectureList_call(resultHandler, this, ___protocolFactory, ___transport); @@ -2775,6 +2835,7 @@ public class Server { processMap.put("getImageListPermissionLink", new getImageListPermissionLink()); processMap.put("getImageListPermissionAdmin", new getImageListPermissionAdmin()); processMap.put("getImageListAllTemplates", new getImageListAllTemplates()); + processMap.put("getImageList", new getImageList()); processMap.put("getLectureList", new getLectureList()); processMap.put("getLectureListPermissionRead", new getLectureListPermissionRead()); processMap.put("getLectureListPermissionWrite", new getLectureListPermissionWrite()); @@ -3009,6 +3070,26 @@ public class Server { } } + public static class getImageList<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getImageList_args> { + public getImageList() { + super("getImageList"); + } + + public getImageList_args getEmptyArgsInstance() { + return new getImageList_args(); + } + + protected boolean isOneway() { + return false; + } + + public getImageList_result getResult(I iface, getImageList_args args) throws org.apache.thrift.TException { + getImageList_result result = new getImageList_result(); + result.success = iface.getImageList(args.userID); + return result; + } + } + public static class getLectureList<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLectureList_args> { public getLectureList() { super("getLectureList"); @@ -3626,6 +3707,7 @@ public class Server { processMap.put("getImageListPermissionLink", new getImageListPermissionLink()); processMap.put("getImageListPermissionAdmin", new getImageListPermissionAdmin()); processMap.put("getImageListAllTemplates", new getImageListAllTemplates()); + processMap.put("getImageList", new getImageList()); processMap.put("getLectureList", new getLectureList()); processMap.put("getLectureListPermissionRead", new getLectureListPermissionRead()); processMap.put("getLectureListPermissionWrite", new getLectureListPermissionWrite()); @@ -4170,6 +4252,57 @@ public class Server { } } + public static class getImageList<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getImageList_args, List<Image>> { + public getImageList() { + super("getImageList"); + } + + public getImageList_args getEmptyArgsInstance() { + return new getImageList_args(); + } + + public AsyncMethodCallback<List<Image>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback<List<Image>>() { + public void onComplete(List<Image> o) { + getImageList_result result = new getImageList_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + getImageList_result result = new getImageList_result(); + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, getImageList_args args, org.apache.thrift.async.AsyncMethodCallback<List<Image>> resultHandler) throws TException { + iface.getImageList(args.userID,resultHandler); + } + } + public static class getLectureList<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getLectureList_args, List<Lecture>> { public getLectureList() { super("getLectureList"); @@ -14563,6 +14696,768 @@ public class Server { } + public static class getImageList_args implements org.apache.thrift.TBase<getImageList_args, getImageList_args._Fields>, java.io.Serializable, Cloneable, Comparable<getImageList_args> { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImageList_args"); + + private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userID", org.apache.thrift.protocol.TType.STRING, (short)1); + + private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new getImageList_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImageList_argsTupleSchemeFactory()); + } + + public String userID; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + USER_ID((short)1, "userID"); + + private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // USER_ID + return USER_ID; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userID", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageList_args.class, metaDataMap); + } + + public getImageList_args() { + } + + public getImageList_args( + String userID) + { + this(); + this.userID = userID; + } + + /** + * Performs a deep copy on <i>other</i>. + */ + public getImageList_args(getImageList_args other) { + if (other.isSetUserID()) { + this.userID = other.userID; + } + } + + public getImageList_args deepCopy() { + return new getImageList_args(this); + } + + @Override + public void clear() { + this.userID = null; + } + + public String getUserID() { + return this.userID; + } + + public getImageList_args setUserID(String userID) { + this.userID = userID; + return this; + } + + public void unsetUserID() { + this.userID = null; + } + + /** Returns true if field userID is set (has been assigned a value) and false otherwise */ + public boolean isSetUserID() { + return this.userID != null; + } + + public void setUserIDIsSet(boolean value) { + if (!value) { + this.userID = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case USER_ID: + if (value == null) { + unsetUserID(); + } else { + setUserID((String)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case USER_ID: + return getUserID(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case USER_ID: + return isSetUserID(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof getImageList_args) + return this.equals((getImageList_args)that); + return false; + } + + public boolean equals(getImageList_args that) { + if (that == null) + return false; + + boolean this_present_userID = true && this.isSetUserID(); + boolean that_present_userID = true && that.isSetUserID(); + if (this_present_userID || that_present_userID) { + if (!(this_present_userID && that_present_userID)) + return false; + if (!this.userID.equals(that.userID)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(getImageList_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetUserID()).compareTo(other.isSetUserID()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUserID()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userID, other.userID); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("getImageList_args("); + boolean first = true; + + sb.append("userID:"); + if (this.userID == null) { + sb.append("null"); + } else { + sb.append(this.userID); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class getImageList_argsStandardSchemeFactory implements SchemeFactory { + public getImageList_argsStandardScheme getScheme() { + return new getImageList_argsStandardScheme(); + } + } + + private static class getImageList_argsStandardScheme extends StandardScheme<getImageList_args> { + + public void read(org.apache.thrift.protocol.TProtocol iprot, getImageList_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: // USER_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.userID = iprot.readString(); + struct.setUserIDIsSet(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(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, getImageList_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.userID != null) { + oprot.writeFieldBegin(USER_ID_FIELD_DESC); + oprot.writeString(struct.userID); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class getImageList_argsTupleSchemeFactory implements SchemeFactory { + public getImageList_argsTupleScheme getScheme() { + return new getImageList_argsTupleScheme(); + } + } + + private static class getImageList_argsTupleScheme extends TupleScheme<getImageList_args> { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, getImageList_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetUserID()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetUserID()) { + oprot.writeString(struct.userID); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, getImageList_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.userID = iprot.readString(); + struct.setUserIDIsSet(true); + } + } + } + + } + + public static class getImageList_result implements org.apache.thrift.TBase<getImageList_result, getImageList_result._Fields>, java.io.Serializable, Cloneable, Comparable<getImageList_result> { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImageList_result"); + + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + + private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new getImageList_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImageList_resultTupleSchemeFactory()); + } + + public List<Image> success; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + SUCCESS((short)0, "success"); + + private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Image.class)))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageList_result.class, metaDataMap); + } + + public getImageList_result() { + } + + public getImageList_result( + List<Image> success) + { + this(); + this.success = success; + } + + /** + * Performs a deep copy on <i>other</i>. + */ + public getImageList_result(getImageList_result other) { + if (other.isSetSuccess()) { + List<Image> __this__success = new ArrayList<Image>(other.success.size()); + for (Image other_element : other.success) { + __this__success.add(new Image(other_element)); + } + this.success = __this__success; + } + } + + public getImageList_result deepCopy() { + return new getImageList_result(this); + } + + @Override + public void clear() { + this.success = null; + } + + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public java.util.Iterator<Image> getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(Image elem) { + if (this.success == null) { + this.success = new ArrayList<Image>(); + } + this.success.add(elem); + } + + public List<Image> getSuccess() { + return this.success; + } + + public getImageList_result setSuccess(List<Image> success) { + this.success = success; + return this; + } + + public void unsetSuccess() { + this.success = null; + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean value) { + if (!value) { + this.success = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((List<Image>)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return getSuccess(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case SUCCESS: + return isSetSuccess(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof getImageList_result) + return this.equals((getImageList_result)that); + return false; + } + + public boolean equals(getImageList_result that) { + if (that == null) + return false; + + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(getImageList_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("getImageList_result("); + boolean first = true; + + sb.append("success:"); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class getImageList_resultStandardSchemeFactory implements SchemeFactory { + public getImageList_resultStandardScheme getScheme() { + return new getImageList_resultStandardScheme(); + } + } + + private static class getImageList_resultStandardScheme extends StandardScheme<getImageList_result> { + + public void read(org.apache.thrift.protocol.TProtocol iprot, getImageList_result 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 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list40 = iprot.readListBegin(); + struct.success = new ArrayList<Image>(_list40.size); + for (int _i41 = 0; _i41 < _list40.size; ++_i41) + { + Image _elem42; + _elem42 = new Image(); + _elem42.read(iprot); + struct.success.add(_elem42); + } + iprot.readListEnd(); + } + struct.setSuccessIsSet(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(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, getImageList_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (Image _iter43 : struct.success) + { + _iter43.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class getImageList_resultTupleSchemeFactory implements SchemeFactory { + public getImageList_resultTupleScheme getScheme() { + return new getImageList_resultTupleScheme(); + } + } + + private static class getImageList_resultTupleScheme extends TupleScheme<getImageList_result> { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, getImageList_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetSuccess()) { + { + oprot.writeI32(struct.success.size()); + for (Image _iter44 : struct.success) + { + _iter44.write(oprot); + } + } + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, getImageList_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + { + org.apache.thrift.protocol.TList _list45 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList<Image>(_list45.size); + for (int _i46 = 0; _i46 < _list45.size; ++_i46) + { + Image _elem47; + _elem47 = new Image(); + _elem47.read(iprot); + struct.success.add(_elem47); + } + } + struct.setSuccessIsSet(true); + } + } + } + + } + public static class getLectureList_args implements org.apache.thrift.TBase<getLectureList_args, getLectureList_args._Fields>, java.io.Serializable, Cloneable, Comparable<getLectureList_args> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLectureList_args"); @@ -15118,14 +16013,14 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list40 = iprot.readListBegin(); - struct.success = new ArrayList<Lecture>(_list40.size); - for (int _i41 = 0; _i41 < _list40.size; ++_i41) + org.apache.thrift.protocol.TList _list48 = iprot.readListBegin(); + struct.success = new ArrayList<Lecture>(_list48.size); + for (int _i49 = 0; _i49 < _list48.size; ++_i49) { - Lecture _elem42; - _elem42 = new Lecture(); - _elem42.read(iprot); - struct.success.add(_elem42); + Lecture _elem50; + _elem50 = new Lecture(); + _elem50.read(iprot); + struct.success.add(_elem50); } iprot.readListEnd(); } @@ -15153,9 +16048,9 @@ public class Server { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Lecture _iter43 : struct.success) + for (Lecture _iter51 : struct.success) { - _iter43.write(oprot); + _iter51.write(oprot); } oprot.writeListEnd(); } @@ -15186,9 +16081,9 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Lecture _iter44 : struct.success) + for (Lecture _iter52 : struct.success) { - _iter44.write(oprot); + _iter52.write(oprot); } } } @@ -15200,14 +16095,14 @@ public class Server { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list45 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList<Lecture>(_list45.size); - for (int _i46 = 0; _i46 < _list45.size; ++_i46) + org.apache.thrift.protocol.TList _list53 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList<Lecture>(_list53.size); + for (int _i54 = 0; _i54 < _list53.size; ++_i54) { - Lecture _elem47; - _elem47 = new Lecture(); - _elem47.read(iprot); - struct.success.add(_elem47); + Lecture _elem55; + _elem55 = new Lecture(); + _elem55.read(iprot); + struct.success.add(_elem55); } } struct.setSuccessIsSet(true); @@ -15880,14 +16775,14 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list48 = iprot.readListBegin(); - struct.success = new ArrayList<Lecture>(_list48.size); - for (int _i49 = 0; _i49 < _list48.size; ++_i49) + org.apache.thrift.protocol.TList _list56 = iprot.readListBegin(); + struct.success = new ArrayList<Lecture>(_list56.size); + for (int _i57 = 0; _i57 < _list56.size; ++_i57) { - Lecture _elem50; - _elem50 = new Lecture(); - _elem50.read(iprot); - struct.success.add(_elem50); + Lecture _elem58; + _elem58 = new Lecture(); + _elem58.read(iprot); + struct.success.add(_elem58); } iprot.readListEnd(); } @@ -15915,9 +16810,9 @@ public class Server { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Lecture _iter51 : struct.success) + for (Lecture _iter59 : struct.success) { - _iter51.write(oprot); + _iter59.write(oprot); } oprot.writeListEnd(); } @@ -15948,9 +16843,9 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Lecture _iter52 : struct.success) + for (Lecture _iter60 : struct.success) { - _iter52.write(oprot); + _iter60.write(oprot); } } } @@ -15962,14 +16857,14 @@ public class Server { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list53 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList<Lecture>(_list53.size); - for (int _i54 = 0; _i54 < _list53.size; ++_i54) + org.apache.thrift.protocol.TList _list61 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList<Lecture>(_list61.size); + for (int _i62 = 0; _i62 < _list61.size; ++_i62) { - Lecture _elem55; - _elem55 = new Lecture(); - _elem55.read(iprot); - struct.success.add(_elem55); + Lecture _elem63; + _elem63 = new Lecture(); + _elem63.read(iprot); + struct.success.add(_elem63); } } struct.setSuccessIsSet(true); @@ -16642,14 +17537,14 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list56 = iprot.readListBegin(); - struct.success = new ArrayList<Lecture>(_list56.size); - for (int _i57 = 0; _i57 < _list56.size; ++_i57) + org.apache.thrift.protocol.TList _list64 = iprot.readListBegin(); + struct.success = new ArrayList<Lecture>(_list64.size); + for (int _i65 = 0; _i65 < _list64.size; ++_i65) { - Lecture _elem58; - _elem58 = new Lecture(); - _elem58.read(iprot); - struct.success.add(_elem58); + Lecture _elem66; + _elem66 = new Lecture(); + _elem66.read(iprot); + struct.success.add(_elem66); } iprot.readListEnd(); } @@ -16677,9 +17572,9 @@ public class Server { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Lecture _iter59 : struct.success) + for (Lecture _iter67 : struct.success) { - _iter59.write(oprot); + _iter67.write(oprot); } oprot.writeListEnd(); } @@ -16710,9 +17605,9 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Lecture _iter60 : struct.success) + for (Lecture _iter68 : struct.success) { - _iter60.write(oprot); + _iter68.write(oprot); } } } @@ -16724,14 +17619,14 @@ public class Server { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list61 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList<Lecture>(_list61.size); - for (int _i62 = 0; _i62 < _list61.size; ++_i62) + org.apache.thrift.protocol.TList _list69 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList<Lecture>(_list69.size); + for (int _i70 = 0; _i70 < _list69.size; ++_i70) { - Lecture _elem63; - _elem63 = new Lecture(); - _elem63.read(iprot); - struct.success.add(_elem63); + Lecture _elem71; + _elem71 = new Lecture(); + _elem71.read(iprot); + struct.success.add(_elem71); } } struct.setSuccessIsSet(true); @@ -17404,14 +18299,14 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list64 = iprot.readListBegin(); - struct.success = new ArrayList<Lecture>(_list64.size); - for (int _i65 = 0; _i65 < _list64.size; ++_i65) + org.apache.thrift.protocol.TList _list72 = iprot.readListBegin(); + struct.success = new ArrayList<Lecture>(_list72.size); + for (int _i73 = 0; _i73 < _list72.size; ++_i73) { - Lecture _elem66; - _elem66 = new Lecture(); - _elem66.read(iprot); - struct.success.add(_elem66); + Lecture _elem74; + _elem74 = new Lecture(); + _elem74.read(iprot); + struct.success.add(_elem74); } iprot.readListEnd(); } @@ -17439,9 +18334,9 @@ public class Server { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Lecture _iter67 : struct.success) + for (Lecture _iter75 : struct.success) { - _iter67.write(oprot); + _iter75.write(oprot); } oprot.writeListEnd(); } @@ -17472,9 +18367,9 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Lecture _iter68 : struct.success) + for (Lecture _iter76 : struct.success) { - _iter68.write(oprot); + _iter76.write(oprot); } } } @@ -17486,14 +18381,14 @@ public class Server { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list69 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList<Lecture>(_list69.size); - for (int _i70 = 0; _i70 < _list69.size; ++_i70) + org.apache.thrift.protocol.TList _list77 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList<Lecture>(_list77.size); + for (int _i78 = 0; _i78 < _list77.size; ++_i78) { - Lecture _elem71; - _elem71 = new Lecture(); - _elem71.read(iprot); - struct.success.add(_elem71); + Lecture _elem79; + _elem79 = new Lecture(); + _elem79.read(iprot); + struct.success.add(_elem79); } } struct.setSuccessIsSet(true); @@ -18055,13 +18950,13 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list72 = iprot.readListBegin(); - struct.success = new ArrayList<String>(_list72.size); - for (int _i73 = 0; _i73 < _list72.size; ++_i73) + org.apache.thrift.protocol.TList _list80 = iprot.readListBegin(); + struct.success = new ArrayList<String>(_list80.size); + for (int _i81 = 0; _i81 < _list80.size; ++_i81) { - String _elem74; - _elem74 = iprot.readString(); - struct.success.add(_elem74); + String _elem82; + _elem82 = iprot.readString(); + struct.success.add(_elem82); } iprot.readListEnd(); } @@ -18089,9 +18984,9 @@ public class Server { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter75 : struct.success) + for (String _iter83 : struct.success) { - oprot.writeString(_iter75); + oprot.writeString(_iter83); } oprot.writeListEnd(); } @@ -18122,9 +19017,9 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter76 : struct.success) + for (String _iter84 : struct.success) { - oprot.writeString(_iter76); + oprot.writeString(_iter84); } } } @@ -18136,13 +19031,13 @@ public class Server { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list77 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList<String>(_list77.size); - for (int _i78 = 0; _i78 < _list77.size; ++_i78) + org.apache.thrift.protocol.TList _list85 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList<String>(_list85.size); + for (int _i86 = 0; _i86 < _list85.size; ++_i86) { - String _elem79; - _elem79 = iprot.readString(); - struct.success.add(_elem79); + String _elem87; + _elem87 = iprot.readString(); + struct.success.add(_elem87); } } struct.setSuccessIsSet(true); @@ -18704,13 +19599,13 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list80 = iprot.readListBegin(); - struct.success = new ArrayList<String>(_list80.size); - for (int _i81 = 0; _i81 < _list80.size; ++_i81) + org.apache.thrift.protocol.TList _list88 = iprot.readListBegin(); + struct.success = new ArrayList<String>(_list88.size); + for (int _i89 = 0; _i89 < _list88.size; ++_i89) { - String _elem82; - _elem82 = iprot.readString(); - struct.success.add(_elem82); + String _elem90; + _elem90 = iprot.readString(); + struct.success.add(_elem90); } iprot.readListEnd(); } @@ -18738,9 +19633,9 @@ public class Server { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter83 : struct.success) + for (String _iter91 : struct.success) { - oprot.writeString(_iter83); + oprot.writeString(_iter91); } oprot.writeListEnd(); } @@ -18771,9 +19666,9 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter84 : struct.success) + for (String _iter92 : struct.success) { - oprot.writeString(_iter84); + oprot.writeString(_iter92); } } } @@ -18785,13 +19680,13 @@ public class Server { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list85 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList<String>(_list85.size); - for (int _i86 = 0; _i86 < _list85.size; ++_i86) + org.apache.thrift.protocol.TList _list93 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList<String>(_list93.size); + for (int _i94 = 0; _i94 < _list93.size; ++_i94) { - String _elem87; - _elem87 = iprot.readString(); - struct.success.add(_elem87); + String _elem95; + _elem95 = iprot.readString(); + struct.success.add(_elem95); } } struct.setSuccessIsSet(true); @@ -19558,15 +20453,15 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map88 = iprot.readMapBegin(); - struct.success = new HashMap<String,String>(2*_map88.size); - for (int _i89 = 0; _i89 < _map88.size; ++_i89) + org.apache.thrift.protocol.TMap _map96 = iprot.readMapBegin(); + struct.success = new HashMap<String,String>(2*_map96.size); + for (int _i97 = 0; _i97 < _map96.size; ++_i97) { - String _key90; - String _val91; - _key90 = iprot.readString(); - _val91 = iprot.readString(); - struct.success.put(_key90, _val91); + String _key98; + String _val99; + _key98 = iprot.readString(); + _val99 = iprot.readString(); + struct.success.put(_key98, _val99); } iprot.readMapEnd(); } @@ -19594,10 +20489,10 @@ public class Server { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (Map.Entry<String, String> _iter92 : struct.success.entrySet()) + for (Map.Entry<String, String> _iter100 : struct.success.entrySet()) { - oprot.writeString(_iter92.getKey()); - oprot.writeString(_iter92.getValue()); + oprot.writeString(_iter100.getKey()); + oprot.writeString(_iter100.getValue()); } oprot.writeMapEnd(); } @@ -19628,10 +20523,10 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry<String, String> _iter93 : struct.success.entrySet()) + for (Map.Entry<String, String> _iter101 : struct.success.entrySet()) { - oprot.writeString(_iter93.getKey()); - oprot.writeString(_iter93.getValue()); + oprot.writeString(_iter101.getKey()); + oprot.writeString(_iter101.getValue()); } } } @@ -19643,15 +20538,15 @@ public class Server { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map94 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new HashMap<String,String>(2*_map94.size); - for (int _i95 = 0; _i95 < _map94.size; ++_i95) + org.apache.thrift.protocol.TMap _map102 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new HashMap<String,String>(2*_map102.size); + for (int _i103 = 0; _i103 < _map102.size; ++_i103) { - String _key96; - String _val97; - _key96 = iprot.readString(); - _val97 = iprot.readString(); - struct.success.put(_key96, _val97); + String _key104; + String _val105; + _key104 = iprot.readString(); + _val105 = iprot.readString(); + struct.success.put(_key104, _val105); } } struct.setSuccessIsSet(true); @@ -24132,15 +25027,15 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map98 = iprot.readMapBegin(); - struct.success = new HashMap<String,String>(2*_map98.size); - for (int _i99 = 0; _i99 < _map98.size; ++_i99) + org.apache.thrift.protocol.TMap _map106 = iprot.readMapBegin(); + struct.success = new HashMap<String,String>(2*_map106.size); + for (int _i107 = 0; _i107 < _map106.size; ++_i107) { - String _key100; - String _val101; - _key100 = iprot.readString(); - _val101 = iprot.readString(); - struct.success.put(_key100, _val101); + String _key108; + String _val109; + _key108 = iprot.readString(); + _val109 = iprot.readString(); + struct.success.put(_key108, _val109); } iprot.readMapEnd(); } @@ -24168,10 +25063,10 @@ public class Server { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (Map.Entry<String, String> _iter102 : struct.success.entrySet()) + for (Map.Entry<String, String> _iter110 : struct.success.entrySet()) { - oprot.writeString(_iter102.getKey()); - oprot.writeString(_iter102.getValue()); + oprot.writeString(_iter110.getKey()); + oprot.writeString(_iter110.getValue()); } oprot.writeMapEnd(); } @@ -24202,10 +25097,10 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry<String, String> _iter103 : struct.success.entrySet()) + for (Map.Entry<String, String> _iter111 : struct.success.entrySet()) { - oprot.writeString(_iter103.getKey()); - oprot.writeString(_iter103.getValue()); + oprot.writeString(_iter111.getKey()); + oprot.writeString(_iter111.getValue()); } } } @@ -24217,15 +25112,15 @@ public class Server { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map104 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new HashMap<String,String>(2*_map104.size); - for (int _i105 = 0; _i105 < _map104.size; ++_i105) + org.apache.thrift.protocol.TMap _map112 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new HashMap<String,String>(2*_map112.size); + for (int _i113 = 0; _i113 < _map112.size; ++_i113) { - String _key106; - String _val107; - _key106 = iprot.readString(); - _val107 = iprot.readString(); - struct.success.put(_key106, _val107); + String _key114; + String _val115; + _key114 = iprot.readString(); + _val115 = iprot.readString(); + struct.success.put(_key114, _val115); } } struct.setSuccessIsSet(true); @@ -24892,15 +25787,15 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map108 = iprot.readMapBegin(); - struct.success = new HashMap<String,String>(2*_map108.size); - for (int _i109 = 0; _i109 < _map108.size; ++_i109) + org.apache.thrift.protocol.TMap _map116 = iprot.readMapBegin(); + struct.success = new HashMap<String,String>(2*_map116.size); + for (int _i117 = 0; _i117 < _map116.size; ++_i117) { - String _key110; - String _val111; - _key110 = iprot.readString(); - _val111 = iprot.readString(); - struct.success.put(_key110, _val111); + String _key118; + String _val119; + _key118 = iprot.readString(); + _val119 = iprot.readString(); + struct.success.put(_key118, _val119); } iprot.readMapEnd(); } @@ -24928,10 +25823,10 @@ public class Server { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (Map.Entry<String, String> _iter112 : struct.success.entrySet()) + for (Map.Entry<String, String> _iter120 : struct.success.entrySet()) { - oprot.writeString(_iter112.getKey()); - oprot.writeString(_iter112.getValue()); + oprot.writeString(_iter120.getKey()); + oprot.writeString(_iter120.getValue()); } oprot.writeMapEnd(); } @@ -24962,10 +25857,10 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry<String, String> _iter113 : struct.success.entrySet()) + for (Map.Entry<String, String> _iter121 : struct.success.entrySet()) { - oprot.writeString(_iter113.getKey()); - oprot.writeString(_iter113.getValue()); + oprot.writeString(_iter121.getKey()); + oprot.writeString(_iter121.getValue()); } } } @@ -24977,15 +25872,15 @@ public class Server { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map114 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new HashMap<String,String>(2*_map114.size); - for (int _i115 = 0; _i115 < _map114.size; ++_i115) + org.apache.thrift.protocol.TMap _map122 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new HashMap<String,String>(2*_map122.size); + for (int _i123 = 0; _i123 < _map122.size; ++_i123) { - String _key116; - String _val117; - _key116 = iprot.readString(); - _val117 = iprot.readString(); - struct.success.put(_key116, _val117); + String _key124; + String _val125; + _key124 = iprot.readString(); + _val125 = iprot.readString(); + struct.success.put(_key124, _val125); } } struct.setSuccessIsSet(true); @@ -39623,13 +40518,13 @@ public class Server { case 1: // USER_ID if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list118 = iprot.readListBegin(); - struct.userID = new ArrayList<String>(_list118.size); - for (int _i119 = 0; _i119 < _list118.size; ++_i119) + org.apache.thrift.protocol.TList _list126 = iprot.readListBegin(); + struct.userID = new ArrayList<String>(_list126.size); + for (int _i127 = 0; _i127 < _list126.size; ++_i127) { - String _elem120; - _elem120 = iprot.readString(); - struct.userID.add(_elem120); + String _elem128; + _elem128 = iprot.readString(); + struct.userID.add(_elem128); } iprot.readListEnd(); } @@ -39657,9 +40552,9 @@ public class Server { oprot.writeFieldBegin(USER_ID_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.userID.size())); - for (String _iter121 : struct.userID) + for (String _iter129 : struct.userID) { - oprot.writeString(_iter121); + oprot.writeString(_iter129); } oprot.writeListEnd(); } @@ -39690,9 +40585,9 @@ public class Server { if (struct.isSetUserID()) { { oprot.writeI32(struct.userID.size()); - for (String _iter122 : struct.userID) + for (String _iter130 : struct.userID) { - oprot.writeString(_iter122); + oprot.writeString(_iter130); } } } @@ -39704,13 +40599,13 @@ public class Server { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list123 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.userID = new ArrayList<String>(_list123.size); - for (int _i124 = 0; _i124 < _list123.size; ++_i124) + org.apache.thrift.protocol.TList _list131 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.userID = new ArrayList<String>(_list131.size); + for (int _i132 = 0; _i132 < _list131.size; ++_i132) { - String _elem125; - _elem125 = iprot.readString(); - struct.userID.add(_elem125); + String _elem133; + _elem133 = iprot.readString(); + struct.userID.add(_elem133); } } struct.setUserIDIsSet(true); @@ -40029,14 +40924,14 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list126 = iprot.readListBegin(); - struct.success = new ArrayList<Person>(_list126.size); - for (int _i127 = 0; _i127 < _list126.size; ++_i127) + org.apache.thrift.protocol.TList _list134 = iprot.readListBegin(); + struct.success = new ArrayList<Person>(_list134.size); + for (int _i135 = 0; _i135 < _list134.size; ++_i135) { - Person _elem128; - _elem128 = new Person(); - _elem128.read(iprot); - struct.success.add(_elem128); + Person _elem136; + _elem136 = new Person(); + _elem136.read(iprot); + struct.success.add(_elem136); } iprot.readListEnd(); } @@ -40064,9 +40959,9 @@ public class Server { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Person _iter129 : struct.success) + for (Person _iter137 : struct.success) { - _iter129.write(oprot); + _iter137.write(oprot); } oprot.writeListEnd(); } @@ -40097,9 +40992,9 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Person _iter130 : struct.success) + for (Person _iter138 : struct.success) { - _iter130.write(oprot); + _iter138.write(oprot); } } } @@ -40111,14 +41006,14 @@ public class Server { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list131 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList<Person>(_list131.size); - for (int _i132 = 0; _i132 < _list131.size; ++_i132) + org.apache.thrift.protocol.TList _list139 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList<Person>(_list139.size); + for (int _i140 = 0; _i140 < _list139.size; ++_i140) { - Person _elem133; - _elem133 = new Person(); - _elem133.read(iprot); - struct.success.add(_elem133); + Person _elem141; + _elem141 = new Person(); + _elem141.read(iprot); + struct.success.add(_elem141); } } struct.setSuccessIsSet(true); @@ -40891,14 +41786,14 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list134 = iprot.readListBegin(); - struct.success = new ArrayList<Person>(_list134.size); - for (int _i135 = 0; _i135 < _list134.size; ++_i135) + org.apache.thrift.protocol.TList _list142 = iprot.readListBegin(); + struct.success = new ArrayList<Person>(_list142.size); + for (int _i143 = 0; _i143 < _list142.size; ++_i143) { - Person _elem136; - _elem136 = new Person(); - _elem136.read(iprot); - struct.success.add(_elem136); + Person _elem144; + _elem144 = new Person(); + _elem144.read(iprot); + struct.success.add(_elem144); } iprot.readListEnd(); } @@ -40926,9 +41821,9 @@ public class Server { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Person _iter137 : struct.success) + for (Person _iter145 : struct.success) { - _iter137.write(oprot); + _iter145.write(oprot); } oprot.writeListEnd(); } @@ -40959,9 +41854,9 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Person _iter138 : struct.success) + for (Person _iter146 : struct.success) { - _iter138.write(oprot); + _iter146.write(oprot); } } } @@ -40973,14 +41868,14 @@ public class Server { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list139 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList<Person>(_list139.size); - for (int _i140 = 0; _i140 < _list139.size; ++_i140) + org.apache.thrift.protocol.TList _list147 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList<Person>(_list147.size); + for (int _i148 = 0; _i148 < _list147.size; ++_i148) { - Person _elem141; - _elem141 = new Person(); - _elem141.read(iprot); - struct.success.add(_elem141); + Person _elem149; + _elem149 = new Person(); + _elem149.read(iprot); + struct.success.add(_elem149); } } struct.setSuccessIsSet(true); @@ -41753,14 +42648,14 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list142 = iprot.readListBegin(); - struct.success = new ArrayList<Person>(_list142.size); - for (int _i143 = 0; _i143 < _list142.size; ++_i143) + org.apache.thrift.protocol.TList _list150 = iprot.readListBegin(); + struct.success = new ArrayList<Person>(_list150.size); + for (int _i151 = 0; _i151 < _list150.size; ++_i151) { - Person _elem144; - _elem144 = new Person(); - _elem144.read(iprot); - struct.success.add(_elem144); + Person _elem152; + _elem152 = new Person(); + _elem152.read(iprot); + struct.success.add(_elem152); } iprot.readListEnd(); } @@ -41788,9 +42683,9 @@ public class Server { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Person _iter145 : struct.success) + for (Person _iter153 : struct.success) { - _iter145.write(oprot); + _iter153.write(oprot); } oprot.writeListEnd(); } @@ -41821,9 +42716,9 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Person _iter146 : struct.success) + for (Person _iter154 : struct.success) { - _iter146.write(oprot); + _iter154.write(oprot); } } } @@ -41835,14 +42730,14 @@ public class Server { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list147 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList<Person>(_list147.size); - for (int _i148 = 0; _i148 < _list147.size; ++_i148) + org.apache.thrift.protocol.TList _list155 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList<Person>(_list155.size); + for (int _i156 = 0; _i156 < _list155.size; ++_i156) { - Person _elem149; - _elem149 = new Person(); - _elem149.read(iprot); - struct.success.add(_elem149); + Person _elem157; + _elem157 = new Person(); + _elem157.read(iprot); + struct.success.add(_elem157); } } struct.setSuccessIsSet(true); |
