Service Discovery API

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.
 
Method Summary
 ServiceDescriptor getServiceByID( <String> id )
           Get the service with the given id from the list.
 ServiceDescriptor getServiceByIndex( <int> index )
           Get the service at the given position in the list.

Field Detail

size

int size

Constructor Detail

ServiceList

ServiceList()

Method Detail

getServiceByID

ServiceDescriptor getServiceByID( <String> id )

getServiceByIndex

ServiceDescriptor getServiceByIndex( <int> index )

Service Discovery API

Documentation generated by JSDoc on Fri Aug 14 11:46:31 2009