Class EmailVerificationResult
Email verification result. Valid means email address exists according to response from mail server running at the domain and port given.
Implements
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "EmailVerificationResult")]
public class EmailVerificationResult : IEquatable<EmailVerificationResult>, IValidatableObject
Constructors
View SourceEmailVerificationResult()
Initializes a new instance of the EmailVerificationResult class.
Declaration
[JsonConstructor]
protected EmailVerificationResult()
EmailVerificationResult(string, int, string, bool, string)
Initializes a new instance of the EmailVerificationResult class.
Declaration
public EmailVerificationResult(string domainName = null, int port = 0, string emailAddress = null, bool isValid = false, string error = null)
Parameters
Type | Name | Description |
---|---|---|
string | domainName | domainName (required). |
int | port | port (required). |
string | emailAddress | emailAddress (required). |
bool | isValid | isValid (required). |
string | error | error. |
Properties
View SourceDomainName
Gets or Sets DomainName
Declaration
[DataMember(Name = "domainName", IsRequired = true, EmitDefaultValue = true)]
public string DomainName { get; set; }
Property Value
Type | Description |
---|---|
string |
EmailAddress
Gets or Sets EmailAddress
Declaration
[DataMember(Name = "emailAddress", IsRequired = true, EmitDefaultValue = true)]
public string EmailAddress { get; set; }
Property Value
Type | Description |
---|---|
string |
Error
Gets or Sets Error
Declaration
[DataMember(Name = "error", EmitDefaultValue = true)]
public string Error { get; set; }
Property Value
Type | Description |
---|---|
string |
IsValid
Gets or Sets IsValid
Declaration
[DataMember(Name = "isValid", IsRequired = true, EmitDefaultValue = true)]
public bool IsValid { get; set; }
Property Value
Type | Description |
---|---|
bool |
Port
Gets or Sets Port
Declaration
[DataMember(Name = "port", IsRequired = true, EmitDefaultValue = true)]
public int Port { get; set; }
Property Value
Type | Description |
---|---|
int |
Methods
View SourceEquals(EmailVerificationResult)
Returns true if EmailVerificationResult instances are equal
Declaration
public bool Equals(EmailVerificationResult input)
Parameters
Type | Name | Description |
---|---|---|
EmailVerificationResult | input | Instance of EmailVerificationResult to be compared |
Returns
Type | Description |
---|---|
bool | Boolean |
Equals(object)
Returns true if objects are equal
Declaration
public override bool Equals(object input)
Parameters
Type | Name | Description |
---|---|---|
object | input | Object to be compared |
Returns
Type | Description |
---|---|
bool | Boolean |
Overrides
View SourceGetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | Hash code |
Overrides
View SourceToJson()
Returns the JSON string presentation of the object
Declaration
public virtual string ToJson()
Returns
Type | Description |
---|---|
string | JSON string presentation of the object |
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | String presentation of the object |
Overrides
Validate(ValidationContext)
To validate all properties of the instance
Declaration
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
Parameters
Type | Name | Description |
---|---|---|
ValidationContext | validationContext | Validation context |
Returns
Type | Description |
---|---|
IEnumerable<ValidationResult> | Validation Result |