api:cpp: add hasCallback to CMethodResult