public double TotalCosts(string tariffKey, PhoneConsumption consumption) { object[] results = this.Invoke("TotalCosts", new object[] { tariffKey, consumption }); return((double)(results[0])); }
/// <remarks/> public void TotalCostsAsync(string tariffKey, PhoneConsumption consumption, object userState) { if ((this.TotalCostsOperationCompleted == null)) { this.TotalCostsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnTotalCostsOperationCompleted); } this.InvokeAsync("TotalCosts", new object[] { tariffKey, consumption }, this.TotalCostsOperationCompleted, userState); }
public override double TotalCosts(string tariffKey, PhoneConsumption consumption) { var serice = new PhoneTariffService.TariffCalcualtorService(); var wsConsumtion = new PhoneTariffService.PhoneConsumption { ZoneConsumptions = consumption.ZoneConsumptions.Select(x => new PhoneTariffService.ZoneConsumption { OffPeakDuration = x.OffPeakDuration, PeakDuration = x.PeakDuration, ZoneId = x.ZoneId }).ToArray() }; return(serice.TotalCosts(tariffKey, wsConsumtion)); }
/// <remarks/> public void TotalCostsAsync(string tariffKey, PhoneConsumption consumption) { this.TotalCostsAsync(tariffKey, consumption, null); }