Параметры метода wall.addComment
Esempio n. 1
0
        /// <summary>
        /// Привести к типу VkParameters.
        /// </summary>
        /// <param name="p">Параметры.</param>
        /// <returns></returns>
        internal static VkParameters ToVkParameters(WallAddCommentParams p)
        {
            var parameters = new VkParameters
            {
                { "owner_id", p.OwnerId },
                { "post_id", p.PostId },
                { "from_group", p.FromGroup },
                { "text", p.Text },
                { "reply_to_comment", p.ReplyToComment },
                { "attachments", p.Attachments },
                { "sticker_id", p.StickerId },
                { "ref", p.Ref }
            };

            return(parameters);
        }
Esempio n. 2
0
        /// <summary>
        /// Привести к типу VkParameters.
        /// </summary>
        /// <param name="p">Параметры.</param>
        /// <returns></returns>
        internal static VkParameters ToVkParameters(WallAddCommentParams p)
        {
            var parameters = new VkParameters
            {
                { "owner_id", p.OwnerId },
                { "post_id", p.PostId },
                { "from_group", p.FromGroup },
                { "text", p.Text },
                { "reply_to_comment", p.ReplyToComment },
                { "attachments", p.Attachments },
                { "sticker_id", p.StickerId },
                { "ref", p.Ref }
            };

            return parameters;
        }