presence/domain/Models/Presence.cs

32 lines
865 B
C#
Raw Normal View History

2024-11-01 19:07:13 +00:00
namespace Demo.Domain.Models
{
public class Presence
{
public required User User{get; set; }
public bool IsAttedance { get; set; } = true;
public required DateOnly Date { get; set; }
public required int LessonNumber { get; set; }
}
2024-11-08 17:42:34 +00:00
public class PresencePost
{
public required int firstLesson {get; set; }
public required int lastLesson {get; set; }
public required int groupID {get; set; }
public required DateOnly date {get; set; }
}
2024-11-11 07:01:04 +00:00
public class PresenceGetRequest
{
public int groupID { get; set; }
public DateOnly startDate { get; set; }
public DateOnly endDate { get; set; }
}
public class PresenceResponce
{
public string GroupName { get; set; }
public List<UserPresenceInfo> Users { get; set; }
}
2024-11-01 19:07:13 +00:00
}