public InMatchTrackerStateVM(IMapper mapper) { this.mapper = mapper; MySideboard = new CardsListVM(DisplayType.CountOnly, CardsListOrder.ManaCost, this.mapper); OpponentCardsSeen = new CardsListVM(DisplayType.CountOnly, CardsListOrder.ManaCost, this.mapper); MyLibrary = new CardsListVM(DisplayType.Percent, CardsListOrder.ManaCost, this.mapper); }
/// <summary> /// Initialize the class using dependency injection /// </summary> /// <param name="mapper"></param> /// <param name="allCards"></param> /// <param name="api"></param> public DraftingVM(IMapper mapper, ICollection <Card> allCards, ServerApiCaller api) { this.mapper = mapper; AllCards = allCards; Api = api; CardsThatDidNotWheelVM = new CardsListVM(DisplayType.None, CardsListOrder.ManaCost, mapper); }
public InMatchTrackerStateVM(IMapper mapper, CardThumbnailDownloader cardThumbnailDownloader, Dictionary <int, Card> dictAllCards) { this.mapper = mapper; this.cardThumbnailDownloader = cardThumbnailDownloader; this.dictAllCards = dictAllCards; MySideboard = new CardsListVM(DisplayType.CountOnly, CardsListOrder.ManaCost, this.mapper, cardThumbnailDownloader); OpponentCardsSeen = new CardsListVM(DisplayType.CountOnly, CardsListOrder.ManaCost, this.mapper, cardThumbnailDownloader); MyLibrary = new CardsListVM(DisplayType.Percent, CardsListOrder.ManaCost, this.mapper, cardThumbnailDownloader); MyLibraryWithoutLands = new CardsListVM(DisplayType.Percent, CardsListOrder.ManaCost, this.mapper, cardThumbnailDownloader); }