From 06c38cea55fa2c43d1fd4b312be3a1af50ba8325 Mon Sep 17 00:00:00 2001 From: Simon Schulze Date: Tue, 17 Oct 2023 22:05:38 +0200 Subject: [PATCH] Add team option for VoteModel --- .../Models/Reviews/VoteModel.cs | 2 ++ .../Models/Teams/TeamInfoModel.cs | 12 ++++++++++++ .../iRLeagueApiCore.Common.csproj | 2 +- 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 src/iRLeagueApiCore.Common/Models/Teams/TeamInfoModel.cs diff --git a/src/iRLeagueApiCore.Common/Models/Reviews/VoteModel.cs b/src/iRLeagueApiCore.Common/Models/Reviews/VoteModel.cs index 0140c97..f2ef92a 100644 --- a/src/iRLeagueApiCore.Common/Models/Reviews/VoteModel.cs +++ b/src/iRLeagueApiCore.Common/Models/Reviews/VoteModel.cs @@ -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; } } diff --git a/src/iRLeagueApiCore.Common/Models/Teams/TeamInfoModel.cs b/src/iRLeagueApiCore.Common/Models/Teams/TeamInfoModel.cs new file mode 100644 index 0000000..c2e4919 --- /dev/null +++ b/src/iRLeagueApiCore.Common/Models/Teams/TeamInfoModel.cs @@ -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; +} diff --git a/src/iRLeagueApiCore.Common/iRLeagueApiCore.Common.csproj b/src/iRLeagueApiCore.Common/iRLeagueApiCore.Common.csproj index d145c73..da4b3c8 100644 --- a/src/iRLeagueApiCore.Common/iRLeagueApiCore.Common.csproj +++ b/src/iRLeagueApiCore.Common/iRLeagueApiCore.Common.csproj @@ -18,7 +18,7 @@ Library net6.0 iRLeagueApiCore.Common - 0.9.3 + 0.10.0-dev.1 Simon Schulze Simon Schulze enable