Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
AttachmentReference.cs
1using System;
4
6{
11 {
12 private CaseInsensitiveString id = null;
13 private CaseInsensitiveString legalId = null;
14 private string contentType = string.Empty;
15 private string fileName = null;
16 private byte[] signature = null;
17 private DateTime timestamp = DateTime.MinValue;
18
23 {
24 }
25
30 {
31 get => this.id;
32 set => this.id = value;
33 }
34
39 {
40 get => this.legalId;
41 set => this.legalId = value;
42 }
43
47 public string ContentType
48 {
49 get => this.contentType;
50 set => this.contentType = value;
51 }
52
56 public string FileName
57 {
58 get => this.fileName;
59 set => this.fileName = value;
60 }
61
66 [DefaultValueNull]
67 public byte[] Signature
68 {
69 get => this.signature;
70 set => this.signature = value;
71 }
72
76 [DefaultValueDateTimeMinValue]
77 public DateTime Timestamp
78 {
79 get => this.timestamp;
80 set => this.timestamp = value;
81 }
82
88 public bool UpdateRequiresReview(AttachmentReference UpdatedAttachmentReference)
89 {
90 return (this.id != UpdatedAttachmentReference.id ||
91 this.legalId != UpdatedAttachmentReference.legalId ||
92 this.contentType != UpdatedAttachmentReference.contentType ||
93 this.fileName != UpdatedAttachmentReference.fileName ||
94 this.timestamp != UpdatedAttachmentReference.timestamp ||
95 Convert.ToBase64String(this.signature) != Convert.ToBase64String(UpdatedAttachmentReference.signature));
96 }
97 }
98}
Represents a case-insensitive string.
static readonly CaseInsensitiveString Empty
Empty case-insensitive string