|
|
|
@ -7,10 +7,8 @@ import java.util.Objects; |
|
|
|
public class IvsPresetVo extends IvsVo { |
|
|
|
private String serial; |
|
|
|
private String channel; |
|
|
|
private String code; |
|
|
|
private String command; |
|
|
|
private String preset; |
|
|
|
private String name; |
|
|
|
private int focusSwitch = 0; |
|
|
|
|
|
|
|
public String getSerial() { |
|
|
|
@ -21,9 +19,6 @@ public class IvsPresetVo extends IvsVo { |
|
|
|
return this.channel; |
|
|
|
} |
|
|
|
|
|
|
|
public String getCode() { |
|
|
|
return this.code; |
|
|
|
} |
|
|
|
|
|
|
|
public String getCommand() { |
|
|
|
return this.command; |
|
|
|
@ -33,9 +28,7 @@ public class IvsPresetVo extends IvsVo { |
|
|
|
return this.preset; |
|
|
|
} |
|
|
|
|
|
|
|
public String getName() { |
|
|
|
return this.name; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public int getFocusSwitch() { |
|
|
|
return this.focusSwitch; |
|
|
|
@ -61,40 +54,5 @@ public class IvsPresetVo extends IvsVo { |
|
|
|
this.focusSwitch = focusSwitch; |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public boolean equals(Object object) { |
|
|
|
if (this == object) return true; |
|
|
|
if (object == null || getClass() != object.getClass()) return false; |
|
|
|
if (!super.equals(object)) return false; |
|
|
|
IvsPresetVo that = (IvsPresetVo) object; |
|
|
|
return focusSwitch == that.focusSwitch && Objects.equals(serial, that.serial) && Objects.equals(channel, that.channel) && Objects.equals(code, that.code) && Objects.equals(command, that.command) && Objects.equals(preset, that.preset) && Objects.equals(name, that.name); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public int hashCode() { |
|
|
|
return Objects.hash(super.hashCode(), serial, channel, code, command, preset, name, focusSwitch); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public String toString() { |
|
|
|
return "IvsPresetVo{" + |
|
|
|
"serial='" + serial + '\'' + |
|
|
|
", channel='" + channel + '\'' + |
|
|
|
", code='" + code + '\'' + |
|
|
|
", command='" + command + '\'' + |
|
|
|
", preset='" + preset + '\'' + |
|
|
|
", name='" + name + '\'' + |
|
|
|
", focusSwitch=" + focusSwitch + |
|
|
|
"code='" + getCode() + '\'' + |
|
|
|
"cameraCode='" + getCameraCode() + '\'' + |
|
|
|
"domainCode='" + getCameraCode() + '\'' + |
|
|
|
"host='" + getHost() + '\'' + |
|
|
|
"port='" + getPort() + '\'' + |
|
|
|
"address='" + getAddress() + '\'' + |
|
|
|
"username='" + getUsername() + '\'' + |
|
|
|
"password='" + getPassword() + '\'' + |
|
|
|
"name='" + getName() + '\'' + |
|
|
|
"id='" + getId() + '\'' + |
|
|
|
'}'; |
|
|
|
} |
|
|
|
} |