You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by li...@apache.org on 2009/01/07 23:46:29 UTC
svn commit: r732543 -
/incubator/shindig/trunk/features/opensocial-reference/datarequest.js
Author: lindner
Date: Wed Jan 7 14:46:28 2009
New Revision: 732543
URL: http://svn.apache.org/viewvc?rev=732543&view=rev
Log:
SHINDIG-668, SHINDIG-730 -- missing javascript
Modified:
incubator/shindig/trunk/features/opensocial-reference/datarequest.js
Modified: incubator/shindig/trunk/features/opensocial-reference/datarequest.js
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/features/opensocial-reference/datarequest.js?rev=732543&r1=732542&r2=732543&view=diff
==============================================================================
--- incubator/shindig/trunk/features/opensocial-reference/datarequest.js (original)
+++ incubator/shindig/trunk/features/opensocial-reference/datarequest.js Wed Jan 7 14:46:28 2009
@@ -449,7 +449,24 @@
* {String} If provided will filter all activities by this app Id.
* @private - at the moment you can only request activities for your own app
*/
- APP_ID : 'appId'
+ APP_ID : 'appId',
+ /**
+ * When paginating, the index of the first item to fetch.
+ * Specified as a <code>Number</code>.
+ *
+ * @member opensocial.DataRequest.ActivityRequestFields
+ */
+ FIRST : 'first',
+
+ /**
+ * The maximum number of items to fetch; defaults to 20. If set to a larger
+ * number, a container may honor the request, or may limit the number to a
+ * container-specified limit of at least 20.
+ * Specified as a <code>Number</code>.
+ *
+ * @member opensocial.DataRequest.ActivityRequestFields
+ */
+ MAX : 'max'
};
@@ -471,6 +488,10 @@
opensocial.DataRequest.prototype.newFetchActivitiesRequest = function(idSpec,
opt_params) {
opt_params = opt_params || {};
+
+ this.addDefaultParam(opt_params, fields.FIRST, 0);
+ this.addDefaultParam(opt_params, fields.MAX, 20);
+
return opensocial.Container.get().newFetchActivitiesRequest(idSpec,
opt_params);
};