To get a `MessageType` enum object from an integer, we need to add `MessageType.valueOf(int)`.