コード例 #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
ファイル: Likes.cs プロジェクト: SaintCat/VkBot
        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;
        }