YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.fcast.discovery.FCastReceiverDevice Class Reference

An FCast receiver as a receiver of the receiver lists: a synthetic Cling Device that is never registered with Cling's registry (so it is never advertised and never searched for), modelled on the Snapcast group device. More...

Inheritance diagram for de.yaacc.fcast.discovery.FCastReceiverDevice:
Inheritance graph
Collaboration diagram for de.yaacc.fcast.discovery.FCastReceiverDevice:
Collaboration graph

Classes

class  Labels
 The text the user sees for an offline receiver; the app fills it from its string resources.
 

Public Member Functions

String getReceiverId ()
 The receiver id of the lists.
 
FCastEndpoint getEndpoint ()
 
String getName ()
 The name without the product note (display text).
 
FCastServiceTxt getHints ()
 What the receiver announced (hints).
 
boolean isManual ()
 True if the receiver was typed in, pasted or scanned by the user.
 
boolean isOffline ()
 True while the receiver is only remembered from the last run and has not been seen in this one.
 
String getDisplayString ()
 
DeviceDetails getDetails ()
 
Service[] getServices ()
 
Device[] getEmbeddedDevices ()
 
Device getRoot ()
 
Device findDevice (UDN udn)
 
Resource[] discoverResources (Namespace namespace)
 
Device newInstance (UDN arg0, UDAVersion arg1, DeviceType arg2, DeviceDetails arg3, org.fourthline.cling.model.meta.Icon[] arg4, Service[] arg5, List arg6) throws ValidationException
 
Service newInstance (ServiceType serviceType, ServiceId serviceId, URI uri, URI uri1, URI uri2, Action[] actions, StateVariable[] stateVariables) throws ValidationException
 
Device[] toDeviceArray (Collection collection)
 
Service[] newServiceArray (int i)
 
Service[] toServiceArray (Collection collection)
 
String toString ()
 No address or id in the text.
 
- Public Member Functions inherited from org.fourthline.cling.model.meta.Device< DI extends DeviceIdentity, D extends Device, S extends Service >
 Device (DI identity) throws ValidationException
 
 Device (DI identity, DeviceType type, DeviceDetails details, Icon[] icons, S[] services) throws ValidationException
 
 Device (DI identity, DeviceType type, DeviceDetails details, Icon[] icons, S[] services, D[] embeddedDevices) throws ValidationException
 
 Device (DI identity, UDAVersion version, DeviceType type, DeviceDetails details, Icon[] icons, S[] services, D[] embeddedDevices) throws ValidationException
 
DI getIdentity ()
 
UDAVersion getVersion ()
 
DeviceType getType ()
 
DeviceDetails getDetails (RemoteClientInfo info)
 
Icon[] getIcons ()
 
boolean hasIcons ()
 
boolean hasServices ()
 
boolean hasEmbeddedDevices ()
 
D getParentDevice ()
 
boolean isRoot ()
 
D[] findEmbeddedDevices ()
 
D[] findDevices (DeviceType deviceType)
 
D[] findDevices (ServiceType serviceType)
 
Icon[] findIcons ()
 
S[] findServices ()
 
S[] findServices (ServiceType serviceType)
 
S findService (ServiceId serviceId)
 
S findService (ServiceType serviceType)
 
ServiceType[] findServiceTypes ()
 
boolean isFullyHydrated ()
 
List< ValidationError > validate ()
 
boolean equals (Object o)
 
int hashCode ()
 
abstract D newInstance (UDN udn, UDAVersion version, DeviceType type, DeviceDetails details, Icon[] icons, S[] services, List< D > embeddedDevices) throws ValidationException
 
abstract S newInstance (ServiceType serviceType, ServiceId serviceId, URI descriptorURI, URI controlURI, URI eventSubscriptionURI, Action< S >[] actions, StateVariable< S >[] stateVariables) throws ValidationException
 
abstract D[] toDeviceArray (Collection< D > col)
 
abstract S[] toServiceArray (Collection< S > col)
 
- Public Member Functions inherited from org.fourthline.cling.model.Validatable

Static Public Member Functions

static FCastReceiverDevice of (FCastDirectory.Entry entry, Labels labels)
 

Additional Inherited Members

- Protected Member Functions inherited from org.fourthline.cling.model.meta.Device< DI extends DeviceIdentity, D extends Device, S extends Service >
D find (UDN udn, D current)
 
Collection< D > findEmbeddedDevices (D current)
 
Collection< D > find (DeviceType deviceType, D current)
 
Collection< D > find (ServiceType serviceType, D current)
 
Collection< S > findServices (ServiceType serviceType, ServiceId serviceId, D current)
 
- Protected Attributes inherited from org.fourthline.cling.model.meta.Device< DI extends DeviceIdentity, D extends Device, S extends Service >
final S[] services
 
final D[] embeddedDevices
 
- Package Functions inherited from org.fourthline.cling.model.meta.Device< DI extends DeviceIdentity, D extends Device, S extends Service >

Detailed Description

An FCast receiver as a receiver of the receiver lists: a synthetic Cling Device that is never registered with Cling's registry (so it is never advertised and never searched for), modelled on the Snapcast group device.

It has no services (the code that looks for AVTransport, RenderingControl or OpenHome services finds none) and no root. It is an immutable snapshot of the receiver at one moment; two snapshots of one receiver are equal (the identity is the id, FCastReceiverId), so a renamed receiver is the same receiver.

The name is what the receiver announced, else what was typed or remembered, else its address (the receiver's own Initial has no name on the desktop receiver); the lists show it with the plain-text product note " (FCast)", and " (FCast, offline)" for a receiver that is only remembered from the last run (text names only, decision D14).

Member Function Documentation

◆ discoverResources()

Resource[] de.yaacc.fcast.discovery.FCastReceiverDevice.discoverResources ( Namespace namespace)

◆ findDevice()

Device de.yaacc.fcast.discovery.FCastReceiverDevice.findDevice ( UDN udn)

◆ getDetails()

DeviceDetails de.yaacc.fcast.discovery.FCastReceiverDevice.getDetails ( )

◆ getDisplayString()

String de.yaacc.fcast.discovery.FCastReceiverDevice.getDisplayString ( )

◆ getEmbeddedDevices()

Device[] de.yaacc.fcast.discovery.FCastReceiverDevice.getEmbeddedDevices ( )

◆ getRoot()

Device de.yaacc.fcast.discovery.FCastReceiverDevice.getRoot ( )

◆ getServices()

Service[] de.yaacc.fcast.discovery.FCastReceiverDevice.getServices ( )

◆ newServiceArray()

Service[] de.yaacc.fcast.discovery.FCastReceiverDevice.newServiceArray ( int i)

◆ of()

static FCastReceiverDevice de.yaacc.fcast.discovery.FCastReceiverDevice.of ( FCastDirectory.Entry entry,
Labels labels )
static
Returns
the device of a directory entry, or null if it can not be made

◆ toString()

String de.yaacc.fcast.discovery.FCastReceiverDevice.toString ( )

The documentation for this class was generated from the following file: