The purpose of this function, if called periodically will allow to know if there is an event or updates happening, like new order prompting to do something.
As the API usage doesn’t maintain an open/constant connection, some active peeking must happen from the client side to check for new events/updates happening in the server.
The server side will cache all events/updates and send it when this function is called. After sending everything, the server side will clear the cache.
This function is recommended to be called each 10 secs. for a good real time console.
Example:
-“You must collect money from a free time that just was closed by the end customer!”.
-“You must asks for the KIT to be returned”.
-“A post-paid fixed-time just ended”.
These are mandatory information for any cashier to be received.
So the cashier console must use this function for retrieving this kind of important information.
Minimum version for the target server required: v17.3.8.
Input parameters:
- CommandClass =_EVENTPEEKER
- Param1 = target CyberName.
- Param2 = Session Token.
Output:
[{“ResponseClass”: “EVENTCLASS”, “Param1”: “EVENTPARAMETER1”, … }]
[{“ResponseClass”: “OK”}]
The “OK” class will mark the end of the event list just sent.
Event Classes:
“MANDATORY” = in Param1 is a textual order prompting to the cashier/staff to do something.
“DEMANDUP” = in Param1 is: RegNameID, in Param2 is: RegMapX + null + RegMapY, in Param3 is: RegStatus + null + RegAction, in Param4 is: RegCurrentAccountName.
Example of usage: