English | Site Directory

opensocial.Activity (v0.6)

 SUMMARY     DETAIL

Class opensocial.Activity

Base interface for all activity objects.

See also: opensocial.newActivity(), opensocial.requestCreateActivity()

Method Summary

 String getField(key)
Gets the activity data that's associated with the specified key.
 String getId()
Gets an ID that can be permanently associated with this activity.
setField(key, data)
Sets data for this activity associated with the given key.
 

Method Detail

getField

String getField(key)
    Gets the activity 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

getId

String getId()
    Gets an ID that can be permanently associated with this activity.
    Returns:
      String The ID

setField

setField(key, data)
    Sets data for this activity 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