entities_note_complement.js.html 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>JSDoc: Source: entities/note_complement.js</title>
  6. <script src="scripts/prettify/prettify.js"> </script>
  7. <script src="scripts/prettify/lang-css.js"> </script>
  8. <!--[if lt IE 9]>
  9. <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
  10. <![endif]-->
  11. <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
  12. <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
  13. </head>
  14. <body>
  15. <div id="main">
  16. <h1 class="page-title">Source: entities/note_complement.js</h1>
  17. <section>
  18. <article>
  19. <pre class="prettyprint source linenums"><code>/**
  20. * Complements the NoteShort with the main note content and other extra attributes
  21. */
  22. class NoteComplement {
  23. constructor(row) {
  24. /** @type {string} */
  25. this.noteId = row.noteId;
  26. /**
  27. * can either contain the whole content (in e.g. string notes), only part (large text notes) or nothing at all (binary notes, images)
  28. * @type {string}
  29. */
  30. this.content = row.content;
  31. /** @type {int} */
  32. this.contentLength = row.contentLength;
  33. /** @type {string} */
  34. this.dateCreated = row.dateCreated;
  35. /** @type {string} */
  36. this.dateModified = row.dateModified;
  37. /** @type {string} */
  38. this.utcDateCreated = row.utcDateCreated;
  39. /** @type {string} */
  40. this.utcDateModified = row.utcDateModified;
  41. // "combined" date modified give larger out of note's and note_content's dateModified
  42. /** @type {string} */
  43. this.combinedDateModified = row.combinedDateModified;
  44. /** @type {string} */
  45. this.combinedUtcDateModified = row.combinedUtcDateModified;
  46. }
  47. }
  48. export default NoteComplement;
  49. </code></pre>
  50. </article>
  51. </section>
  52. </div>
  53. <nav>
  54. <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Attribute.html">Attribute</a></li><li><a href="Branch.html">Branch</a></li><li><a href="FrontendScriptApi.html">FrontendScriptApi</a></li><li><a href="NoteComplement.html">NoteComplement</a></li><li><a href="NoteShort.html">NoteShort</a></li></ul><h3>Global</h3><ul><li><a href="global.html#doRenderBody">doRenderBody</a></li></ul>
  55. </nav>
  56. <br class="clear">
  57. <footer>
  58. Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a>
  59. </footer>
  60. <script> prettyPrint(); </script>
  61. <script src="scripts/linenumber.js"> </script>
  62. </body>
  63. </html>