Class MusicPlayerPlaySong
Use case for playing a song in the music player.
Inherited Members
Namespace: Serenity.MusicPlayer.Application.UseCases
Assembly: Serenity.MusicPlayer.Application.dll
Syntax
public class MusicPlayerPlaySong : ISyncUseCase<MusicPlayerPlaySongInput>, IUseCase
Constructors
MusicPlayerPlaySong(IMusicPlayerGateway)
Initializes a new instance of the MusicPlayerPlaySong class.
Declaration
public MusicPlayerPlaySong(IMusicPlayerGateway gateway)
Parameters
| Type | Name | Description |
|---|---|---|
| IMusicPlayerGateway | gateway | The music player gateway to interact with music player services. |
Methods
Execute(MusicPlayerPlaySongInput)
Executes the music player play song use case with the provided input data.
Declaration
public void Execute(MusicPlayerPlaySongInput input)
Parameters
| Type | Name | Description |
|---|---|---|
| MusicPlayerPlaySongInput | input | The input data for playing a song in the music player. |