コード例 #1
0
 /// <summary>
 /// Create a boot notification request.
 /// </summary>
 /// <param name="ChargingStation">A physical system where an electrical vehicle (EV) can be charged.</param>
 /// <param name="Reason">The the reason for sending this boot notification to the CSMS.</param>
 /// <param name="CustomData">An optional custom data object to allow to store any kind of customer specific data.</param>
 public BootNotificationRequest(ChargingStation ChargingStation,
                                BootReasons Reason,
                                CustomData CustomData = null)
 {
     this.ChargingStation = ChargingStation;
     this.Reason          = Reason;
     this.CustomData      = CustomData;
 }
コード例 #2
0
ファイル: BootReasons.cs プロジェクト: xrjob/WWCP_OCPP
        public static String AsText(this BootReasons BootReason)
        {
            switch (BootReason)
            {
            case BootReasons.ApplicationReset:
                return("ApplicationReset");

            case BootReasons.FirmwareUpdate:
                return("FirmwareUpdate");

            case BootReasons.LocalReset:
                return("LocalReset");

            case BootReasons.PowerUp:
                return("PowerUp");

            case BootReasons.RemoteReset:
                return("RemoteReset");

            case BootReasons.ScheduledReset:
                return("ScheduledReset");

            case BootReasons.Triggered:
                return("Triggered");

            case BootReasons.Unknown:
                return("Unknown");

            case BootReasons.Watchdog:
                return("Watchdog");


            default:
                return("unknown");
            }
        }