-
Notifications
You must be signed in to change notification settings - Fork 1
/
Match.cs
54 lines (50 loc) · 1.6 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BloodBot
{
// TODO rename to LiveMatch
public class Match
{
public string MatchID;
public string Tournament;
public string Group;
public string HomeCoach;
public string HomeTeam;
public string HomeRace;
public string HomeTV;
public string AwayCoach;
public string AwayTeam;
public string AwayRace;
public string AwayTV;
public string SpectatorLink;
public bool Announced;
//constructor
public Match(string aMatchID, string aTournament, string aHomeCoach, string aHomeTeam, string aHomeRace, string aHomeTV,
string aAwayCoach, string aAwayTeam, string aAwayRace, string aAwayTV, string aSpectatorLink, string aGroup)
{
MatchID = aMatchID;
Tournament = aTournament;
Group = aGroup;
HomeCoach = aHomeCoach;
HomeTeam = aHomeTeam;
HomeRace = aHomeRace;
HomeTV = aHomeTV;
AwayCoach = aAwayCoach;
AwayTeam = aAwayTeam;
AwayRace = aAwayRace;
AwayTV = aAwayTV;
Announced = false;
SpectatorLink = aSpectatorLink;
}
// TODO Should this really be here?
public string MakeAnnouncementString()
{
string MatchAnnouncement;
MatchAnnouncement = "**" + HomeTeam + "** vs **" + AwayTeam+"**";
return (MatchAnnouncement);
}
}
}