2022-08-04 18:57:43 +00:00
|
|
|
import AbstractModel from './abstractModel'
|
|
|
|
import ListModel from './list'
|
2020-06-30 20:53:25 +00:00
|
|
|
|
2022-08-04 18:57:43 +00:00
|
|
|
import type {IListDuplicate} from '@/modelTypes/IListDuplicate'
|
|
|
|
import type {INamespace} from '@/modelTypes/INamespace'
|
|
|
|
import type {IList} from '@/modelTypes/IList'
|
2022-07-20 22:42:36 +00:00
|
|
|
|
2022-09-06 09:36:01 +00:00
|
|
|
export default class ListDuplicateModel extends AbstractModel<IListDuplicate> implements IListDuplicate {
|
2022-08-14 10:15:45 +00:00
|
|
|
listId = 0
|
|
|
|
namespaceId: INamespace['id'] = 0
|
|
|
|
list: IList = ListModel
|
2022-06-23 01:22:21 +00:00
|
|
|
|
2022-08-14 10:15:45 +00:00
|
|
|
constructor(data : Partial<IListDuplicate>) {
|
|
|
|
super()
|
|
|
|
this.assignData(data)
|
2020-06-30 20:53:25 +00:00
|
|
|
|
2022-08-14 10:15:45 +00:00
|
|
|
this.list = new ListModel(this.list)
|
2020-06-30 20:53:25 +00:00
|
|
|
}
|
|
|
|
}
|