public eMAIdWithPIN2(eMobilityAccount_Id eMAId, String PIN) { this._eMAId = eMAId; this._PIN = PIN; this._Function = PINCrypto.none; }
public eMAIdWithPIN2(eMobilityAccount_Id eMAId, String PIN, PINCrypto Function, String Salt = "") { this._eMAId = eMAId; this._PIN = PIN; this._Function = Function; this._Salt = Salt; }
/// <summary> /// Create a new eMAId status. /// </summary> /// <param name="eMAId">The unique identification of an eMAId.</param> /// <param name="Status">The current status of an eMAId.</param> public eMAIdStatus(eMobilityAccount_Id eMAId, eMAIdStatusType Status) { #region Initial checks if (eMAId == null) { throw new ArgumentNullException(nameof(eMAId), "The given unique identification of an eMAId must not be null!"); } #endregion this.Id = eMAId; this.Status = Status; }
/// <summary> /// Create a new authentication info based on the given /// e-mobility account identification. /// </summary> /// <param name="RemoteIdentification">An e-mobility account identification.</param> /// <param name="Description">An optional multilingual description.</param> public static RemoteAuthentication FromRemoteIdentification(eMobilityAccount_Id RemoteIdentification, I18NString Description = null) => new RemoteAuthentication(RemoteIdentification: RemoteIdentification, Description: Description);
/// <summary> /// Create a new authentication info based on the given /// e-mobility account identification transmitted via PnC. /// </summary> /// <param name="PlugAndChargeIdentification">A PnC e-mobility account identification.</param> /// <param name="Description">An optional multilingual description.</param> public static RemoteAuthentication FromPlugAndChargeIdentification(eMobilityAccount_Id PlugAndChargeIdentification, I18NString Description = null) => new RemoteAuthentication(PlugAndChargeIdentification: PlugAndChargeIdentification, Description: Description);
/// <summary> /// Create a new authentication info based on the given /// e-mobility account identification and its password. /// </summary> /// <param name="eMAId">An e-mobility account identification.</param> /// <param name="PIN">A password/PIN.</param> /// <param name="Description">An optional multilingual description.</param> public static RemoteAuthentication FromQRCodeIdentification(eMobilityAccount_Id eMAId, String PIN, I18NString Description = null) => new RemoteAuthentication(QRCodeIdentification: new eMAIdWithPIN2(eMAId, PIN), Description: Description);