/// <summary> /// Create a new identification. /// </summary> /// <param name="EVCOId">A QR code identification.</param> /// <param name="HashValue">Hash value created by partner.</param> /// <param name="HashFunction">Function that was used to generate the hash value.</param> /// <param name="CustomData">Optional customer specific data.</param> public static Identification FromQRCodeIdentification(EVCO_Id EVCOId, Hash_Value HashValue, HashFunctions HashFunction, JObject CustomData = null) => new Identification(QRCodeIdentification: new QRCodeIdentification( EVCOId, new HashedPIN( HashValue, HashFunction ) ), CustomData: CustomData);
/// <summary> /// Create a new hashed PIN. /// </summary> /// <param name="Value">Hash value created by partner.</param> /// <param name="Function">Function that was used to generate the hash value.</param> public HashedPIN(Hash_Value Value, HashFunctions Function) { this.Value = Value; this.Function = Function; }