Add project files.
This commit is contained in:
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