コード例 #1
0
ファイル: Single.cs プロジェクト: RafaelEstevamReis/SimpleMPD
 /// <summary>
 /// Creates a new instance
 /// </summary>
 public Single(SingleStates state)
 {
     State = state;
 }
コード例 #2
0
 /// <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));
 }