Esempio n. 1
0
 public Verify(string recipient, VerifyOptionalArguments arguments = null) : this(arguments)
 {
     long recipientMsisdn;
     if (long.TryParse(recipient, out recipientMsisdn))
     {
         Recipient = recipientMsisdn;
     }
     else
     {
         RecipientEmail = recipient;
     }
 }
Esempio n. 2
0
        private Verify(VerifyOptionalArguments arguments = null)
        {
            arguments = arguments ?? new VerifyOptionalArguments();

            Template    = arguments.Template;
            Encoding    = arguments.Encoding;
            Originator  = arguments.Originator;
            Reference   = arguments.Reference;
            Type        = arguments.Type;
            Timeout     = arguments.Timeout;
            TokenLength = arguments.TokenLength;
            Voice       = arguments.Voice;
            Language    = arguments.Language;
        }
Esempio n. 3
0
        public Verify(long recipient, VerifyOptionalArguments arguments = null)
        {
            Recipient = recipient;

            arguments = arguments ?? new VerifyOptionalArguments();

            Template    = arguments.Template;
            Encoding    = arguments.Encoding;
            Originator  = arguments.Originator;
            Reference   = arguments.Reference;
            Type        = arguments.Type;
            Timeout     = arguments.Timeout;
            TokenLength = arguments.TokenLength;
            Voice       = arguments.Voice;
            Language    = arguments.Language;
        }
Esempio n. 4
0
 // Alias for the old constructor so that it remains backwards compatible
 public Verify(string recipient, VerifyOptionalArguments arguments = null) : this(Convert.ToInt64(recipient), arguments)
 {
 }
Esempio n. 5
0
 // Alias for the old constructor so that it remains backwards compatible
 public Verify(long recipientMsisdn, VerifyOptionalArguments arguments = null) : this(arguments)
 {
     Recipient = recipientMsisdn;
 }