public ClientSmokeTestHelper SendIdentification()
        {
            Assert_state(_identification);

            _identificationResult = _digipostClient.Identify(_identification);

            return(this);
        }
Ejemplo n.º 2
0
        public void IdentifyRecipient()
        {
            var identification         = new Identification(new RecipientById(IdentificationType.PersonalIdentificationNumber, "211084xxxxx"));
            var identificationResponse = client.Identify(identification);

            if (identificationResponse.ResultType == IdentificationResultType.DigipostAddress)
            {
                //Exist as user in Digipost.
                //If you used personal identification number to identify - use this to send a message to this individual.
                //If not, see Data field for DigipostAddress.
            }
            else if (identificationResponse.ResultType == IdentificationResultType.Personalias)
            {
                //The person is identified but does not have an active Digipost account.
                //You can continue to use this alias to check the status of the user in future calls.
            }
            else if (identificationResponse.ResultType == IdentificationResultType.InvalidReason ||
                     identificationResponse.ResultType == IdentificationResultType.UnidentifiedReason)
            {
                //The person is NOT identified. Check Error for more details.
            }
        }