public void OnFailure(int errorCode, string errorMessage, Bundle optionalData)
{
// If we have a cached result, return that
IList<Receipt> receipts = null;
try
{
// Parse receipts into a list
receipts = FromCache(_gamerUuid);
}
catch (Exception e)
{
OuyaFacade.Log("Error decaching receipts: " + e.Message);
_tcs.SetException(new OuyaRequestException(errorCode, errorMessage, optionalData));
}
_tcs.SetResult(receipts);
}