tcMenuJavaAPI
Static Public Member Functions | List of all members
com.thecoderscorner.menu.remote.protocol.ProtocolUtil Class Reference

Static Public Member Functions

static int getVersionFromProperties ()
 
static ApiPlatform fromKeyToApiPlatform (int key)
 

Detailed Description

A few general helper method to get the version and platform information to and from messages.

Member Function Documentation

◆ fromKeyToApiPlatform()

static ApiPlatform com.thecoderscorner.menu.remote.protocol.ProtocolUtil.fromKeyToApiPlatform ( int  key)
static

get the api platform given it's integer key value.

Parameters
keythe platform key
Returns
platform enum entry.

◆ getVersionFromProperties()

static int com.thecoderscorner.menu.remote.protocol.ProtocolUtil.getVersionFromProperties ( )
static

gets and caches the current version from the version properties file

Returns
the current version as major * 100 + minor

The documentation for this class was generated from the following file: