Purpose:
It returns all the information required to draw a sketch of the occupancy in an establishment in real time.
This function can be blocked if the privacy policies are enabled at the target server.
Input parameters:
- CyberName = License’s name for the target server.
Example of use:
https://wingamer.ar/ApiMasterControl/DemandMap.php?CyberName=flulpycrea
Output:
- {“BackGroundImage”: “string”, “LongName”: “string”}
- {“Name”: “string”, “PosX”: integer, “PosY”: integer, “Status”: integer, “StatusAux”: integer, “UserName”: “string” }
// each rental machine has an X and Y position, this position in the sketch is controlled by the admin account in the ViewMap mode at the administrator console. The scale is in pixels, the drawing sketch at web app must match what you see in the admin console under normal DPI conditions (96dpi).- Status & StatusAux values:
This two variables has more than 30 or 40 used bits combined, most of it are irrelevant for the purpose of this function, so, tests must be done masking bits.
- ((Status & 6) == 0 && (StatusAux == 1)) the machine is starting for renting in the free-time mode (normally is for when the server is waiting for the machine to turn on, Wake Up On LAN).
- ((Status & 6) == 0 && (StatusAux == 2)) the machine is starting for renting in the fixed-time mode (normally is for when the server is waiting for the machine to turn on, Wake Up On LAN).
((Status & 6) == 0 && (StatusAux != 1 && StatusAux != 2)) disabled (the machine is available, not rented). - ((Status & 6) == 2) rented in free time mode. Normally represented by the skins in blue and and white bird.
- ((Status & 6) == 4) rented in fixed time mode. Normally represented by the skins in yellow with a stop-clock.
- ((Status & 6) == 6) opened in maintenance mode. Normally represented by the skins in red and a screw-nut.
- ((Status & 1) != 0) PC ONLINE. Normally represented by the skins with a Power ON simbol in green.
- ((Status & 1) == 0) PC OFFLINE. Normally represented by the skins with a Power ON simbol in red.
- ((Status & 32) != 0) the renting time is done with an user account. If so, you can lookup “UserName” value to know who is sitting there.
- ((Status & 8) != 0) the machine has a “inmediate” reserve placed, so it can be opened only with the reserve account.
- Status & StatusAux values:
- Array { “Availability”: “string” } // contains textual demand report with minimal html tags for coloring the text.
- Array {“ResponseClass”:”ERROR”,”Param1″:”error message”}