public Verify(string recipient, VerifyOptionalArguments arguments = null) : this(arguments) { long recipientMsisdn; if (long.TryParse(recipient, out recipientMsisdn)) { Recipient = recipientMsisdn; } else { RecipientEmail = recipient; } }
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; }
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; }
// Alias for the old constructor so that it remains backwards compatible public Verify(string recipient, VerifyOptionalArguments arguments = null) : this(Convert.ToInt64(recipient), arguments) { }
// Alias for the old constructor so that it remains backwards compatible public Verify(long recipientMsisdn, VerifyOptionalArguments arguments = null) : this(arguments) { Recipient = recipientMsisdn; }