package com.its.vms.xnettcp.vms.protocol.dto;

import com.its.vms.xnettcp.vms.protocol.enums.eVmsFormObjectKind;
import lombok.Getter;
import lombok.Setter;

/**
 * Bitmap ID Object
 */
@Getter
@Setter
public class VmsFormObjBitmapId extends VmsFormObj {

    private int width;      // 2
    private int height;     // 2
    private int type;       // 1
    private int bitmapId;   // 2

    public VmsFormObjBitmapId(int objSize, int blinking, int posX, int posY, int bkClr, int width, int height, int type, int bitmapId) {
        super(eVmsFormObjectKind.OBJECT_BITMAP_ID.getValue(), objSize, blinking, posX, posY, bkClr);

        this.width = width;
        this.height = height;
        this.type = type;
        this.bitmapId = bitmapId;
    }

    @Override
    public void calSize() {
        setSize(7);
    }
}
