Response Event
Fired when the class sends a response to the client.
Syntax
ANSI (Cross Platform) virtual int FireResponse(QBConnectorResponseEventParams *e);
typedef struct {
int ConnectionId;
int UserIndex;
const char *Response; int reserved; } QBConnectorResponseEventParams; Unicode (Windows) virtual INT FireResponse(QBConnectorResponseEventParams *e);
typedef struct {
INT ConnectionId;
INT UserIndex;
LPCWSTR Response; INT reserved; } QBConnectorResponseEventParams;
- (void)onResponse:(int)connectionId :(int)userIndex :(NSString*)response;
#define EID_QBCONNECTOR_RESPONSE 8 virtual INT INQB_CALL FireResponse(INT &iConnectionId, INT &iUserIndex, LPSTR &lpszResponse);
Remarks
This event will fire with the raw XML retrieved from QuickBooks and sent to the client.
The ConnectionId indicates which client connection this Request event is firing for. The UserIndex is the index of the user in the AuthorizedUser array property. Response is the QBXML Response from QuickBooks, which is being transmitted back to the client.
A UserIndex of -1 means that no matching credentials were found in the AuthorizedUsers collection.