Dynamics of a dengue epidemic model with class-age structure