import { CLASSES } from '../constants';
import { ChatAttachmentModel } from './chat-attachment.model';
import { HiringTeamModel } from './hiring-team.model';
import { JobApplicationModel } from './job-application.model';
import { SentViaEnum } from './sent-via.enum';
import { UserModel } from './user.model';
import { WorkflowMessageModel } from './workflow-message.model';

export class MessageModel {
    ObjectID: string;
    ObjectClass = CLASSES.MESSAGE;
    SentVia: SentViaEnum;
    MessageContent: string;
    IsRead: boolean;
    SentBy: UserModel | HiringTeamModel | string;
    WorkFlowMessage: WorkflowMessageModel;
    JobApplication: JobApplicationModel;
    Attachments: Array<ChatAttachmentModel>;
    ObjectCreated: Date;
    ObjectCreatedStr: string;
}
