/// <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); }
public VkCollection<MarketComment> GetComments(MarketGetCommentsParams @params) { return _vk.Call("market.getComments", @params).ToVkCollectionOf<MarketComment>(x => x); }
/// <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; }