1 package org.oxerr.seatgeek.client.model.response; 2 3 import java.io.Serializable; 4 5 import org.apache.commons.lang3.builder.EqualsBuilder; 6 import org.apache.commons.lang3.builder.HashCodeBuilder; 7 8 public class Response implements Serializable { 9 10 private static final long serialVersionUID = 2023031701L; 11 12 private Boolean ok; 13 14 private Meta meta; 15 16 private Error error; 17 18 public Boolean getOk() { 19 return ok; 20 } 21 22 public void setOk(Boolean ok) { 23 this.ok = ok; 24 } 25 26 public Meta getMeta() { 27 return meta; 28 } 29 30 public void setMeta(Meta meta) { 31 this.meta = meta; 32 } 33 34 public Error getError() { 35 return error; 36 } 37 38 public void setError(Error error) { 39 this.error = error; 40 } 41 42 @Override 43 public int hashCode() { 44 return HashCodeBuilder.reflectionHashCode(this); 45 } 46 47 @Override 48 public boolean equals(Object obj) { 49 if (obj == null) { 50 return false; 51 } 52 if (obj == this) { 53 return true; 54 } 55 if (obj.getClass() != getClass()) { 56 return false; 57 } 58 Response rhs = (Response) obj; 59 return EqualsBuilder.reflectionEquals(this, rhs); 60 } 61 62 }