/// <summary> /// Create a new authorize stop result. /// </summary> /// <param name="AuthorizatorId">An authorizator identification.</param> /// <param name="ErrorMessage">An error message.</param> private AuthStopChargingStationResult(Authorizator_Id AuthorizatorId, String ErrorMessage = null) { #region Initial checks if (AuthorizatorId == null) { throw new ArgumentNullException("AuthorizatorId", "The given parameter must not be null!"); } #endregion this._Result = AuthStopChargingStationResultType.Error; this._AuthorizatorId = AuthorizatorId; this._Description = ErrorMessage != null ? ErrorMessage : String.Empty; }
/// <summary> /// Create a new authorize stop result. /// </summary> /// <param name="AuthorizatorId">The identification of the authorizing entity.</param> /// <param name="Result">The authorize stop result type.</param> /// <param name="ProviderId">An optional identification of the ev service provider.</param> /// <param name="Description">An optional description of the auth stop result.</param> /// <param name="AdditionalInfo">An optional additional message.</param> private AuthStopChargingStationResult(Authorizator_Id AuthorizatorId, AuthStopChargingStationResultType Result, EVSP_Id ProviderId = null, String Description = null, String AdditionalInfo = null) { #region Initial checks if (AuthorizatorId == null) { throw new ArgumentNullException("AuthorizatorId", "The given parameter must not be null!"); } #endregion this._AuthorizatorId = AuthorizatorId; this._Result = Result; this._ProviderId = ProviderId; this._Description = Description != null ? Description : String.Empty; this._AdditionalInfo = AdditionalInfo != null ? AdditionalInfo : String.Empty; }