This repository has been archived on 2025-10-28. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
vikunja-frontend/src/models/backgroundImage.ts
2022-09-05 17:57:21 +02:00

28 lines
No EOL
513 B
TypeScript

import AbstractModel, { type IAbstract } from './abstractModel'
export interface IBackgroundImage extends IAbstract {
id: number
url: string
thumb: string
info: {
author: string
authorName: string
}
blurHash: string
}
export default class BackgroundImageModel extends AbstractModel implements IBackgroundImage {
id = 0
url = ''
thumb = ''
info: {
author: string
authorName: string
} = {}
blurHash = ''
constructor(data: Partial<IBackgroundImage>) {
super()
this.assignData(data)
}
}