erp-platform/api/src/Kurs.Platform.Application.Contracts/Classroom/ClassroomDto.cs

58 lines
1.8 KiB
C#
Raw Normal View History

2025-08-25 18:01:57 +00:00
using System;
using Volo.Abp.Application.Dtos;
2025-08-26 05:59:39 +00:00
namespace Kurs.Platform.Classrooms;
2025-08-25 18:01:57 +00:00
2025-08-26 05:59:39 +00:00
public class ClassroomDto : FullAuditedEntityDto<Guid>
2025-08-25 18:01:57 +00:00
{
public string Name { get; set; }
public string Description { get; set; }
public string Subject { get; set; }
public Guid TeacherId { get; set; }
public string TeacherName { get; set; }
public DateTime ScheduledStartTime { get; set; }
public DateTime? ActualStartTime { get; set; }
public DateTime? EndTime { get; set; }
public int Duration { get; set; }
public int MaxParticipants { get; set; }
public bool IsActive { get; set; }
public bool IsScheduled { get; set; }
public int ParticipantCount { get; set; }
public bool CanJoin { get; set; }
}
2025-08-26 05:59:39 +00:00
public class CreateClassroomDto
2025-08-25 18:01:57 +00:00
{
public string Name { get; set; }
public string Description { get; set; }
public string Subject { get; set; }
public DateTime ScheduledStartTime { get; set; }
public int Duration { get; set; } = 60;
public int MaxParticipants { get; set; } = 30;
}
2025-08-26 05:59:39 +00:00
public class UpdateClassroomDto
2025-08-25 18:01:57 +00:00
{
public string Name { get; set; }
public string Description { get; set; }
public string Subject { get; set; }
public DateTime ScheduledStartTime { get; set; }
public int Duration { get; set; }
public int MaxParticipants { get; set; }
}
2025-08-26 05:59:39 +00:00
public class GetClassroomListDto : PagedAndSortedResultRequestDto
2025-08-25 18:01:57 +00:00
{
public bool? IsActive { get; set; }
public Guid? TeacherId { get; set; }
}
2025-08-26 05:59:39 +00:00
public class ClassAttendanceDto : EntityDto<Guid>
2025-08-25 18:01:57 +00:00
{
public Guid SessionId { get; set; }
public Guid StudentId { get; set; }
public string StudentName { get; set; }
public DateTime JoinTime { get; set; }
public DateTime? LeaveTime { get; set; }
public int TotalDurationMinutes { get; set; }
}