/* * Copyright 2017-2018, Andrew Lindesay . * All rights reserved. Distributed under the terms of the MIT License. */ #ifndef SERVER_HELPER_H #define SERVER_HELPER_H #include class BMessage; class ServerHelper { public: static bool IsNetworkAvailable(); static bool IsPlatformNetworkAvailable(); static void NotifyClientTooOld( const BHttpHeaders& responseHeaders ); static void AlertClientTooOld(BMessage* message); static void NotifyTransportError(status_t error); static void AlertTransportError(BMessage* message); static void NotifyServerJsonRpcError( BMessage& error); static void AlertServerJsonRpcError( BMessage* message); }; #endif // SERVER_HELPER_H