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