package cn.axzo.msg.center.message.service.todo.manage;

import cn.axzo.msg.center.domain.entity.Todo;
import cn.axzo.msg.center.domain.entity.TodoBusiness;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

import java.util.List;

/**
 * @author yanglin
 */
@Getter
@RequiredArgsConstructor
class StateAdvanceResult {
    private final boolean advanced;
    private final TodoBusiness business;
    private final List<Todo> advancedTodos;

    Long getBusinessId() {
        return business == null ? 0L : business.getId();
    }
}