2024-11-16 12:02:17 +00:00
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Linq;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
using presence.data.LocalData.Entity;
|
|
|
|
using presence.data.RemoteData.RemoteDataBase.DAO;
|
|
|
|
|
|
|
|
namespace presence.data.Repository
|
|
|
|
{
|
|
|
|
public interface IPresenceRepository
|
|
|
|
{
|
2024-11-18 15:54:36 +00:00
|
|
|
List<PresenceDao> GetPresence(int GroupId, DateOnly startData, DateOnly endData, int UserId);
|
2024-11-16 12:02:17 +00:00
|
|
|
List<PresenceDao> GetPresenceByGroup(int groupId);
|
|
|
|
List<PresenceDao> GetPresenceByGroupAndDate(int groupId, DateOnly date);
|
|
|
|
bool UncheckAttendence(int firstClass, int lastClass, DateOnly date, int userId);
|
|
|
|
bool AddPresence(PresenceDao presence);
|
2024-11-18 15:54:36 +00:00
|
|
|
bool DeletePresenceByGroup(int groupId);
|
|
|
|
bool DeletePresenceByUser(int userId);
|
|
|
|
bool DeletePresenceByDate(DateOnly startData, DateOnly endData);
|
2024-12-22 12:37:22 +00:00
|
|
|
void UpdateAttendance(PresenceDao presence);
|
2024-11-18 15:54:36 +00:00
|
|
|
|
2024-11-16 12:02:17 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
}
|