Пример #1
0
        /// <summary>
        /// Разобрать из json.
        /// </summary>
        /// <param name="response">Ответ сервера.</param>
        /// <returns></returns>
        internal static Currency FromJson(VkResponse response)
        {
            var currency = new Currency
            {
                Id = response["id"],
                Сurrency = response["currency"]
            };

            return currency;
        }
Пример #2
0
        /// <summary>
        /// Разобрать из json.
        /// </summary>
        /// <param name="response">Ответ сервера.</param>
        /// <returns></returns>
        public static Currency FromJson(VkResponse response)
        {
            var currency = new Currency
            {
                Id = response["id"],
                Сurrency = response["currency"],
                Name = response["name"]
            };

            return currency;
        }