One more part of a specific implementation:
- Deprecate opensocial.Activity.MediaItem in favor of opensocial.MediaItem. Keep opensocial.ActivityMediaItem = opensocial.MediaItem for backwards compatibility for now.
Currently, the spec only officially supports templates in activities. Many containers have expressed that we need templates for messages as well (and I think some already support this).
See http://code.google.com/apis/opensocial/docs/0.7/reference/opensocial.Activity.html for details on Activity Templates
Specific proposal:
- Rename Activity Templates to Message Templates
- Add message_id parameter to requestSendMessage(). We probably want to add an optional parameter bag param for future compatibility and to not break existing users
* @param {Map.<opensocial.Message.Field, Object>} opt_params
* Any other fields that should be set on the message object;
* all of the defined
* <a href="opensocial.Message.Field.html">Field</a>s
* are supported
*
* @return {opensocial.Message} The new
* <a href="opensocial.Message.html">message</a> object
* @member opensocial
*/
opensocial.newMessage = function(body, opt_params) {};