Структура статистики
コード例 #1
0
ファイル: StatStruct.cs プロジェクト: kadkin/vk
        /// <summary>
        /// Разобрать из json.
        /// </summary>
        /// <param name="response">Ответ сервера.</param>
        /// <returns></returns>
        internal static StatsStruct FromJson(VkResponse response)
        {
            var statsStruct = new StatsStruct
            {
                Visitors = response["visitors"],
                Value = response["value"],
                Code = response["code"],
                Name = response["name"]
            };

            return statsStruct;
        }
コード例 #2
0
        /// <summary>
        /// Разобрать из json.
        /// </summary>
        /// <param name="response">Ответ сервера.</param>
        /// <returns></returns>
        public static StatsStruct FromJson(VkResponse response)
        {
            var statsStruct = new StatsStruct
            {
                Visitors = response["visitors"],
                Value    = response["value"],
                Code     = response["code"],
                Name     = response["name"]
            };

            return(statsStruct);
        }