public IHttpActionResult GetSpellByID(int id) { _spellService = GetSpellService(); var spell = _spellService.FindBy(id); return(Ok(spell)); }
public IHttpActionResult GetSpellByName(string name) { _spellService = GetSpellService(); var spell = _spellService.GetSpellByName(name); return(Ok(spell)); }
public RebaseController( IChampionService championService, IItemService itemService, ILeagueService leagueService, IMasteryService masteryService, IMatchService matchService, IPlayerService playerService, ITeamService teamService, ITournamentService tournamentService, ISpellService spellService, ISerieService serieService, ILogger <RebaseController> logger) { _championService = championService ?? throw new ArgumentNullException(nameof(championService)); _itemService = itemService ?? throw new ArgumentNullException(nameof(itemService)); _leagueService = leagueService ?? throw new ArgumentNullException(nameof(leagueService)); _masteryService = masteryService ?? throw new ArgumentNullException(nameof(masteryService)); _matchService = matchService ?? throw new ArgumentNullException(nameof(matchService)); _playerService = playerService ?? throw new ArgumentNullException(nameof(playerService)); _serieService = serieService ?? throw new ArgumentNullException(nameof(serieService)); _spellService = spellService ?? throw new ArgumentNullException(nameof(spellService)); _teamService = teamService ?? throw new ArgumentNullException(nameof(teamService)); _tournamentService = tournamentService ?? throw new ArgumentNullException(nameof(tournamentService)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); pandaScoreAccessToken = Environment.GetEnvironmentVariable("PandaScoreAPIAccessToken"); }
public IHttpActionResult AddSpell([FromBody] spell spell) { if (spell == null) { return(Ok("Spell Empty")); } _spellService = GetSpellService(); IEnumerable <string> Error = _spellService.AddSpell(spell); return(Ok(Error)); }
public ActionReactionProcessorCreator( ISpellService spellService, Func <IUnitPositionFollower> unitFollower, Func <IChatEmoteSoundProcessor> chatEmote, Func <IWaypointProcessor> waypointProcessor, Func <IUpdateObjectFollower> update, Func <IPlayerGuidFollower> player, Func <IAuraSlotTracker> auraSlotTracker, Func <IDatabaseProvider> databaseProvider) { this.spellService = spellService; this.unitFollower = unitFollower; this.chatEmote = chatEmote; this.waypointProcessor = waypointProcessor; this.update = update; this.player = player; this.auraSlotTracker = auraSlotTracker; this.databaseProvider = databaseProvider; }
public PartyController(IPartyService partyService, ISpellService spellService) { _partyService = partyService; }
public SpellController(UserManager <AppUser> userManager, ISpellService service) { _userManager = userManager; _service = service; }
public SpellController(ISpellService spellService) { _spellService = spellService; }
public SpellsController(ISpellService pService) { _spells = pService; }
public SpellController(ISpellService spellService, IPDFService pDFService, IMemoryCache memoryCache) { _spellService = spellService ?? throw new ArgumentNullException(nameof(spellService)); _pDFService = pDFService ?? throw new ArgumentNullException(nameof(pDFService)); _memoryCache = memoryCache ?? throw new ArgumentNullException(nameof(memoryCache)); }
public SpellController(ISpellService spellService, IOptions <ConnectionStrings> config) { this.spellService = spellService; this.config = config.Value; }
public SpellController(ISpellService spellService, ILogService logService) { _spellService = spellService; _logService = logService; }
public Repository() { _dataProvider = new SqlDataProvider(); _spellService = new HunspellSpellService(); }
public ImageExtractionService() { VisionService = new VisionService(ConfigurationManager.AppSettings["OxfordKey"]); SpellService = new SpellService(); OpenCVService = new ImageProcessor(); }