Hunter0x7c7
2024-09-12 60a3f2bc64b7a5f502e4133ced31f0b25c88d3f1
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
package com.github.hunter0x7c7.sync.model.bean;
 
import com.google.gson.annotations.SerializedName;
 
public class ConfigBean {
/*{
  "sh": "db.tyuniot.com:20235",
  "sn": "sa",
  "sp": "Nongtt@2021",
  "sdn": "TY_SPDB",
  "th": "124.229.182.227:1466",
  "tn": "sa",
  "tp": "Nongtt@2022",
  "tdn": "proj_hnyzgx",
  "fv": "1",
  "fu": 4,
  "ss": false
}*/
    @SerializedName("sh")
    private String srcHost;
    @SerializedName("sn")
    private String srcName;
    @SerializedName("sp")
    private String srcPwd;
    @SerializedName("sdn")
    private String srcDbName;
 
    @SerializedName("th")
    private String targetHost;
    @SerializedName("tn")
    private String targetName;
    @SerializedName("tp")
    private String targetPwd;
    @SerializedName("tdn")
    private String targetDbName;
    @SerializedName("fv")
    private String freqValue;
    @SerializedName("fu")
    private int freqUnit;
 
    @SerializedName("ss")
    private boolean startSync;
 
    public ConfigBean() {
    }
 
    public ConfigBean(String srcHost, String srcName, String srcPwd, String srcDbName
            , String targetHost, String targetName, String targetPwd
            , String targetDbName, String freqValue, int freqUnit, boolean startSync) {
        this.srcHost = srcHost;
        this.srcName = srcName;
        this.srcPwd = srcPwd;
        this.srcDbName = srcDbName;
        this.targetHost = targetHost;
        this.targetName = targetName;
        this.targetPwd = targetPwd;
        this.targetDbName = targetDbName;
        this.freqValue = freqValue;
        this.freqUnit = freqUnit;
        this.startSync = startSync;
    }
 
    public String getSrcHost() {
        return srcHost;
    }
 
    public void setSrcHost(String srcHost) {
        this.srcHost = srcHost;
    }
 
    public String getSrcName() {
        return srcName;
    }
 
    public void setSrcName(String srcName) {
        this.srcName = srcName;
    }
 
    public String getSrcPwd() {
        return srcPwd;
    }
 
    public void setSrcPwd(String srcPwd) {
        this.srcPwd = srcPwd;
    }
 
 
    public String getSrcDbName() {
        return srcDbName;
    }
 
    public void setSrcDbName(String srcDbName) {
        this.srcDbName = srcDbName;
    }
 
    public String getTargetHost() {
        return targetHost;
    }
 
    public void setTargetHost(String targetHost) {
        this.targetHost = targetHost;
    }
 
    public String getTargetName() {
        return targetName;
    }
 
    public void setTargetName(String targetName) {
        this.targetName = targetName;
    }
 
    public String getTargetPwd() {
        return targetPwd;
    }
 
    public void setTargetPwd(String targetPwd) {
        this.targetPwd = targetPwd;
    }
 
 
    public String getTargetDbName() {
        return targetDbName;
    }
 
    public void setTargetDbName(String targetDbName) {
        this.targetDbName = targetDbName;
    }
 
    public String getFreqValue() {
        return freqValue;
    }
 
    public void setFreqValue(String freqValue) {
        this.freqValue = freqValue;
    }
 
    public int getFreqUnit() {
        return freqUnit;
    }
 
    public void setFreqUnit(int freqUnit) {
        this.freqUnit = freqUnit;
    }
 
    public boolean isStartSync() {
        return startSync;
    }
 
    public void setStartSync(boolean startSync) {
        this.startSync = startSync;
    }
 
    @Override
    public String toString() {
        return "ConfigBean{" +
                "srcHost='" + srcHost + '\'' +
                ", srcName='" + srcName + '\'' +
                ", srcPwd='" + srcPwd + '\'' +
                ", srcDbName='" + srcDbName + '\'' +
                ", targetHost='" + targetHost + '\'' +
                ", targetName='" + targetName + '\'' +
                ", targetPwd='" + targetPwd + '\'' +
                ", targetDbName='" + targetDbName + '\'' +
                ", freqValue='" + freqValue + '\'' +
                ", freqUnit=" + freqUnit +
                ", startSync=" + startSync +
                '}';
    }
}