Type (int value) { switch (value) { case 1: return PARAM_REQUEST; case 2: return BUILD_EVENT; case 3: return COMPILE_MESSAGE; case 4: return CONSTANT_SEARCH_TASK; case 5: return CACHE_DOWNLOAD_MESSAGE; case 6: return SAVE_LATEST_DOWNLOAD_STATISTIC_MESSAGE; case 7: return SAVE_LATEST_BUILT_COMMIT_MESSAGE; default: return null; } }