YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.snapcast.ui.SnapcastOwnClient Class Reference

Which client of a server's status is this phone's own (tasks 12.11 and 12C). More...

Collaboration diagram for de.yaacc.snapcast.ui.SnapcastOwnClient:
Collaboration graph

Static Public Member Functions

static boolean isOwn (String clientIdFromStatus, String ownId)
 
static boolean cardOffersPower (SnapcastGroup group, String ownId)
 Whether the card of a group has the power button: the own client is the group's first member (the member whose name titles a card of a group without a name of its own) or its only member.
 
static boolean isOwnOrLegacy (String clientIdFromStatus, SnapcastOwnIds ids)
 
static boolean isLegacy (String clientIdFromStatus, SnapcastOwnIds ids)
 
static boolean cardOffersPowerForIds (SnapcastGroup group, SnapcastOwnIds ids)
 As cardOffersPower(SnapcastGroup, String) for the current id and the legacy ids: the first member is the phone's.
 

Detailed Description

Which client of a server's status is this phone's own (tasks 12.11 and 12C).

With ONE client id for every server (SnapcastClientIdentity), the app knows its own id without a session, so the entry of the phone is recognised on every server, connected or offline (a ghost of this install). The id is the only thing that counts: names and host names are the server's text and can be anything. Pure.

What the recognition is used for: the label "This phone" in the member rows, the power button on the card whose first member is the own client (the one that titles the card), and the removal rule of an offline entry (never while a session runs).

Member Function Documentation

◆ cardOffersPower()

static boolean de.yaacc.snapcast.ui.SnapcastOwnClient.cardOffersPower ( SnapcastGroup group,
String ownId )
static

Whether the card of a group has the power button: the own client is the group's first member (the member whose name titles a card of a group without a name of its own) or its only member.

Any other group, a missing group or an unknown own id: no button.

Here is the call graph for this function:

◆ isLegacy()

static boolean de.yaacc.snapcast.ui.SnapcastOwnClient.isLegacy ( String clientIdFromStatus,
SnapcastOwnIds ids )
static
Returns
true for an old per-server entry of this install (not for the current id): the row says "old entry"

◆ isOwn()

static boolean de.yaacc.snapcast.ui.SnapcastOwnClient.isOwn ( String clientIdFromStatus,
String ownId )
static
Returns
true when the id from a server's status is the app's own client id; false when either is missing or empty

Referenced by de.yaacc.snapcast.ui.SnapcastOwnClient.cardOffersPower().

Here is the caller graph for this function:

◆ isOwnOrLegacy()

static boolean de.yaacc.snapcast.ui.SnapcastOwnClient.isOwnOrLegacy ( String clientIdFromStatus,
SnapcastOwnIds ids )
static
Returns
true when the id is the current id or one of this install's legacy ids (task 12.19): an entry of this phone, whether it is the one it uses now or an old per-server entry that earlier builds left on a server. Other installs' ids are not.

Referenced by de.yaacc.snapcast.ui.SnapcastOwnClient.cardOffersPowerForIds().

Here is the call graph for this function:
Here is the caller graph for this function:

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