package com.platform.modules.live.dto;

import lombok.Data;

import java.util.Optional;

/**
 * @Description: 查询导播台列表。
 * @Author: yikaihong
 * @CreateDate: 2019/1/20 16:50
 * @Version: 1.0
 */

@Data
public class DescribeCastersDto {

    private String action;
    private String casterId;
    private String casterName;
    private String startTime;
    private String endTime;
    private Integer pageNum;
    private Integer pageSize;
    private Integer status;

    public DescribeCastersDto(String action, String casterId, String casterName, String startTime, String endTime, Integer pageNum, Integer pageSize, Integer status) {
        this.action = Optional.ofNullable(action).orElse("DescribeCasters");
        this.casterId = casterId;
        this.casterName = casterName;
        this.startTime = startTime;
        this.endTime = endTime;
        this.pageNum = pageNum;
        this.pageSize = pageSize;
        this.status = status;
    }

    public DescribeCastersDto(String action) {
        this.action = Optional.ofNullable(action).orElse("DescribeCasters");
    }

    public DescribeCastersDto() {
        this.action = Optional.ofNullable(action).orElse("DescribeCasters");
    }

}