15 private string contentType =
string.
Empty;
16 private string fileName =
null;
17 private byte[] signature =
null;
18 private DateTime timestamp = DateTime.MinValue;
19 private bool preview =
false;
34 this.id = Reference.id;
35 this.legalId = Reference.legalId;
36 this.contentType = Reference.contentType;
37 this.fileName = Reference.fileName;
38 this.signature = Reference.signature;
39 this.timestamp = Reference.timestamp;
48 set => this.id = value;
57 set => this.legalId = value;
65 get => this.contentType;
66 set => this.contentType = value;
75 set => this.fileName = value;
85 get => this.signature;
86 set => this.signature = value;
92 [DefaultValueDateTimeMinValue]
95 get => this.timestamp;
96 set => this.timestamp = value;
102 [DefaultValue(
false)]
106 set => this.preview = value;
112 string ILegalIdentityAttachment.Id => this.
id?.Value;
117 string ILegalIdentityAttachment.LegalId => this.legalId?.
Value;
126 return this.id != UpdatedAttachmentReference.id ||
127 this.legalId != UpdatedAttachmentReference.legalId ||
128 this.contentType != UpdatedAttachmentReference.contentType ||
129 this.fileName != UpdatedAttachmentReference.fileName ||
130 this.timestamp != UpdatedAttachmentReference.timestamp ||
131 Convert.ToBase64String(this.signature) != Convert.ToBase64String(UpdatedAttachmentReference.signature);
Represents a case-insensitive string.
string Value
String-representation of the case-insensitive string. (Representation is case sensitive....
static readonly CaseInsensitiveString Empty
Empty case-insensitive string
Represents an attachment to a document.
AttachmentReference(AttachmentReference Reference)
Represents an attachment to a document.
string FileName
Filename of attachment.
string ContentType
Internet Content Type of binary attachment.
bool Preview
If the attachment represents an attachment that is part of a preview.
byte[] Signature
Binary signature of the attachment, generated by an approved legal identity of the account-holder....
DateTime Timestamp
Timestamp of signature. If no signature, value is DateTime.MinValue
bool UpdateRequiresReview(AttachmentReference UpdatedAttachmentReference)
Checks if an updated attachment reference requires review.
AttachmentReference()
Represents an attachment to a document.
CaseInsensitiveString Id
Attachment ID
CaseInsensitiveString LegalId
Legal ID of uploader of the attachment
Interface for legal identity attachments.