Class ImapServerSearchOptions
IMAP server search options
Implements
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "ImapServerSearchOptions")]
public class ImapServerSearchOptions : IEquatable<ImapServerSearchOptions>, IValidatableObject
Constructors
View SourceImapServerSearchOptions(string, string, DateTime?, DateTime?, DateTime?, DateTime?, Dictionary<string, List<string>>, List<string>, List<string>, List<string>, List<string>)
Initializes a new instance of the ImapServerSearchOptions class.
Declaration
public ImapServerSearchOptions(string seqNum = null, string uid = null, DateTime? since = null, DateTime? before = null, DateTime? sentSince = null, DateTime? sentBefore = null, Dictionary<string, List<string>> header = null, List<string> body = null, List<string> text = null, List<string> withFlags = null, List<string> withoutFlags = null)
Parameters
Type | Name | Description |
---|---|---|
string | seqNum | seqNum. |
string | uid | uid. |
DateTime? | since | since. |
DateTime? | before | before. |
DateTime? | sentSince | sentSince. |
DateTime? | sentBefore | sentBefore. |
Dictionary<string, System.Collections.Generic.List<T><string>> | header | header. |
System.Collections.Generic.List<T><string> | body | body. |
System.Collections.Generic.List<T><string> | text | text. |
System.Collections.Generic.List<T><string> | withFlags | withFlags. |
System.Collections.Generic.List<T><string> | withoutFlags | withoutFlags. |
Properties
View SourceBefore
Gets or Sets Before
Declaration
[DataMember(Name = "before", EmitDefaultValue = true)]
public DateTime? Before { get; set; }
Property Value
Type | Description |
---|---|
DateTime? |
Body
Gets or Sets Body
Declaration
[DataMember(Name = "body", EmitDefaultValue = true)]
public List<string> Body { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<T><string> |
Header
Gets or Sets Header
Declaration
[DataMember(Name = "header", EmitDefaultValue = true)]
public Dictionary<string, List<string>> Header { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, System.Collections.Generic.List<T><string>> |
SentBefore
Gets or Sets SentBefore
Declaration
[DataMember(Name = "sentBefore", EmitDefaultValue = true)]
public DateTime? SentBefore { get; set; }
Property Value
Type | Description |
---|---|
DateTime? |
SentSince
Gets or Sets SentSince
Declaration
[DataMember(Name = "sentSince", EmitDefaultValue = true)]
public DateTime? SentSince { get; set; }
Property Value
Type | Description |
---|---|
DateTime? |
SeqNum
Gets or Sets SeqNum
Declaration
[DataMember(Name = "seqNum", EmitDefaultValue = true)]
public string SeqNum { get; set; }
Property Value
Type | Description |
---|---|
string |
Since
Gets or Sets Since
Declaration
[DataMember(Name = "since", EmitDefaultValue = true)]
public DateTime? Since { get; set; }
Property Value
Type | Description |
---|---|
DateTime? |
Text
Gets or Sets Text
Declaration
[DataMember(Name = "text", EmitDefaultValue = true)]
public List<string> Text { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<T><string> |
Uid
Gets or Sets Uid
Declaration
[DataMember(Name = "uid", EmitDefaultValue = true)]
public string Uid { get; set; }
Property Value
Type | Description |
---|---|
string |
WithFlags
Gets or Sets WithFlags
Declaration
[DataMember(Name = "withFlags", EmitDefaultValue = true)]
public List<string> WithFlags { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<T><string> |
WithoutFlags
Gets or Sets WithoutFlags
Declaration
[DataMember(Name = "withoutFlags", EmitDefaultValue = true)]
public List<string> WithoutFlags { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<T><string> |
Methods
View SourceEquals(ImapServerSearchOptions)
Returns true if ImapServerSearchOptions instances are equal
Declaration
public bool Equals(ImapServerSearchOptions input)
Parameters
Type | Name | Description |
---|---|---|
ImapServerSearchOptions | input | Instance of ImapServerSearchOptions 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 |