ProgrammeBean.ets 2.11 KB
/**
 * 节目/剧集Item
 * CompType:
 * TOP_IMG_BOTTOM_TXT
 * BIG_STATIC_IMG
 * BIG_PLAY_IMG
 * SLIDER_IMG
 * MY_HOME
 */
import { ItemBean } from './ItemBean';
import { ProgrammeDTO } from './ProgrammeDTO';
import { StrategyTipMap } from './StrategyTipMap';
import { Tip } from './Tip';

@Observed
export class ProgrammeBean extends ItemBean {
  name?: string; // 节目名称
  title?: string; // 标题
  pID?: string // 节目ID
  programTypeV2?: string; // 节目类型:
  detail?: string; // 描述
  // pics?: Pic; // 图片(放到父类ItemBean中)
  score?: string; // 得分
  updateEP?: string; // 更新集数(示例:更新至28集)
  stateTime?: string; // 已完结/"每周四12:00更新1期"
  programs?: ProgrammeDTO[];
  index?: string; // 在剧集中的序号(从1开始)
  duration?: string; // 节目时长,"02:04:27",
  author?: string; // 节目上传者(若为G客内容,则DataVo 中输出该字段)
  avator?: string; // 节目上传者头像(若为G客内容,则DataVo 中输出该字段)
  screenType?: string; // 屏幕类型。1: 竖屏; 2: 横屏;
  subTxt?: string;
  strategyTipMap?: StrategyTipMap;
  startTime?: string; // 开始时间,YYYYMMDDHHmm,如202311262305
  endTime?: string; // 比赛结束时间/推流结束时间(YYYYMMDDHHmm,如202311270130)
  tip?: Tip; // 角标,枚举类:(code, msg)
  tip2?: Tip; // 清晰度角标,枚举类:(code, msg)/4K角标
  showTip?: Tip;
  topRightTipImgUrl?: string; // 右上角角标
  topLeftTipImgUrl?: string; // 左上角角标

  constructor(dto: ProgrammeDTO) {
    super(dto);
    this.name = dto.name
    this.title = dto.title
    this.pID = dto.pID
    this.programTypeV2 = dto.programTypeV2
    this.detail = dto.detail
    this.score = dto.score
    this.updateEP = dto.updateEP
    this.stateTime = dto.stateTime
    this.programs = dto.programs;
    this.index = dto.index;
    this.duration = dto.duration
    this.author = dto.author
    this.avator = dto.avator
    this.screenType = dto.screenType
    this.subTxt = dto.subTxt?.txt
    this.strategyTipMap = dto.strategyTipMap;
    this.tip = dto.tip;
    this.showTip = dto.showTip;
  }
}