/// <summary>
        /// Parses the specified <paramref name="obj"/> into an instance of <see cref="InstagramCarouselMedia"/>.
        /// </summary>
        /// <param name="obj">The instance of <see cref="JObject"/> to be parsed.</param>
        /// <returns>Returns an instance of <see cref="InstagramCarouselMedia"/>.</returns>
        public static InstagramCarouselMedia Parse(JObject obj)
        {
            if (obj == null)
            {
                return(null);
            }
            switch (obj.GetString("type"))
            {
            case "image": return(InstagramCarouselImage.Parse(obj));

            case "video": return(InstagramCarouselVideo.Parse(obj));

            default: return(new InstagramCarouselMedia(obj));
            }
        }
 /// <summary>
 /// Gets whether the media is a video - AKA an instance of <see cref="InstagramCarouselVideo"/>.
 /// </summary>
 /// <param name="video">The instance of <see cref="InstagramVideo"/> if a video, otherwise <code>null</code>.</param>
 /// <returns><code>true</code> if this media is an instance of <see cref="InstagramCarouselVideo"/>, otherwise <code>false</code>.</returns>
 public bool IsVideo(out InstagramCarouselVideo video)
 {
     video = this as InstagramCarouselVideo;
     return(video != null);
 }