public string GetLogMessageForNetworkError(NetworkDisabledState networkError)
{
switch (networkError)
{
case NetworkDisabledState.RecommendedUnusableDueToSize:
return "download size exceeds recommended limit for mobile network";
case NetworkDisabledState.UnusableDueToSize:
return "download size exceeds limit for mobile network";
case NetworkDisabledState.NoConnection:
return "no network connection available";
case NetworkDisabledState.CannotUseRoaming:
return "download cannot use the current network connection because it is roaming";
case NetworkDisabledState.TypeDisallowedByRequestor:
return "download was requested to not use the current network type";
default:
return "unknown error with network connectivity";
}
}