MatchAnalysis.cs
1.4 KB
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BLL
{
class MatchAnalysis
{
static MatchCollection matchCollection;
public static void StartNewAnalysis(string templatename)
{
matchCollection = new MatchCollection();
matchCollection.templateName = templatename;
matchCollection.Matchs = new List<Match>();
}
public static void AddMatch(string matchKey, bool isMatch, int codeID, string matchDesc) {
Match match = new Match(matchKey, isMatch, codeID, matchDesc);
matchCollection.Matchs.Add(match);
}
static List<MatchTemplate> MatchTemplateList;
public class MatchTemplate {
}
public class MatchCollection
{
public string templateName;
public List<Match> Matchs;
public bool isMatch;
public string result;
}
public class Match {
public string matchKey;
public bool isMatch;
public int codeID;
public string matchDesc;
public Match(string matchKey, bool isMatch, int codeID, string matchDesc) {
this.matchKey = matchKey;
this.isMatch = isMatch;
this.codeID = codeID;
this.matchDesc = matchDesc;
}
}
}
}