-
Notifications
You must be signed in to change notification settings - Fork 33
InternalDataStore API
brian717 edited this page Aug 4, 2014
·
2 revisions
InternalDataStore provides an interface for accessing raw data and answers within the Personal Data Store's trusted compute space. The interface for this class is described here. Implementing classes are contained within the internal package in openPDS.
Method | Description |
---|---|
_ _init_ _(profile, token) | Initializes an InternalDataStore for the user associated with prole, using authorization provided via token. |
getAnswer(key) | Retrieves a dictionary representing the answer associated with the given answer key, if it exists, or None if it doesn't. |
getAnswerList(key) | Retrieves a list representing the answer associated with the given answer key, if it exists, or None if it doesn't. |
saveAnswer(key, answer) | Stores the given answer under the provided answer key. |
getData(key, start, end) | Retrieves data of the type specied by key, recorded between the start and end times. |
saveData(data) | Saves data to this InternalDataStore. Data must specify a key and time in order to be accessed later via getData. |
notify(title, content, uri) | Sends a notication to all devices registered for this user. |