Пример #1
0
Файл: Likes.cs Проект: odugen/vk
        internal static Likes FromJson(VkResponse response)
        {
            var likes = new Likes();

            likes.Count      = response["count"];
            likes.UserLikes  = response["user_likes"];
            likes.CanLike    = response["can_like"];
            likes.CanPublish = response["can_publish"];

            return(likes);
        }
Пример #2
0
        internal static Likes FromJson(VkResponse response)
        {
            var likes = new Likes();

            likes.Count = response["count"];
            likes.UserLikes = response["user_likes"];
            likes.CanLike = response["can_like"];
            likes.CanPublish = response["can_publish"];

            return likes;
        }
Пример #3
0
        /// <summary>
        /// Разобрать из json.
        /// </summary>
        /// <param name="response">Ответ сервера.</param>
        /// <returns></returns>
        public static Likes FromJson(VkResponse response)
        {
            var likes = new Likes
            {
                Count      = response["count"],
                UserLikes  = response["user_likes"],
                CanLike    = response["can_like"],
                CanPublish = response["can_publish"]
            };

            return(likes);
        }
Пример #4
0
Файл: Likes.cs Проект: vknet/vk
        /// <summary>
        /// Разобрать из json.
        /// </summary>
        /// <param name="response">Ответ сервера.</param>
        /// <returns></returns>
        public static Likes FromJson(VkResponse response)
        {
            var likes = new Likes
            {
                Count = response["count"],
                UserLikes = response["user_likes"],
                CanLike = response["can_like"],
                CanPublish = response["can_publish"]
            };

            return likes;
        }