Skip to content

Commit

Permalink
Add TempleEntrance
Browse files Browse the repository at this point in the history
Closes #14
  • Loading branch information
pierresaid committed Nov 8, 2020
1 parent e8d3ff5 commit 4c7f873
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
3 changes: 2 additions & 1 deletion API/Enums/Feast.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public enum Feast
PaschaTuesday = 6,
PaschaWednesday = 7,
PaschaThursday = 8,
PaschaFriday = 9
PaschaFriday = 9,
TempleEntrance = 10
}
}
25 changes: 25 additions & 0 deletions API/Repositories/Feasts/TempleEntrance.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
using Katameros.DTOs;
using Katameros.Enums;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Katameros.Repositories
{
public partial class FeastsRepository
{
private async Task<DayReadings> ConstructTempleEntrance()
{
DayReadings dayReadings = new DayReadings
{
Title = await GetFeastTranslation(Feast.TempleEntrance),
Sections = new List<Section>
{
await _readingsRepository.MakeVespers("19.116:16-19", "42.2:15-20"),
await _readingsRepository.MakeMatins("19.66:13-15", "42.2:40-52", null),
await _readingsRepository.MakeLitugy("50.3:1-12", "61.1:12-21", "44.15:13-21", "19.50:14,23", "42.2:21-39")
}
};
return dayReadings;
}
}
}
1 change: 1 addition & 0 deletions API/Repositories/FeastsRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public FeastCalc GetDayFeast(DateTime gregorianDate, LocalDate copticDate, int e
new FeastCalc(Feast.Christmas, new DateTime(1, 01, 07), ConstructChristmas),
new FeastCalc(Feast.Ascension, 39, null),
new FeastCalc(Feast.LazarusSaturday, -8, ConstructLazarusSaturday),
new FeastCalc(Feast.TempleEntrance, new LocalDate(1, 6, 8, CalendarSystem.Coptic), ConstructTempleEntrance),
new FeastCalc(Feast.PalmSunday, -7, ConstructPalmSunday),
new FeastCalc(Feast.PaschaMonday, -6, ConstructPaschaMonday),
};
Expand Down

0 comments on commit 4c7f873

Please sign in to comment.