feat: wallaper fields for schedule
This commit is contained in:
@@ -2,6 +2,10 @@ import type { Serialized } from 'chrome-extension-toolkit';
|
|||||||
|
|
||||||
import { generateRandomId } from '../util/random';
|
import { generateRandomId } from '../util/random';
|
||||||
import { Course } from './Course';
|
import { Course } from './Course';
|
||||||
|
export interface Wallpaper {
|
||||||
|
type: string;
|
||||||
|
data?: string;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a user's schedule that is stored in the extension
|
* Represents a user's schedule that is stored in the extension
|
||||||
@@ -13,6 +17,8 @@ export class UserSchedule {
|
|||||||
hours: number;
|
hours: number;
|
||||||
/** Unix timestamp of when the schedule was last updated */
|
/** Unix timestamp of when the schedule was last updated */
|
||||||
updatedAt: number;
|
updatedAt: number;
|
||||||
|
/** Wallpaper for this schedule */
|
||||||
|
wallpaper?: Wallpaper;
|
||||||
|
|
||||||
constructor(schedule: Serialized<UserSchedule>) {
|
constructor(schedule: Serialized<UserSchedule>) {
|
||||||
this.courses = schedule.courses.map(c => new Course(c));
|
this.courses = schedule.courses.map(c => new Course(c));
|
||||||
|
|||||||
Reference in New Issue
Block a user