Files
studystructure/StudyStructure/Structs.swift
2021-08-01 12:34:14 +02:00

36 lines
558 B
Swift

//
// Course.swift
// Course
//
// Created by Felix Förtsch on 01.08.21.
//
import Foundation
struct Course: Codable, Hashable {
var id: String
var name: String
var description: String
var type: String
var cp: Int
}
struct SlotTypes: Codable {
var cp: Int
var amount: Int
var type: String
}
struct Curriculum : Codable {
let id: Int
let name: String
let cp: Int
let publishedDate: Date
var slotTypes: [SlotTypes]
}
struct School: Codable {
var name: String
var curriculums: [Curriculum]
}