public MediaAssetInput[] GetInputAssets(string sourceUrl)
        {
            IAsset          sourceAsset = GetSourceAsset(sourceUrl);
            MediaAssetInput inputAsset  = new MediaAssetInput();

            inputAsset.AssetId = sourceAsset.Id;
            return(new MediaAssetInput[] { inputAsset });
        }
Example #2
0
        private static int OrderByWorkflow(MediaAssetInput leftSide, MediaAssetInput rightSide)
        {
            int comparison = 0;

            if (PremiumWorkflow(leftSide.PrimaryFile))
            {
                comparison = -1;
            }
            else if (PremiumWorkflow(rightSide.PrimaryFile))
            {
                comparison = 1;
            }
            return(comparison);
        }