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

33 lines
541 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!: number
url!: string
thumb!: string
info!: {
author: string
authorName: string
}
blurHash!: string
defaults() {
return {
id: 0,
url: '',
thumb: '',
info: {},
blurHash: '',
}
}
}