Exemple #1
0
        public DestinyDeck GetDestinyDeck(string deckId)
        {
            var deckList = _api.GetDeckList(deckId);

            if (deckList == null)
            {
                throw new DeckListNotFoundException();
            }
            var cards = _api.GetCards();

            return(_deckBuilder.Build(deckList, cards));
        }
Exemple #2
0
 public List<Card> GetCards()
 {
     if (_cardCache == null)
         _cardCache = _api.GetCards();            
     return _cardCache;
 }