mac
2023-12-26 637e3152e3bfea430ca774c7dd178b4b9696c37f
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
83
84
85
86
87
88
89
90
91
92
93
94
95
package com.hdl.linkpm.sdk.core.response;
 
 
import androidx.annotation.NonNull;
 
import java.io.Serializable;
 
 
/**
 * @Author : Zoro.
 * @Date : 2019/6/9.
 * @Describe :
 */
public class BaseInfo<T> implements Serializable {
 
    private int code;
    private T data;
    private String message;
 
    //这个是密码输错超出次数,才有这个字段;
    private Extra extra;
 
    public BaseInfo(int code, T data) {
        this.code = code;
        this.data = data;
    }
 
    public int getCode() {
        return code;
    }
 
    public void setCode(int code) {
        this.code = code;
    }
 
    public T getData() {
        return data;
    }
 
    @NonNull
    public String getMessage() {
        return message == null ? "" : message;
    }
 
    public void setMessage(String message) {
        this.message = message;
    }
 
    public void setData(T data) {
        this.data = data;
    }
 
    public Extra getExtra() {
        return extra;
    }
 
    public void setExtra(Extra extra) {
        this.extra = extra;
    }
 
    public static class Extra {
 
        public int getMaxPwdErrorNum() {
            return maxPwdErrorNum;
        }
 
        public void setMaxPwdErrorNum(int maxPwdErrorNum) {
            this.maxPwdErrorNum = maxPwdErrorNum;
        }
 
        public long getUnlockTime() {
            return unlockTime;
        }
 
        public void setUnlockTime(long unlockTime) {
            this.unlockTime = unlockTime;
        }
 
        public int getCurrentPwdErrorNum() {
            return currentPwdErrorNum;
        }
 
        public void setCurrentPwdErrorNum(int currentPwdErrorNum) {
            this.currentPwdErrorNum = currentPwdErrorNum;
        }
 
        private int maxPwdErrorNum;
        private long unlockTime;
 
        private int currentPwdErrorNum;
 
    }
 
 
}