382
382
#define CLASSM( method, Name ) class Name##Request : public ActionRequest { \
383
383
public: Name##Request( Track track ) : ActionRequest( method, Type##Name ) { setArtist( track.artist() ); setTitle( track.title() ); } \
384
384
public: Name##Request( TrackInfo track ) : ActionRequest( method, Type##Name ) { setArtist( track.artist() ); setTitle( track.track() ); } }
386
385
CLASSM( "loveTrack", Love );
387
386
CLASSM( "unLoveTrack", UnLove );
388
387
CLASSM( "banTrack", Ban );