Class Index

Classes


Namespace MyOpenSpace.RequestType


Defined in: MyOpenSpace.js.

Namespace Summary
Constructor Attributes Constructor Name and Description
 

Enumerates the types of requests that can be made.

Field Summary
Field Attributes Field Name and Description
<static> <constant>  
MyOpenSpace.RequestType.FETCH_ACTIVITIES
Default key to retreive the opensocial.ResponseItem from an opensocial.DataRequest.newFetchActivitiesRequest.
<static> <constant>  
MyOpenSpace.RequestType.FETCH_ALBUM
Default key to retreive the opensocial.ResponseItem from an MyOpenSpace.DataRequest.newFetchAlbumRequest.
<static> <constant>  
MyOpenSpace.RequestType.FETCH_ALBUMS
Default key to retreive the opensocial.ResponseItem from an MyOpenSpace.DataRequest.newFetchAlbumsRequest.
<static> <constant>  
MyOpenSpace.RequestType.FETCH_INDICATORS
Default key to retreive the opensocial.ResponseItem from an MyOpenSpace.DataRequest.newFetchIndicatorsRequest.
<static> <constant>  
MyOpenSpace.RequestType.FETCH_PEOPLE
Default key to retreive the opensocial.ResponseItem from an opensocial.DataRequest.newFetchPeople.
<static> <constant>  
MyOpenSpace.RequestType.FETCH_PEOPLE_FRIENDSHIP
Default key to retreive the opensocial.ResponseItem from an MyOpenSpace.DataRequest.newPeopleFriendshipRequest.
<static> <constant>  
MyOpenSpace.RequestType.FETCH_PERSON
Default key to retreive the opensocial.ResponseItem from an opensocial.newFetchPerson.
<static> <constant>  
MyOpenSpace.RequestType.FETCH_PERSON_DATA
Default key to retreive the opensocial.ResponseItem from an opensocial.DataRequest.newFetchPersonAppDataRequest.
<static> <constant>  
MyOpenSpace.RequestType.FETCH_PERSON_FRIENDSHIP
Default key to retreive the opensocial.ResponseItem from an MyOpenSpace.DataRequest.newPersonFriendshipRequest.
<static> <constant>  
MyOpenSpace.RequestType.FETCH_PERSON_MOOD
Default key to retreive the opensocial.ResponseItem from an MyOpenSpace.DataRequest.newFetchPersonMoodRequest.
<static> <constant>  
MyOpenSpace.RequestType.FETCH_PERSON_STATUS
Default key to retreive the opensocial.ResponseItem from an MyOpenSpace.DataRequest.newFetchPersonStatusRequest.
<static> <constant>  
MyOpenSpace.RequestType.FETCH_PHOTO
Default key to retreive the opensocial.ResponseItem from an MyOpenSpace.DataRequest.newFetchPhotoRequest.
<static> <constant>  
MyOpenSpace.RequestType.FETCH_PHOTOS
Default key to retreive the opensocial.ResponseItem from an MyOpenSpace.DataRequest.newFetchPhotosRequest.
<static> <constant>  
MyOpenSpace.RequestType.FETCH_VIDEO
Default key to retreive the opensocial.ResponseItem from an MyOpenSpace.DataRequest.newFetchVideoRequest.
<static> <constant>  
MyOpenSpace.RequestType.FETCH_VIDEOS
Default key to retreive the opensocial.ResponseItem from an MyOpenSpace.DataRequest.newFetchVideosRequest.
<static> <constant>  
MyOpenSpace.RequestType.REMOVE_PERSON_DATA
Default key to retreive the opensocial.ResponseItem from an opensocial.DataRequest.newRemovePersonAppDataRequest.
<static> <constant>  
MyOpenSpace.RequestType.UPDATE_PERSON_DATA
Default key to retreive the opensocial.ResponseItem from an opensocial.DataRequest.newFetchPersonAppDataRequest.
Namespace Detail
MyOpenSpace.RequestType

Enumerates the types of requests that can be made.

It is used to retreive ResponseItems if opt_key was not set when adding the request.

If more that one request of the same type is made, the first item can be retrieve directly using the enumeration value, the rest will have a "_#" postfix added to the enumeration value where # will be a sequential number starting with 1.

