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); }
public NextMixResponse ExecuteNextMixRequest(NextMixRequest nextMixRequest) { return((NextMixResponse)(Execute(nextMixRequest) ?? Activator.CreateInstance(typeof(NextMixResponse)))); }