Esempio n. 1
0
 static void Main(string[] args)
 {
     using (var client = new PathOfNinjaService())
     {
         client.RefreshCache("Expedition").Wait();
     }
 }
        /// <summary>
        /// Initialize the viewmodel.
        /// </summary>
        /// <returns>
        /// The task.
        /// </returns>
        public async Task Initialize()
        {
            using (var service = new PathOfNinjaService())
            {
                var ratio = await service.GetExaltRationAsync(this._event.LeagueName);

                this.ExaltRatio = Math.Round(ratio);
            }

            var value = this._event.Price.NumberOfCurrencies % 1;

            this.Decimal           = Math.Round(value, 2);
            this.DecimalChaosValue = Convert.ToInt32(this.Decimal * this.ExaltRatio);
        }