I have 2 model classes, both called Assessment
. 1 for MainActivity and other for JourneyActivity. Both used for showing recyclerview. This is the code :
data class Assessment(
val title: String,
val imageUrl: String,
var workouts: List<Workout>
)
I make 2 class with same code for different activity, is it a good way to model designing?
Aucun commentaire:
Enregistrer un commentaire