private void TheApplicationDeserializesTheToggleLikedMixResponse()
 {
     try
     {
         toggleMixLikeResponse = (ToggleMixLikeResponse)deserializer.Deserialize(typeof(ToggleMixLikeRequest), responseString);
     }
     catch (Exception ex)
     {
         exception = ex;
     }
 }
Esempio 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;
            }
        }