var container = opensocial.Container.get();
var request = this.container.newDataRequest();
var fetchViewer = request.newFetchPersonRequest(opensocial.IdSpec.PersonId.VIEWER);
var fetchOwner = request.newFetchPersonRequest(opensocial.IdSpec.PersonId.OWNER);
request.add(fetchViewer); // opt_key not set
request.add(fetchOwner); // opt_key not set
request.send(callback);
function callback(response){
     var viewer = response.get(MyOpenSpace.RequestType.FETCH_PERSON);
     var owner = response.get(MyOpenSpace.RequestType.FETCH_PERSON + “_1”);
}
Field Detail
<static> <constant> MyOpenSpace.RequestType.FETCH_ACTIVITIES
Default key to retreive the opensocial.ResponseItem from an opensocial.DataRequest.newFetchActivitiesRequest.

<static> <constant> MyOpenSpace.RequestType.FETCH_ALBUM
Default key to retreive the opensocial.ResponseItem from an MyOpenSpace.DataRequest.newFetchAlbumRequest.

<static> <constant> MyOpenSpace.RequestType.FETCH_ALBUMS
Default key to retreive the opensocial.ResponseItem from an MyOpenSpace.DataRequest.newFetchAlbumsRequest.

<static> <constant> MyOpenSpace.RequestType.FETCH_INDICATORS
Default key to retreive the opensocial.ResponseItem from an MyOpenSpace.DataRequest.newFetchIndicatorsRequest.

<static> <constant> MyOpenSpace.RequestType.FETCH_PEOPLE
Default key to retreive the opensocial.ResponseItem from an opensocial.DataRequest.newFetchPeople.

<static> <constant> MyOpenSpace.RequestType.FETCH_PEOPLE_FRIENDSHIP
Default key to retreive the opensocial.ResponseItem from an MyOpenSpace.DataRequest.newPeopleFriendshipRequest.

<static> <constant> MyOpenSpace.RequestType.FETCH_PERSON
Default key to retreive the opensocial.ResponseItem from an opensocial.newFetchPerson.

<static> <constant> MyOpenSpace.RequestType.FETCH_PERSON_DATA
Default key to retreive the opensocial.ResponseItem from an opensocial.DataRequest.newFetchPersonAppDataRequest.

<static> <constant> MyOpenSpace.RequestType.FETCH_PERSON_FRIENDSHIP
Default key to retreive the opensocial.ResponseItem from an MyOpenSpace.DataRequest.newPersonFriendshipRequest.

<static> <constant> MyOpenSpace.RequestType.FETCH_PERSON_MOOD
Default key to retreive the opensocial.ResponseItem from an MyOpenSpace.DataRequest.newFetchPersonMoodRequest.

<static> <constant> MyOpenSpace.RequestType.FETCH_PERSON_STATUS
Default key to retreive the opensocial.ResponseItem from an MyOpenSpace.DataRequest.newFetchPersonStatusRequest.

<static> <constant> MyOpenSpace.RequestType.FETCH_PHOTO
Default key to retreive the opensocial.ResponseItem from an MyOpenSpace.DataRequest.newFetchPhotoRequest.

<static> <constant> MyOpenSpace.RequestType.FETCH_PHOTOS
Default key to retreive the opensocial.ResponseItem from an MyOpenSpace.DataRequest.newFetchPhotosRequest.

<static> <constant> MyOpenSpace.RequestType.FETCH_VIDEO
Default key to retreive the opensocial.ResponseItem from an MyOpenSpace.DataRequest.newFetchVideoRequest.

<static> <constant> MyOpenSpace.RequestType.FETCH_VIDEOS
Default key to retreive the opensocial.ResponseItem from an MyOpenSpace.DataRequest.newFetchVideosRequest.

<static> <constant> MyOpenSpace.RequestType.REMOVE_PERSON_DATA
Default key to retreive the opensocial.ResponseItem from an opensocial.DataRequest.newRemovePersonAppDataRequest.

<static> <constant> MyOpenSpace.RequestType.UPDATE_PERSON_DATA
Default key to retreive the opensocial.ResponseItem from an opensocial.DataRequest.newFetchPersonAppDataRequest.

Documentation generated by JsDoc Toolkit 2.0.2 on Wed Nov 12 2008 18:11:17 GMT-0800 (PST)