MatchAnalysis.cs 1.4 KB
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;
            }
        }
    }
}