Class ProtocolUtil
java.lang.Object
com.thecoderscorner.menu.remote.protocol.ProtocolUtil
A few general helper method to get the version and platform information to and from messages.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ApiPlatformfromKeyToApiPlatform(int key) get the api platform given it's integer key value.static intgets and caches the current version from the version properties file
-
Constructor Details
-
ProtocolUtil
public ProtocolUtil()
-
-
Method Details
-
getVersionFromProperties
public static int getVersionFromProperties()gets and caches the current version from the version properties file- Returns:
- the current version as major * 100 + minor
-
fromKeyToApiPlatform
get the api platform given it's integer key value.- Parameters:
key- the platform key- Returns:
- platform enum entry.
-