-
Notifications
You must be signed in to change notification settings - Fork 3k
/
Copy pathMatch.cs
41 lines (36 loc) · 970 Bytes
/
Match.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using System;
using System.Collections.Generic;
namespace Cricinfo
{
public class Match
{
private readonly string id;
private readonly string title;
private readonly string venue;
private readonly DateTime startTime;
private readonly List<Team> teams;
private MatchStatus status;
private Scorecard scorecard;
public Match(string id, string title, string venue, DateTime startTime, List<Team> teams)
{
this.id = id;
this.title = title;
this.venue = venue;
this.startTime = startTime;
this.teams = teams;
this.status = MatchStatus.SCHEDULED;
}
public string GetId()
{
return id;
}
public void SetStatus(MatchStatus status)
{
this.status = status;
}
public string GetTitle()
{
return title;
}
}
}