Skip to content

New Message Creation Poasting

Damon Getsman edited this page Mar 16, 2015 · 5 revisions

dpoast.js

Notes

Methods and properties used in the creation and writing of new poasts, por dios.

Current OO Structure

Sub-Objects

poast

Properties
  • sprompt - save message prompt text
Methods
  • dispNewMsgHdr() - self explanatory
  • dispSaveMsgPrompt() - one again fairly self-evident
  • addMsg() - primary method for text entry for a message into the active message base via ddoc interface; NOTE: This method is a bit of a monolith and should be broken up (see 2 below; has been)
  • getTextBlob() - gets and returns the blob of text with maximum lines that the user adds; has the standard DOC interface save prompt
  • saveMsgBody() - handles saving the text returned from getTextBlob() when used in message base context
  • mWrite() - writes the appropriate header and body data to the database y el fin; NOTE: This method has become a massive monolith and should be chopped into pieces mercilessly
  • yell() - my first opportunity to work with the mail subsystem; took a little bit to get it figured out, but this is working now and will be an excellent prototype for the Mail> room/subsystem