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 int id;

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

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

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

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


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

    @Generated(hash = 1970016969)
    public PrinterDeviceBean(int id, Long dbid, Integer restaurantId, String ip, Integer port,
            int type) {
        this.id = id;
        this.dbid = dbid;
        this.restaurantId = restaurantId;
        this.ip = ip;
        this.port = port;
        this.type = type;
    }

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

    public void setId(int 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;
    }
}
