-
Notifications
You must be signed in to change notification settings - Fork 0
/
MatchPath.cs
60 lines (52 loc) · 1.71 KB
/
MatchPath.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
55
56
57
58
59
60
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Scrappy2._0
{
class MatchPath
{
public string country { get; set; }
public string league { get; set; }
public string mTime { get; set; }
public string date { get; set; }
public string homeT { get; set; }
public string awayT { get; set; }
public bool? isPostponed { get; set; }
public static List<MatchPath> PathList { get; set; } // Used to find the specific match you want to open with Selenium
public MatchPath(string c, string l, string mT, string d, string h, string a, bool? p)
{
country = c;
league = l;
mTime = mT;
date = d;
homeT = h;
awayT = a;
isPostponed = p;
}
public static void SaveXpath(MatchPath obj)
{
PathList.Add(obj);
}
public static List<MatchPath> GetXpathList()
{
return PathList;
}
public static void CreateList()
{
PathList = new List<MatchPath>();
}
public static void ResetList()
{
PathList.Clear();
}
public static void PrintList()
{
foreach (MatchPath item in PathList)
{
Console.WriteLine("\n-------------------\n League: {1}, {0} |{2}| @ {3} H:{4} A:{5} isPostponed: {6}\n-----------------------", item.country, item.league, item.date, item.mTime, item.homeT, item.awayT, item.isPostponed);
}
Console.WriteLine("Total List count: {0}\n Total Path count: {1}", MatchPath.PathList.Count(), 9999);
}
}
}