Class opensocial.Message
Base interface for all message objects.
See also:
opensocial.newMessage(),
opensocial.requestSendMessage()
Defined in: opensocial.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
| Method Attributes | Method Name and Description |
|---|---|
|
getField(key, opt_params)
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
{String}
getField(key, opt_params)
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
- {Map.<opensocial.DataRequest.DataRequestFields|Object>} opt_params
- Additional params to pass to the request.
- Returns:
- {String} The data
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