package com.its.vms.dto;

import com.its.vms.entity.TbVmsFormObject;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;

/**
 *  DTO Class
 */
@Data
@Builder
public class TbVmsFormObjectDto implements Serializable {
    private static final long serialVersionUID = 1L;

    private Integer vmsFormObjectId;
    private Integer vmsFormId;
    private Integer vmsFormDsplRow;
    private Integer vmsFormDsplClmn;
    private Integer vmsFormObjectTypeCd;
    private Integer vmsFontNameCd;
    private Integer vmsFontColrCd;
    private String vmsDsplTxt;
    private byte[] vmsDsplFigr;
    private Integer vmsDsplXcrdn;
    private Integer vmsDsplYcrdn;
    private String trfcFillCd;
    private Integer vmsFontBold;
    private Integer vmsFontSize;
    private Integer vmsFontAlign;
    private Integer vmsDsplWidth;
    private Integer vmsDsplHeight;
    private Integer vmsDsplBlinking;
    private Integer vmsDsplBkColor;
    private Integer vmsDsplSize;
    private Integer symbLibNmbr;
    private Long vmsIfscId;

    public TbVmsFormObject toEntity() {
        return TbVmsFormObject.builder()
                .vmsFormObjectId(this.vmsFormObjectId)
                .vmsFormId(this.vmsFormId)
                .vmsFormDsplRow(this.vmsFormDsplRow)
                .vmsFormDsplClmn(this.vmsFormDsplClmn)
                .vmsFormObjectTypeCd(this.vmsFormObjectTypeCd)
                .vmsFontNameCd(this.vmsFontNameCd)
                .vmsFontColrCd(this.vmsFontColrCd)
                .vmsDsplTxt(this.vmsDsplTxt)
                .vmsDsplFigr(this.vmsDsplFigr)
                .vmsDsplXcrdn(this.vmsDsplXcrdn)
                .vmsDsplYcrdn(this.vmsDsplYcrdn)
                .trfcFillCd(this.trfcFillCd)
                .vmsFontBold(this.vmsFontBold)
                .vmsFontSize(this.vmsFontSize)
                .vmsFontAlign(this.vmsFontAlign)
                .vmsDsplWidth(this.vmsDsplWidth)
                .vmsDsplHeight(this.vmsDsplHeight)
                .vmsDsplBlinking(this.vmsDsplBlinking)
                .vmsDsplBkColor(this.vmsDsplBkColor)
                .vmsDsplSize(this.vmsDsplSize)
                .symbLibNmbr(this.symbLibNmbr)
                .vmsIfscId(this.vmsIfscId)
                .build();
    }

}
