상속: MediaAttachment
예제 #1
0
파일: Gift.cs 프로젝트: Bobruk/vk
        internal static Gift FromJson(VkResponse response)
        {
            var gift = new Gift();

            gift.Id = response["id"];
            gift.Thumb48 = response["thumb_48"];
            gift.Thumb96 = response["thumb_96"];
            gift.Thumb256 = response["thumb_256"];

            return gift;
        }
예제 #2
0
파일: Gift.cs 프로젝트: vknet/vk
        /// <summary>
        /// Разобрать из json.
        /// </summary>
        /// <param name="response">Ответ сервера.</param>
        /// <returns></returns>
        public static Gift FromJson(VkResponse response)
        {
            var gift = new Gift
            {
                Id = response["id"],
                Thumb48 = response["thumb_48"],
                Thumb96 = response["thumb_96"],
                Thumb256 = response["thumb_256"]
            };

            return gift;
        }