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 String name;
    private Integer restaurantId;
    private String ip;//ip
    private Integer port;//端口
    private int type;//打印機紙張類型 為1時是58mm，否則是88mm

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

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


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

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

    public String getName() {
        return name;
    }

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

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