Esempio n. 1
0
        public KalturaAssetParamsOutput(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                string txt = propertyNode.InnerText;
                switch (propertyNode.Name)
                {
                case "assetParamsId":
                    this.AssetParamsId = ParseInt(txt);
                    continue;

                case "assetParamsVersion":
                    this.AssetParamsVersion = txt;
                    continue;

                case "assetId":
                    this.AssetId = txt;
                    continue;

                case "assetVersion":
                    this.AssetVersion = txt;
                    continue;

                case "readyBehavior":
                    this.ReadyBehavior = ParseInt(txt);
                    continue;

                case "format":
                    this.Format = (KalturaContainerFormat)KalturaStringEnum.Parse(typeof(KalturaContainerFormat), txt);
                    continue;
                }
            }
        }
        public KalturaAssetParamsOutputBaseFilter(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                string txt = propertyNode.InnerText;
                switch (propertyNode.Name)
                {
                case "assetParamsIdEqual":
                    this.AssetParamsIdEqual = ParseInt(txt);
                    continue;

                case "assetParamsVersionEqual":
                    this.AssetParamsVersionEqual = txt;
                    continue;

                case "assetIdEqual":
                    this.AssetIdEqual = txt;
                    continue;

                case "assetVersionEqual":
                    this.AssetVersionEqual = txt;
                    continue;

                case "formatEqual":
                    this.FormatEqual = (KalturaContainerFormat)KalturaStringEnum.Parse(typeof(KalturaContainerFormat), txt);
                    continue;
                }
            }
        }
 public KalturaThumbParamsBaseFilter(XmlElement node) : base(node)
 {
     foreach (XmlElement propertyNode in node.ChildNodes)
     {
         string txt = propertyNode.InnerText;
         switch (propertyNode.Name)
         {
         case "formatEqual":
             this.FormatEqual = (KalturaContainerFormat)KalturaStringEnum.Parse(typeof(KalturaContainerFormat), txt);
             continue;
         }
     }
 }
Esempio n. 4
0
        public KalturaThumbParams(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                string txt = propertyNode.InnerText;
                switch (propertyNode.Name)
                {
                case "cropType":
                    this.CropType = (KalturaThumbCropType)ParseEnum(typeof(KalturaThumbCropType), txt);
                    continue;

                case "quality":
                    this.Quality = ParseInt(txt);
                    continue;

                case "cropX":
                    this.CropX = ParseInt(txt);
                    continue;

                case "cropY":
                    this.CropY = ParseInt(txt);
                    continue;

                case "cropWidth":
                    this.CropWidth = ParseInt(txt);
                    continue;

                case "cropHeight":
                    this.CropHeight = ParseInt(txt);
                    continue;

                case "videoOffset":
                    this.VideoOffset = ParseFloat(txt);
                    continue;

                case "width":
                    this.Width = ParseInt(txt);
                    continue;

                case "height":
                    this.Height = ParseInt(txt);
                    continue;

                case "scaleWidth":
                    this.ScaleWidth = ParseFloat(txt);
                    continue;

                case "scaleHeight":
                    this.ScaleHeight = ParseFloat(txt);
                    continue;

                case "backgroundColor":
                    this.BackgroundColor = txt;
                    continue;

                case "sourceParamsId":
                    this.SourceParamsId = ParseInt(txt);
                    continue;

                case "format":
                    this.Format = (KalturaContainerFormat)KalturaStringEnum.Parse(typeof(KalturaContainerFormat), txt);
                    continue;
                }
            }
        }
Esempio n. 5
0
        public KalturaFlavorParams(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                string txt = propertyNode.InnerText;
                switch (propertyNode.Name)
                {
                case "videoCodec":
                    this.VideoCodec = (KalturaVideoCodec)KalturaStringEnum.Parse(typeof(KalturaVideoCodec), txt);
                    continue;

                case "videoBitrate":
                    this.VideoBitrate = ParseInt(txt);
                    continue;

                case "audioCodec":
                    this.AudioCodec = (KalturaAudioCodec)KalturaStringEnum.Parse(typeof(KalturaAudioCodec), txt);
                    continue;

                case "audioBitrate":
                    this.AudioBitrate = ParseInt(txt);
                    continue;

                case "audioChannels":
                    this.AudioChannels = ParseInt(txt);
                    continue;

                case "audioSampleRate":
                    this.AudioSampleRate = ParseInt(txt);
                    continue;

                case "width":
                    this.Width = ParseInt(txt);
                    continue;

                case "height":
                    this.Height = ParseInt(txt);
                    continue;

                case "frameRate":
                    this.FrameRate = ParseInt(txt);
                    continue;

                case "gopSize":
                    this.GopSize = ParseInt(txt);
                    continue;

                case "conversionEngines":
                    this.ConversionEngines = txt;
                    continue;

                case "conversionEnginesExtraParams":
                    this.ConversionEnginesExtraParams = txt;
                    continue;

                case "twoPass":
                    this.TwoPass = ParseBool(txt);
                    continue;

                case "deinterlice":
                    this.Deinterlice = ParseInt(txt);
                    continue;

                case "rotate":
                    this.Rotate = ParseInt(txt);
                    continue;

                case "operators":
                    this.Operators = txt;
                    continue;

                case "engineVersion":
                    this.EngineVersion = ParseInt(txt);
                    continue;

                case "format":
                    this.Format = (KalturaContainerFormat)KalturaStringEnum.Parse(typeof(KalturaContainerFormat), txt);
                    continue;
                }
            }
        }