public boolean equals(BusinessNotebook that) { if (that == null) return false; boolean this_present_notebookDescription = true && this.isSetNotebookDescription(); boolean that_present_notebookDescription = true && that.isSetNotebookDescription(); if (this_present_notebookDescription || that_present_notebookDescription) { if (!(this_present_notebookDescription && that_present_notebookDescription)) return false; if (!this.notebookDescription.equals(that.notebookDescription)) return false; } boolean this_present_privilege = true && this.isSetPrivilege(); boolean that_present_privilege = true && that.isSetPrivilege(); if (this_present_privilege || that_present_privilege) { if (!(this_present_privilege && that_present_privilege)) return false; if (!this.privilege.equals(that.privilege)) return false; } boolean this_present_recommended = true && this.isSetRecommended(); boolean that_present_recommended = true && that.isSetRecommended(); if (this_present_recommended || that_present_recommended) { if (!(this_present_recommended && that_present_recommended)) return false; if (this.recommended != that.recommended) return false; } return true; }
EvernoteUtil.addElement(omSharedNotebook,"email",createdSharedNotebook.getEmail()); EvernoteUtil.addElement(omSharedNotebook,"shareKey",createdSharedNotebook.getShareKey()); EvernoteUtil.addElement(omSharedNotebook,"privilege",createdSharedNotebook.getPrivilege().name()); omResponse.addChild(omSharedNotebook); EvernoteUtil.preparePayload(messageContext,omResponse);
public void write(TProtocol oprot) throws TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (this.notebookDescription != null) { if (isSetNotebookDescription()) { oprot.writeFieldBegin(NOTEBOOK_DESCRIPTION_FIELD_DESC); oprot.writeString(this.notebookDescription); oprot.writeFieldEnd(); } } if (this.privilege != null) { if (isSetPrivilege()) { oprot.writeFieldBegin(PRIVILEGE_FIELD_DESC); oprot.writeI32(this.privilege.getValue()); oprot.writeFieldEnd(); } } if (isSetRecommended()) { oprot.writeFieldBegin(RECOMMENDED_FIELD_DESC); oprot.writeBool(this.recommended); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
case 2: // PRIVILEGE if (field.type == TType.I32) { this.privilege = SharedNotebookPrivilegeLevel.findByValue(iprot.readI32()); } else { TProtocolUtil.skip(iprot, field.type);
public void write(TProtocol oprot) throws TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (this.notebookDescription != null) { if (isSetNotebookDescription()) { oprot.writeFieldBegin(NOTEBOOK_DESCRIPTION_FIELD_DESC); oprot.writeString(this.notebookDescription); oprot.writeFieldEnd(); } } if (this.privilege != null) { if (isSetPrivilege()) { oprot.writeFieldBegin(PRIVILEGE_FIELD_DESC); oprot.writeI32(this.privilege.getValue()); oprot.writeFieldEnd(); } } if (isSetRecommended()) { oprot.writeFieldBegin(RECOMMENDED_FIELD_DESC); oprot.writeBool(this.recommended); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
case 2: // PRIVILEGE if (field.type == TType.I32) { this.privilege = SharedNotebookPrivilegeLevel.findByValue(iprot.readI32()); } else { TProtocolUtil.skip(iprot, field.type);
if (isSetPrivilege()) { oprot.writeFieldBegin(PRIVILEGE_FIELD_DESC); oprot.writeI32(this.privilege.getValue()); oprot.writeFieldEnd();
public boolean equals(BusinessNotebook that) { if (that == null) return false; boolean this_present_notebookDescription = true && this.isSetNotebookDescription(); boolean that_present_notebookDescription = true && that.isSetNotebookDescription(); if (this_present_notebookDescription || that_present_notebookDescription) { if (!(this_present_notebookDescription && that_present_notebookDescription)) return false; if (!this.notebookDescription.equals(that.notebookDescription)) return false; } boolean this_present_privilege = true && this.isSetPrivilege(); boolean that_present_privilege = true && that.isSetPrivilege(); if (this_present_privilege || that_present_privilege) { if (!(this_present_privilege && that_present_privilege)) return false; if (!this.privilege.equals(that.privilege)) return false; } boolean this_present_recommended = true && this.isSetRecommended(); boolean that_present_recommended = true && that.isSetRecommended(); if (this_present_recommended || that_present_recommended) { if (!(this_present_recommended && that_present_recommended)) return false; if (this.recommended != that.recommended) return false; } return true; }
case 11: // PRIVILEGE if (field.type == TType.I32) { this.privilege = SharedNotebookPrivilegeLevel.findByValue(iprot.readI32()); } else { TProtocolUtil.skip(iprot, field.type);
if (isSetPrivilege()) { oprot.writeFieldBegin(PRIVILEGE_FIELD_DESC); oprot.writeI32(this.privilege.getValue()); oprot.writeFieldEnd();
if (!(this_present_privilege && that_present_privilege)) return false; if (!this.privilege.equals(that.privilege)) return false;
case 11: // PRIVILEGE if (field.type == TType.I32) { this.privilege = SharedNotebookPrivilegeLevel.findByValue(iprot.readI32()); } else { TProtocolUtil.skip(iprot, field.type);
if (!(this_present_privilege && that_present_privilege)) return false; if (!this.privilege.equals(that.privilege)) return false;