package com.qianwen.core.sms.model;
|
|
import java.io.Serializable;
|
|
|
public class SmsResponse implements Serializable {
|
private static final long serialVersionUID = 1;
|
private boolean success;
|
private Integer code;
|
private String msg;
|
|
public void setSuccess(final boolean success) {
|
this.success = success;
|
}
|
|
public void setCode(final Integer code) {
|
this.code = code;
|
}
|
|
public void setMsg(final String msg) {
|
this.msg = msg;
|
}
|
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (o instanceof SmsResponse) {
|
SmsResponse other = (SmsResponse) o;
|
if (other.canEqual(this) && isSuccess() == other.isSuccess()) {
|
Object this$code = getCode();
|
Object other$code = other.getCode();
|
if (this$code == null) {
|
if (other$code != null) {
|
return false;
|
}
|
} else if (!this$code.equals(other$code)) {
|
return false;
|
}
|
Object this$msg = getMsg();
|
Object other$msg = other.getMsg();
|
return this$msg == null ? other$msg == null : this$msg.equals(other$msg);
|
}
|
return false;
|
}
|
return false;
|
}
|
|
protected boolean canEqual(final Object other) {
|
return other instanceof SmsResponse;
|
}
|
|
public int hashCode() {
|
int result = (1 * 59) + (isSuccess() ? 79 : 97);
|
Object $code = getCode();
|
int result2 = (result * 59) + ($code == null ? 43 : $code.hashCode());
|
Object $msg = getMsg();
|
return (result2 * 59) + ($msg == null ? 43 : $msg.hashCode());
|
}
|
|
public String toString() {
|
return "SmsResponse(success=" + isSuccess() + ", code=" + getCode() + ", msg=" + getMsg() + ")";
|
}
|
|
public SmsResponse(final boolean success, final Integer code, final String msg) {
|
this.success = success;
|
this.code = code;
|
this.msg = msg;
|
}
|
|
public boolean isSuccess() {
|
return this.success;
|
}
|
|
public Integer getCode() {
|
return this.code;
|
}
|
|
public String getMsg() {
|
return this.msg;
|
}
|
}
|