2024-11-11 09:07:11 +00:00
|
|
|
|
using data.RemoteData.RemoteDataBase.DAO;
|
|
|
|
|
using domain.Models;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace data.Repository
|
|
|
|
|
{
|
|
|
|
|
public interface IPresenceRepository
|
|
|
|
|
{
|
|
|
|
|
void SavePresence(List<PresenceLocalEntity> presences);
|
|
|
|
|
List<PresenceLocalEntity> GetPresenceByGroup(int groupId);
|
|
|
|
|
List<PresenceLocalEntity> GetPresenceByGroupAndDate(int groupId, DateTime date);
|
|
|
|
|
DateOnly? GetLastDateByGroupId(int groupId);
|
|
|
|
|
public GroupPresenceSummary GetGeneralPresenceForGroup(int groupId);
|
2024-11-13 09:00:26 +00:00
|
|
|
|
bool UpdateAttention(Guid UserGuid, int groupId, int firstLesson, int lastLesson, DateOnly date, bool isAttendance);
|
2024-11-11 09:07:11 +00:00
|
|
|
|
|
|
|
|
|
void MarkUserAsAbsent(Guid userGuid, int firstLessonNumber, int lastLessonNumber);
|
|
|
|
|
void AddPresence(PresenceLocalEntity presence);
|
|
|
|
|
List<PresenceDao> GetAttendanceByGroup(int groupId);
|
|
|
|
|
}
|
|
|
|
|
}
|