Esempio n. 1
0
        /// <summary>
        /// Разобрать из json.
        /// </summary>
        /// <param name="response">Ответ сервера.</param>
        /// <returns></returns>
        public static Chair FromJson(VkResponse response)
        {
            var result = new Chair
            {
                Id    = response["id"],
                Title = response["title"]
            };

            return(result);
        }
Esempio n. 2
0
File: Chair.cs Progetto: vknet/vk
        /// <summary>
        /// Разобрать из json.
        /// </summary>
        /// <param name="response">Ответ сервера.</param>
        /// <returns></returns>
        public static Chair FromJson(VkResponse response)
        {
            var result = new Chair
            {
                Id = response["id"],
                Title = response["title"]
            };

            return result;
        }