Class AttachmentProjection
Email attachment data
Implements
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "AttachmentProjection")]
public class AttachmentProjection : IEquatable<AttachmentProjection>, IValidatableObject
Constructors
View SourceAttachmentProjection()
Initializes a new instance of the AttachmentProjection class.
Declaration
[JsonConstructor]
protected AttachmentProjection()
AttachmentProjection(DateTime, DateTime, Guid, string, string, string, long?, string)
Initializes a new instance of the AttachmentProjection class.
Declaration
public AttachmentProjection(DateTime createdAt = default, DateTime updatedAt = default, Guid userId = default, string contentId = null, string attachmentId = null, string name = null, long? contentLength = null, string contentType = null)
Parameters
Type | Name | Description |
---|---|---|
DateTime | createdAt | createdAt (required). |
DateTime | updatedAt | updatedAt (required). |
System.Guid | userId | userId (required). |
string | contentId | Content ID of attachment.. |
string | attachmentId | Attachment ID (required). |
string | name | name. |
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 |
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 |
---|---|
System.Guid |
Methods
View SourceEquals(AttachmentProjection)
Returns true if AttachmentProjection instances are equal
Declaration
public bool Equals(AttachmentProjection input)
Parameters
Type | Name | Description |
---|---|---|
AttachmentProjection | input | Instance of AttachmentProjection 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 |