public PushSingleChargingStationDataResult(ChargingStation ChargingStation, PushSingleDataResultTypes Result, IEnumerable <Warning> Warnings) { this.ChargingStation = ChargingStation; this.Result = Result; this.Warnings = Warnings != null ? Warnings.Where(warning => warning.IsNotNullOrEmpty()) : new Warning[0]; }
public PushSingleEVSEDataResult(EVSE EVSE, PushSingleDataResultTypes Result, IEnumerable <String> Warnings) { this.EVSE = EVSE; this.Result = Result; this.Warnings = Warnings != null ? Warnings.Where(warning => warning != null). SafeSelect(warning => warning.Trim()). Where(warning => warning.IsNotNullOrEmpty()) : new String[0]; }