Exemple #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);
        }
Exemple #2
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;
        }