Валюта.
예제 #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;
        }