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/backgroundImage.ts

18 lines
412 B
TypeScript
Raw Permalink Normal View History

2022-08-04 18:57:43 +00:00
import AbstractModel from './abstractModel'
import type {IBackgroundImage} from '@/modelTypes/IBackgroundImage'
2022-07-20 22:42:36 +00:00
2022-09-06 09:36:01 +00:00
export default class BackgroundImageModel extends AbstractModel<IBackgroundImage> implements IBackgroundImage {
id = 0
url = ''
thumb = ''
info: {
2022-07-20 22:42:36 +00:00
author: string
authorName: string
} = {}
blurHash = ''
2022-06-23 01:22:21 +00:00
constructor(data: Partial<IBackgroundImage>) {
super()
this.assignData(data)
}
}