/// <summary> /// Creates a new instance /// </summary> public Single(SingleStates state) { State = state; }
/// <summary> /// Sets single state, STATE should be On, Off or OneShot. /// When single is activated, playback is stopped after current song, or song is repeated if the ‘repeat’ mode is enabled /// </summary> public async Task SetSingle(SingleStates state) { // is either OK or Exception await ExecuteCommandAsync(new Commands.Single(state)); }