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 +
|
'}';
|
}
|
}
|