Skip to content

Commit

Permalink
Merge pull request #33 from SSchulze1989/develop
Browse files Browse the repository at this point in the history
v0.5.0
  • Loading branch information
SSchulze1989 authored Mar 7, 2023
2 parents d3392b6 + d4aafbe commit 94922ed
Show file tree
Hide file tree
Showing 11 changed files with 85 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
namespace iRLeagueApiCore.Common.Models;

[DataContract]
public sealed class ChampSeasonInfoModel
{
[DataMember]
public long ChampSeasonId { get; set; }
[DataMember]
public long ChampionshipId { get; set; }
[DataMember]
public long SeasonId { get; set; }
[DataMember]
public string ChampionshipName { get; set; } = string.Empty;
[DataMember]
public string SeasonName { get; set; } = string.Empty;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
namespace iRLeagueApiCore.Common.Models;

[DataContract]
public sealed class ChampSeasonModel : PutChampSeasonModel
{
[DataMember]
public long ChampSeasonId { get; set; }
[DataMember]
public long ChampionshipId { get; set; }
[DataMember]
public long SeasonId { get; set; }
[DataMember]
public string SeasonName { get; set; } = string.Empty;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace iRLeagueApiCore.Common.Models;

[DataContract]
public sealed class ChampionshipModel : PutChampionshipModel
{
[DataMember]
public long ChampionshipId { get; set; }
[DataMember]
public IReadOnlyCollection<ChampSeasonInfoModel> Seasons { get; set; } = Array.Empty<ChampSeasonInfoModel>();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
namespace iRLeagueApiCore.Common.Models;

[DataContract]
public class PostChampSeasonModel
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace iRLeagueApiCore.Common.Models;

[DataContract]
public class PostChampionshipModel
{
[DataMember]
public string Name { get; set; } = string.Empty;
[DataMember]
public string DisplayName { get; set; } = string.Empty;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
namespace iRLeagueApiCore.Common.Models;

[DataContract]
public class PutChampSeasonModel : PostChampSeasonModel
{
[DataMember]
public string ChampionshipName { get; set; } = string.Empty;
[DataMember]
public string ChampionshipDisplayName { get; set; } = string.Empty;
[DataMember]
public StandingConfigModel? StandingConfig { get; set; }
[DataMember]
public ICollection<ResultConfigInfoModel> ResultConfigs { get; set; } = new List<ResultConfigInfoModel>();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
namespace iRLeagueApiCore.Common.Models;

[DataContract]
public class PutChampionshipModel : PostChampionshipModel
{
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ public class PostResultConfigModel
[DataMember]
public int ResultsPerTeam { get; set; }
[DataMember]
public StandingConfigModel? StandingConfig { get; set; }
[DataMember]
public IList<ScoringModel> Scorings { get; set; } = new List<ScoringModel>();
[DataMember]
public ICollection<ResultFilterModel> FiltersForPoints { get; set; } = new List<ResultFilterModel>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ public class ResultConfigInfoModel
[DataMember]
public long ResultConfigId { get; set; }
[DataMember]
public long ChampSeasonId { get; set; }
[DataMember]
public string ChampionshipName { get; set; } = string.Empty;
[DataMember]
public string Name { get; set; } = string.Empty;
[DataMember]
public string DisplayName { get; set; } = string.Empty;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,8 @@ public class ResultConfigModel : PutResultConfigModel
public long LeagueId { get; set; }
[DataMember]
public long ResultConfigId { get; set; }
[DataMember]
public long ChampSeasonId { get; set; }
[DataMember]
public string ChampionshipName { get; set; } = string.Empty;
}
2 changes: 1 addition & 1 deletion src/iRLeagueApiCore.Common/iRLeagueApiCore.Common.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<OutputType>Library</OutputType>
<TargetFramework>net6.0</TargetFramework>
<PackageId>iRLeagueApiCore.Common</PackageId>
<Version>0.4.2</Version>
<Version>0.5.0</Version>
<Authors>Simon Schulze</Authors>
<Company>Simon Schulze</Company>
<ImplicitUsings>enable</ImplicitUsings>
Expand Down

0 comments on commit 94922ed

Please sign in to comment.