package jnpf.model.cultivate.event.dto.task;

import jnpf.model.cultivate.bo.TriggerEventBO;
import jnpf.model.cultivate.event.dto.course.CourseProcessLearn;
import jnpf.model.cultivate.vo.chapter.FtbCultivateChapterTestResultVO;
import lombok.*;

import java.util.List;

/**
 * 任务学习课程触发
 *
 * @author wangchunxiang
 * @date 2024/09/18
 */
@EqualsAndHashCode(callSuper = true)
@Getter
@Setter
@ToString(callSuper = true)
public class TaskCourseProcessDTO extends CourseProcessLearn implements TriggerEventBO {

    /**
     * 任务id（任务类型必传）
     */
    private String taskId;

    public TaskCourseProcessDTO(String userId, String courseId, String chapterId, Integer duration
            , List<FtbCultivateChapterTestResultVO> ftbChapterTestDTOs, String taskId) {
        super(userId, courseId, chapterId, duration, ftbChapterTestDTOs);
        this.taskId = taskId;
    }


    public TaskCourseProcessDTO(String userId, String courseId, String chapterId, Integer duration
            , List<FtbCultivateChapterTestResultVO> ftbChapterTestDTOs, String taskId, Integer studyType) {
        super(userId, courseId, chapterId, duration, ftbChapterTestDTOs, studyType, taskId);
        this.taskId = taskId;
    }

    @Override
    public TriggerEventType getTriggerEventType() {
        return TriggerEventType.TASK_COURSE_EVENT;
    }

}
