Результат копирования записи на стену и информация о ней.
Пример #1
0
        internal static RepostResult FromJson(VkResponse response)
        {
            var result = new RepostResult();

            result.Success      = response["success"];
            result.PostId       = response["post_id"];
            result.RepostsCount = response["reposts_count"];
            result.LikesCount   = response["likes_count"];

            return(result);
        }
Пример #2
0
        internal static RepostResult FromJson(VkResponse response)
        {
            var result = new RepostResult();

            result.Success = response["success"];
            result.PostId = response["post_id"];
            result.RepostsCount = response["reposts_count"];
            result.LikesCount = response["likes_count"];

            return result;
        }
Пример #3
0
        /// <summary>
        /// ��������� �� json.
        /// </summary>
        /// <param name="response"> ����� �������. </param>
        /// <returns> </returns>
        public static RepostResult FromJson(VkResponse response)
        {
            var result = new RepostResult
            {
                Success        = response[key : "success"]
                , PostId       = response[key : "post_id"]
                , RepostsCount = response[key : "reposts_count"]
                , LikesCount   = response[key : "likes_count"]
            };

            return(result);
        }
Пример #4
0
        /// <summary>
        /// Разобрать из json.
        /// </summary>
        /// <param name="response">Ответ сервера.</param>
        /// <returns></returns>
        public static RepostResult FromJson(VkResponse response)
        {
            var result = new RepostResult
            {
                Success = response["success"],
                PostId = response["post_id"],
                RepostsCount = response["reposts_count"],
                LikesCount = response["likes_count"]
            };

            return result;
        }