public PoGoInventory(IApiInventory apiInventory, IApiDownload apiDownload, ILogicSettings logicSettings) { _apiInventory = apiInventory; _apiDownload = apiDownload; _logicSettings = logicSettings; ShouldUpdateInventory = true; Task.Run(UpdateInventory); }
public PoGoInventory(IApiInventory apiInventory, IApiDownload apiDownload, ILogicSettings logicSettings, CancellationToken token) { _apiInventory = apiInventory; _apiDownload = apiDownload; _logicSettings = logicSettings; _token = token; ShouldUpdateInventory = true; Task.Run(UpdateInventory); }
public PoGoInventory(IApiInventory apiInventory, IApiDownload apiDownload, ILogicSettings logicSettings) { _apiInventory = apiInventory; _apiDownload = apiDownload; _logicSettings = logicSettings; ShouldUpdateInventory = true; Task.Run(RequestInventory).GetAwaiter().GetResult(); Task.Run(UpdateInventory); }
public PoGoInventory(IApiInventory apiInventory, IApiDownload apiDownload, ILogicSettings logicSettings, CancellationToken token) { _apiInventory = apiInventory; _apiDownload = apiDownload; _logicSettings = logicSettings; _token = token; ShouldUpdateInventory = true; PokeballsDictionary = new Dictionary <ItemId, int>() { { ItemId.ItemPokeBall, 0 }, { ItemId.ItemGreatBall, 0 }, { ItemId.ItemUltraBall, 0 }, { ItemId.ItemMasterBall, 0 } }; Task.Run(UpdateInventory); }