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

import jnpf.model.cultivate.bo.TriggerEventBO;
import jnpf.model.cultivate.event.dto.course.CourseProcessLearn;
import jnpf.model.cultivate.vo.chapter.FtbCultivateChapterTestResultVO;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.List;

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

    /**
     * 岗位id(必传)
     */
    private String postId;


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

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

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

}
