ContentDetailModel.ets 4.44 KB
import { AuthorListDTO, FullColumnImgUrlDTO, ReLInfoDTO, RmhInfoDTO, ShareInfoDTO,
  UserInfoDTO,
  VideoInfoDTO } from 'wdBean';

@Observed
export class ContentDetailModel{
  newsId: number = 0;
  newsTitle: string = "";
  newsShortTitle: string= "";
  newsDownTitle: string= "";
  newsBodyTitle: string= "";
  publishTime: string= "";
  appstyle: number= 0;
  newsType: number= 0;
  newsSummary: string= "";
  newsSource: string= "";
  newsSourceName: string= "";
  newsContent: string= "";
  newsContentBak: string= "";
  newsLinkUrl: string="";
  bestNoticer: number= 0;
  // newLinkObject?: any = null;
  newIntroduction: string= "";
  authorList: AuthorListDTO[]=[];
  editorName: string="";
  openAudio: number= 0;
  // audioList: any[];
  // hasPopUp?: any;
  // popUps?: any[];
  firstFrameImageUri: string= "";
  reLInfo?: ReLInfoDTO | null = null;
  fullColumnImgUrls: FullColumnImgUrlDTO[]=[];
  shareInfo?: ShareInfoDTO | null = null;
  // photoList: any[];
  videoInfo: VideoInfoDTO[]=[];
  // liveInfo?: any ;
  // voteInfo?: any;
  rmhInfo?: RmhInfoDTO | null = null;
  userInfo?: UserInfoDTO | null = null;
  openLikes: number= 0;
  openComment: number= 0;
  likesStyle: number= 0;
  preCommentFlag: number= 0;
  commentDisplay: number= 0;
  keyArticle: number= 0;
  rmhPlatform: number= 0;
  readFlag?: number= 0;
  // topicInfo?: any;
  traceId: string= "";
  itemId: string= "";
  sceneId: string= "";
  subSceneId: string= "";
  // activityInfos: any[]=[];
  recommendShow: number= 0;
  visitorComment: number= 0;
  itemTypeCode: string= "";
  menuShow: number= 0;
  newsTags: string= "";
  // specialColumnId?: any;
  specialColumnName: string= "";
  // timeline?: any;

  constructor(newsId: number, newsTitle: string, newsShortTitle: string, newsDownTitle: string, newsBodyTitle: string,
    publishTime: string, appstyle: number, newsType: number, newsSummary: string, newsSource: string,
    newsSourceName: string, newsContent: string, newsContentBak: string, newsLinkUrl: string, bestNoticer: number,
    newIntroduction: string, authorList: AuthorListDTO[], editorName: string, openAudio: number,
    firstFrameImageUri: string,fullColumnImgUrls: FullColumnImgUrlDTO[], videoInfo: VideoInfoDTO[],
    openLikes: number, openComment: number, likesStyle: number, preCommentFlag: number,
    commentDisplay: number, keyArticle: number, rmhPlatform: number, readFlag: number, traceId: string,
    itemId: string, sceneId: string, subSceneId: string, recommendShow: number,
    visitorComment: number, itemTypeCode: string, menuShow: number, newsTags: string,
    specialColumnName: string, traceInfo: string, viewCount: number, isNewspaper: boolean, oldNewsId: string,
    showTime: boolean, isLogin: string) {
    this.newsId = newsId;
    this.newsTitle = newsTitle;
    this.newsShortTitle = newsShortTitle;
    this.newsDownTitle = newsDownTitle;
    this.newsBodyTitle = newsBodyTitle;
    this.publishTime = publishTime;
    this.appstyle = appstyle;
    this.newsType = newsType;
    this.newsSummary = newsSummary;
    this.newsSource = newsSource;
    this.newsSourceName = newsSourceName;
    this.newsContent = newsContent;
    this.newsContentBak = newsContentBak;
    this.newsLinkUrl = newsLinkUrl;
    this.bestNoticer = bestNoticer;
    this.newIntroduction = newIntroduction;
    this.authorList = authorList;
    this.editorName = editorName;
    this.openAudio = openAudio;
    this.firstFrameImageUri = firstFrameImageUri;
    this.fullColumnImgUrls = fullColumnImgUrls;
    this.videoInfo = videoInfo;
    this.openLikes = openLikes;
    this.openComment = openComment;
    this.likesStyle = likesStyle;
    this.preCommentFlag = preCommentFlag;
    this.commentDisplay = commentDisplay;
    this.keyArticle = keyArticle;
    this.rmhPlatform = rmhPlatform;
    this.readFlag = readFlag;
    this.traceId = traceId;
    this.itemId = itemId;
    this.sceneId = sceneId;
    this.subSceneId = subSceneId;
    this.recommendShow = recommendShow;
    this.visitorComment = visitorComment;
    this.itemTypeCode = itemTypeCode;
    this.menuShow = menuShow;
    this.newsTags = newsTags;
    this.specialColumnName = specialColumnName;
    this.traceInfo = traceInfo;
    this.viewCount = viewCount;
    this.isNewspaper = isNewspaper;
    this.oldNewsId = oldNewsId;
    this.showTime = showTime;
    this.isLogin = isLogin;
  }
  traceInfo: string= "";
  viewCount: number= 0;
  isNewspaper: boolean = false;
  oldNewsId: string= "";


  // 本地字段
  showTime:boolean = false;
  isLogin?:string = ""
}