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

28 lines
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)
}
}