Interface IMusicPlayerGateway
Gateway interface for music player operations.
Namespace: Serenity.MusicPlayer.Application.Interfaces
Assembly: Serenity.MusicPlayer.Application.dll
Syntax
public interface IMusicPlayerGateway
Methods
PauseSong(MusicPlayerPauseSongInput)
Pauses the currently playing song.
Declaration
void PauseSong(MusicPlayerPauseSongInput input)
Parameters
| Type | Name | Description |
|---|---|---|
| MusicPlayerPauseSongInput | input | The input data for pausing the song. |
PlayNextSong(MusicPlayerPlayNextSongInput)
Plays the next song in the playlist.
Declaration
void PlayNextSong(MusicPlayerPlayNextSongInput input)
Parameters
| Type | Name | Description |
|---|---|---|
| MusicPlayerPlayNextSongInput | input | The input data for playing the next song. |
PlayPreviousSong(MusicPlayerPlayPreviousSongInput)
Plays the previous song in the playlist.
Declaration
void PlayPreviousSong(MusicPlayerPlayPreviousSongInput input)
Parameters
| Type | Name | Description |
|---|---|---|
| MusicPlayerPlayPreviousSongInput | input | The input data for playing the previous song. |
PlaySong(MusicPlayerPlaySongInput)
Plays a specific song.
Declaration
void PlaySong(MusicPlayerPlaySongInput input)
Parameters
| Type | Name | Description |
|---|---|---|
| MusicPlayerPlaySongInput | input | The input data for playing the song. |
PlaySongById(MusicPlayerPlaySongByIdInput)
Plays a song resolved by its track id.
Declaration
void PlaySongById(MusicPlayerPlaySongByIdInput input)
Parameters
| Type | Name | Description |
|---|---|---|
| MusicPlayerPlaySongByIdInput | input | The input data for playing the song by id. |
ResumeSong(MusicPlayerResumeSongInput)
Resumes the currently paused song.
Declaration
void ResumeSong(MusicPlayerResumeSongInput input)
Parameters
| Type | Name | Description |
|---|---|---|
| MusicPlayerResumeSongInput | input | The input data for resuming the song. |
StopSong(MusicPlayerStopSongInput)
Stops the currently playing song.
Declaration
void StopSong(MusicPlayerStopSongInput input)
Parameters
| Type | Name | Description |
|---|---|---|
| MusicPlayerStopSongInput | input | The input data for stopping the song. |