Skip to content

Commit

Permalink
feat: update Lesson model
Browse files Browse the repository at this point in the history
  • Loading branch information
maelgangloff committed Oct 7, 2023
1 parent 89cbeba commit efd28e7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
9 changes: 5 additions & 4 deletions src/models/Calendar/HomeworkAssignment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,17 @@ import { User } from '../Common'

export interface HomeworkAssignment {
id: string
title: string
html: string
dueDateTime: string
title: string | null
html: string | null
dueDateTime: string | null
dueDate: string | null
done: boolean
deliverWorkOnline: boolean
onlineDeliveryUrl: null | string
subject: Subject
subject?: Subject
attachments?: Attachment[]
teacher?: User
submissionAllowed: null | any
}

/*
Expand Down
14 changes: 12 additions & 2 deletions src/models/Calendar/Lesson.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { User } from '../Common'
import { Attachment } from '../School'
import { HomeworkAssignment } from './HomeworkAssignment'

export interface Subject {
Expand All @@ -13,9 +14,18 @@ export interface Lesson {
endDateTime: string
title: string
location: string
locationComplement: any
locationComplement?: any
anyHomeworkToDoForTheLesson: boolean
anyHomeworkToDoAfterTheLesson: boolean
anyContent: boolean
canceled: boolean
contents?: any
contents?: Array<{
id: string
html: string
title: string
url: string | null
attachments: Attachment[]
}>
teachers: User[]
subject: Subject
toDoForTheLesson?: HomeworkAssignment[]
Expand Down

0 comments on commit efd28e7

Please sign in to comment.