in Facebook.Unity/Results/ResultBase.cs [118:149]
private static bool GetCancelledValue(IDictionary<string, object> result)
{
if (result == null)
{
return false;
}
// Check for cancel string
object cancelled;
if (result.TryGetValue("cancelled", out cancelled))
{
bool? cancelBool = cancelled as bool?;
if (cancelBool != null)
{
return cancelBool.HasValue && cancelBool.Value;
}
string cancelString = cancelled as string;
if (cancelString != null)
{
return Convert.ToBoolean(cancelString);
}
int? cancelInt = cancelled as int?;
if (cancelInt != null)
{
return cancelInt.HasValue && cancelInt.Value != 0;
}
}
return false;
}