Methods
createFollower(deviceId, tableNumber, location) → {Number}
Parameters:
| Name |
Type |
Description |
deviceId |
String
|
The device id |
tableNumber |
Number
|
The table number assigned |
location |
String
|
The location |
Returns:
-
Type
-
Number
getFollowersInLocation(location) → {Array.<Follower>}
Parameters:
| Name |
Type |
Description |
location |
String
|
The location |
Returns:
Array of follower entities
-
Type
-
Array.<Follower>
isBusy(followerDeviceId, location) → {boolean}
Parameters:
| Name |
Type |
Description |
followerDeviceId |
String
|
The follower device id |
location |
String
|
The location |
Returns:
-
Type
-
boolean
isRegisteredFollower(deviceId) → {Boolean}
Parameters:
| Name |
Type |
Description |
deviceId |
String
|
The device id |
Returns:
-
Type
-
Boolean
isTableNumberAssigned(location, tableNumber) → {Boolean}
Parameters:
| Name |
Type |
Description |
location |
String
|
The location |
tableNumber |
Number
|
The table number |
Returns:
-
Type
-
Boolean
removeFollower(deviceId) → {Number}
Parameters:
| Name |
Type |
Description |
deviceId |
String
|
|
Returns:
-
Type
-
Number
setFollowerToBusy(followerDeviceId) → {Number}
Parameters:
| Name |
Type |
Description |
followerDeviceId |
String
|
The follower device id |
Returns:
-
Type
-
Number
setFollowerToIdle(followerDeviceId) → {Number}
Parameters:
| Name |
Type |
Description |
followerDeviceId |
String
|
The follower device id |
Returns:
-
Type
-
Number
validateFollowerDevice(followerDeviceId, location) → {Follower}
Parameters:
| Name |
Type |
Description |
followerDeviceId |
String
|
The follower device id |
location |
String
|
The location |
Returns:
-
Type
-
Follower