BrightcoveMapiWrapper.Api.BrightcoveApi.DoDeleteVideo C# (CSharp) Метод

DoDeleteVideo() приватный Метод

Deletes a video, specified by video ID or reference ID.
private DoDeleteVideo ( long videoId, string referenceId, bool cascade, bool deleteShares ) : void
videoId long The ID for the video to delete. Either a video ID or a reference ID must be supplied.
referenceId string The publisher-assigned reference ID of the video you want to delete. Either a video ID or a reference ID must be supplied.
cascade bool Set this to true if you want to delete this video even if it is part of a manual playlist or assigned to a player. The video will be removed from all playlists and players in which it appears, then deleted.
deleteShares bool Set this to true if you want also to delete shared copies of this video. Note that this will delete all shared copies from your account, as well as from all accounts with which the video has been shared, regardless of whether or not those accounts are currently using the video in playlists or players.
Результат void
		private void DoDeleteVideo(long videoId, string referenceId, bool cascade, bool deleteShares)
		{
			string propName;
			object propValue;
			GetIdValuesForUpload(videoId, referenceId, "video_id", "reference_id", out propName, out propValue);

			BrightcoveParamCollection parms = CreateWriteParamCollection("delete_video",
																		 methodParams =>
																		 {
																			 methodParams.Add(propName, propValue);
																			 methodParams.Add("cascade", cascade.ToString().ToLower());
																			 methodParams.Add("delete_shares", deleteShares.ToString().ToLower());
																		 });

			RunPost<BrightcoveResultContainer<long>>(parms);
		}