yangys
2024-04-18 b3cbbc1b1bf540359ac22f8733f6c322d845b38f
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.notify.provider.wechat.qy.entity;
 
/* loaded from: blade-starter-notify-9.3.0.0-SNAPSHOT.jar:org/springblade/core/notify/provider/wechat/qy/entity/WeixinQyTokenResult.class */
public class WeixinQyTokenResult extends BaseQyResult {
    private String access_token;
    private Integer expires_in;
    private long requestTime = System.currentTimeMillis();
 
    public void setAccess_token(final String access_token) {
        this.access_token = access_token;
    }
 
    public void setExpires_in(final Integer expires_in) {
        this.expires_in = expires_in;
    }
 
    public void setRequestTime(final long requestTime) {
        this.requestTime = requestTime;
    }
 
    @Override // com.qianwen.core.notify.provider.wechat.qy.entity.BaseQyResult
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (o instanceof WeixinQyTokenResult) {
            WeixinQyTokenResult other = (WeixinQyTokenResult) o;
            if (other.canEqual(this) && getRequestTime() == other.getRequestTime()) {
                Object this$expires_in = getExpires_in();
                Object other$expires_in = other.getExpires_in();
                if (this$expires_in == null) {
                    if (other$expires_in != null) {
                        return false;
                    }
                } else if (!this$expires_in.equals(other$expires_in)) {
                    return false;
                }
                Object this$access_token = getAccess_token();
                Object other$access_token = other.getAccess_token();
                return this$access_token == null ? other$access_token == null : this$access_token.equals(other$access_token);
            }
            return false;
        }
        return false;
    }
 
    @Override // com.qianwen.core.notify.provider.wechat.qy.entity.BaseQyResult
    protected boolean canEqual(final Object other) {
        return other instanceof WeixinQyTokenResult;
    }
 
    @Override // com.qianwen.core.notify.provider.wechat.qy.entity.BaseQyResult
    public int hashCode() {
        long $requestTime = getRequestTime();
        int result = (1 * 59) + ((int) (($requestTime >>> 32) ^ $requestTime));
        Object $expires_in = getExpires_in();
        int result2 = (result * 59) + ($expires_in == null ? 43 : $expires_in.hashCode());
        Object $access_token = getAccess_token();
        return (result2 * 59) + ($access_token == null ? 43 : $access_token.hashCode());
    }
 
    @Override // com.qianwen.core.notify.provider.wechat.qy.entity.BaseQyResult
    public String toString() {
        return "WeixinQyTokenResult(access_token=" + getAccess_token() + ", expires_in=" + getExpires_in() + ", requestTime=" + getRequestTime() + ")";
    }
 
    public String getAccess_token() {
        return this.access_token;
    }
 
    public Integer getExpires_in() {
        return this.expires_in;
    }
 
    public long getRequestTime() {
        return this.requestTime;
    }
 
    public boolean isNotExpires() {
        return (System.currentTimeMillis() - this.requestTime) / 1000 < ((long) this.expires_in.intValue());
    }
}