i have a view that implements an interface that receives model a and model b.
i have also two api's responses(A,B) that after some manipulations i create from them the wanted models (A->a, B->b).
The thing is, i also want to support new apis (A*,B*) that for some users will replace the old apis. A* & B* jsons will not be the same as the old ones so different manipulations should be carried out in order to generate a and b models.
what is the correct design for that?
Aucun commentaire:
Enregistrer un commentaire