예제 #1
0
        public string GetId()
        {
            var cardsMain      = Cards.QuickCardsMain.Values.GroupBy(i => i.Card.name).Select(i => $"{i.Sum(x => x.Amount)} {i.Key}");
            var cardsSideboard = Cards.QuickCardsSideboard.Values.GroupBy(i => i.Card.name).Select(i => $"{i.Sum(x => x.Amount)} {i.Key}");

            var m  = string.Join("_", cardsMain);
            var s  = string.Join("_", cardsSideboard);
            var id = Fnv1aHasher.To32BitFnv1aHash($"{m}|{s}");

            return($"{ScraperType}_{id}");
        }