package org.example.entity;

public class Terminal {
    private Long id;              // 主键ID
    private String terminalType;  // 设备类型
    private String terminalNumber;// 设备编码
    private String terminalDesc;  // 设备名称
    private String deptCode;      // 所属科室
    private String wardCode;      // 所属病区
    private String ipAddress;     // IP地址
    private String subnetMask;    // 子网掩码
    private String gatewayAddress;// 默认网关
    private String macAddress;    // Mac地址
    private Boolean isOnline;     // 在线状态

    // Constructors
    public Terminal() {}

    public Terminal(String terminalType, String terminalNumber, String terminalDesc, String deptCode,
                   String wardCode, String ipAddress, String subnetMask, String gatewayAddress,
                   String macAddress, Boolean isOnline) {
        this.terminalType = terminalType;
        this.terminalNumber = terminalNumber;
        this.terminalDesc = terminalDesc;
        this.deptCode = deptCode;
        this.wardCode = wardCode;
        this.ipAddress = ipAddress;
        this.subnetMask = subnetMask;
        this.gatewayAddress = gatewayAddress;
        this.macAddress = macAddress;
        this.isOnline = isOnline;
    }

    // Getters and Setters
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTerminalType() {
        return terminalType;
    }

    public void setTerminalType(String terminalType) {
        this.terminalType = terminalType;
    }

    public String getTerminalNumber() {
        return terminalNumber;
    }

    public void setTerminalNumber(String terminalNumber) {
        this.terminalNumber = terminalNumber;
    }

    public String getTerminalDesc() {
        return terminalDesc;
    }

    public void setTerminalDesc(String terminalDesc) {
        this.terminalDesc = terminalDesc;
    }

    public String getDeptCode() {
        return deptCode;
    }

    public void setDeptCode(String deptCode) {
        this.deptCode = deptCode;
    }

    public String getWardCode() {
        return wardCode;
    }

    public void setWardCode(String wardCode) {
        this.wardCode = wardCode;
    }

    public String getIpAddress() {
        return ipAddress;
    }

    public void setIpAddress(String ipAddress) {
        this.ipAddress = ipAddress;
    }

    public String getSubnetMask() {
        return subnetMask;
    }

    public void setSubnetMask(String subnetMask) {
        this.subnetMask = subnetMask;
    }

    public String getGatewayAddress() {
        return gatewayAddress;
    }

    public void setGatewayAddress(String gatewayAddress) {
        this.gatewayAddress = gatewayAddress;
    }

    public String getMacAddress() {
        return macAddress;
    }

    public void setMacAddress(String macAddress) {
        this.macAddress = macAddress;
    }

    public Boolean getIsOnline() {
        return isOnline;
    }

    public void setIsOnline(Boolean isOnline) {
        this.isOnline = isOnline;
    }

    @Override
    public String toString() {
        return "Terminal{" +
                "id=" + id +
                ", terminalType='" + terminalType + '\'' +
                ", terminalNumber='" + terminalNumber + '\'' +
                ", terminalDesc='" + terminalDesc + '\'' +
                ", deptCode='" + deptCode + '\'' +
                ", wardCode='" + wardCode + '\'' +
                ", ipAddress='" + ipAddress + '\'' +
                ", subnetMask='" + subnetMask + '\'' +
                ", gatewayAddress='" + gatewayAddress + '\'' +
                ", macAddress='" + macAddress + '\'' +
                ", isOnline=" + isOnline +
                '}';
    }
}