public static Task <SetChargingProfileResponse> SetChargingProfile(this ICentralSystemClient ICentralSystemClient, ChargeBox_Id ChargeBoxId, Connector_Id ConnectorId, ChargingProfile ChargingProfile, Request_Id?RequestId = null, DateTime?RequestTimestamp = null, TimeSpan?Timeout = null) => ICentralSystemClient.SetChargingProfile(new SetChargingProfileRequest(ChargeBoxId, ConnectorId, ChargingProfile, RequestId, RequestTimestamp), Timeout);
/// <summary> /// Create an OCPP SetChargingProfileRequest XML/SOAP request. /// </summary> /// <param name="ConnectorId">The connector to which the charging profile applies. If connectorId = 0, the message contains an overall limit for the charge point.</param> /// <param name="ChargingProfile">The charging profile to be set.</param> public SetChargingProfileRequest(Connector_Id ConnectorId, ChargingProfile ChargingProfile) { #region Initial checks if (ChargingProfile == null) { throw new ArgumentNullException(nameof(ChargingProfile), "The given charging profile must not be null!"); } #endregion this.ConnectorId = ConnectorId; this.ChargingProfile = ChargingProfile; }
/// <summary> /// Create a new SetChargingProfile request. /// </summary> /// <param name="ChargeBoxId">The charge box identification.</param> /// <param name="ConnectorId">The connector to which the charging profile applies. If connectorId = 0, the message contains an overall limit for the charge point.</param> /// <param name="ChargingProfile">The charging profile to be set.</param> /// /// <param name="RequestId">An optional request identification.</param> /// <param name="RequestTimestamp">An optional request timestamp.</param> public SetChargingProfileRequest(ChargeBox_Id ChargeBoxId, Connector_Id ConnectorId, ChargingProfile ChargingProfile, Request_Id?RequestId = null, DateTime?RequestTimestamp = null) : base(ChargeBoxId, "SetChargingProfile", RequestId, RequestTimestamp) { this.ConnectorId = ConnectorId; this.ChargingProfile = ChargingProfile ?? throw new ArgumentNullException(nameof(ChargingProfile), "The given charging profile must not be null!"); }
/// <summary> /// Create a RemoteStartTransaction XML/SOAP request. /// </summary> /// <param name="IdTag">The identification tag to start the charging transaction.</param> /// <param name="ConnectorId">An optional connector identification on which the charging transaction should be started (SHALL be > 0).</param> /// <param name="ChargingProfile">An optional charging profile to be used by the charge point for the requested charging transaction.</param> public RemoteStartTransactionRequest(IdToken IdTag, Connector_Id?ConnectorId = null, ChargingProfile ChargingProfile = null) { #region Initial checks if (IdTag.IsNullOrEmpty) { throw new ArgumentNullException(nameof(IdTag), "The given identification tag must not be null!"); } #endregion this.IdTag = IdTag; this.ConnectorId = ConnectorId; this.ChargingProfile = ChargingProfile; }
public static Task <RemoteStartTransactionResponse> RemoteStartTransaction(this ICentralSystemClient ICentralSystemClient, ChargeBox_Id ChargeBoxId, IdToken IdTag, Connector_Id?ConnectorId = null, ChargingProfile ChargingProfile = null, Request_Id?RequestId = null, DateTime?RequestTimestamp = null, TimeSpan?Timeout = null) => ICentralSystemClient.RemoteStartTransaction(new RemoteStartTransactionRequest(ChargeBoxId, IdTag, ConnectorId, ChargingProfile, RequestId, RequestTimestamp), Timeout);
/// <summary> /// Create a new RemoteStartTransaction request. /// </summary> /// <param name="ChargeBoxId">The charge box identification.</param> /// <param name="IdTag">The identification tag to start the charging transaction.</param> /// <param name="ConnectorId">An optional connector identification on which the charging transaction should be started (SHALL be > 0).</param> /// <param name="ChargingProfile">An optional charging profile to be used by the charge point for the requested charging transaction.</param> /// /// <param name="RequestId">An optional request identification.</param> /// <param name="RequestTimestamp">An optional request timestamp.</param> public RemoteStartTransactionRequest(ChargeBox_Id ChargeBoxId, IdToken IdTag, Connector_Id?ConnectorId = null, ChargingProfile ChargingProfile = null, Request_Id?RequestId = null, DateTime?RequestTimestamp = null) : base(ChargeBoxId, "RemoteStartTransaction", RequestId, RequestTimestamp) { this.IdTag = IdTag; this.ConnectorId = ConnectorId; this.ChargingProfile = ChargingProfile; }
/// <summary> /// Create a set charging profile request. /// </summary> /// <param name="ConnectorId">The connector to which the charging profile applies. If connectorId = 0, the message contains an overall limit for the charge point.</param> /// <param name="ChargingProfile">The charging profile to be set.</param> public SetChargingProfileRequest(Connector_Id ConnectorId, ChargingProfile ChargingProfile) { this.ConnectorId = ConnectorId; this.ChargingProfile = ChargingProfile ?? throw new ArgumentNullException(nameof(ChargingProfile), "The given charging profile must not be null!"); }