2023-05-05 16:37:39 +02:00
|
|
|
class BBlob {
|
|
|
|
constructor(row) {
|
|
|
|
/** @type {string} */
|
|
|
|
this.blobId = row.blobId;
|
|
|
|
/** @type {string|Buffer} */
|
|
|
|
this.content = row.content;
|
2023-05-06 14:38:45 +02:00
|
|
|
/** @type {integer} */
|
2023-05-05 16:37:39 +02:00
|
|
|
this.contentLength = row.contentLength;
|
|
|
|
/** @type {string} */
|
|
|
|
this.dateModified = row.dateModified;
|
|
|
|
/** @type {string} */
|
|
|
|
this.utcDateModified = row.utcDateModified;
|
|
|
|
}
|
|
|
|
|
|
|
|
getPojo() {
|
|
|
|
return {
|
|
|
|
blobId: this.blobId,
|
|
|
|
content: this.content,
|
|
|
|
contentLength: this.contentLength,
|
|
|
|
dateModified: this.dateModified,
|
|
|
|
utcDateModified: this.utcDateModified
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-06 14:38:45 +02:00
|
|
|
module.exports = BBlob;
|