Search Results for

    Show / Hide Table of Contents

    Class InboxForwarderDto

    Inbox forwarder. Describes how an inbox will forward matching emails to designated recipients.

    Inheritance
    object
    InboxForwarderDto
    Implements
    IEquatable<InboxForwarderDto>
    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 = "InboxForwarderDto")]
    public class InboxForwarderDto : IEquatable<InboxForwarderDto>, IValidatableObject

    Constructors

    View Source

    InboxForwarderDto()

    Initializes a new instance of the InboxForwarderDto class.

    Declaration
    [JsonConstructor]
    protected InboxForwarderDto()
    View Source

    InboxForwarderDto(Guid, Guid, string, FieldEnum, string, List<string>, DateTime)

    Initializes a new instance of the InboxForwarderDto class.

    Declaration
    public InboxForwarderDto(Guid id = default, Guid inboxId = default, string name = null, InboxForwarderDto.FieldEnum field = (InboxForwarderDto.FieldEnum)0, string match = null, List<string> forwardToRecipients = null, DateTime createdAt = default)
    Parameters
    Type Name Description
    System.Guid id

    id (required).

    System.Guid inboxId

    inboxId (required).

    string name

    Name of inbox forwarder.

    InboxForwarderDto.FieldEnum field

    Which field to match against (required).

    string match

    Wild-card type pattern to apply to field (required).

    System.Collections.Generic.List<T><string> forwardToRecipients

    Who to send forwarded email to (required).

    DateTime createdAt

    createdAt (required).

    Properties

    View Source

    CreatedAt

    Gets or Sets CreatedAt

    Declaration
    [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)]
    public DateTime CreatedAt { get; set; }
    Property Value
    Type Description
    DateTime
    View Source

    Field

    Which field to match against

    Declaration
    [DataMember(Name = "field", IsRequired = true, EmitDefaultValue = true)]
    public InboxForwarderDto.FieldEnum Field { get; set; }
    Property Value
    Type Description
    InboxForwarderDto.FieldEnum

    Which field to match against

    View Source

    ForwardToRecipients

    Who to send forwarded email to

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

    Who to send forwarded email to

    View Source

    Id

    Gets or Sets Id

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

    InboxId

    Gets or Sets InboxId

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

    Match

    Wild-card type pattern to apply to field

    Declaration
    [DataMember(Name = "match", IsRequired = true, EmitDefaultValue = true)]
    public string Match { get; set; }
    Property Value
    Type Description
    string

    Wild-card type pattern to apply to field

    View Source

    Name

    Name of inbox forwarder

    Declaration
    [DataMember(Name = "name", EmitDefaultValue = true)]
    public string Name { get; set; }
    Property Value
    Type Description
    string

    Name of inbox forwarder

    Methods

    View Source

    Equals(InboxForwarderDto)

    Returns true if InboxForwarderDto instances are equal

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

    Instance of InboxForwarderDto 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.