Class ServiceList
Object
|
+--ServiceList
- class
ServiceList
A list of services.
ServicesLists are exposed as the DeviceDescriptor.services property.
You can access elements in the list as you would access a dictionary, either through the index or the identifier of a service.
service = device.services[3];
service = device.services[serviceId];
Defined in service-discovery.js
|
Field Summary |
int |
size
Number of services in this list. |
|
Constructor Summary |
ServiceList()
This class has no public constructor.
|
size
int size
Number of services in this list. Readonly.
ServiceList
ServiceList()
This class has no public constructor.
getServiceByID
ServiceDescriptor getServiceByID( <String> id )
Get the service with the given id from the list.
Parameters:
id - Identifier of the service to retrieve.
Returns:
Service with the given identifier, or undefined if no service has the given identifier.
getServiceByIndex
ServiceDescriptor getServiceByIndex( <int> index )
Get the service at the given position in the list.
Parameters:
index - Positive integer denoting the position of the service in the list.
Returns:
Service at the given position, or undefined if the index is out of bounds.
Documentation generated by
JSDoc on Fri Aug 14 11:46:31 2009