/// <summary> /// Create new 'reserve now' command command. /// </summary> /// <param name="Token">Token for how to reserve this charge point (and specific EVSE).</param> /// <param name="ExpiryDate">The timestamp when this reservation ends.</param> /// <param name="ReservationId">Reservation identification. If the receiver (typically a charge point operator) already has a reservation that matches this reservation identification for that location it will replace the reservation.</param> /// <param name="LocationId">Location identification of the location (belonging to the CPO this request is send to) for which to reserve an EVSE.</param> /// <param name="ResponseURL">URL that the CommandResult POST should be sent to. This URL might contain an unique identification to be able to distinguish between 'reserve now' command requests.</param> /// /// <param name="EVSEUId">Optional EVSE identification of the EVSE of this location if a specific EVSE has to be reserved.</param> /// <param name="AuthorizationReference">Optional reference to the authorization given by the eMSP, when given, this reference will be provided in the relevant session and/or CDR.</param> /// /// <param name="RequestId">An optional request identification.</param> /// <param name="CorrelationId">An optional request correlation identification.</param> public ReserveNowCommand(Token Token, DateTime ExpiryDate, Reservation_Id ReservationId, Location_Id LocationId, URL ResponseURL, EVSE_UId?EVSEUId = null, AuthorizationReference?AuthorizationReference = null, Request_Id?RequestId = null, Correlation_Id?CorrelationId = null) : base(ResponseURL, RequestId, CorrelationId) { this.Token = Token; this.ExpiryDate = ExpiryDate; this.ReservationId = ReservationId; this.LocationId = LocationId; this.EVSEUId = EVSEUId; this.AuthorizationReference = AuthorizationReference; }
/// <summary> /// Create new 'cancel reservation' command command. /// </summary> /// <param name="ReservationId">Reservation identification unique for this reservation.</param> /// <param name="ResponseURL">URL that the CommandResult POST should be sent to. This URL might contain an unique identification to be able to distinguish between 'cancel reservation' command requests.</param> /// /// <param name="RequestId">An optional request identification.</param> /// <param name="CorrelationId">An optional request correlation identification.</param> public CancelReservationCommand(Reservation_Id ReservationId, URL ResponseURL, Request_Id?RequestId = null, Correlation_Id?CorrelationId = null) : base(ResponseURL, RequestId, CorrelationId) { this.ReservationId = ReservationId; }