API Docs for: 2.6
Show:

Postit Class

Module: postit

Abstraction of a post-it message.

It can throw exceptions.

Constructor

Postit

(
  • msg
  • creat
  • rec
)
Object

Parameters:

  • msg String

    The text of the message

  • creat String

    The creator

  • rec String

    The recipient of the post-it

Returns:

Object:

The postit object.

Item Index

Methods

Properties

Methods

toJSON

() Object

Returns the JSON representation of the object.

{
    text:       "example of text", // the message
    creator:    "221",             // the user creator
    recipient:  "214"              // the user recipient
}

Returns:

Object:

The JSON representation of the object.

toString

() String

Return the readable string of the post-it.

Returns:

String:

The readable description of the post-it

Properties

creator

String private

The post-it creator.

recipient

String private

The recipient user.

text

String private

The text of the message.