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;
    private int port;
    private int type;

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

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

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


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

    @Generated(hash = 2111154422)
    public PrinterDeviceBean(int id, Long dbid, Integer restaurantId, String ip, int 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 int getPort() {
        return this.port;
    }

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