public PurchaseRepository(GodsArenaApiContext context, IChestRepository chestRepository, IPlayerRepository playerRepository, ILootTableRepository lootTableRepository) : base(context) { _chestRepository = chestRepository; _playerRepository = playerRepository; _lootTableRepository = lootTableRepository; }
public DeckRepository(GodsArenaApiContext context, ILevelSlotRepository levelSlotRepository, IPackRepository packRepository, IPackContentRepository packContentRepository) : base(context) { _levelSlotRepository = levelSlotRepository; _packRepository = packRepository; _packContentRepository = packContentRepository; }
public PlayerRepository(GodsArenaApiContext context, IWalletRepository walletRepository, IPlayerStatsRepository playerStatsRepository, IDeckRepository deckRepository, IPackRepository packRepository) : base(context) { _walletRepository = walletRepository; _playerStatsRepository = playerStatsRepository; _deckRepository = deckRepository; _packRepository = packRepository; }
public LootTableRepository(GodsArenaApiContext context, IGoldLootRepository goldLootRepository, ILootRepository lootRepository, IWalletRepository walletRepository, IPackRepository packRepository) : base(context) { _goldLootRepository = goldLootRepository; _lootRepository = lootRepository; _walletRepository = walletRepository; _packRepository = packRepository; }
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env, GodsArenaApiContext godsArenaApiContext) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } else { app.UseHsts(); } godsArenaApiContext.EnsureSeedDataForContext(); AutoMapper.Mapper.Initialize(cfg => { //Player cfg.CreateMap <Models.PlayerForCreationDto, Entities.Player>(); cfg.CreateMap <Entities.Player, Models.PlayerDto>(); cfg.CreateMap <Models.PlayerDto, Entities.Player>(); //Loot cfg.CreateMap <Entities.Loot, Models.LootDto>(); cfg.CreateMap <Entities.Card, Models.CardDto>(); cfg.CreateMap <Entities.GoldLoot, Models.GoldLootDto>(); cfg.CreateMap <Models.LootDto, Models.LootPurchaseResultDto>() .Include <Models.CardDto, Models.CardPurchaseResultDto>() .Include <Models.GoldLootDto, Models.GoldPurchaseResultDto>(); cfg.CreateMap <Models.GoldLootDto, Models.GoldPurchaseResultDto>(); cfg.CreateMap <Models.CardDto, Models.CardPurchaseResultDto>(); //PackContent cfg.CreateMap <Entities.PackContent, Models.PackContentDto>(); cfg.CreateMap <Entities.PackContent, Models.PackContentWithoutCardDto>(); //Deck cfg.CreateMap <Entities.Deck, Models.DeckDto>(); cfg.CreateMap <Entities.Deck, Models.DeckWithoutCardInLevelSlotDto>(); cfg.CreateMap <Models.DeckWithoutCardInLevelSlotDto, Entities.Deck>(); //LevelSlot cfg.CreateMap <Entities.LevelSlot, Models.LevelSlotDto>(); cfg.CreateMap <Entities.LevelSlot, Models.LevelSlotWithoutCardDto>(); cfg.CreateMap <Models.LevelSlotWithoutCardDto, Entities.LevelSlot>(); //Purchase cfg.CreateMap <Entities.Purchase, Models.PurchaseWithoutDeckAndPlayerDto>(); //Chest cfg.CreateMap <Entities.Chest, Models.ChestDto>(); }); app.UseHttpsRedirection(); app.UseMvc(); }
public WalletRepository(GodsArenaApiContext context) : base(context) { }
public PackContentRepository(GodsArenaApiContext context /*, IPackRepository packRepository, IDeckRepository deckRepository*/, ILevelSlotRepository levelSlotRepository) : base(context) { _packRepository = new PackRepository(context, this); _deckRepository = new DeckRepository(context, levelSlotRepository, _packRepository, this); }
public DropRepository(GodsArenaApiContext context) : base(context) { }
public LootRepository(GodsArenaApiContext context) : base(context) { }
public LevelSlotRepository(GodsArenaApiContext context, ICardRepository cardRepository) : base(context) { _cardRepository = cardRepository; }
public PackRepository(GodsArenaApiContext context, IPackContentRepository packContentRepository) : base(context) { _packContentRepository = packContentRepository; }
public PlayerStatsRepository(GodsArenaApiContext context) : base(context) { }
public CardRepository(GodsArenaApiContext context) : base(context) { }