Пример #1
0
        public bool ReportComment(long commentId, long ownerId, Enums.ContentReportType reason)
        {
            VkErrors.ThrowIfNumberIsNegative(() => commentId);

            var parameters = new VkParameters
            {
                { "comment_id", commentId },
                { "owner_id", ownerId },
                { "reason", reason }
            };

            return(_vk.Call("video.reportComment", parameters));
        }
Пример #2
0
        public bool Report(long videoId, Enums.ContentReportType reason, long?ownerId, string comment = null, string searchQuery = null)
        {
            VkErrors.ThrowIfNumberIsNegative(() => videoId);

            var parameters = new VkParameters
            {
                { "video_id", videoId },
                { "owner_id", ownerId },
                { "reason", reason },
                { "comment", comment },
                { "search_query", searchQuery }
            };

            return(_vk.Call("video.report", parameters));
        }