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

ShareVideo() публичный Метод

Shares the specified video with a list of sharee accounts.
public ShareVideo ( long videoId, bool autoAccept, bool forceReshare, IEnumerable shareeAccountIds ) : ICollection
videoId long The id for video that will be shared.
autoAccept bool If the target account has the option enabled, setting this flag to true will bypass /// the approval process, causing the shared video to automatically appear in the target account's library. If the /// target account does not have the option enabled, or this flag is unspecified or false, then the shared video /// will be queued up to be approved by the target account before appearing in their library.
forceReshare bool If true, indicates that if the shared video already exists in the target account's /// library, it should be overwritten by the video in the sharer's account.
shareeAccountIds IEnumerable List of Account IDs to share video with.
Результат ICollection
		public ICollection<long> ShareVideo(long videoId, bool autoAccept, bool forceReshare, IEnumerable<long> shareeAccountIds)
		{
			BrightcoveParamCollection parms = CreateWriteParamCollection("share_video",
																		 methodParams =>
																		 {
																			 methodParams.Add("video_id", videoId);
																			 methodParams.Add("auto_accept", autoAccept.ToString().ToLower());
																			 methodParams.Add("force_reshare", forceReshare.ToString().ToLower());
																			 methodParams.Add("sharee_account_ids", shareeAccountIds);
																		 });

			return RunPost<BrightcoveResultContainer<long[]>>(parms).Result;
		}