2018-08-23 12:55:45 +02:00
|
|
|
/**
|
2020-02-01 11:15:58 +01:00
|
|
|
* Complements the NoteShort with the main note content and other extra attributes
|
2018-08-23 12:55:45 +02:00
|
|
|
*/
|
2020-02-01 11:15:58 +01:00
|
|
|
class NoteComplement {
|
2020-01-25 14:37:12 +01:00
|
|
|
constructor(row) {
|
2020-02-01 11:15:58 +01:00
|
|
|
/** @param {string} */
|
|
|
|
this.noteId = row.noteId;
|
|
|
|
|
2018-08-23 12:55:45 +02:00
|
|
|
/** @param {string} */
|
2019-03-26 22:24:04 +01:00
|
|
|
this.content = row.content;
|
2018-03-25 23:25:17 -04:00
|
|
|
|
2019-04-01 21:43:45 +02:00
|
|
|
/** @param {string} */
|
|
|
|
this.dateCreated = row.dateCreated;
|
|
|
|
|
|
|
|
/** @param {string} */
|
|
|
|
this.dateModified = row.dateModified;
|
|
|
|
|
2019-02-14 20:56:33 +01:00
|
|
|
/** @param {string} */
|
2019-03-12 20:58:31 +01:00
|
|
|
this.utcDateCreated = row.utcDateCreated;
|
2019-02-14 20:56:33 +01:00
|
|
|
|
|
|
|
/** @param {string} */
|
2019-03-12 20:58:31 +01:00
|
|
|
this.utcDateModified = row.utcDateModified;
|
2018-03-25 23:25:17 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-02-01 11:15:58 +01:00
|
|
|
export default NoteComplement;
|