Created
November 11, 2014 18:42
-
-
Save CHLibrarian/6008038d1947c45b2614 to your computer and use it in GitHub Desktop.
ContextHub Application Services Vault Item Retrieve by ID (Android)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Getting a vault item with a specific ID | |
VaultProxy<Person> proxy = new VaultProxy<Person>(); | |
proxy.getDocument("41D8C25F-0464-41C5-A2E3-AAC234F240E4", Person.class, new VaultCallback<Person>() { | |
@Override | |
public void onSuccess(VaultDocument<Person> result) { | |
Log.d(TAG, result.getDataObject().toString()); | |
} | |
@Override | |
public void onFailure(Exception e) { | |
Log.d(TAG, e.getMessage()); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment