Skip to content

Commit

Permalink
Add team option for VoteModel
Browse files Browse the repository at this point in the history
  • Loading branch information
SSchulze1989 committed Oct 17, 2023
1 parent 21c3274 commit 06c38ce
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/iRLeagueApiCore.Common/Models/Reviews/VoteModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ public class VoteModel
public string Description { get; set; } = string.Empty;
[DataMember]
public MemberInfoModel? MemberAtFault { get; set; }
[DataMember]
public TeamInfoModel? TeamAtFault { get; set; }
}
12 changes: 12 additions & 0 deletions src/iRLeagueApiCore.Common/Models/Teams/TeamInfoModel.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
namespace iRLeagueApiCore.Common.Models;

[DataContract]
public sealed class TeamInfoModel
{
[DataMember]
public long TeamId { get; set; }
[DataMember]
public string Name { get; set; } = string.Empty;
[DataMember]
public string TeamColor { 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.9.3</Version>
<Version>0.10.0-dev.1</Version>
<Authors>Simon Schulze</Authors>
<Company>Simon Schulze</Company>
<ImplicitUsings>enable</ImplicitUsings>
Expand Down

0 comments on commit 06c38ce

Please sign in to comment.