package com.gingersoft.gsa.cloud.database.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;

import java.io.Serializable;

/**
 * Created by Wyh on 2020/1/17.
 */
@Entity
public class PrinterDeviceBean implements Serializable {

    private static final long serialVersionUID = 4583366043598445115L;

    private Long id;

    @Property(nameInDb = "_id")
    @Id(autoincrement = true)
    private Long dbid;

    private String name;
    private Integer restaurantId;
    private String ip;//ip
    private Long uid;

    private Integer port;//端口
//    private int type;//打印機紙張類型 為1時是58mm，否則是88mm

    private Integer status;//2為默認打印機，1為普通打印機

    private int printerModelId;//打印機機型id
    private String paperSpecification;//紙張規格
    private String printerName;//打印機機型名稱
    private String model;//打印機型號
    /**
     * 飛單1打印機id
     */
    private Long printerDeviceId;
    /**
     * 飛單2 打印機id
     */
    private Long defaultPrinterDeviceId;

    @Generated(hash = 626885316)
    public PrinterDeviceBean() {
    }

    public PrinterDeviceBean(String name, Long id, Integer restaurantId, String ip, Integer port, int type) {
        this.name = name;
        this.id = id;
        this.restaurantId = restaurantId;
        this.ip = ip;
        this.port = port;
    }

    public PrinterDeviceBean(String name, Integer restaurantId, String ip, Integer port, int type) {
        this.name = name;
        this.restaurantId = restaurantId;
        this.ip = ip;
        this.port = port;
    }

    @Generated(hash = 1626972301)
    public PrinterDeviceBean(Long id, Long dbid, String name, Integer restaurantId, String ip, Long uid, Integer port, Integer status, int printerModelId, String paperSpecification, String printerName, String model, Long printerDeviceId, Long defaultPrinterDeviceId) {
        this.id = id;
        this.dbid = dbid;
        this.name = name;
        this.restaurantId = restaurantId;
        this.ip = ip;
        this.uid = uid;
        this.port = port;
        this.status = status;
        this.printerModelId = printerModelId;
        this.paperSpecification = paperSpecification;
        this.printerName = printerName;
        this.model = model;
        this.printerDeviceId = printerDeviceId;
        this.defaultPrinterDeviceId = defaultPrinterDeviceId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getId() {
        return this.id;
    }

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

    public Long getDbid() {
        return this.dbid;
    }

    public void setDbid(Long dbid) {
        this.dbid = dbid;
    }

    public Integer getRestaurantId() {
        return restaurantId;
    }

    public String getIp() {
        return this.ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Integer getPort() {
        return this.port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

//    public int getType() {
//        return this.type;
//    }
//
//    public void setType(int type) {
//        this.type = type;
//    }

    public void setRestaurantId(Integer restaurantId) {
        this.restaurantId = restaurantId;
    }

    public int getStatus() {
        return this.status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getPrinterDeviceId() {
        return this.printerDeviceId;
    }

    public void setPrinterDeviceId(Long printerDeviceId) {
        this.printerDeviceId = printerDeviceId;
    }

    public Long getDefaultPrinterDeviceId() {
        return this.defaultPrinterDeviceId;
    }

    public void setDefaultPrinterDeviceId(Long defaultPrinterDeviceId) {
        this.defaultPrinterDeviceId = defaultPrinterDeviceId;
    }

    public int getPrinterModelId() {
        return printerModelId;
    }

    public void setPrinterModelId(int printerModelId) {
        this.printerModelId = printerModelId;
    }

    public String getPaperSpecification() {
        return paperSpecification;
    }

    public void setPaperSpecification(String paperSpecification) {
        this.paperSpecification = paperSpecification;
    }

    public String getPrinterName() {
        return printerName;
    }

    public void setPrinterName(String printerName) {
        this.printerName = printerName;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }


    public Long getUid() {
        return uid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }
}
