package `in`.techware.carrefour.dbUtils.entity

import `in`.techware.carrefour.model.TransformQuantityBean
import android.arch.persistence.room.ColumnInfo
import android.arch.persistence.room.Entity
import android.arch.persistence.room.PrimaryKey

/**
 * Created by Jemsheer K D on 29 July, 2018.
 * Package `in`.techware.carrefour.dbUtils.entity
 * Project Carrefour
 */

@Entity(tableName = "transformQuantity")
class TransformQuantityEntity() {

    constructor(transformQuantityBean: TransformQuantityBean) : this() {

        this.barcode = transformQuantityBean.barcode
        this.sendStatus = transformQuantityBean.sendStatus
    }

    @ColumnInfo(name = "id")
    @PrimaryKey()
    var barcode: String = ""
    var sendStatus: Int = 0


    fun getBean(): TransformQuantityBean {
        var transformQuantityBean: TransformQuantityBean = TransformQuantityBean()

        transformQuantityBean.barcode = this.barcode
        transformQuantityBean.sendStatus = this.sendStatus

        return transformQuantityBean;
    }
}