Song art service for OnRadio. More...

Inheritance diagram for Crosstales.DJ.OnRadio.Service.SongArtService:

Public Member Functions

delegate void QueryComplete (string id)
 
string Query (Crosstales.DJ.Model.Record record, bool loadIcon)
 Query the SongArt service. More...
 

Public Attributes

bool isValidToken => !string.IsNullOrEmpty(Token) && Token.Length >= 10 && Token.CTIsInteger()
 Indicates if the token is valid. More...
 
QueryCompleteEvent OnQueryCompleted
 

Static Public Attributes

static int TotalSongArtRequests
 
static int TotalRequests => TotalSongArtRequests
 Total number of requests to OnRadio. More...
 

Protected Member Functions

IEnumerator querySongArt (string id, Crosstales.DJ.Model.Record record, bool loadIcon, bool isInternal)
 
virtual void onQueryComplete (string id)
 

Properties

string? Token [get, set]
 Token to access OnRadio. More...
 
string Token [get, set]
 
Sprite DefaultSongIcon [get, set]
 Default icon for the song. More...
 

Events

QueryComplete OnQueryComplete
 An event triggered whenever the query is completed. More...
 

Detailed Description

Song art service for OnRadio.

Member Function Documentation

◆ Query()

string Crosstales.DJ.OnRadio.Service.SongArtService.Query ( Crosstales.DJ.Model.Record  record,
bool  loadIcon 
)

Query the SongArt service.

Parameters
recordRecord info to query
loadIconload the icon for the record
Returns
UID of the query.

Member Data Documentation

◆ isValidToken

bool Crosstales.DJ.OnRadio.Service.SongArtService.isValidToken => !string.IsNullOrEmpty(Token) && Token.Length >= 10 && Token.CTIsInteger()

Indicates if the token is valid.

Returns
True if the token is valid.

◆ TotalRequests

int Crosstales.DJ.OnRadio.Service.SongArtService.TotalRequests => TotalSongArtRequests
static

Total number of requests to OnRadio.

Returns
Total number of requests to OnRadio.

Property Documentation

◆ DefaultSongIcon

Sprite Crosstales.DJ.OnRadio.Service.SongArtService.DefaultSongIcon
getset

Default icon for the song.

◆ Token

string? Crosstales.DJ.OnRadio.Service.SongArtService.Token
getset

Token to access OnRadio.

Token to access OnRadio.

Event Documentation

◆ OnQueryComplete

QueryComplete Crosstales.DJ.OnRadio.Service.SongArtService.OnQueryComplete

An event triggered whenever the query is completed.


The documentation for this class was generated from the following file:
  • C:/Users/slaub/Unity/assets/DJPro/DJPro/Assets/Plugins/crosstales/DJ/3rd party/OnRadio/Scripts/Service/SongArtService.cs