package com.tsi.comm.server.dto;

import com.tsi.common.utils.StringUtils;
import lombok.Data;
import lombok.ToString;

@Data
@ToString
public class TsiCvimControl {
    public boolean inManualControl;
    public boolean inFlashingControl;
    public boolean inLightsOutControl;
    public boolean inActuationControl;
    public boolean inTransitionControl;

    public String toDataString() {
        return StringUtils.getString(this.inManualControl)
             + StringUtils.getString(this.inFlashingControl)
             + StringUtils.getString(this.inLightsOutControl)
             + StringUtils.getString(this.inActuationControl)
             + StringUtils.getString(this.inTransitionControl);
    }
}
