From 13585435d4b62bc341029af4b52885a870524f50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tommy=20=C3=96man?= Date: Tue, 17 Mar 2020 23:35:57 +0100 Subject: [PATCH] Add project files. --- TournamentTracker.sln | 25 +++++++++++++++++++++++++ TrackerLibrary/MatchupEntryModel.cs | 23 +++++++++++++++++++++++ TrackerLibrary/MatchupModel.cs | 25 +++++++++++++++++++++++++ TrackerLibrary/PersonModel.cs | 14 ++++++++++++++ TrackerLibrary/PrizeModel.cs | 15 +++++++++++++++ TrackerLibrary/TeamModel.cs | 12 ++++++++++++ TrackerLibrary/TournamentModel.cs | 15 +++++++++++++++ TrackerLibrary/TrackerLibrary.csproj | 7 +++++++ 8 files changed, 136 insertions(+) create mode 100644 TournamentTracker.sln create mode 100644 TrackerLibrary/MatchupEntryModel.cs create mode 100644 TrackerLibrary/MatchupModel.cs create mode 100644 TrackerLibrary/PersonModel.cs create mode 100644 TrackerLibrary/PrizeModel.cs create mode 100644 TrackerLibrary/TeamModel.cs create mode 100644 TrackerLibrary/TournamentModel.cs create mode 100644 TrackerLibrary/TrackerLibrary.csproj diff --git a/TournamentTracker.sln b/TournamentTracker.sln new file mode 100644 index 0000000..7a7b604 --- /dev/null +++ b/TournamentTracker.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.29905.134 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TrackerLibrary", "TrackerLibrary\TrackerLibrary.csproj", "{B4FFD708-5D53-4D58-B5A6-5691020EF6DC}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {B4FFD708-5D53-4D58-B5A6-5691020EF6DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B4FFD708-5D53-4D58-B5A6-5691020EF6DC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B4FFD708-5D53-4D58-B5A6-5691020EF6DC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B4FFD708-5D53-4D58-B5A6-5691020EF6DC}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {1427E7BF-7875-41CF-953C-A934C10C4A3D} + EndGlobalSection +EndGlobal diff --git a/TrackerLibrary/MatchupEntryModel.cs b/TrackerLibrary/MatchupEntryModel.cs new file mode 100644 index 0000000..62fe132 --- /dev/null +++ b/TrackerLibrary/MatchupEntryModel.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace TrackerLibrary +{ + public class MatchupEntryModel + { + /// + /// Represents one team in the matchup + /// + public TeamModel TeamCompeting { get; set; } + /// + /// Represents the score for this particular team + /// + public double Score { get; set; } + /// + /// Represents the matchup that this team came + /// from as winner + /// + public MatchupModel ParentMatchup { get; set; } + } +} diff --git a/TrackerLibrary/MatchupModel.cs b/TrackerLibrary/MatchupModel.cs new file mode 100644 index 0000000..d672b36 --- /dev/null +++ b/TrackerLibrary/MatchupModel.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace TrackerLibrary +{ + /// + /// Represents one match in the tournament. + /// + public class MatchupModel + { + /// + /// The set of teams that were involved in this match. + /// + public List Entries { get; set; } = new List(); + /// + /// The winner of the match. + /// + public TeamModel Winner { get; set; } + /// + /// Which round this match is a part of. + /// + public int MatchupRound { get; set; } + } +} diff --git a/TrackerLibrary/PersonModel.cs b/TrackerLibrary/PersonModel.cs new file mode 100644 index 0000000..465a0cc --- /dev/null +++ b/TrackerLibrary/PersonModel.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace TrackerLibrary +{ + public class PersonModel + { + public string FirstName { get; set; } + public string LastName { get; set; } + public string EmailAddress { get; set; } + public string CellPhoneNumber { get; set; } + } +} diff --git a/TrackerLibrary/PrizeModel.cs b/TrackerLibrary/PrizeModel.cs new file mode 100644 index 0000000..6b390e3 --- /dev/null +++ b/TrackerLibrary/PrizeModel.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace TrackerLibrary +{ + public class PrizeModel + + { + public int PlaceNumber { get; set; } + public string PlaceName { get; set; } + public decimal PrizeAmount { get; set; } + public double PrizePercentage { get; set; } + } +} diff --git a/TrackerLibrary/TeamModel.cs b/TrackerLibrary/TeamModel.cs new file mode 100644 index 0000000..0eaac01 --- /dev/null +++ b/TrackerLibrary/TeamModel.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace TrackerLibrary +{ + public class TeamModel + { + public List TeamMembers { get; set; } = new List(); + public string TeamName { get; set; } + } +} diff --git a/TrackerLibrary/TournamentModel.cs b/TrackerLibrary/TournamentModel.cs new file mode 100644 index 0000000..394278d --- /dev/null +++ b/TrackerLibrary/TournamentModel.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace TrackerLibrary +{ + public class TournamentModel + { + public string TournamentName { get; set; } + public decimal EntryFee { get; set; } + public List EnteredTeams { get; set; } = new List(); + public List Prizes { get; set; } = new List(); + public List> MyProperty { get; set; } = new List>(); + } +} diff --git a/TrackerLibrary/TrackerLibrary.csproj b/TrackerLibrary/TrackerLibrary.csproj new file mode 100644 index 0000000..9f5c4f4 --- /dev/null +++ b/TrackerLibrary/TrackerLibrary.csproj @@ -0,0 +1,7 @@ + + + + netstandard2.0 + + +