yangys
2024-05-18 040976de6f9934b99f30268a28e2ecf42260e217
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
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;
    }
}