Search Results for

    Show / Hide Table of Contents

    Class SmsMatchOption

    Options for matching SMS messages in a phone number. Each match option object contains a field, should and value property. Together they form logical conditions such as BODY should CONTAIN value.

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

    Constructors

    View Source

    SmsMatchOption()

    Initializes a new instance of the SmsMatchOption class.

    Declaration
    [JsonConstructor]
    protected SmsMatchOption()
    View Source

    SmsMatchOption(FieldEnum, ShouldEnum, string)

    Initializes a new instance of the SmsMatchOption class.

    Declaration
    public SmsMatchOption(SmsMatchOption.FieldEnum field = (SmsMatchOption.FieldEnum)0, SmsMatchOption.ShouldEnum should = (SmsMatchOption.ShouldEnum)0, string value = null)
    Parameters
    Type Name Description
    SmsMatchOption.FieldEnum field

    Fields of an SMS object that can be used to filter results (required).

    SmsMatchOption.ShouldEnum should

    How the value of the email field specified should be compared to the value given in the match options. (required).

    string value

    The value you wish to compare with the value of the field specified using the should value passed. For example BODY should CONTAIN a value passed. (required).

    Properties

    View Source

    Field

    Fields of an SMS object that can be used to filter results

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

    Fields of an SMS object that can be used to filter results

    View Source

    Should

    How the value of the email field specified should be compared to the value given in the match options.

    Declaration
    [DataMember(Name = "should", IsRequired = true, EmitDefaultValue = true)]
    public SmsMatchOption.ShouldEnum Should { get; set; }
    Property Value
    Type Description
    SmsMatchOption.ShouldEnum

    How the value of the email field specified should be compared to the value given in the match options.

    View Source

    Value

    The value you wish to compare with the value of the field specified using the should value passed. For example BODY should CONTAIN a value passed.

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

    The value you wish to compare with the value of the field specified using the should value passed. For example BODY should CONTAIN a value passed.

    Methods

    View Source

    Equals(SmsMatchOption)

    Returns true if SmsMatchOption instances are equal

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

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