package com.bcxin.dtos;

import cn.myapps.runtime.scheduler.ejb.TriggerVO;
import lombok.Data;

import java.io.Serializable;

@Data
public class TriggerVOWrapper implements Serializable {
    private TriggerVO triggerVO;
    private boolean deleted;

    public static TriggerVOWrapper create(TriggerVO triggerVO, boolean deleted) {
        TriggerVOWrapper wrapper = new TriggerVOWrapper();
        wrapper.setTriggerVO(triggerVO);
        wrapper.setDeleted(deleted);

        return wrapper;
    }
}
