package result; /** * Result obtained from attempting to access a Person object with the specified ID */ public class PersonResult { private String associatedUsername; private String personID; private String firstName; private String lastName; private String gender; private String fatherID; private String motherID; private String spouseID; private String message; private boolean success; /** * Parameterized constructor for a personResult * @param associatedUsername * @param personID * @param firstName * @param lastName * @param gender * @param fatherID * @param motherID * @param spouseID */ public PersonResult(String associatedUsername, String personID, String firstName, String lastName, String gender, String fatherID, String motherID, String spouseID) { this.associatedUsername = associatedUsername; this.personID = personID; this.firstName = firstName; this.lastName = lastName; this.gender = gender; this.fatherID = fatherID; this.motherID = motherID; this.spouseID = spouseID; } public PersonResult() {} public void setAssociatedUsername(String associatedUsername) { this.associatedUsername = associatedUsername; } public String getAssociatedUsername() { return associatedUsername; } public void setPersonID(String personID) { this.personID = personID; } public String getPersonID() { return personID; } public void setFirstName(String firstName) { this.firstName = firstName; } public String getFirstName() { return firstName; } public void setLastName(String lastName) { this.lastName = lastName; } public String getLastName() { return lastName; } public void setGender(String gender) { this.gender = gender; } public String getGender() { return gender; } public void setFatherID(String fatherID) { this.fatherID = fatherID; } public String getFatherID() { return fatherID; } public void setMotherID(String motherID) { this.motherID = motherID; } public String getMotherID() { return motherID; } public void setSpouseID(String spouseID) { this.spouseID = spouseID; } public String getSpouseID() { return spouseID; } public void setMessage(String message) { this.message = message; } public String getMessage() { return message; } public void setSuccess(boolean success) {this.success = success; } public boolean isSuccess() { return success; } }