YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.sendspin.SendspinReceiverDevice Class Reference

A Sendspin player as a receiver of the receiver lists: a synthetic Cling Device that is never registered with Cling's registry (so it is never advertised or searched for), in the shape of the Snapcast group and the FCast receiver: no services, no root. More...

Inheritance diagram for de.yaacc.sendspin.SendspinReceiverDevice:
Inheritance graph
Collaboration diagram for de.yaacc.sendspin.SendspinReceiverDevice:
Collaboration graph

Public Member Functions

boolean isServer ()
 True for the card of a Sendspin server (the controller), false for a player.
 
boolean isSelf ()
 True for the card of this phone as a player.
 
String getReceiverId ()
 The receiver id of the lists.
 
Endpoint getEndpoint ()
 
String getName ()
 The name without the product note.
 
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 name 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 SendspinReceiverDevice of (Endpoint endpoint, String announcedName)
 
static SendspinReceiverDevice ofServer (Endpoint endpoint, String announcedName)
 A Sendspin server as a card of the receiver list (the controller role: it shows what the server plays and sends commands; nothing is played to it).
 
static SendspinReceiverDevice ofSelf (String phoneName)
 As ofSelf(String, Endpoint) for a player that does not run (a placeholder endpoint).
 
static SendspinReceiverDevice ofSelf (String phoneName, Endpoint ownEndpoint)
 The card of this phone as a Sendspin player: it shows who plays on the phone, controls its volume, and is a place to play to like any player (the app's own hub dials the player over the loopback address) and the leader of a group.
 

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

A Sendspin player as a receiver of the receiver lists: a synthetic Cling Device that is never registered with Cling's registry (so it is never advertised or searched for), in the shape of the Snapcast group and the FCast receiver: no services, no root.

It is an immutable snapshot; two snapshots of one player are equal (the identity is the id of the lists), so a player that announced its name later is the same receiver. The lists compare devices by object and redraw a row when the object changes, so the hub keeps the old object while showsSame holds.

Member Function Documentation

◆ discoverResources()

Resource[] de.yaacc.sendspin.SendspinReceiverDevice.discoverResources ( Namespace namespace)

◆ findDevice()

Device de.yaacc.sendspin.SendspinReceiverDevice.findDevice ( UDN udn)

◆ getDetails()

DeviceDetails de.yaacc.sendspin.SendspinReceiverDevice.getDetails ( )

◆ getDisplayString()

String de.yaacc.sendspin.SendspinReceiverDevice.getDisplayString ( )

◆ getEmbeddedDevices()

Device[] de.yaacc.sendspin.SendspinReceiverDevice.getEmbeddedDevices ( )

◆ getRoot()

Device de.yaacc.sendspin.SendspinReceiverDevice.getRoot ( )

◆ getServices()

Service[] de.yaacc.sendspin.SendspinReceiverDevice.getServices ( )

◆ newServiceArray()

Service[] de.yaacc.sendspin.SendspinReceiverDevice.newServiceArray ( int i)

◆ of()

static SendspinReceiverDevice de.yaacc.sendspin.SendspinReceiverDevice.of ( Endpoint endpoint,
String announcedName )
static
Parameters
announcedNamethe name the player gave in its hello, or null before it connected (the address is shown then)
Returns
the device, or null if it can not be made

◆ ofSelf()

static SendspinReceiverDevice de.yaacc.sendspin.SendspinReceiverDevice.ofSelf ( String phoneName,
Endpoint ownEndpoint )
static

The card of this phone as a Sendspin player: it shows who plays on the phone, controls its volume, and is a place to play to like any player (the app's own hub dials the player over the loopback address) and the leader of a group.

Parameters
ownEndpointwhere the player of this phone listens as the hub dials it, or null while it does not run
Here is the call graph for this function:

◆ ofServer()

static SendspinReceiverDevice de.yaacc.sendspin.SendspinReceiverDevice.ofServer ( Endpoint endpoint,
String announcedName )
static

A Sendspin server as a card of the receiver list (the controller role: it shows what the server plays and sends commands; nothing is played to it).

Parameters
announcedNamethe name the server gave in its hello, or null before it connected

◆ toString()

String de.yaacc.sendspin.SendspinReceiverDevice.toString ( )

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