Skip to content
Snippets Groups Projects
Commit 55853e0d authored by Rasmus Bengtsson's avatar Rasmus Bengtsson
Browse files

feat: created model structure for courses and files

parent baa48288
No related branches found
No related tags found
1 merge request!266 create course model
namespace Models;
public class Class1
{
}
using System.ComponentModel;
namespace Models.Database;
public class Course
{
public string ID { get; set; }
public CourseInfo CourseInfo { get; set; }
public List<Teacher> Teachers { get; set; }
}
\ No newline at end of file
namespace Models.Database;
public class CourseInfo
{
public string ID { get; set; }
public string CourseName { get; set; }
public string SWECourseID { get; set; }
public string InstitutionID { get; set; }
public string EducationLevel { get; set; }
public string Subject { get; set; }
public List<string> Requirements { get; set; }
public string CourseAim { get; set; }
public string CourseContents { get; set; }
public string CourseDescription { get; set; }
public List<ExaminationModule> ExaminationModules { get; set; }
public List<Inode> CanvasModules { get; set; }
public List<Inode> CourseFiles { get; set; }
}
\ No newline at end of file
namespace Models.Database;
public class ExaminationModule
{
public string ID { get; set; }
public string ExaminationType { get; set; }
public float value { get; set; }
public List<char> GradeScale { get; set; }
}
\ No newline at end of file
namespace Models.Database;
public class Inode
{
public string ID { get; set; }
public InodeType InodeType { get; set; }
public bool Hidden { get; set; }
public string Name { get; set; }
public Inode? Parent { get; set; }
public string S3Path { get; set; }
}
public enum InodeType
{
DIRECTORY,
FILE
}
\ No newline at end of file
namespace Models.Database;
public class Teacher
{
public string ID { get; set; }
public string Name { get; set; }
public string Titel { get; set; }
public string Email { get; set; }
public string Phone { get; set; }
public string Office { get; set; }
}
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment