package com.qianwen.core.sms.model; import com.fasterxml.jackson.annotation.JsonIgnore; import java.io.Serializable; public class SmsCode implements Serializable { private static final long serialVersionUID = 1; private boolean success = Boolean.TRUE.booleanValue(); private String phone; private String id; @JsonIgnore private String value; public SmsCode setSuccess(final boolean success) { this.success = success; return this; } public SmsCode setPhone(final String phone) { this.phone = phone; return this; } public SmsCode setId(final String id) { this.id = id; return this; } @JsonIgnore public SmsCode setValue(final String value) { this.value = value; return this; } public boolean equals(final Object o) { if (o == this) { return true; } if (o instanceof SmsCode) { SmsCode other = (SmsCode) o; if (other.canEqual(this) && isSuccess() == other.isSuccess()) { Object this$phone = getPhone(); Object other$phone = other.getPhone(); if (this$phone == null) { if (other$phone != null) { return false; } } else if (!this$phone.equals(other$phone)) { return false; } Object this$id = getId(); Object other$id = other.getId(); if (this$id == null) { if (other$id != null) { return false; } } else if (!this$id.equals(other$id)) { return false; } Object this$value = getValue(); Object other$value = other.getValue(); return this$value == null ? other$value == null : this$value.equals(other$value); } return false; } return false; } protected boolean canEqual(final Object other) { return other instanceof SmsCode; } public int hashCode() { int result = (1 * 59) + (isSuccess() ? 79 : 97); Object $phone = getPhone(); int result2 = (result * 59) + ($phone == null ? 43 : $phone.hashCode()); Object $id = getId(); int result3 = (result2 * 59) + ($id == null ? 43 : $id.hashCode()); Object $value = getValue(); return (result3 * 59) + ($value == null ? 43 : $value.hashCode()); } public String toString() { return "SmsCode(success=" + isSuccess() + ", phone=" + getPhone() + ", id=" + getId() + ", value=" + getValue() + ")"; } public boolean isSuccess() { return this.success; } public String getPhone() { return this.phone; } public String getId() { return this.id; } public String getValue() { return this.value; } }