Created
September 11, 2011 16:02
-
-
Save darko1002001/1209746 to your computer and use it in GitHub Desktop.
Returns a GCAssetCollection for a specific chute
This file contains 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
sync | |
GCBaseRequest request = GCChutes.Resources.assets( | |
GCAccount.getInstance(getApplicationContext()), "6"); | |
try { | |
GCResponse response = request.execute(); | |
GCAssetCollection collection = (GCAssetCollection) response.getResponseObject(); | |
Log.e(TAG, collection.toString()); | |
} catch (GCApiException e) { | |
Log.w(TAG, "", e); | |
} | |
async | |
GCBaseRequest request = GCChutes.Resources.assets( | |
GCAccount.getInstance(getApplicationContext()), "6"); | |
new GCAsyncRunner(request, new GCAsyncRunner(request, new GCAsyncCallback() { | |
@Override | |
public void onFail(String message, GCRequestParameters requestParameters, | |
GCResponse responseModel) { | |
} | |
@Override | |
public void onComplete(GCResponse responseModel) { | |
} | |
}).execute(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment