Class AttachmentEntityDto
DTO representation of an attachment.
Implements
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "AttachmentEntityDto")]
public class AttachmentEntityDto : IValidatableObject
Constructors
View SourceAttachmentEntityDto()
Initializes a new instance of the AttachmentEntityDto class.
Declaration
[JsonConstructor]
protected AttachmentEntityDto()
AttachmentEntityDto(Guid, string, Guid, string, long?, string, string, Guid?, DateTime, DateTime)
Initializes a new instance of the AttachmentEntityDto class.
Declaration
public AttachmentEntityDto(Guid id = default, string attachmentId = null, Guid userId = default, string contentType = null, long? contentLength = null, string contentId = null, string name = null, Guid? inboxId = null, DateTime createdAt = default, DateTime updatedAt = default)
Parameters
Type | Name | Description |
---|---|---|
Guid | id | The unique identifier for this attachment. (required). |
string | attachmentId | The identifier of the attachment file (required). |
Guid | userId | The user identifier associated with this attachment. (required). |
string | contentType | The content type of the attachment.. |
long? | contentLength | The content length of the attachment in bytes.. |
string | contentId | The content identifier, which is a unique ID for the content part of the email.. |
string | name | The name of the attachment file.. |
Guid? | inboxId | The inbox identifier associated with this attachment.. |
DateTime | createdAt | The timestamp when this attachment was created. (required). |
DateTime | updatedAt | The timestamp when this attachment was last updated. (required). |
Properties
View SourceAttachmentId
The identifier of the attachment file
Declaration
[DataMember(Name = "attachmentId", IsRequired = true, EmitDefaultValue = true)]
public string AttachmentId { get; set; }
Property Value
Type | Description |
---|---|
string | The identifier of the attachment file |
ContentId
The content identifier, which is a unique ID for the content part of the email.
Declaration
[DataMember(Name = "contentId", EmitDefaultValue = true)]
public string ContentId { get; set; }
Property Value
Type | Description |
---|---|
string | The content identifier, which is a unique ID for the content part of the email. |
ContentLength
The content length of the attachment in bytes.
Declaration
[DataMember(Name = "contentLength", EmitDefaultValue = true)]
public long? ContentLength { get; set; }
Property Value
Type | Description |
---|---|
long? | The content length of the attachment in bytes. |
ContentType
The content type of the attachment.
Declaration
[DataMember(Name = "contentType", EmitDefaultValue = true)]
public string ContentType { get; set; }
Property Value
Type | Description |
---|---|
string | The content type of the attachment. |
CreatedAt
The timestamp when this attachment was created.
Declaration
[DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)]
public DateTime CreatedAt { get; set; }
Property Value
Type | Description |
---|---|
DateTime | The timestamp when this attachment was created. |
Id
The unique identifier for this attachment.
Declaration
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
public Guid Id { get; set; }
Property Value
Type | Description |
---|---|
Guid | The unique identifier for this attachment. |
InboxId
The inbox identifier associated with this attachment.
Declaration
[DataMember(Name = "inboxId", EmitDefaultValue = true)]
public Guid? InboxId { get; set; }
Property Value
Type | Description |
---|---|
Guid? | The inbox identifier associated with this attachment. |
Name
The name of the attachment file.
Declaration
[DataMember(Name = "name", EmitDefaultValue = true)]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string | The name of the attachment file. |
UpdatedAt
The timestamp when this attachment was last updated.
Declaration
[DataMember(Name = "updatedAt", IsRequired = true, EmitDefaultValue = true)]
public DateTime UpdatedAt { get; set; }
Property Value
Type | Description |
---|---|
DateTime | The timestamp when this attachment was last updated. |
UserId
The user identifier associated with this attachment.
Declaration
[DataMember(Name = "userId", IsRequired = true, EmitDefaultValue = true)]
public Guid UserId { get; set; }
Property Value
Type | Description |
---|---|
Guid | The user identifier associated with this attachment. |
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 |