integrate TaskModel with FileModel
This commit is contained in:
@@ -1,20 +1,31 @@
|
||||
// thile file is responsible for managing task files within chats.
|
||||
|
||||
import { FileContent } from "./fileModel";
|
||||
import FileModel, { FileContent } from "./fileModel";
|
||||
|
||||
export default class TaskFileModel {}
|
||||
import ChatModel from "../Chat/chatModel";
|
||||
|
||||
export default class TaskModel {
|
||||
chatModel: ChatModel;
|
||||
fileModel: FileModel;
|
||||
|
||||
// init
|
||||
constructor(chatModel: ChatModel, fileModel: FileModel) {
|
||||
this.chatModel = chatModel;
|
||||
this.fileModel = fileModel;
|
||||
}
|
||||
}
|
||||
|
||||
// types
|
||||
export interface TaskFileContent extends FileContent {
|
||||
type: "task",
|
||||
type: "task";
|
||||
|
||||
board: string;
|
||||
category?: string;
|
||||
status?: string;
|
||||
board: string;
|
||||
category?: string;
|
||||
status?: string;
|
||||
|
||||
description?: string;
|
||||
|
||||
priority?: number;
|
||||
date?: string;
|
||||
time?: string;
|
||||
}
|
||||
description?: string;
|
||||
|
||||
priority?: number;
|
||||
date?: string;
|
||||
time?: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user