C# Class Music.MusicClient

The Music Client Claas
Inheritance: Mycroft.App.Client
Exibir arquivo Open project: rit-sse-mycroft/app-music Class Usage Examples

Public Methods

Method Description
MusicClient ( Session session, string manifest ) : Mycroft.App

Constructor for a music client

Protected Methods

Method Description
AppDependency ( dynamic message ) : void

Called when APP_DEPENDENCY is received

AppManifestOk ( dynamic message ) : void

Called when APP_MANIFEST_OK is received

MsgBroadcast ( dynamic message ) : void

Called when MSG_BROADCAST is received

Private Methods

Method Description
HandleAlbums ( string query, dynamic tags ) : void

Helper for handling album commands

HandleCommands ( dynamic tags ) : void

Helper for handling music player commands

HandleSongs ( string query, dynamic tags ) : void

Helper for handling song commands

NextSong ( ) : void

Plays the next song in the play queue

session_EndOfTrack ( Session sender, SessionEventArgs e ) : void

Called when a track is finished.

session_MusicDelivered ( Session sender, MusicDeliveryEventArgs e ) : void

Called when music is delievered

Method Details

AppDependency() protected method

Called when APP_DEPENDENCY is received
protected AppDependency ( dynamic message ) : void
message dynamic the message received
return void

AppManifestOk() protected method

Called when APP_MANIFEST_OK is received
protected AppManifestOk ( dynamic message ) : void
message dynamic the message received
return void

MsgBroadcast() protected method

Called when MSG_BROADCAST is received
protected MsgBroadcast ( dynamic message ) : void
message dynamic The message received
return void

MusicClient() public method

Constructor for a music client
public MusicClient ( Session session, string manifest ) : Mycroft.App
session Session The spotify session
manifest string The path to app manifest
return Mycroft.App