Files
chapter-organizer/WebApp/Services/IEventOccurrenceService.cs
poprhythm ecd6173a44 Refactor event occurrence parsing to unify section header handling and event count tracking
This commit updates the EventOccurrenceParseResult and EventOccurrenceParserResult classes to consolidate the handling of skipped section headers and event counts into a single set of properties. The previous separate lists and counts for middle school and high school sections have been replaced with a unified approach, improving clarity and maintainability. Additionally, the EventOccurrenceParserService has been modified to reflect these changes, ensuring consistent behavior across the application. This refactor enhances the overall structure of the event parsing logic.
2026-01-10 18:19:16 -05:00

23 lines
676 B
C#

using Core.Entities;
namespace WebApp.Services;
public interface IEventOccurrenceService
{
/// <summary>
/// Gets all event occurrences.
/// </summary>
Task<IEnumerable<EventOccurrence>> GetEventOccurrencesAsync();
/// <summary>
/// Gets event occurrences within the specified date range.
/// </summary>
Task<IEnumerable<EventOccurrence>> GetEventOccurrencesForDateRangeAsync(DateTime start, DateTime end);
/// <summary>
/// Gets all teams for the specified event definition IDs, including students.
/// </summary>
Task<Dictionary<int, List<Team>>> GetTeamsByEventDefinitionIdsAsync(IEnumerable<int> eventDefinitionIds);
}