Пример #1
0
    /// <summary>
    /// Sets the shuffle state of Spotify
    /// </summary>
    /// <param name="state">The shuffle state to set to</param>
    public void SetShuffle(Shuffle state)
    {
        ShuffleState = state;
        m_webAPI.SetShuffle(state == Shuffle.Enabled);
        OnShuffleChanged?.Invoke(ShuffleState);

        Analysis.Log($"Set Shuffle state to {state.ToString()}");
    }
Пример #2
0
 private void SetShuffleInternal(Shuffle state)
 {
     ShuffleState = state;
     OnShuffleChanged?.Invoke(ShuffleState);
     Analysis.Log($"Set Shuffle mode to {state.ToString()}");
 }