private static ITransferStrategy SelectTransferStrategy(Client pokemonClient, IPokemonTransferer transferer, ISettings settings) { switch (ClientSettings.TransferType.ToLower()) { case "cp": return new CpTransferStrategy(pokemonClient, transferer, ClientSettings.TransferCPThreshold); case "duplicate": return new DuplicatesTransferStrategy(pokemonClient, transferer); case "all": return new AllTransferStrategy(pokemonClient, transferer); case "leaveStrongest": default: return new AllButStrongestTransferStrategy(pokemonClient, transferer); } }
public AllButStrongestTransferStrategy(Client pokemonClient, IPokemonTransferer transferer) : base(pokemonClient, transferer) { }
public CpTransferStrategy(Client pokemonClient, IPokemonTransferer transferer, int minCp) : base(pokemonClient, transferer) { _minCp = minCp; }
protected BaseTransferStrategy(Client pokemonClient, IPokemonTransferer transferer) : base(pokemonClient) { _transferer = transferer; }
public DuplicatesTransferStrategy(Client pokemonClient, IPokemonTransferer transferer) : base(pokemonClient, transferer) { }