package com.ruoyi.common.event;

/**
 * 播报开始事件
 *
 * @author ruoyi
 */
public class BroadcastStartedEvent extends ScreenEvent {

    /** 任务ID */
    private final Long taskId;

    /** 内容ID */
    private final Long contentId;

    /** 任务名称 */
    private final String taskName;

    /** 标题 */
    private final String title;

    /** 播报的内容 */
    private final String content;

    /** 内容类型 */
    private final String contentType;

    /** 音频URL */
    private final String audioUrl;

    /** 音频时长（毫秒） */
    private final Integer audioDuration;

    /**
     * 构造函数
     */
    public BroadcastStartedEvent(Object source, Long taskId, Long contentId, String taskName,
                                 String title, String content, String contentType,
                                 String audioUrl, Integer audioDuration) {
        super(source);
        this.taskId = taskId;
        this.contentId = contentId;
        this.taskName = taskName;
        this.title = title;
        this.content = content;
        this.contentType = contentType;
        this.audioUrl = audioUrl;
        this.audioDuration = audioDuration;
    }

    public Long getTaskId() {
        return taskId;
    }

    public Long getContentId() {
        return contentId;
    }

    public String getTaskName() {
        return taskName;
    }

    public String getTitle() {
        return title;
    }

    public String getContent() {
        return content;
    }

    public String getContentType() {
        return contentType;
    }

    public String getAudioUrl() {
        return audioUrl;
    }

    public Integer getAudioDuration() {
        return audioDuration;
    }
}
