<div dir="ltr"><div><div><div><div><div><div><div><div>Updated proposal based on the feedback, limiting myself to loading/saving objects for now<br><br></div><div>* Low level<br></div><div><br></div>datastore.getMetadata(objectId, onGotMetadata)<br>
datastore.setMetadata(objectId, onMetadataSet)<br>datastore.loadData(objectId, onStream, onLoaded)<br>datastore.create(metadata, onStream, onCreated)<br>datastore.update(objectId, metadata, onStream, onUpdated)<br><br></div>
<div>* High level<br></div><div><br></div>datastoreObject = datastore.DatastoreObject(objectId)<br><br> datastoreObject.updateMetadata(metadata, onMetadataUpdated)<br></div></div> datastoreObject.setDataAsText(text, onDataSet)<br>
</div> datastoreObject.save(onSaved)<br><br></div> datastoreObject.getMetadata(onGotMetadata)<br></div> datastoreObject.load(onLoaded[metadata, data])<br><br></div>activity.getDatastoreObject()<br></div>