示例#1
0
文件: Currency.cs 项目: Olegasdf/vk
        /// <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
文件: Currency.cs 项目: vknet/vk
        /// <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;
        }