public void ToggleLike(Mix mix) { ToggleMixLikeRequest toggleMixLikeRequest = requestFactory.CreateToggleMixLikeRequest(mix.MixId); ToggleMixLikeResponse toggleMixLikeReponse = requestExecutor.ExecuteToggleMixLikeRequest(toggleMixLikeRequest); if (toggleMixLikeReponse.LoggedIn) { mix.LikedByCurrentUser = toggleMixLikeReponse.Mix.LikedByCurrentUser; } }
public ToggleMixLikeResponse ExecuteToggleMixLikeRequest(ToggleMixLikeRequest toggleMixLikeRequest) { return ((ToggleMixLikeResponse) (Execute(toggleMixLikeRequest) ?? Activator.CreateInstance(typeof(MixesResponse)))); }