public class AppDataService extends Service
| Constructor and Description |
|---|
AppDataService() |
| Modifier and Type | Method and Description |
|---|---|
static Request |
deleteAppData(List<String> keys)
Returns a new Request which, when submitted, deletes the specified keys
and their associated values in the current viewer's AppData.
|
static Request |
deleteAppData(String key)
Returns a new Request which, when submitted, deletes the specified key and
its associated value in the current viewer's AppData.
|
static Request |
deleteAppData(String[] keys)
Returns a new Request which, when submitted, deletes the specified keys
and their associated values in the current viewer's AppData.
|
static Request |
getAppData()
Returns a new Request instance which, when submitted, fetches the current
viewer's persistent AppData (set of key/value strings) associated with the
current application and makes this available as an AppData object.
|
static Request |
getAppData(String guid)
Returns a new Request instance which, when submitted, fetches the
specified user's AppData (set of key/value strings) associated with the
current application and makes this available as an AppData object.
|
static Request |
getFriendAppData(String guid)
Returns a new Request instance which, when submitted, fetches the AppData
(set of key/value strings) associated with the current application for the
specified user's friends and makes this available as an AppData object.
|
static Request |
updateAppData(Map<String,String> data)
Returns a new Request instance which, when submitted, updates the current
viewer's AppData with the key/value strings in the passed Map.
|
static Request |
updateAppData(String key,
String value)
Returns a new Request instance which, when submitted, updates the current
viewer's AppData by either adding the specified key if it doesn't already
exist or updating the associated value if it does exist.
|
public static Request getAppData()
AppDatapublic static Request getAppData(String guid)
guid - OpenSocial ID of user whose AppData is to be fetchedAppDatapublic static Request getFriendAppData(String guid)
guid - OpenSocial ID of user whose friends' AppData is to be fetchedAppDatapublic static Request updateAppData(String key, String value)
key - AppData key to updatevalue - new value to be associated with the specified keypublic static Request updateAppData(Map<String,String> data)
data - Map of key/value pairs to be persisted in AppDatapublic static Request deleteAppData(String key)
key - AppData key to deletepublic static Request deleteAppData(String[] keys)
keys - array of AppData keys to deletepublic static Request deleteAppData(List<String> keys)
keys - List of AppData keys to deleteCopyright © 2012. All Rights Reserved.