Class SoundMixerSetVolume
Use case for setting the volume in the Sound Mixer Service.
Inherited Members
Namespace: Serenity.SoundMixer.Application.UseCases
Assembly: Serenity.SoundMixer.Application.dll
Syntax
public class SoundMixerSetVolume : ISyncUseCase<SoundMixerSetVolumeInput>, IUseCase
Constructors
SoundMixerSetVolume(ISoundMixerService)
Initializes a new instance of the SoundMixerSetVolume class.
Declaration
public SoundMixerSetVolume(ISoundMixerService service)
Parameters
| Type | Name | Description |
|---|---|---|
| ISoundMixerService | service | The sound mixer service instance. |
Methods
Execute(SoundMixerSetVolumeInput)
Executes the use case to set the volume.
Declaration
public void Execute(SoundMixerSetVolumeInput input)
Parameters
| Type | Name | Description |
|---|---|---|
| SoundMixerSetVolumeInput | input | The input data transfer object containing the ID and volume level. |