Параметры метода board.getTopics
        /// <summary>
        /// Привести к типу VkParameters.
        /// </summary>
        /// <param name="p"> Параметры. </param>
        /// <returns> </returns>
        public static VkParameters ToVkParameters(BoardGetCommentsParams p)
        {
            var parameters = new VkParameters
            {
                { "group_id", p.GroupId }
                , { "topic_id", p.TopicId }
                , { "need_likes", p.NeedLikes }
                , { "start_comment_id", p.StartCommentId }
                , { "offset", p.Offset }
                , { "count", p.Count }
                , { "sort", p.Sort }
                , { "preview_length", p.PreviewLength }
                , { "extended", p.Extended }
            };

            return(parameters);
        }
Esempio n. 2
0
        /// <summary>
        /// Привести к типу VkParameters.
        /// </summary>
        /// <param name="p">Параметры.</param>
        /// <returns></returns>
        internal static VkParameters ToVkParameters(BoardGetCommentsParams p)
		{
			var parameters = new VkParameters
			{
                { "group_id", p.GroupId },
                { "topic_id", p.TopicId },
                { "need_likes", p.NeedLikes },
                { "start_comment_id", p.StartCommentId },
                { "offset", p.Offset },
                { "count", p.Count },
                { "sort", p.Sort },
                { "preview_length", p.PreviewLength },
                { "extended", p.Extended }
            };

			return parameters;
		}