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

namespace OnlineAssessment.Domain.ViewModels
{
    public class UserGroup
    {
        public int Id { get; set; }
        public int ClassId { get; set; }
        public string Name { get; set; }
        public string Description { get; set; }
        public byte[] Photo { get; set; }
        public DateTime? CreatedOn { get; set; }
        public DateTime? UpdatedOn { get; set; }
        public bool? IsActive { get; set; }
    }

    public class UserGroupViewAllModel
    {
        public int id { get; set; }
        public string name { get; set; }
        public int student_count { get; set; }
        public bool? isMember { get; set; }
        public bool? isDefaultMember { get; set; }
        public DateTime created_on { get; set; }
        public DateTime updated_on { get; set; }
    }

    public class UserGroupViewModel
    {
        public int id { get; set; }
        public int class_id { get; set; }
        public string class_name { get; set; }
        public string name { get; set; }
        public string description { get; set; }
        public byte[] photo { get; set; }
        public DateTime? created_on { get; set; }
        public DateTime? updated_on { get; set; }
        public bool? isActive { get; set; }
        public int user_count { get; set; }
        public int exam_count { get; set; }
        public int practice_count { get; set; }
    }


    public class UserGroupAddModel
    {
        public string name { get; set; }
        public string description { get; set; }

        [Required]
        public int class_id { get; set; }
        public byte[] photo { get; set; }
    }

    public class UserGroupEditModel
    {
        public string Name { get; set; }
        public string Description { get; set; }
        public int ClassId { get; set; }
        public byte[] Photo { get; set; }
        public bool? IsActive { get; set; }
    }

    public class UserIdList
    {
        [Required]
        public List<int> IdList { get; set; }
    }

}
