mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
22 lines
492 B
C#
22 lines
492 B
C#
using TEngine.Core.Network;
|
|
|
|
namespace GameLogic
|
|
{
|
|
public class NetworkUtils
|
|
{
|
|
public static bool CheckError(IResponse response)
|
|
{
|
|
bool hasError = false;
|
|
if (response == null)
|
|
{
|
|
var networkError = "NetWork Response Error";
|
|
hasError = true;
|
|
}
|
|
else
|
|
{
|
|
hasError = response.ErrorCode != 0;
|
|
}
|
|
return hasError;
|
|
}
|
|
}
|
|
} |