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

            if (toggleMixLikeReponse.LoggedIn)
            {
                mix.LikedByCurrentUser = toggleMixLikeReponse.Mix.LikedByCurrentUser;
            }
        }