Class ConditionOption
Options for matching emails in an inbox based on a condition such as HAS_ATTACHMENTS=TRUE
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "ConditionOption")]
public class ConditionOption : IEquatable<ConditionOption>, IValidatableObject
Constructors
View SourceConditionOption()
Initializes a new instance of the ConditionOption class.
Declaration
[JsonConstructor]
protected ConditionOption()
ConditionOption(ConditionEnum, ValueEnum)
Initializes a new instance of the ConditionOption class.
Declaration
public ConditionOption(ConditionOption.ConditionEnum condition = (ConditionOption.ConditionEnum)0, ConditionOption.ValueEnum value = (ConditionOption.ValueEnum)0)
Parameters
Type | Name | Description |
---|---|---|
ConditionOption.ConditionEnum | condition | Condition of an email object that can be used to filter results (required). |
ConditionOption.ValueEnum | value | Expected condition value (required). |
Properties
View SourceCondition
Condition of an email object that can be used to filter results
Declaration
[DataMember(Name = "condition", IsRequired = true, EmitDefaultValue = true)]
public ConditionOption.ConditionEnum Condition { get; set; }
Property Value
Type | Description |
---|---|
ConditionOption.ConditionEnum | Condition of an email object that can be used to filter results |
Value
Expected condition value
Declaration
[DataMember(Name = "value", IsRequired = true, EmitDefaultValue = true)]
public ConditionOption.ValueEnum Value { get; set; }
Property Value
Type | Description |
---|---|
ConditionOption.ValueEnum | Expected condition value |
Methods
View SourceEquals(ConditionOption)
Returns true if ConditionOption instances are equal
Declaration
public bool Equals(ConditionOption input)
Parameters
Type | Name | Description |
---|---|---|
ConditionOption | input | Instance of ConditionOption 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 |