Beispiel #1
0
        /// <summary>
        /// Create a new OCPP remote start transaction response.
        /// </summary>
        /// <param name="Status">The status indicating whether the charge point accepts the request to start a charging transaction.</param>
        public RemoteStartTransactionResponse(RemoteStartStopStatus Status)

            : base(Result.OK())

        {
            this.Status = Status;
        }
Beispiel #2
0
        /// <summary>
        /// Create a new remote stop transaction response.
        /// </summary>
        /// <param name="Request">The start transaction request leading to this response.</param>
        /// <param name="Status">The status indicating whether the charge point accepts the request to stop the charging transaction.</param>
        public RemoteStopTransactionResponse(CS.RemoteStopTransactionRequest Request,
                                             RemoteStartStopStatus Status)

            : base(Request,
                   Result.OK())

        {
            this.Status = Status;
        }
        public static String AsText(this RemoteStartStopStatus RemoteStartStopStatus)
        {
            switch (RemoteStartStopStatus)
            {
            case RemoteStartStopStatus.Accepted:
                return("Accepted");

            case RemoteStartStopStatus.Rejected:
                return("Rejected");


            default:
                return("unknown");
            }
        }