Class HTMLValidationResult
HTML Validation Results
Implements
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "HTMLValidationResult")]
public class HTMLValidationResult : IEquatable<HTMLValidationResult>, IValidatableObject
Constructors
View SourceHTMLValidationResult()
Initializes a new instance of the HTMLValidationResult class.
Declaration
[JsonConstructor]
protected HTMLValidationResult()
HTMLValidationResult(bool, List<ValidationMessage>, List<ValidationMessage>, List<ValidationMessage>)
Initializes a new instance of the HTMLValidationResult class.
Declaration
public HTMLValidationResult(bool isValid = false, List<ValidationMessage> infos = null, List<ValidationMessage> errors = null, List<ValidationMessage> warnings = null)
Parameters
Type | Name | Description |
---|---|---|
bool | isValid | Is HTML validation result valid (required). |
System.Collections.Generic.List<T><ValidationMessage> | infos | Optional infos resulting from HTML validation (required). |
System.Collections.Generic.List<T><ValidationMessage> | errors | Optional errors resulting from HTML validation (required). |
System.Collections.Generic.List<T><ValidationMessage> | warnings | Optional warnings resulting from HTML validation (required). |
Properties
View SourceErrors
Optional errors resulting from HTML validation
Declaration
[DataMember(Name = "errors", IsRequired = true, EmitDefaultValue = true)]
public List<ValidationMessage> Errors { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<T><ValidationMessage> | Optional errors resulting from HTML validation |
Infos
Optional infos resulting from HTML validation
Declaration
[DataMember(Name = "infos", IsRequired = true, EmitDefaultValue = true)]
public List<ValidationMessage> Infos { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<T><ValidationMessage> | Optional infos resulting from HTML validation |
IsValid
Is HTML validation result valid
Declaration
[DataMember(Name = "isValid", IsRequired = true, EmitDefaultValue = true)]
public bool IsValid { get; set; }
Property Value
Type | Description |
---|---|
bool | Is HTML validation result valid |
Warnings
Optional warnings resulting from HTML validation
Declaration
[DataMember(Name = "warnings", IsRequired = true, EmitDefaultValue = true)]
public List<ValidationMessage> Warnings { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<T><ValidationMessage> | Optional warnings resulting from HTML validation |
Methods
View SourceEquals(HTMLValidationResult)
Returns true if HTMLValidationResult instances are equal
Declaration
public bool Equals(HTMLValidationResult input)
Parameters
Type | Name | Description |
---|---|---|
HTMLValidationResult | input | Instance of HTMLValidationResult 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 |