private void TheApplicationDeserializesTheToggleLikedMixResponse() { try { toggleMixLikeResponse = (ToggleMixLikeResponse)deserializer.Deserialize(typeof(ToggleMixLikeRequest), responseString); } catch (Exception ex) { exception = ex; } }
public void ToggleLike(Mix mix) { ToggleMixLikeRequest toggleMixLikeRequest = requestFactory.CreateToggleMixLikeRequest(mix.MixId); ToggleMixLikeResponse toggleMixLikeReponse = requestExecutor.ExecuteToggleMixLikeRequest(toggleMixLikeRequest); if (toggleMixLikeReponse.LoggedIn) { mix.LikedByCurrentUser = toggleMixLikeReponse.Mix.LikedByCurrentUser; } }