English | Site Directory

opensocial.Message (v0.7)

 SUMMARY     DETAIL

Class opensocial.Message

Base interface for all message objects.

See also: opensocial.newMessage(), opensocial.requestSendMessage()

Method Summary

 String getField(key)
Gets the message data that's associated with the specified key.
setField(key, data)
Sets data for this message associated with the given key.
 

Method Detail

getField

String getField(key)
    Gets the message data that's associated with the specified key.
    Parameters:
      String key - The key to get data for; see the Field class for possible values
    Returns:
      String The data

setField

setField(key, data)
    Sets data for this message associated with the given key.
    Parameters:
      String key - The key to set data for
      String data - The data to set

Documentation generated by JsDoc Toolkit 1.3.3