public void NextMix() { NextMixRequest nextMixRequest = requestFactory.CreateNextMixRequest(currentMix.MixId, currentMix.SetId, playToken); NextMixResponse nextMixResponse = requestExecutor.ExecuteNextMixRequest(nextMixRequest); Mix mix = new Mix(nextMixResponse.NextMix, currentMix.SetId); Play(mix); }
private void TheApplicationDeserializesTheNextMixResponse() { try { nextMixResponse = (NextMixResponse)deserializer.Deserialize(typeof(NextMixRequest), responseString); } catch (Exception ex) { exception = ex; } }