Split tables for the stats (#6)
Reviewed-on: #6 Co-authored-by: sandre <perso@sebastienandre.com> Co-committed-by: sandre <perso@sebastienandre.com>
This commit was merged in pull request #6.
This commit is contained in:
13
Back/skydiveLogs-api.Domain/StatsByAircraft.cs
Normal file
13
Back/skydiveLogs-api.Domain/StatsByAircraft.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
namespace skydiveLogs_api.Domain
|
||||
{
|
||||
public class StatsByAircraft
|
||||
{
|
||||
public string Aircraft { get; set; }
|
||||
|
||||
public int Nb { get; set; }
|
||||
|
||||
public int Id { get; set; }
|
||||
|
||||
public User User { get; set; }
|
||||
}
|
||||
}
|
||||
13
Back/skydiveLogs-api.Domain/StatsByDz.cs
Normal file
13
Back/skydiveLogs-api.Domain/StatsByDz.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
namespace skydiveLogs_api.Domain
|
||||
{
|
||||
public class StatsByDz
|
||||
{
|
||||
public string DropZone { get; set; }
|
||||
|
||||
public int Nb { get; set; }
|
||||
|
||||
public int Id { get; set; }
|
||||
|
||||
public User User { get; set; }
|
||||
}
|
||||
}
|
||||
13
Back/skydiveLogs-api.Domain/StatsByGear.cs
Normal file
13
Back/skydiveLogs-api.Domain/StatsByGear.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
namespace skydiveLogs_api.Domain
|
||||
{
|
||||
public class StatsByGear
|
||||
{
|
||||
public string Gear { get; set; }
|
||||
|
||||
public int Nb { get; set; }
|
||||
|
||||
public int Id { get; set; }
|
||||
|
||||
public User User { get; set; }
|
||||
}
|
||||
}
|
||||
13
Back/skydiveLogs-api.Domain/StatsByJumpType.cs
Normal file
13
Back/skydiveLogs-api.Domain/StatsByJumpType.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
namespace skydiveLogs_api.Domain
|
||||
{
|
||||
public class StatsByJumpType
|
||||
{
|
||||
public string JumpType { get; set; }
|
||||
|
||||
public int Nb { get; set; }
|
||||
|
||||
public int Id { get; set; }
|
||||
|
||||
public User User { get; set; }
|
||||
}
|
||||
}
|
||||
13
Back/skydiveLogs-api.Domain/StatsByYear.cs
Normal file
13
Back/skydiveLogs-api.Domain/StatsByYear.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
namespace skydiveLogs_api.Domain
|
||||
{
|
||||
public class StatsByYear
|
||||
{
|
||||
public string Year { get; set; }
|
||||
|
||||
public int Nb { get; set; }
|
||||
|
||||
public int Id { get; set; }
|
||||
|
||||
public User User { get; set; }
|
||||
}
|
||||
}
|
||||
17
Back/skydiveLogs-api.Domain/StatsByYearByJumpType.cs
Normal file
17
Back/skydiveLogs-api.Domain/StatsByYearByJumpType.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace skydiveLogs_api.Domain
|
||||
{
|
||||
public class StatsByYearByJumpType
|
||||
{
|
||||
public string Year { get; set; }
|
||||
|
||||
public string JumpType { get; set; }
|
||||
|
||||
public int Nb { get; set; }
|
||||
|
||||
public int Id { get; set; }
|
||||
|
||||
public User User { get; set; }
|
||||
}
|
||||
}
|
||||
13
Back/skydiveLogs-api.Domain/StatsForLastMonthByDz.cs
Normal file
13
Back/skydiveLogs-api.Domain/StatsForLastMonthByDz.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
namespace skydiveLogs_api.Domain
|
||||
{
|
||||
public class StatsForLastMonthByDz
|
||||
{
|
||||
public string DropZone { get; set; }
|
||||
|
||||
public int Nb { get; set; }
|
||||
|
||||
public int Id { get; set; }
|
||||
|
||||
public User User { get; set; }
|
||||
}
|
||||
}
|
||||
13
Back/skydiveLogs-api.Domain/StatsForLastMonthByJumpType.cs
Normal file
13
Back/skydiveLogs-api.Domain/StatsForLastMonthByJumpType.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
namespace skydiveLogs_api.Domain
|
||||
{
|
||||
public class StatsForLastMonthByJumpType
|
||||
{
|
||||
public string JumpType { get; set; }
|
||||
|
||||
public int Nb { get; set; }
|
||||
|
||||
public int Id { get; set; }
|
||||
|
||||
public User User { get; set; }
|
||||
}
|
||||
}
|
||||
13
Back/skydiveLogs-api.Domain/StatsForLastYearByDz.cs
Normal file
13
Back/skydiveLogs-api.Domain/StatsForLastYearByDz.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
namespace skydiveLogs_api.Domain
|
||||
{
|
||||
public class StatsForLastYearByDz
|
||||
{
|
||||
public string DropZone { get; set; }
|
||||
|
||||
public int Nb { get; set; }
|
||||
|
||||
public int Id { get; set; }
|
||||
|
||||
public User User { get; set; }
|
||||
}
|
||||
}
|
||||
13
Back/skydiveLogs-api.Domain/StatsForLastYearByJumpType.cs
Normal file
13
Back/skydiveLogs-api.Domain/StatsForLastYearByJumpType.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
namespace skydiveLogs_api.Domain
|
||||
{
|
||||
public class StatsForLastYearByJumpType
|
||||
{
|
||||
public string JumpType { get; set; }
|
||||
|
||||
public int Nb { get; set; }
|
||||
|
||||
public int Id { get; set; }
|
||||
|
||||
public User User { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace skydiveLogs_api.Domain
|
||||
{
|
||||
public class UserStats
|
||||
{
|
||||
#region Public Constructors
|
||||
|
||||
public UserStats()
|
||||
{
|
||||
ByAircraft = new List<Statistic>();
|
||||
ByDz = new List<Statistic>();
|
||||
ByGear = new List<Statistic>();
|
||||
ByJumpType = new List<Statistic>();
|
||||
ByYear = new List<Statistic>();
|
||||
ForLastMonthByDz = new List<Statistic>();
|
||||
ForLastMonthByJumpType = new List<Statistic>();
|
||||
ForLastYearByDz = new List<Statistic>();
|
||||
ForLastYearByJumpType = new List<Statistic>();
|
||||
ByYearByJumpType = new List<Statistic>();
|
||||
}
|
||||
|
||||
#endregion Public Constructors
|
||||
|
||||
#region Public Properties
|
||||
|
||||
public IEnumerable<Statistic> ByAircraft { get; set; }
|
||||
public IEnumerable<Statistic> ByDz { get; set; }
|
||||
public IEnumerable<Statistic> ByGear { get; set; }
|
||||
public IEnumerable<Statistic> ByJumpType { get; set; }
|
||||
public IEnumerable<Statistic> ByYear { get; set; }
|
||||
public IEnumerable<Statistic> ForLastMonthByDz { get; set; }
|
||||
public IEnumerable<Statistic> ForLastMonthByJumpType { get; set; }
|
||||
public IEnumerable<Statistic> ForLastYearByDz { get; set; }
|
||||
public IEnumerable<Statistic> ForLastYearByJumpType { get; set; }
|
||||
public IEnumerable<Statistic> ByYearByJumpType { get; set; }
|
||||
public int Id { get; set; }
|
||||
public User User { get; set; }
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user