/// <summary> /// Привести к типу VkParameters. /// </summary> /// <param name="p">Параметры.</param> /// <returns></returns> internal static VkParameters ToVkParameters(MarketCreateCommentParams p) { var parameters = new VkParameters { { "owner_id", p.OwnerId }, { "item_id", p.ItemId }, { "message", p.Message }, { "attachments", p.Attachments }, { "from_group", p.FromGroup }, { "reply_to_comment", p.ReplyToComment }, { "sticker_id", p.StickerId } }; return(parameters); }
public long CreateComment(MarketCreateCommentParams @params) { return _vk.Call("market.createComment", @params); }
/// <summary> /// Привести к типу VkParameters. /// </summary> /// <param name="p">Параметры.</param> /// <returns></returns> public static VkParameters ToVkParameters(MarketCreateCommentParams p) { var parameters = new VkParameters { { "owner_id", p.OwnerId }, { "item_id", p.ItemId }, { "message", p.Message }, { "attachments", p.Attachments }, { "from_group", p.FromGroup }, { "reply_to_comment", p.ReplyToComment }, { "sticker_id", p.StickerId } }; return parameters; }