2020-12-19 01:12:30 +01:00
|
|
|
|
2022-08-04 20:57:43 +02:00
|
|
|
import AbstractModel from './abstractModel'
|
2020-12-19 01:12:30 +01:00
|
|
|
|
2022-08-04 20:57:43 +02:00
|
|
|
import type {IUserSettings} from '@/modelTypes/IUserSettings'
|
|
|
|
import type {IList} from '@/modelTypes/IList'
|
2022-07-21 00:42:36 +02:00
|
|
|
|
|
|
|
export default class UserSettingsModel extends AbstractModel implements IUserSettings {
|
2022-08-14 12:15:45 +02:00
|
|
|
name = ''
|
|
|
|
emailRemindersEnabled = true
|
|
|
|
discoverableByName = false
|
|
|
|
discoverableByEmail = false
|
|
|
|
overdueTasksRemindersEnabled = true
|
|
|
|
defaultListId: undefined | IList['id'] = undefined
|
2022-08-04 20:57:43 +02:00
|
|
|
weekStart: IUserSettings['weekStart'] = 0
|
2022-08-14 12:15:45 +02:00
|
|
|
timezone = ''
|
2022-06-23 03:22:21 +02:00
|
|
|
|
2022-08-14 12:15:45 +02:00
|
|
|
constructor(data: Partial<IUserSettings>) {
|
|
|
|
super()
|
|
|
|
this.assignData(data)
|
2020-12-19 01:12:30 +01:00
|
|
|
}
|
|
|
|
}
|