Add project files.

This commit is contained in:
2020-03-17 23:35:57 +01:00
parent 0123ab1e60
commit 13585435d4
8 changed files with 136 additions and 0 deletions

View 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; }
}
}

View 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; }
}
}

View 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; }
}
}

View 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; }
}
}

View 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; }
}
}

View 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>>();
}
}

View File

@ -0,0 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>
</Project>