2022-08-04 18:57:43 +00:00
|
|
|
import AbstractModel from './abstractModel'
|
|
|
|
import type {IFile} from '@/modelTypes/IFile'
|
2022-07-20 22:42:36 +00:00
|
|
|
|
2022-09-06 09:36:01 +00:00
|
|
|
export default class FileModel extends AbstractModel<IFile> implements IFile {
|
2022-08-14 10:15:45 +00:00
|
|
|
id = 0
|
|
|
|
mime = ''
|
|
|
|
name = ''
|
|
|
|
size = 0
|
|
|
|
created: Date = null
|
2022-06-23 01:22:21 +00:00
|
|
|
|
2022-08-14 10:15:45 +00:00
|
|
|
constructor(data: Partial<IFile>) {
|
|
|
|
super()
|
|
|
|
this.assignData(data)
|
2020-02-08 13:16:06 +00:00
|
|
|
|
2022-08-14 10:15:45 +00:00
|
|
|
this.created = new Date(this.created)
|
2019-11-24 13:16:24 +00:00
|
|
|
}
|
|
|
|
}
|