Комментарий к товару
Example #1
0
        /// <summary>
        /// Разобрать из json.
        /// </summary>
        /// <param name="response">Ответ сервера.</param>
        /// <returns></returns>
        public static MarketComment FromJson(VkResponse response)
        {
            var item = new MarketComment
            {
                Comments = response["items"].ToReadOnlyCollectionOf<Comment>(x => x),
                Count = response["count"],
                Profiles = response["profiles"].ToReadOnlyCollectionOf<User>(x => x),
                Groups = response["groups"].ToReadOnlyCollectionOf<Group>(x => x)
            };

            return item;
        }
Example #2
0
        /// <summary>
        /// Разобрать из json.
        /// </summary>
        /// <param name="response">Ответ сервера.</param>
        /// <returns></returns>
        internal static MarketComment FromJson(VkResponse response)
        {
            var item = new MarketComment
            {
                Comments = response["items"].ToReadOnlyCollectionOf <Comment>(x => x),
                Count    = response["count"],
                Profiles = response["profiles"].ToReadOnlyCollectionOf <User>(x => x),
                Groups   = response["groups"].ToReadOnlyCollectionOf <Group>(x => x)
            };

            return(item);
        }
Example #3
0
        /// <summary>
        /// ��������� �� json.
        /// </summary>
        /// <param name="response"> ����� �������. </param>
        /// <returns> </returns>
        public static MarketComment FromJson(VkResponse response)
        {
            var item = new MarketComment
            {
                Comments   = response[key : "items"].ToReadOnlyCollectionOf <Comment>(selector : x => x)
                , Count    = response[key : "count"]
                , Profiles = response[key : "profiles"].ToReadOnlyCollectionOf <User>(selector : x => x)
                , Groups   = response[key : "groups"].ToReadOnlyCollectionOf <Group>(selector : x => x)
            };

            return(item);
        }