Search Results for

    Show / Hide Table of Contents

    Class WaitForConditions

    Conditions to apply to emails that you are waiting for

    Inheritance
    object
    WaitForConditions
    Implements
    IEquatable<WaitForConditions>
    System.ComponentModel.DataAnnotations.IValidatableObject
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: mailslurp.Model
    Assembly: mailslurp.dll
    Syntax
    [DataContract(Name = "WaitForConditions")]
    public class WaitForConditions : IEquatable<WaitForConditions>, IValidatableObject

    Constructors

    View Source

    WaitForConditions()

    Initializes a new instance of the WaitForConditions class.

    Declaration
    [JsonConstructor]
    protected WaitForConditions()
    View Source

    WaitForConditions(Guid, int?, long?, long, bool?, CountTypeEnum?, List<MatchOption>, SortDirectionEnum?, DateTime?, DateTime?)

    Initializes a new instance of the WaitForConditions class.

    Declaration
    public WaitForConditions(Guid inboxId = default, int? count = null, long? delayTimeout = null, long timeout = 0, bool? unreadOnly = null, WaitForConditions.CountTypeEnum? countType = null, List<MatchOption> matches = null, WaitForConditions.SortDirectionEnum? sortDirection = null, DateTime? since = null, DateTime? before = null)
    Parameters
    Type Name Description
    System.Guid inboxId

    ID of inbox to search within and apply conditions to. Essentially filtering the emails found to give a count. (required).

    int? count

    Number of results that should match conditions. Either exactly or at least this amount based on the countType. If count condition is not met and the timeout has not been reached the waitFor method will retry the operation..

    long? delayTimeout

    Max time in milliseconds to wait between retries if a timeout is specified..

    long timeout

    Max time in milliseconds to retry the waitFor operation until conditions are met. (required).

    bool? unreadOnly

    Apply conditions only to unread emails. All emails begin with read=false. An email is marked read=true when an EmailDto representation of it has been returned to the user at least once. For example you have called getEmail or waitForLatestEmail etc., or you have viewed the email in the dashboard..

    WaitForConditions.CountTypeEnum? countType

    How result size should be compared with the expected size. Exactly or at-least matching result?.

    System.Collections.Generic.List<T><MatchOption> matches

    Conditions that should be matched for an email to qualify for results. Each condition will be applied in order to each email within an inbox to filter a result list of matching emails you are waiting for..

    WaitForConditions.SortDirectionEnum? sortDirection

    Direction to sort matching emails by created time.

    DateTime? since

    ISO Date Time earliest time of email to consider. Filter for matching emails that were received after this date.

    DateTime? before

    ISO Date Time latest time of email to consider. Filter for matching emails that were received before this date.

    Properties

    View Source

    Before

    ISO Date Time latest time of email to consider. Filter for matching emails that were received before this date

    Declaration
    [DataMember(Name = "before", EmitDefaultValue = true)]
    public DateTime? Before { get; set; }
    Property Value
    Type Description
    DateTime?

    ISO Date Time latest time of email to consider. Filter for matching emails that were received before this date

    View Source

    Count

    Number of results that should match conditions. Either exactly or at least this amount based on the countType. If count condition is not met and the timeout has not been reached the waitFor method will retry the operation.

    Declaration
    [DataMember(Name = "count", EmitDefaultValue = true)]
    public int? Count { get; set; }
    Property Value
    Type Description
    int?

    Number of results that should match conditions. Either exactly or at least this amount based on the countType. If count condition is not met and the timeout has not been reached the waitFor method will retry the operation.

    View Source

    CountType

    How result size should be compared with the expected size. Exactly or at-least matching result?

    Declaration
    [DataMember(Name = "countType", EmitDefaultValue = true)]
    public WaitForConditions.CountTypeEnum? CountType { get; set; }
    Property Value
    Type Description
    WaitForConditions.CountTypeEnum?

    How result size should be compared with the expected size. Exactly or at-least matching result?

    View Source

    DelayTimeout

    Max time in milliseconds to wait between retries if a timeout is specified.

    Declaration
    [DataMember(Name = "delayTimeout", EmitDefaultValue = true)]
    public long? DelayTimeout { get; set; }
    Property Value
    Type Description
    long?

    Max time in milliseconds to wait between retries if a timeout is specified.

    View Source

    InboxId

    ID of inbox to search within and apply conditions to. Essentially filtering the emails found to give a count.

    Declaration
    [DataMember(Name = "inboxId", IsRequired = true, EmitDefaultValue = true)]
    public Guid InboxId { get; set; }
    Property Value
    Type Description
    System.Guid

    ID of inbox to search within and apply conditions to. Essentially filtering the emails found to give a count.

    View Source

    Matches

    Conditions that should be matched for an email to qualify for results. Each condition will be applied in order to each email within an inbox to filter a result list of matching emails you are waiting for.

    Declaration
    [DataMember(Name = "matches", EmitDefaultValue = true)]
    public List<MatchOption> Matches { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<T><MatchOption>

    Conditions that should be matched for an email to qualify for results. Each condition will be applied in order to each email within an inbox to filter a result list of matching emails you are waiting for.

    View Source

    Since

    ISO Date Time earliest time of email to consider. Filter for matching emails that were received after this date

    Declaration
    [DataMember(Name = "since", EmitDefaultValue = true)]
    public DateTime? Since { get; set; }
    Property Value
    Type Description
    DateTime?

    ISO Date Time earliest time of email to consider. Filter for matching emails that were received after this date

    View Source

    SortDirection

    Direction to sort matching emails by created time

    Declaration
    [DataMember(Name = "sortDirection", EmitDefaultValue = true)]
    public WaitForConditions.SortDirectionEnum? SortDirection { get; set; }
    Property Value
    Type Description
    WaitForConditions.SortDirectionEnum?

    Direction to sort matching emails by created time

    View Source

    Timeout

    Max time in milliseconds to retry the waitFor operation until conditions are met.

    Declaration
    [DataMember(Name = "timeout", IsRequired = true, EmitDefaultValue = true)]
    public long Timeout { get; set; }
    Property Value
    Type Description
    long

    Max time in milliseconds to retry the waitFor operation until conditions are met.

    View Source

    UnreadOnly

    Apply conditions only to unread emails. All emails begin with read=false. An email is marked read=true when an EmailDto representation of it has been returned to the user at least once. For example you have called getEmail or waitForLatestEmail etc., or you have viewed the email in the dashboard.

    Declaration
    [DataMember(Name = "unreadOnly", EmitDefaultValue = true)]
    public bool? UnreadOnly { get; set; }
    Property Value
    Type Description
    bool?

    Apply conditions only to unread emails. All emails begin with read=false. An email is marked read=true when an EmailDto representation of it has been returned to the user at least once. For example you have called getEmail or waitForLatestEmail etc., or you have viewed the email in the dashboard.

    Methods

    View Source

    Equals(WaitForConditions)

    Returns true if WaitForConditions instances are equal

    Declaration
    public bool Equals(WaitForConditions input)
    Parameters
    Type Name Description
    WaitForConditions input

    Instance of WaitForConditions to be compared

    Returns
    Type Description
    bool

    Boolean

    View Source

    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
    Object.Equals(Object)
    View Source

    GetHashCode()

    Gets the hash code

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    Hash code

    Overrides
    Object.GetHashCode()
    View Source

    ToJson()

    Returns the JSON string presentation of the object

    Declaration
    public virtual string ToJson()
    Returns
    Type Description
    string

    JSON string presentation of the object

    View Source

    ToString()

    Returns the string presentation of the object

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    String presentation of the object

    Overrides
    object.ToString()
    View Source

    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

    Implements

    System.IEquatable<T>
    System.ComponentModel.DataAnnotations.IValidatableObject
    • View Source
    In This Article
    Back to top See MailSlurp website for more information.