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

The app's own Snapcast client id for the code that only wants to recognise it (task 12.11): read from the install secret that the service made at its first start, with no session and no server involved. More...

Collaboration diagram for de.yaacc.snapcast.client.SnapcastClientIdentities:
Collaboration graph

Static Public Member Functions

static String ownId (Context context)
 
static synchronized SnapcastOwnIds ownIds (Context context, List< ServerEndpoint > servers)
 The phone's current id and the legacy per-server ids of this install (task 12.19) for the given known servers and the address that the listen test saved last.
 

Detailed Description

The app's own Snapcast client id for the code that only wants to recognise it (task 12.11): read from the install secret that the service made at its first start, with no session and no server involved.

Reading never creates the secret: without one the app has never started a client and no entry of it can exist on a server (the id is null then, nothing is "own"). Thin Android glue; the derivation is SnapcastClientIdentity. The id is never logged.

Member Function Documentation

◆ ownId()

static String de.yaacc.snapcast.client.SnapcastClientIdentities.ownId ( Context context)
static
Returns
the client id the phone gives every server, or null when this installation has no secret yet
Here is the call graph for this function:

◆ ownIds()

static synchronized SnapcastOwnIds de.yaacc.snapcast.client.SnapcastClientIdentities.ownIds ( Context context,
List< ServerEndpoint > servers )
static

The phone's current id and the legacy per-server ids of this install (task 12.19) for the given known servers and the address that the listen test saved last.

Needs the install secret; without one (this install never started a client) nothing is own. Never creates the secret, never logs an id.

Here is the call graph for this function:

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