private void OnConsumptionDataReported(ConsumptionData data) { dynamic client = this.GetClient(); client.onConsumptionDataReported(data.ElementID, data.Deficit, data.ElementType); }