Пример #1
0
        public bool ReportComment(long commentId, long ownerId, VideoReportType 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, VideoReportType 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));
        }
Пример #3
0
        public bool ReportComment(long commentId, long ownerId, VideoReportType reason)
        {
            VkErrors.ThrowIfNumberIsNegative(() => commentId);

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

            return _vk.Call("video.reportComment", parameters);
        }
Пример #4
0
        public bool Report(long videoId, VideoReportType 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);
        }
Пример #5
0
        public bool Report(long ownerId, long photoId, VideoReportType reason)
        {
            VkErrors.ThrowIfNumberIsNegative(() => photoId);

            var parameters = new VkParameters
                {
                    {"owner_id", ownerId},
                    {"photo_id", photoId},
                    {"reason", reason}
                };

            VkResponse response = _vk.Call("photos.report", parameters);

            return response;
        }