Class ImapServerFetchItem
IMAP fetch content in raw format
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "ImapServerFetchItem")]
public class ImapServerFetchItem : IEquatable<ImapServerFetchItem>, IValidatableObject
Constructors
View SourceImapServerFetchItem()
Initializes a new instance of the ImapServerFetchItem class.
Declaration
[JsonConstructor]
protected ImapServerFetchItem()
ImapServerFetchItem(string, Guid, long, long, bool)
Initializes a new instance of the ImapServerFetchItem class.
Declaration
public ImapServerFetchItem(string content = null, Guid id = default, long uid = 0, long seqNum = 0, bool read = false)
Parameters
Type | Name | Description |
---|---|---|
string | content | Content of the email (required). |
System.Guid | id | ID of the email (required). |
long | uid | UID of the email (required). |
long | seqNum | Sequence number of the email (required). |
bool | read | Read status of the email (required). |
Properties
View SourceContent
Content of the email
Declaration
[DataMember(Name = "content", IsRequired = true, EmitDefaultValue = true)]
public string Content { get; set; }
Property Value
Type | Description |
---|---|
string | Content of the email |
Id
ID of the email
Declaration
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
public Guid Id { get; set; }
Property Value
Type | Description |
---|---|
System.Guid | ID of the email |
Read
Read status of the email
Declaration
[DataMember(Name = "read", IsRequired = true, EmitDefaultValue = true)]
public bool Read { get; set; }
Property Value
Type | Description |
---|---|
bool | Read status of the email |
SeqNum
Sequence number of the email
Declaration
[DataMember(Name = "seqNum", IsRequired = true, EmitDefaultValue = true)]
public long SeqNum { get; set; }
Property Value
Type | Description |
---|---|
long | Sequence number of the email |
Uid
UID of the email
Declaration
[DataMember(Name = "uid", IsRequired = true, EmitDefaultValue = true)]
public long Uid { get; set; }
Property Value
Type | Description |
---|---|
long | UID of the email |
Methods
View SourceEquals(ImapServerFetchItem)
Returns true if ImapServerFetchItem instances are equal
Declaration
public bool Equals(ImapServerFetchItem input)
Parameters
Type | Name | Description |
---|---|---|
ImapServerFetchItem | input | Instance of ImapServerFetchItem 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 |