コード例 #1
0
ファイル: PushDataResult.cs プロジェクト: rsegovia/WWCP_Core
 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];
 }
コード例 #2
0
ファイル: PushDataResult.cs プロジェクト: rsegovia/WWCP_Core
 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];
 }