Click or drag to resize

ITookanGetAllAgents Method

This API is used to get all the Agents/drivers/fleets information with respect to a location. The response array contains a status key for each of the fleet, which shows the current status of the fleet - 0 for available, 1 for offline and 2 for busy, taking into account the location, connectivity, ON-Duty/OFF-Duty status and if they are presently working a task.

Namespace:  NetQuarry.Services
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
TookanGetAllAgentsResponse GetAllAgents(
	Nullable<int> teamId = null,
	Nullable<int> fleetId = null,
	string tags = null,
	Nullable<decimal> latitude = null,
	Nullable<decimal> longitude = null,
	int geofence = 0,
	bool isAvailableAndOnline = false,
	Nullable<decimal> distance = null
)

Parameters

teamId (Optional)
Type: SystemNullableInt32
You can pass the team_id, if you want to filter the list of agents via team.
fleetId (Optional)
Type: SystemNullableInt32
You can pass on the fleet_id to get the data of a single fleet.
tags (Optional)
Type: SystemString
You can pass the tags, comma separated, if you want to filter the list of agents via tags.
latitude (Optional)
Type: SystemNullableDecimal
You can pass lat long values to get the distance between agent location and this location pointed by the lat long values.
longitude (Optional)
Type: SystemNullableDecimal
Both lat long values are required if you want distance measurement and/or enable geo-fence filtering of the agents.
geofence (Optional)
Type: SystemInt32
This is used to enable the geofencing filter w.r.t to the lat long values.
isAvailableAndOnline (Optional)
Type: SystemBoolean
This is used to get only available/online agents. Send "1" to get only available/online agents otherwise send "0" to get all the agents.
distance (Optional)
Type: SystemNullableDecimal
This is used to get agents within the radius. This key works with latitude and longitude keys. Distance unit is KM

Return Value

Type: TookanGetAllAgentsResponse
The response object.
See Also