dimanche 6 septembre 2015

What is pattern to use for task?

I have some kinds of real-time notifications in system. For example: like, unlike, answer, comment. Each notification has data object and receiver address. Difference is type of object. What common pattern to use for this task? I don't want to write separate function for each case. Thanks for you opinion!

Aucun commentaire:

Enregistrer un commentaire