added method for receiving media type as Integer