All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.mydotey.rpc.response.ResponseStatus Maven / Gradle / Ivy

There is a newer version: 1.0.1
Show newest version
package org.mydotey.rpc.response;

public class ResponseStatus {

	private String ack;
	private ResponseError error;

	public String getAck() {
		return ack;
	}

	public void setAck(String ack) {
		this.ack = ack;
	}

	public ResponseError getError() {
		return error;
	}

	public void setError(ResponseError error) {
		this.error = error;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((ack == null) ? 0 : ack.hashCode());
		result = prime * result + ((error == null) ? 0 : error.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ResponseStatus other = (ResponseStatus) obj;
		if (ack == null) {
			if (other.ack != null)
				return false;
		} else if (!ack.equals(other.ack))
			return false;
		if (error == null) {
			if (other.error != null)
				return false;
		} else if (!error.equals(other.error))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "ResponseStatus [ack=" + ack + ", error=" + error + "]";
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy