Exemplo n.º 1
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public GenerationService(
     IDataStoreSource <GenerationEntry> dataStoreSource,
     IPokeAPI pokeApi,
     GenerationCacheService generationCacheService,
     ILogger <GenerationService> logger) : base(dataStoreSource, pokeApi, generationCacheService, logger)
 {
 }
Exemplo n.º 2
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public LocationService(
     IDataStoreSource <LocationEntry> dataStoreSource,
     IPokeAPI pokeApi,
     LocationCacheService locationCacheService,
     ILogger <LocationService> logger) : base(dataStoreSource, pokeApi, locationCacheService, logger)
 {
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 public MoveDamageClassService(
     IDataStoreSource <MoveDamageClassEntry> dataStoreSource,
     IPokeAPI pokeApi,
     MoveDamageClassCacheService moveDamageClassCacheService,
     ILogger <MoveDamageClassService> logger) : base(dataStoreSource, pokeApi, moveDamageClassCacheService, logger)
 {
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 public MoveLearnMethodService(
     IDataStoreSource <MoveLearnMethodEntry> dataStoreSource,
     IPokeAPI pokeApi,
     MoveLearnMethodCacheService moveLearnMethodCacheService,
     ILogger <MoveLearnMethodService> logger) : base(dataStoreSource, pokeApi, moveLearnMethodCacheService, logger)
 {
 }
Exemplo n.º 5
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public PokemonService(
     IDataStoreSource <PokemonEntry> dataStoreSource,
     IPokeAPI pokeApi,
     PokemonCacheService pokemonCacheService,
     AbilityCacheService abilityCacheService,
     TypeCacheService typeCacheService,
     AbilityService abilityService,
     ItemService itemService,
     MachineService machineService,
     MoveLearnMethodService moveLearnMethodService,
     MoveService moveService,
     PokemonFormService pokemonFormService,
     VersionGroupService versionGroupService,
     VersionService versionService,
     ILogger <PokemonService> logger) : base(dataStoreSource, pokeApi, pokemonCacheService, logger)
 {
     AbilityCacheService    = abilityCacheService;
     TypeCacheService       = typeCacheService;
     AbilityService         = abilityService;
     ItemService            = itemService;
     MachineService         = machineService;
     MoveLearnMethodService = moveLearnMethodService;
     MoveService            = moveService;
     PokemonFormService     = pokemonFormService;
     VersionGroupService    = versionGroupService;
     VersionService         = versionService;
 }
Exemplo n.º 6
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public ItemService(
     IDataStoreSource <ItemEntry> dataStoreSource,
     IPokeAPI pokeApi,
     ItemCacheService generationCacheService,
     ILogger <ItemService> logger) : base(dataStoreSource, pokeApi, generationCacheService, logger)
 {
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 public EvolutionTriggerService(
     IDataStoreSource <EvolutionTriggerEntry> dataStoreSource,
     IPokeAPI pokeApi,
     EvolutionTriggerCacheService generationCacheService,
     ILogger <EvolutionTriggerService> logger) : base(dataStoreSource, pokeApi, generationCacheService, logger)
 {
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 public EncounterConditionValueService(
     IDataStoreSource <EncounterConditionValueEntry> dataStoreSource,
     IPokeAPI pokeApi,
     EncounterConditionValueCacheService encounterConditionValueCacheService,
     ILogger <EncounterConditionValueService> logger) : base(dataStoreSource, pokeApi, encounterConditionValueCacheService, logger)
 {
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 public MoveTargetService(
     IDataStoreSource <MoveTargetEntry> dataStoreSource,
     IPokeAPI pokeApi,
     MoveTargetCacheService moveTargetCacheService,
     ILogger <MoveTargetService> logger) : base(dataStoreSource, pokeApi, moveTargetCacheService, logger)
 {
 }
Exemplo n.º 10
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public StatService(
     IDataStoreSource <StatEntry> dataStoreSource,
     IPokeAPI pokeApi,
     StatCacheService statCacheService,
     ILogger <StatService> logger) : base(dataStoreSource, pokeApi, statCacheService, logger)
 {
 }
Exemplo n.º 11
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public PokedexService(
     IDataStoreSource <PokedexEntry> dataStoreSource,
     IPokeAPI pokeApi,
     PokedexCacheService pokedexCacheService,
     ILogger <PokedexService> logger) : base(dataStoreSource, pokeApi, pokedexCacheService, logger)
 {
 }
Exemplo n.º 12
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public VersionService(
     IDataStoreSource <VersionEntry> dataStoreSource,
     IPokeAPI pokeApi,
     VersionCacheService versionCacheService,
     ILogger <VersionService> logger) : base(dataStoreSource, pokeApi, versionCacheService, logger)
 {
 }
Exemplo n.º 13
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public NamedApiResourceServiceBase(
     IDataStoreSource <TEntry> dataStoreSource,
     IPokeAPI pokeApi,
     NamedCacheServiceBase <TSource> cacheService,
     ILogger <NamedApiResourceServiceBase <TSource, TEntry> > logger) : base(dataStoreSource, pokeApi, cacheService, logger)
 {
     CacheService = cacheService;
 }
Exemplo n.º 14
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public MachineService(
     IDataStoreSource <MachineEntry> dataStoreSource,
     IPokeAPI pokeApi,
     MachineCacheService machineCacheService,
     ItemCacheService itemCacheService,
     ILogger <MachineService> logger) : base(dataStoreSource, pokeApi, machineCacheService, logger)
 {
     ItemCacheService = itemCacheService;
 }
Exemplo n.º 15
0
 /// <summary>
 /// Connect to cache and initialise logger.
 /// </summary>
 public CacheServiceBase(
     ICacheSource <TResource> cacheSource,
     IPokeAPI pokeApi,
     ILogger <CacheServiceBase <TResource> > logger)
 {
     CacheSource = cacheSource;
     PokeApi     = pokeApi;
     Logger      = logger;
 }
Exemplo n.º 16
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public LocationAreaService(
     IDataStoreSource <LocationAreaEntry> dataStoreSource,
     IPokeAPI pokeApi,
     LocationAreaCacheService locationAreaCacheService,
     LocationService locationsService,
     ILogger <LocationAreaService> logger) : base(dataStoreSource, pokeApi, locationAreaCacheService, logger)
 {
     LocationsService = locationsService;
 }
Exemplo n.º 17
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public AbilityService(
     IDataStoreSource <AbilityEntry> dataStoreSource,
     IPokeAPI pokeApi,
     AbilityCacheService abilityCacheService,
     VersionGroupService versionGroupService,
     ILogger <AbilityService> logger) : base(dataStoreSource, pokeApi, abilityCacheService, logger)
 {
     VersionGroupService = versionGroupService;
 }
Exemplo n.º 18
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public PokemonFormService(
     IDataStoreSource <PokemonFormEntry> dataStoreSource,
     IPokeAPI pokeApi,
     PokemonFormCacheService pokemonFormCacheService,
     TypeCacheService typeCacheService,
     VersionGroupService versionGroupService,
     ILogger <PokemonFormService> logger) : base(dataStoreSource, pokeApi, pokemonFormCacheService, logger)
 {
     VersionGroupService = versionGroupService;
     TypeCacheService    = typeCacheService;
 }
Exemplo n.º 19
0
 /// <summary>
 /// Connect to data store and initialise logger.
 /// </summary>
 public ServiceBase(
     IDataStoreSource <TEntry> dataStoreSource,
     IPokeAPI pokeApi,
     CacheServiceBase <TSource> cacheService,
     ILogger <ServiceBase <TSource, TEntry> > logger)
 {
     CacheService    = cacheService;
     DataStoreSource = dataStoreSource;
     PokeApi         = pokeApi;
     Logger          = logger;
 }
Exemplo n.º 20
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public EfficacyService(
     IPokeAPI pokeApi,
     PokemonService pokemonService,
     TypeService typesService,
     ILogger <EfficacyService> logger)
 {
     PokeApi        = pokeApi;
     PokemonService = pokemonService;
     TypesService   = typesService;
     Logger         = logger;
 }
Exemplo n.º 21
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public TypeService(
     IDataStoreSource <TypeEntry> dataStoreSource,
     IPokeAPI pokeApi,
     TypeCacheService typeCacheService,
     GenerationService generationsService,
     VersionGroupService versionGroupsService,
     ILogger <TypeService> logger) : base(dataStoreSource, pokeApi, typeCacheService, logger)
 {
     GenerationsService   = generationsService;
     VersionGroupsService = versionGroupsService;
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 public VersionGroupService(
     IDataStoreSource <VersionGroupEntry> dataStoreSource,
     IPokeAPI pokeApi,
     VersionGroupCacheService versionGroupCacheService,
     GenerationService generationsService,
     PokedexService pokedexesService,
     VersionService versionsService,
     ILogger <VersionGroupService> logger) : base(dataStoreSource, pokeApi, versionGroupCacheService, logger)
 {
     GenerationsService = generationsService;
     PokedexesService   = pokedexesService;
     VersionsService    = versionsService;
 }
Exemplo n.º 23
0
        public Worker(IUserInterface ui)
        {
            this.ui = ui;

            this.WorkerReportsProgress      = true;
            this.WorkerSupportsCancellation = true;
            this.DoWork             += new DoWorkEventHandler(performTask);
            this.ProgressChanged    += new ProgressChangedEventHandler(updateProgress);
            this.RunWorkerCompleted += new RunWorkerCompletedEventHandler(taskCompleted);

            api = new SGPokemapAPI();
            //api = new PokeRadarAPI();
            api.EnableDirectGPX(ui);
        }
Exemplo n.º 24
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public EncountersService(
     IDataStoreSource <EncountersEntry> dataStoreSource,
     IPokeAPI pokeApi,
     PokemonCacheService pokemonCacheService,
     EncounterConditionValueService encounterConditionValueService,
     EncounterMethodService encounterMethodService,
     LocationService locationsService,
     LocationAreaService locationAreasService,
     VersionService versionsService,
     VersionGroupService versionGroupsService,
     ILogger <EncountersService> logger) : base(dataStoreSource, pokeApi, pokemonCacheService, logger)
 {
     EncounterConditionValueService = encounterConditionValueService;
     EncounterMethodService         = encounterMethodService;
     LocationsService     = locationsService;
     LocationAreasService = locationAreasService;
     VersionService       = versionsService;
     VersionGroupsService = versionGroupsService;
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 public PokemonSpeciesService(
     IDataStoreSource <PokemonSpeciesEntry> dataStoreSource,
     IPokeAPI pokeApi,
     PokemonSpeciesCacheService pokemonSpeciesCacheService,
     EvolutionChainCacheService evolutionChainCacheService,
     GenerationCacheService generationCacheService,
     PokemonCacheService pokemonCacheService,
     PokemonService pokemonService,
     VersionGroupService versionGroupService,
     VersionService versionService,
     ILogger <PokemonSpeciesService> logger) : base(dataStoreSource, pokeApi, pokemonSpeciesCacheService, logger)
 {
     EvolutionChainCacheService = evolutionChainCacheService;
     GenerationCacheService     = generationCacheService;
     PokemonCacheService        = pokemonCacheService;
     PokemonService             = pokemonService;
     VersionGroupService        = versionGroupService;
     VersionService             = versionService;
 }
Exemplo n.º 26
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public MoveService(
     IDataStoreSource <MoveEntry> dataStoreSource,
     IPokeAPI pokeApi,
     MoveCacheService moveCacheService,
     MachineCacheService machineCacheService,
     MoveCategoryService moveCategoryService,
     MoveDamageClassService moveDamageClassService,
     MoveTargetService moveTargetService,
     TypeService typeService,
     VersionGroupService versionGroupService,
     ILogger <MoveService> logger) : base(dataStoreSource, pokeApi, moveCacheService, logger)
 {
     MachineCacheService    = machineCacheService;
     MoveCategoryService    = moveCategoryService;
     MoveDamageClassService = moveDamageClassService;
     MoveTargetService      = moveTargetService;
     TypeService            = typeService;
     VersionGroupService    = versionGroupService;
 }
Exemplo n.º 27
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public EvolutionChainService(
     IDataStoreSource <EvolutionChainEntry> dataStoreSource,
     IPokeAPI pokeApi,
     EvolutionChainCacheService cacheService,
     EvolutionTriggerService evolutionTriggerService,
     ItemService itemService,
     LocationService locationService,
     MoveService moveService,
     PokemonSpeciesCacheService pokemonSpeciesCacheService,
     TypeService typeCacheService,
     PokemonSpeciesService pokemonSpeciesService,
     ILogger <EvolutionChainService> logger) : base(dataStoreSource, pokeApi, cacheService, logger)
 {
     EvolutionTriggerService    = evolutionTriggerService;
     ItemService                = itemService;
     LocationService            = locationService;
     MoveService                = moveService;
     PokemonSpeciesCacheService = pokemonSpeciesCacheService;
     TypeService                = typeCacheService;
     PokemonSpeciesService      = pokemonSpeciesService;
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 public PokemonCacheService(
     INamedCacheSource <Pokemon> cacheSource,
     IPokeAPI pokeApi,
     ILogger <PokemonCacheService> logger) : base(cacheSource, pokeApi, logger)
 {
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 public VersionGroupCacheService(
     INamedCacheSource <VersionGroup> cacheSource,
     IPokeAPI pokeApi,
     ILogger <VersionGroupCacheService> logger) : base(cacheSource, pokeApi, logger)
 {
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 public EvolutionChainCacheService(
     ICacheSource <EvolutionChain> cacheSource,
     IPokeAPI pokeApi,
     ILogger <EvolutionChainCacheService> logger) : base(cacheSource, pokeApi, logger)
 {
 }