import { SysMsgTarget } from "./SysMsgTarget";
import { SysFileInfo } from "./SysFileInfo";

export class SysMsg {
  pkMsg: string;
  msgTitle: string;
  msgContent: string;
  msgAction: string;
  acttionUrl: string;
  objId: string;
  sendUser: string;
  sendTime: string;
  isRevoke: string;
  revokeTime: string;
  isDelete: string;
  delTime: string;
  msgType: string;
  isImportant: string;
  msgState: string;
  isRead: string;
  sendUserName: string;
  sysFileInfos: SysFileInfo[];
  sysMsgTargets: SysMsgTarget[];
  constructor(
    options: {
      pkMsg?: string;
      msgTitle?: string;
      msgContent?: string;
      msgAction?: string;
      acttionUrl?: string;
      objId?: string;
      sendUser?: string;
      sendTime?: string;
      isRevoke?: string;
      revokeTime?: string;
      isDelete?: string;
      delTime?: string;
      msgType?: string;
      isImportant?: string;
      msgState?: string;
      isRead?: string;
      sendUserName?: string;
      sysFileInfos?: SysFileInfo[];
      sysMsgTargets?: SysMsgTarget[];
    } = {}
  ) {
    this.pkMsg = options.pkMsg || "";
    this.msgTitle = options.msgTitle || "";
    this.msgContent = options.msgContent || "";
    this.msgAction = options.msgAction || "";
    this.acttionUrl = options.acttionUrl || "";
    this.objId = options.objId || "";
    this.sendUser = options.sendUser || "";
    this.sendTime = options.sendTime || "";
    this.isRevoke = options.isRevoke || "";
    this.revokeTime = options.revokeTime || "";
    this.isDelete = options.isDelete || "";
    this.delTime = options.delTime || "";
    this.msgType = options.msgType || "";
    this.isImportant = options.isImportant || "";
    this.msgState = options.msgState || "";
    this.isRead = options.isRead || "";
    this.sendUserName = options.sendUserName || "";
    this.sysFileInfos = options.sysFileInfos || [];
    this.sysMsgTargets = options.sysMsgTargets || [];
  }
}
