public List <DivinationCard> GetDivinationCards() { var url = PoeNinjaApiUrlBuilder.BuildUrl(PoeNinjaApiUrlBuilder.Category.DivinationCards); var divinationCardsWrapper = WebRequestManager.GetWebRequestDataAsJson <PoeNinjaWrapper.DivinationCard>(url); return(divinationCardsWrapper.Data); }
public List <Gem> GetGems() { var url = PoeNinjaApiUrlBuilder.BuildUrl(PoeNinjaApiUrlBuilder.Category.Gems); var weaponsWrapper = WebRequestManager.GetWebRequestDataAsJson <PoeNinjaWrapper.Gem>(url); return(weaponsWrapper.Data); }
public List <UniqueMap> GetUniqueMaps() { var url = PoeNinjaApiUrlBuilder.BuildUrl(PoeNinjaApiUrlBuilder.Category.UnqiueMaps); var uniqueMaps = WebRequestManager.GetWebRequestDataAsJson <PoeNinjaWrapper.UniqueMaps>(url); return(uniqueMaps.Data); }
public List <CraftingBase> GetCraftingBases() { var url = PoeNinjaApiUrlBuilder.BuildUrl(PoeNinjaApiUrlBuilder.Category.CraftingBases); var craftingBase = WebRequestManager.GetWebRequestDataAsJson <PoeNinjaWrapper.CraftingBase>(url); return(craftingBase.Data); }
public List <Flask> GetFlasks() { var url = PoeNinjaApiUrlBuilder.BuildUrl(PoeNinjaApiUrlBuilder.Category.Flask); var flasksWrapper = WebRequestManager.GetWebRequestDataAsJson <PoeNinjaWrapper.Flask>(url); return(flasksWrapper.Data); }
public List <Prophecy> GetProphecies() { var url = PoeNinjaApiUrlBuilder.BuildUrl(PoeNinjaApiUrlBuilder.Category.Prophecies); var prophecyWrapper = WebRequestManager.GetWebRequestDataAsJson <PoeNinjaWrapper.Prophecy>(url); return(prophecyWrapper.Data); }
public List <Accessory> GetAccessories() { var url = PoeNinjaApiUrlBuilder.BuildUrl(PoeNinjaApiUrlBuilder.Category.Accessory); var accessoryWrapper = WebRequestManager.GetWebRequestDataAsJson <PoeNinjaWrapper.Accessory>(url); return(accessoryWrapper.Data); }
public List <Armour> GetArmours() { var url = PoeNinjaApiUrlBuilder.BuildUrl(PoeNinjaApiUrlBuilder.Category.Armour); var armourWrapper = WebRequestManager.GetWebRequestDataAsJson <PoeNinjaWrapper.Armour>(url); return(armourWrapper.Data); }
public List <Currency> GetCurrencies() { const int ExaltedOrbId = 2; var currencyUrl = PoeNinjaApiUrlBuilder.BuildUrl(PoeNinjaApiUrlBuilder.Category.CurrencyRatios); var fragmentsUrl = PoeNinjaApiUrlBuilder.BuildUrl(PoeNinjaApiUrlBuilder.Category.Fragment); PoeNinjaWrapper.Currency currencyWrapper = WebRequestManager.GetWebRequestDataAsJson <PoeNinjaWrapper.Currency>(currencyUrl); PoeNinjaWrapper.Currency fragmentsWrapper = WebRequestManager.GetWebRequestDataAsJson <PoeNinjaWrapper.Currency>(fragmentsUrl); var Currencies = new List <Currency>(); InitializeCurrenciesWithBaseData(currencyWrapper, Currencies); FillInPriceInChaos(currencyWrapper, Currencies); FillInPriceInChaos(fragmentsWrapper, Currencies); CalculateExaltedRatio(ExaltedOrbId, Currencies); return(Currencies); }