Session class (Not Implemented)

This commit is contained in:
HeshamTB 2018-12-21 15:34:11 +03:00
parent 0434fc1f40
commit 4906361a56

View File

@ -139,7 +139,38 @@ namespace OWTrack
}
}
public class Match
class Session
{
public int TotalMatches;
public int SkillChange;
public int StartSR;
List<Match> Matches = new List<Math>();
DateTime date;
public Session(int StartSR)
{
this.StartSR = StartSR;
date = DateTime.Now.Date;
}
public bool IsNewSession()
{
if (Matches.Count == 0) return true;
else return false;
}
public Match GetLastMatch()
{
return Matches.Last();
}
public void AddMatch(Match match)
{
this.Matches.Add(match);
}
}
class Match
{
public Match() { }
public DateTime dateTime { get; set; }