I am doing this code bellow, creating a class and send in the next line by parameter in two lines of code:
InternalMessage im(call.get_id(), CSEV_CALL_NEW);
send_call_event(im);
I would like to do something like that using only one line, as C#:
send_call_event( new InternalMessage(call.get_id(), CSEV_CALL_NEW));
Any suggest?
Aucun commentaire:
Enregistrer un commentaire