Class AttachmentProjection
Email attachment data
Implements
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "AttachmentProjection")]
public class AttachmentProjection : IValidatableObject
Constructors
View SourceAttachmentProjection()
Initializes a new instance of the AttachmentProjection class.
Declaration
[JsonConstructor]
protected AttachmentProjection()
AttachmentProjection(Guid, Guid, DateTime, DateTime, string, string, string, Guid, long?, string)
Initializes a new instance of the AttachmentProjection class.
Declaration
public AttachmentProjection(Guid userId = default, Guid inboxId = default, DateTime updatedAt = default, DateTime createdAt = default, string contentId = null, string attachmentId = null, string name = null, Guid id = default, long? contentLength = null, string contentType = null)
Parameters
Type | Name | Description |
---|---|---|
Guid | userId | userId (required). |
Guid | inboxId | Inbox ID. |
DateTime | updatedAt | updatedAt (required). |
DateTime | createdAt | createdAt (required). |
string | contentId | Content ID of attachment.. |
string | attachmentId | Attachment ID (required). |
string | name | name. |
Guid | id | ID (required). |
long? | contentLength | Content length of attachment in bytes. |
string | contentType | Content type of attachment.. |
Properties
View SourceAttachmentId
Attachment ID
Declaration
[DataMember(Name = "attachmentId", IsRequired = true, EmitDefaultValue = true)]
public string AttachmentId { get; set; }
Property Value
Type | Description |
---|---|
string | Attachment ID |
ContentId
Content ID of attachment.
Declaration
[DataMember(Name = "contentId", EmitDefaultValue = true)]
public string ContentId { get; set; }
Property Value
Type | Description |
---|---|
string | Content ID of attachment. |
ContentLength
Content length of attachment in bytes
Declaration
[DataMember(Name = "contentLength", EmitDefaultValue = true)]
public long? ContentLength { get; set; }
Property Value
Type | Description |
---|---|
long? | Content length of attachment in bytes |
ContentType
Content type of attachment.
Declaration
[DataMember(Name = "contentType", EmitDefaultValue = true)]
public string ContentType { get; set; }
Property Value
Type | Description |
---|---|
string | Content type of attachment. |
CreatedAt
Gets or Sets CreatedAt
Declaration
[DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)]
public DateTime CreatedAt { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
Id
ID
Declaration
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
public Guid Id { get; set; }
Property Value
Type | Description |
---|---|
Guid | ID |
InboxId
Inbox ID
Declaration
[DataMember(Name = "inboxId", EmitDefaultValue = false)]
public Guid InboxId { get; set; }
Property Value
Type | Description |
---|---|
Guid | Inbox ID |
Name
Gets or Sets Name
Declaration
[DataMember(Name = "name", EmitDefaultValue = true)]
public string Name { 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 |