public override bool IsValid(object value) { bool valid = ApiKey.CanParse(value as string); return(valid); }
public ConfirmationRequest(string apiKey, string templateName, MailAddress confirmer, ApiKey toBeConfirmed, Uri confirmationUrl) { key = apiKey; template_name = templateName; template_content = new TemplateContent[0]; message = new Message(confirmer, toBeConfirmed, confirmationUrl); }