jeudi 14 mai 2015

Imaging and design pattern in C#

I'd like an advice on design patterns...

In fact I need to call a WebApi for generating images...

The problem is there are several types of images I'd like to generate, e.g: ThumbNails, PreviewImages, FacebookImages, aso...

Each image type has its own characteristics, and call different parameters of my WebApi.

E.g: For generating Facebook Images I need to pass to the WebApi an orderline (which contains a Guid and InvitationId) When generating ThumbNails I only need to pass the invitationId. When generating PreviewImages I need to pass the CartId (which contains a Guid and InvitationId)

So, can anyone help me based on this requirement, I'd like to use design patterns and no "spaghetti code"

Thanks very much for your input,

Raphaël...

Aucun commentaire:

Enregistrer un commentaire