package com.dji.sample.manage.model.dto;

import com.dji.sdk.cloudapi.device.VideoId;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 直播重启广播通知载荷。
 * @author copilot
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class LiveRestartNotifyDTO {

    @JsonProperty("event_id")
    private String eventId;

    @JsonProperty("workspace_id")
    private String workspaceId;

    @JsonProperty("video_id")
    private VideoId videoId;

    /** begin/success/failed */
    private String status;

    private String reason;

    @JsonProperty("operator_client_id")
    private String operatorClientId;

    private String url;

    @JsonProperty("session_id")
    private String sessionId;

    @JsonProperty("error_code")
    private Integer errorCode;

    @JsonProperty("error_msg")
    private String errorMsg;

    @JsonProperty("duration_ms")
    private Long durationMs;
}
