Dominik Pschenitschni
200851259a
Some checks failed
continuous-integration/drone/pr Build is failing
26 lines
511 B
JavaScript
26 lines
511 B
JavaScript
import AbstractModel from './abstractModel'
|
|
import UserModel from './user'
|
|
|
|
export default class ListModel extends AbstractModel {
|
|
id = 0
|
|
hash = ''
|
|
right = 0
|
|
sharedBy = UserModel
|
|
sharingType = 0
|
|
listId = 0
|
|
name = ''
|
|
password = ''
|
|
|
|
created = null
|
|
updated = null
|
|
|
|
constructor(data) {
|
|
// The constructor of AbstractModel handles all the default parsing.
|
|
super(data)
|
|
|
|
this.sharedBy = new UserModel(this.sharedBy)
|
|
|
|
this.created = new Date(this.created)
|
|
this.updated = new Date(this.updated)
|
|
}
|
|
} |