Improved client handling and episode models
This commit is contained in:
25
EstusShots.Shared/Dto/Episode.cs
Normal file
25
EstusShots.Shared/Dto/Episode.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
|
||||
namespace EstusShots.Shared.Dto
|
||||
{
|
||||
public class Episode
|
||||
{
|
||||
public Guid EpisodeId { get; set; }
|
||||
|
||||
public int Number { get; set; }
|
||||
|
||||
public string Title { get; set; }
|
||||
|
||||
public DateTime DateTime { get; set; }
|
||||
|
||||
public DateTime Start { get; set; }
|
||||
|
||||
public DateTime? End { get; set; }
|
||||
|
||||
public Guid SeasonId { get; set; }
|
||||
|
||||
public Season Season { get; set; }
|
||||
|
||||
public string Displayname => $"S{Season.Number:D2}E{Number:D2}";
|
||||
}
|
||||
}
|
||||
21
EstusShots.Shared/Dto/Season.cs
Normal file
21
EstusShots.Shared/Dto/Season.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
|
||||
namespace EstusShots.Shared.Dto
|
||||
{
|
||||
public class Season
|
||||
{
|
||||
public Guid SeasonId { get; set; }
|
||||
|
||||
public int Number { get; set; }
|
||||
|
||||
public string Game { get; set; } = default!;
|
||||
|
||||
public string? Description { get; set; }
|
||||
|
||||
public DateTime Start { get; set; }
|
||||
|
||||
public DateTime? End { get; set; }
|
||||
|
||||
public string DisplayName => $"S{Number:D2} {Game}";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user