Class SentEmailProjection
SentEmailProjection
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "SentEmailProjection")]
public class SentEmailProjection : IEquatable<SentEmailProjection>, IValidatableObject
Constructors
View SourceSentEmailProjection()
Initializes a new instance of the SentEmailProjection class.
Declaration
[JsonConstructor]
protected SentEmailProjection()
SentEmailProjection(DateTime, Guid, string, string, List<string>, Guid, Guid, List<string>, List<string>, List<string>, string, bool)
Initializes a new instance of the SentEmailProjection class.
Declaration
public SentEmailProjection(DateTime createdAt = default, Guid id = default, string from = null, string subject = null, List<string> attachments = null, Guid inboxId = default, Guid userId = default, List<string> to = null, List<string> bcc = null, List<string> cc = null, string bodyMD5Hash = null, bool virtualSend = false)
Parameters
Type | Name | Description |
---|---|---|
DateTime | createdAt | createdAt (required). |
System.Guid | id | id (required). |
string | from | from. |
string | subject | subject. |
System.Collections.Generic.List<T><string> | attachments | attachments (required). |
System.Guid | inboxId | inboxId (required). |
System.Guid | userId | userId (required). |
System.Collections.Generic.List<T><string> | to | to (required). |
System.Collections.Generic.List<T><string> | bcc | bcc (required). |
System.Collections.Generic.List<T><string> | cc | cc (required). |
string | bodyMD5Hash | bodyMD5Hash. |
bool | virtualSend | virtualSend (required). |
Properties
View SourceAttachments
Gets or Sets Attachments
Declaration
[DataMember(Name = "attachments", IsRequired = true, EmitDefaultValue = true)]
public List<string> Attachments { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<T><string> |
Bcc
Gets or Sets Bcc
Declaration
[DataMember(Name = "bcc", IsRequired = true, EmitDefaultValue = true)]
public List<string> Bcc { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<T><string> |
BodyMD5Hash
Gets or Sets BodyMD5Hash
Declaration
[DataMember(Name = "bodyMD5Hash", EmitDefaultValue = false)]
public string BodyMD5Hash { get; set; }
Property Value
Type | Description |
---|---|
string |
Cc
Gets or Sets Cc
Declaration
[DataMember(Name = "cc", IsRequired = true, EmitDefaultValue = true)]
public List<string> Cc { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<T><string> |
CreatedAt
Gets or Sets CreatedAt
Declaration
[DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)]
public DateTime CreatedAt { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
From
Gets or Sets From
Declaration
[DataMember(Name = "from", EmitDefaultValue = false)]
public string From { get; set; }
Property Value
Type | Description |
---|---|
string |
Id
Gets or Sets Id
Declaration
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
public Guid Id { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
InboxId
Gets or Sets InboxId
Declaration
[DataMember(Name = "inboxId", IsRequired = true, EmitDefaultValue = true)]
public Guid InboxId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
Subject
Gets or Sets Subject
Declaration
[DataMember(Name = "subject", EmitDefaultValue = false)]
public string Subject { get; set; }
Property Value
Type | Description |
---|---|
string |
To
Gets or Sets To
Declaration
[DataMember(Name = "to", IsRequired = true, EmitDefaultValue = true)]
public List<string> To { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<T><string> |
UserId
Gets or Sets UserId
Declaration
[DataMember(Name = "userId", IsRequired = true, EmitDefaultValue = true)]
public Guid UserId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
VirtualSend
Gets or Sets VirtualSend
Declaration
[DataMember(Name = "virtualSend", IsRequired = true, EmitDefaultValue = true)]
public bool VirtualSend { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
View SourceEquals(SentEmailProjection)
Returns true if SentEmailProjection instances are equal
Declaration
public bool Equals(SentEmailProjection input)
Parameters
Type | Name | Description |
---|---|---|
SentEmailProjection | input | Instance of SentEmailProjection 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 |