コード例 #1
0
        /// <summary>
        /// Create a new OCPP cancel reservation response.
        /// </summary>
        /// <param name="Status">The success or failure of the reservation.</param>
        public CancelReservationResponse(CancelReservationStatus Status)

            : base(Result.OK())

        {
            this.Status = Status;
        }
コード例 #2
0
        /// <summary>
        /// Return a string representation of the given cancel reservation status.
        /// </summary>
        /// <param name="CancelReservationStatus">A cancel reservation status.</param>
        public static String AsText(this CancelReservationStatus CancelReservationStatus)
        {
            switch (CancelReservationStatus)
            {
            case CancelReservationStatus.Accepted:
                return("Accepted");

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


            default:
                return("unknown");
            }
        }