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.
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 {
|
2022-08-14 10:15:45 +00:00
|
|
|
id = 0
|
|
|
|
url = ''
|
|
|
|
thumb = ''
|
|
|
|
info: {
|
2022-07-20 22:42:36 +00:00
|
|
|
author: string
|
|
|
|
authorName: string
|
2022-08-14 10:15:45 +00:00
|
|
|
} = {}
|
|
|
|
blurHash = ''
|
2022-06-23 01:22:21 +00:00
|
|
|
|
2022-08-14 10:15:45 +00:00
|
|
|
constructor(data: Partial<IBackgroundImage>) {
|
|
|
|
super()
|
|
|
|
this.assignData(data)
|
2020-05-31 19:17:10 +00:00
|
|
|
}
|
|
|
|
}
|