Store the user statistics for the performance.
This commit is contained in:
@@ -2,10 +2,13 @@
|
||||
{
|
||||
public class Aircraft
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
public int Id { get; set; }
|
||||
|
||||
public string ImageData { get; set; }
|
||||
public string Name { get; set; }
|
||||
|
||||
public string ImageData { get; set; }
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2,6 +2,10 @@
|
||||
{
|
||||
public class DatabaseOptions
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
public string ConnectionString { get; set; }
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -4,22 +4,21 @@ namespace skydiveLogs_api.Domain
|
||||
{
|
||||
public class DropZone
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
public string Address { get; set; }
|
||||
public string Email { get; set; }
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Latitude { get; set; }
|
||||
public bool IsFavorite { get; set; }
|
||||
public string Latitude { get; set; }
|
||||
|
||||
public string Longitude { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
|
||||
public string Address { get; set; }
|
||||
|
||||
public IEnumerable<string> Type { get; set; }
|
||||
public string Website { get; set; }
|
||||
|
||||
public string Email { get; set; }
|
||||
|
||||
public IEnumerable<string> Type { get; set; }
|
||||
|
||||
public bool IsFavorite { get; set; }
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2,10 +2,12 @@
|
||||
{
|
||||
public class FavoriteDropZone
|
||||
{
|
||||
public int Id { get; set; }
|
||||
#region Public Properties
|
||||
|
||||
public DropZone DropZone { get; set; }
|
||||
|
||||
public int Id { get; set; }
|
||||
public User User { get; set; }
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2,22 +2,20 @@
|
||||
{
|
||||
public class Gear
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
|
||||
public string Manufacturer { get; set; }
|
||||
|
||||
public int MinSize { get; set; }
|
||||
|
||||
public int MaxSize { get; set; }
|
||||
#region Public Properties
|
||||
|
||||
public string Aad { get; set; }
|
||||
public int Id { get; set; }
|
||||
|
||||
public string MainCanopy { get; set; }
|
||||
|
||||
public string Manufacturer { get; set; }
|
||||
public int MaxSize { get; set; }
|
||||
public int MinSize { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string ReserveCanopy { get; set; }
|
||||
|
||||
public User User { get; set; }
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -4,28 +4,22 @@ namespace skydiveLogs_api.Domain
|
||||
{
|
||||
public class Jump
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public JumpType JumpType { get; set; }
|
||||
#region Public Properties
|
||||
|
||||
public Aircraft Aircraft { get; set; }
|
||||
|
||||
public DropZone DropZone { get; set; }
|
||||
|
||||
public Gear Gear { get; set; }
|
||||
|
||||
public User User { get; set; }
|
||||
|
||||
public int ExitAltitude { get; set; }
|
||||
|
||||
public int DeployAltitude { get; set; }
|
||||
|
||||
public bool WithCutaway { get; set; }
|
||||
|
||||
public string Notes { get; set; }
|
||||
|
||||
public DateTime JumpDate { get; set; }
|
||||
public DropZone DropZone { get; set; }
|
||||
public int ExitAltitude { get; set; }
|
||||
public Gear Gear { get; set; }
|
||||
public int Id { get; set; }
|
||||
|
||||
public bool IsSpecial { get; set; }
|
||||
public DateTime JumpDate { get; set; }
|
||||
public JumpType JumpType { get; set; }
|
||||
public string Notes { get; set; }
|
||||
public User User { get; set; }
|
||||
public bool WithCutaway { get; set; }
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
@@ -2,8 +2,12 @@
|
||||
{
|
||||
public class JumpType
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2,10 +2,12 @@
|
||||
{
|
||||
public class SimpleSummary
|
||||
{
|
||||
public int TotalJumps { get; set; }
|
||||
|
||||
public int TotalCutaways { get; set; }
|
||||
#region Public Properties
|
||||
|
||||
public Jump LastJump { get; set; }
|
||||
public int TotalCutaways { get; set; }
|
||||
public int TotalJumps { get; set; }
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2,8 +2,12 @@
|
||||
{
|
||||
public class Statistic
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
public string Label { get; set; }
|
||||
|
||||
public int Nb { get; set; }
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2,20 +2,19 @@
|
||||
{
|
||||
public class User
|
||||
{
|
||||
public int Id { get; set; }
|
||||
#region Public Properties
|
||||
|
||||
public string Email { get; set; }
|
||||
|
||||
public string FirstName { get; set; }
|
||||
|
||||
public int Id { get; set; }
|
||||
public bool IsAdmin { get; set; }
|
||||
public string Language { get; set; }
|
||||
public string LastName { get; set; }
|
||||
|
||||
public string Login { get; set; }
|
||||
|
||||
public string Password { get; set; }
|
||||
|
||||
public bool IsAdmin { get; set; }
|
||||
|
||||
public string Language { get; set; }
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
@@ -2,12 +2,13 @@
|
||||
{
|
||||
public class UserImage
|
||||
{
|
||||
public int Id { get; set; }
|
||||
#region Public Properties
|
||||
|
||||
public string Comment { get; set; }
|
||||
|
||||
public string Data { get; set; }
|
||||
|
||||
public int Id { get; set; }
|
||||
public User User { get; set; }
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
}
|
||||
40
Back/skydiveLogs-api.Domain/UserStats.cs
Normal file
40
Back/skydiveLogs-api.Domain/UserStats.cs
Normal file
@@ -0,0 +1,40 @@
|
||||
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>();
|
||||
}
|
||||
|
||||
#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 int Id { get; set; }
|
||||
public User User { get; set; }
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user