2024-11-01 07:40:53 +00:00
|
|
|
|
using Demo.Data.RemoteData.RemoteDataBase.DAO;
|
|
|
|
|
using Demo.domain.Models;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace Demo.Data.Repository
|
|
|
|
|
{
|
|
|
|
|
public interface IPresenceRepository
|
|
|
|
|
{
|
|
|
|
|
void SavePresence(List<PresenceLocalEntity> presences);
|
|
|
|
|
List<PresenceLocalEntity> GetPresenceByGroup(int groupId);
|
|
|
|
|
List<PresenceLocalEntity> GetPresenceByGroupAndDate(int groupId, DateTime date);
|
2024-11-05 18:36:49 +00:00
|
|
|
|
DateOnly? GetLastDateByGroupId(int groupId);
|
2024-11-06 09:07:50 +00:00
|
|
|
|
public GroupPresenceSummary GetGeneralPresenceForGroup(int groupId);
|
2024-11-08 07:56:52 +00:00
|
|
|
|
bool UpdateAtt(Guid UserGuid, int groupId, int firstLesson, int lastLesson, DateOnly date, bool isAttendance);
|
|
|
|
|
|
2024-11-05 18:36:49 +00:00
|
|
|
|
void MarkUserAsAbsent(Guid userGuid, int firstLessonNumber, int lastLessonNumber);
|
2024-11-01 07:40:53 +00:00
|
|
|
|
void AddPresence(PresenceLocalEntity presence);
|
2024-11-07 07:35:57 +00:00
|
|
|
|
List<PresenceDao> GetAttendanceByGroup(int groupId);
|
2024-11-01 07:40:53 +00:00
|
|
|
|
}
|
|
|
|
|
}
|