In Java, what would be a better design pattern, for designing classes when request ( HTTP ) and response can be different for different client eg. android vs TV etc.
Right now, the code is bloated with if(android) {} etc.
Would Adapter pattern be a good choice?
Aucun commentaire:
Enregistrer un commentaire