Class EmailAuditDto
Persisted email audit result
Implements
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "EmailAuditDto")]
public class EmailAuditDto : IValidatableObject
Constructors
View SourceEmailAuditDto()
Initializes a new instance of the EmailAuditDto class.
Declaration
[JsonConstructor]
protected EmailAuditDto()
EmailAuditDto(Guid, Guid, Guid?, string, string, string, EmailAuditAnalysisResult, DateTime, DateTime)
Initializes a new instance of the EmailAuditDto class.
Declaration
public EmailAuditDto(Guid id = default, Guid userId = default, Guid? emailId = null, string fromAddress = null, string recipient = null, string subject = null, EmailAuditAnalysisResult analysis = null, DateTime createdAt = default, DateTime updatedAt = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | id | id (required). |
| Guid | userId | userId (required). |
| Guid? | emailId | emailId. |
| string | fromAddress | fromAddress. |
| string | recipient | recipient. |
| string | subject | subject. |
| EmailAuditAnalysisResult | analysis | analysis (required). |
| DateTime | createdAt | createdAt (required). |
| DateTime | updatedAt | updatedAt (required). |
Properties
View SourceAnalysis
Gets or Sets Analysis
Declaration
[DataMember(Name = "analysis", IsRequired = true, EmitDefaultValue = true)]
public EmailAuditAnalysisResult Analysis { get; set; }
Property Value
| Type | Description |
|---|---|
| EmailAuditAnalysisResult |
CreatedAt
Gets or Sets CreatedAt
Declaration
[DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)]
public DateTime CreatedAt { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime |
EmailId
Gets or Sets EmailId
Declaration
[DataMember(Name = "emailId", EmitDefaultValue = true)]
public Guid? EmailId { get; set; }
Property Value
| Type | Description |
|---|---|
| Guid? |
FromAddress
Gets or Sets FromAddress
Declaration
[DataMember(Name = "fromAddress", EmitDefaultValue = true)]
public string FromAddress { 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 |
|---|---|
| Guid |
Recipient
Gets or Sets Recipient
Declaration
[DataMember(Name = "recipient", EmitDefaultValue = true)]
public string Recipient { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Subject
Gets or Sets Subject
Declaration
[DataMember(Name = "subject", EmitDefaultValue = true)]
public string Subject { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
UpdatedAt
Gets or Sets UpdatedAt
Declaration
[DataMember(Name = "updatedAt", IsRequired = true, EmitDefaultValue = true)]
public DateTime UpdatedAt { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime |
UserId
Gets or Sets UserId
Declaration
[DataMember(Name = "userId", IsRequired = true, EmitDefaultValue = true)]
public Guid UserId { get; set; }
Property Value
| Type | Description |
|---|---|
| Guid |
Methods
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 |