This repository has been archived on 2024-02-08. You can view files and clone it, but cannot push or open issues or pull requests.
frontend/src/models/caldavToken.ts

17 lines
390 B
TypeScript
Raw Permalink Normal View History

2022-08-04 18:57:43 +00:00
import AbstractModel from './abstractModel'
2022-01-04 23:13:08 +00:00
2022-08-04 18:57:43 +00:00
import type {ICaldavToken} from '@/modelTypes/ICaldavToken'
2022-07-20 22:42:36 +00:00
2022-09-06 09:36:01 +00:00
export default class CaldavTokenModel extends AbstractModel<ICaldavToken> implements ICaldavToken {
id: number
created: Date
2022-06-23 01:22:21 +00:00
2022-08-04 18:57:43 +00:00
constructor(data: Partial<CaldavTokenModel>) {
super()
this.assignData(data)
2022-04-02 15:34:58 +00:00
2022-01-04 23:13:08 +00:00
if (this.created) {
this.created = new Date(this.created)
}
}
}