mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-12 03:32:30 +08:00
26 lines
703 B
JavaScript
26 lines
703 B
JavaScript
![]() |
class BBlob {
|
||
|
constructor(row) {
|
||
|
/** @type {string} */
|
||
|
this.blobId = row.blobId;
|
||
|
/** @type {string|Buffer} */
|
||
|
this.content = row.content;
|
||
|
/** @type {number} */
|
||
|
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
|
||
|
};
|
||
|
}
|
||
|
}
|
||
|
|
||
|
module.exports = BBlob;
|