2019-03-02 10:25:10 +00:00
|
|
|
import UserShareBaseModel from './userShareBase'
|
2022-07-21 00:42:36 +02:00
|
|
|
import type { IList } from './list'
|
|
|
|
|
2022-07-21 18:35:37 +02:00
|
|
|
export interface IUserList extends UserShareBaseModel {
|
2022-07-21 00:42:36 +02:00
|
|
|
listId: IList['id']
|
|
|
|
}
|
|
|
|
|
2019-03-02 10:25:10 +00:00
|
|
|
// This class extends the user share model with a 'rights' parameter which is used in sharing
|
2022-07-21 00:42:36 +02:00
|
|
|
export default class UserListModel extends UserShareBaseModel implements IUserList {
|
2022-08-14 12:15:45 +02:00
|
|
|
listId: IList['id'] = 0
|
2022-06-23 03:22:21 +02:00
|
|
|
|
2022-08-14 12:15:45 +02:00
|
|
|
constructor(data: Partial<IUserList>) {
|
|
|
|
super(data)
|
|
|
|
this.assignData(data)
|
2019-03-02 10:25:10 +00:00
|
|
|
}
|
|
|
|
}
|