From 387228a3cfd54b9c320b4687ae6d79f04974a87c Mon Sep 17 00:00:00 2001 From: sandre Date: Fri, 23 Jan 2026 15:03:38 +0100 Subject: [PATCH] Add an interface for the stats repo --- .../Repositories/IStatsRepository.cs | 13 +++++++++++++ .../StatsByAircraftRepository.cs | 2 +- .../StatsByDzRepository.cs | 2 +- .../StatsByGearRepository.cs | 2 +- .../StatsByJumpTypeRepository.cs | 2 +- .../StatsByYearByJumpTypeRepository.cs | 2 +- .../StatsByYearRepository.cs | 2 +- .../StatsForLastMonthByDzRepository.cs | 2 +- .../StatsForLastMonthByJumpTypeRepository.cs | 2 +- .../StatsForLastYearByDzRepository.cs | 2 +- .../StatsForLastYearByJumpTypeRepository.cs | 2 +- 11 files changed, 23 insertions(+), 10 deletions(-) create mode 100644 Back/skydiveLogs-api.DomainService/Repositories/IStatsRepository.cs diff --git a/Back/skydiveLogs-api.DomainService/Repositories/IStatsRepository.cs b/Back/skydiveLogs-api.DomainService/Repositories/IStatsRepository.cs new file mode 100644 index 0000000..0430fc7 --- /dev/null +++ b/Back/skydiveLogs-api.DomainService/Repositories/IStatsRepository.cs @@ -0,0 +1,13 @@ +using skydiveLogs_api.Domain; + +namespace skydiveLogs_api.DomainService.Repositories +{ + public interface IStatsRepository : IRepository + { + #region Public Methods + + T GetAll(User user); + + #endregion Public Methods + } +} \ No newline at end of file diff --git a/Back/skydiveLogs-api.Infrastructure/StatsByAircraftRepository.cs b/Back/skydiveLogs-api.Infrastructure/StatsByAircraftRepository.cs index 8cb46b4..4ef0320 100644 --- a/Back/skydiveLogs-api.Infrastructure/StatsByAircraftRepository.cs +++ b/Back/skydiveLogs-api.Infrastructure/StatsByAircraftRepository.cs @@ -6,7 +6,7 @@ using System.Collections.Generic; namespace skydiveLogs_api.Infrastructure { - public class StatsByAircraftRepository : IStatsByAircraftRepository + public class StatsByAircraftRepository : IStatsRepository { #region Public Constructors diff --git a/Back/skydiveLogs-api.Infrastructure/StatsByDzRepository.cs b/Back/skydiveLogs-api.Infrastructure/StatsByDzRepository.cs index 0771146..afa293f 100644 --- a/Back/skydiveLogs-api.Infrastructure/StatsByDzRepository.cs +++ b/Back/skydiveLogs-api.Infrastructure/StatsByDzRepository.cs @@ -6,7 +6,7 @@ using System.Collections.Generic; namespace skydiveLogs_api.Infrastructure { - public class StatsByDzRepository : IStatsByDzRepository + public class StatsByDzRepository : IStatsRepository { #region Public Constructors diff --git a/Back/skydiveLogs-api.Infrastructure/StatsByGearRepository.cs b/Back/skydiveLogs-api.Infrastructure/StatsByGearRepository.cs index 6f65985..6829e2f 100644 --- a/Back/skydiveLogs-api.Infrastructure/StatsByGearRepository.cs +++ b/Back/skydiveLogs-api.Infrastructure/StatsByGearRepository.cs @@ -6,7 +6,7 @@ using System.Collections.Generic; namespace skydiveLogs_api.Infrastructure { - public class StatsByGearRepository : IStatsByGearRepository + public class StatsByGearRepository : IStatsRepository { #region Public Constructors diff --git a/Back/skydiveLogs-api.Infrastructure/StatsByJumpTypeRepository.cs b/Back/skydiveLogs-api.Infrastructure/StatsByJumpTypeRepository.cs index 0ee2f21..e584793 100644 --- a/Back/skydiveLogs-api.Infrastructure/StatsByJumpTypeRepository.cs +++ b/Back/skydiveLogs-api.Infrastructure/StatsByJumpTypeRepository.cs @@ -6,7 +6,7 @@ using System.Collections.Generic; namespace skydiveLogs_api.Infrastructure { - public class StatsByJumpTypeRepository : IStatsByJumpTypeRepository + public class StatsByJumpTypeRepository : IStatsRepository { #region Public Constructors diff --git a/Back/skydiveLogs-api.Infrastructure/StatsByYearByJumpTypeRepository.cs b/Back/skydiveLogs-api.Infrastructure/StatsByYearByJumpTypeRepository.cs index c35e296..1e1e634 100644 --- a/Back/skydiveLogs-api.Infrastructure/StatsByYearByJumpTypeRepository.cs +++ b/Back/skydiveLogs-api.Infrastructure/StatsByYearByJumpTypeRepository.cs @@ -6,7 +6,7 @@ using System.Collections.Generic; namespace skydiveLogs_api.Infrastructure { - public class StatsByYearByJumpTypeRepository : IStatsByYearByJumpTypeRepository + public class StatsByYearByJumpTypeRepository : IStatsRepository { #region Public Constructors diff --git a/Back/skydiveLogs-api.Infrastructure/StatsByYearRepository.cs b/Back/skydiveLogs-api.Infrastructure/StatsByYearRepository.cs index 085b96a..4021fc8 100644 --- a/Back/skydiveLogs-api.Infrastructure/StatsByYearRepository.cs +++ b/Back/skydiveLogs-api.Infrastructure/StatsByYearRepository.cs @@ -6,7 +6,7 @@ using System.Collections.Generic; namespace skydiveLogs_api.Infrastructure { - public class StatsByYearRepository : IStatsByYearRepository + public class StatsByYearRepository : IStatsRepository { #region Public Constructors diff --git a/Back/skydiveLogs-api.Infrastructure/StatsForLastMonthByDzRepository.cs b/Back/skydiveLogs-api.Infrastructure/StatsForLastMonthByDzRepository.cs index b68cdd6..1968380 100644 --- a/Back/skydiveLogs-api.Infrastructure/StatsForLastMonthByDzRepository.cs +++ b/Back/skydiveLogs-api.Infrastructure/StatsForLastMonthByDzRepository.cs @@ -6,7 +6,7 @@ using System.Collections.Generic; namespace skydiveLogs_api.Infrastructure { - public class StatsForLastMonthByDzRepository : IStatsForLastMonthByDzRepository + public class StatsForLastMonthByDzRepository : IStatsRepository { #region Public Constructors diff --git a/Back/skydiveLogs-api.Infrastructure/StatsForLastMonthByJumpTypeRepository.cs b/Back/skydiveLogs-api.Infrastructure/StatsForLastMonthByJumpTypeRepository.cs index 4416306..fa7e46f 100644 --- a/Back/skydiveLogs-api.Infrastructure/StatsForLastMonthByJumpTypeRepository.cs +++ b/Back/skydiveLogs-api.Infrastructure/StatsForLastMonthByJumpTypeRepository.cs @@ -6,7 +6,7 @@ using System.Collections.Generic; namespace skydiveLogs_api.Infrastructure { - public class StatsForLastMonthByJumpTypeRepository : IStatsForLastMonthByJumpTypeRepository + public class StatsForLastMonthByJumpTypeRepository : IStatsRepository { #region Public Constructors diff --git a/Back/skydiveLogs-api.Infrastructure/StatsForLastYearByDzRepository.cs b/Back/skydiveLogs-api.Infrastructure/StatsForLastYearByDzRepository.cs index 38dd2c3..7aa8f7c 100644 --- a/Back/skydiveLogs-api.Infrastructure/StatsForLastYearByDzRepository.cs +++ b/Back/skydiveLogs-api.Infrastructure/StatsForLastYearByDzRepository.cs @@ -6,7 +6,7 @@ using System.Collections.Generic; namespace skydiveLogs_api.Infrastructure { - public class StatsForLastYearByDzRepository : IStatsForLastYearByDzRepository + public class StatsForLastYearByDzRepository : IStatsRepository { #region Public Constructors diff --git a/Back/skydiveLogs-api.Infrastructure/StatsForLastYearByJumpTypeRepository.cs b/Back/skydiveLogs-api.Infrastructure/StatsForLastYearByJumpTypeRepository.cs index fd7ae3f..512eb8e 100644 --- a/Back/skydiveLogs-api.Infrastructure/StatsForLastYearByJumpTypeRepository.cs +++ b/Back/skydiveLogs-api.Infrastructure/StatsForLastYearByJumpTypeRepository.cs @@ -6,7 +6,7 @@ using System.Collections.Generic; namespace skydiveLogs_api.Infrastructure { - public class StatsForLastYearByJumpTypeRepository : IStatsForLastYearByJumpTypeRepository + public class StatsForLastYearByJumpTypeRepository : IStatsRepository { #region Public Constructors