using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace OnlineAssessment.Domain.ViewModels
{

    public class ClassStructureViewModel
    {
        public int id { get; set; }
        public string name { get; set; }
        public List<SubjectModel> subjects { get; set; }
    }

    public class SubjectModel
    {
        public int id { get; set; }
        public string name { get; set; }
        public List<TopicModel> topics { get; set; }
    }

    public class TopicModel
    {
        public int id { get; set; }
        public string name { get; set; }
    }

    public class ClassViewModel
    {
        public int id { get; set; }
        public string slug { get; set; }
        public string name { get; set; }
        public DateTime last_updated { get; set; }
        public bool? isActive { get; set; }
    }

    public class ClassAddModel
    {

        [Required]
        [StringLength(500)]
        public string name { get; set; }
    }

    public class ClassEditModel
    {
        [Required]
        [StringLength(500)]
        public string name { get; set; }

    }
}
