Add project files.
This commit is contained in:
25
TournamentTracker.sln
Normal file
25
TournamentTracker.sln
Normal file
@ -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
|
||||||
23
TrackerLibrary/MatchupEntryModel.cs
Normal file
23
TrackerLibrary/MatchupEntryModel.cs
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace TrackerLibrary
|
||||||
|
{
|
||||||
|
public class MatchupEntryModel
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Represents one team in the matchup
|
||||||
|
/// </summary>
|
||||||
|
public TeamModel TeamCompeting { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Represents the score for this particular team
|
||||||
|
/// </summary>
|
||||||
|
public double Score { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Represents the matchup that this team came
|
||||||
|
/// from as winner
|
||||||
|
/// </summary>
|
||||||
|
public MatchupModel ParentMatchup { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
25
TrackerLibrary/MatchupModel.cs
Normal file
25
TrackerLibrary/MatchupModel.cs
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace TrackerLibrary
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Represents one match in the tournament.
|
||||||
|
/// </summary>
|
||||||
|
public class MatchupModel
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The set of teams that were involved in this match.
|
||||||
|
/// </summary>
|
||||||
|
public List<MatchupEntryModel> Entries { get; set; } = new List<MatchupEntryModel>();
|
||||||
|
/// <summary>
|
||||||
|
/// The winner of the match.
|
||||||
|
/// </summary>
|
||||||
|
public TeamModel Winner { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Which round this match is a part of.
|
||||||
|
/// </summary>
|
||||||
|
public int MatchupRound { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
14
TrackerLibrary/PersonModel.cs
Normal file
14
TrackerLibrary/PersonModel.cs
Normal file
@ -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; }
|
||||||
|
}
|
||||||
|
}
|
||||||
15
TrackerLibrary/PrizeModel.cs
Normal file
15
TrackerLibrary/PrizeModel.cs
Normal file
@ -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; }
|
||||||
|
}
|
||||||
|
}
|
||||||
12
TrackerLibrary/TeamModel.cs
Normal file
12
TrackerLibrary/TeamModel.cs
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace TrackerLibrary
|
||||||
|
{
|
||||||
|
public class TeamModel
|
||||||
|
{
|
||||||
|
public List<PersonModel> TeamMembers { get; set; } = new List<PersonModel>();
|
||||||
|
public string TeamName { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
15
TrackerLibrary/TournamentModel.cs
Normal file
15
TrackerLibrary/TournamentModel.cs
Normal file
@ -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<TeamModel> EnteredTeams { get; set; } = new List<TeamModel>();
|
||||||
|
public List<PrizeModel> Prizes { get; set; } = new List<PrizeModel>();
|
||||||
|
public List<List<MatchupModel>> MyProperty { get; set; } = new List<List<MatchupModel>>();
|
||||||
|
}
|
||||||
|
}
|
||||||
7
TrackerLibrary/TrackerLibrary.csproj
Normal file
7
TrackerLibrary/TrackerLibrary.csproj
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>netstandard2.0</TargetFramework>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
</Project>
|
||||||
Reference in New Issue
Block a user