Параметры запроса market.getComments
示例#1
0
        /// <summary>
        /// Привести к типу VkParameters.
        /// </summary>
        /// <param name="p">Параметры.</param>
        /// <returns></returns>
        public static VkParameters ToVkParameters(MarketGetCommentsParams p)
        {
            var parameters = new VkParameters {
                { "owner_id", p.OwnerId },
                { "item_id", p.ItemId },
                { "need_likes", p.NeedLikes },
                { "start_comment_id", p.StartCommentId },
                { "offset", p.Offset },
                { "count", p.Count },
                { "sort", p.Sort },
                { "extended", p.Extended },
                { "fields", p.Fields }
            };

            return(parameters);
        }
示例#2
0
		public VkCollection<MarketComment> GetComments(MarketGetCommentsParams @params)
		{
			return _vk.Call("market.getComments", @params).ToVkCollectionOf<MarketComment>(x => x);
		}
示例#3
0
        /// <summary>
        /// Привести к типу VkParameters.
        /// </summary>
        /// <param name="p">Параметры.</param>
        /// <returns></returns>
        public static VkParameters ToVkParameters(MarketGetCommentsParams p)
        {
            var parameters = new VkParameters {
                { "owner_id", p.OwnerId },
                { "item_id", p.ItemId },
                { "need_likes", p.NeedLikes },
                { "start_comment_id", p.StartCommentId },
                { "offset", p.Offset },
                { "count", p.Count },
                { "sort", p.Sort },
                { "extended", p.Extended },
                { "fields", p.Fields }
            };

            return parameters;
        }