public KalturaGenericDistributionProviderAction Add(KalturaGenericDistributionProviderAction genericDistributionProviderAction)
        {
            KalturaParams kparams = new KalturaParams();

            if (genericDistributionProviderAction != null)
            {
                kparams.Add("genericDistributionProviderAction", genericDistributionProviderAction.ToParams());
            }
            _Client.QueueServiceCall("contentdistribution_genericdistributionprovideraction", "add", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaGenericDistributionProviderAction)KalturaObjectFactory.Create(result));
        }
        public KalturaGenericDistributionProviderAction UpdateByProviderId(int genericDistributionProviderId, KalturaDistributionAction actionType, KalturaGenericDistributionProviderAction genericDistributionProviderAction)
        {
            KalturaParams kparams = new KalturaParams();

            kparams.AddIntIfNotNull("genericDistributionProviderId", genericDistributionProviderId);
            kparams.AddEnumIfNotNull("actionType", actionType);
            if (genericDistributionProviderAction != null)
            {
                kparams.Add("genericDistributionProviderAction", genericDistributionProviderAction.ToParams());
            }
            _Client.QueueServiceCall("contentdistribution_genericdistributionprovideraction", "updateByProviderId", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaGenericDistributionProviderAction)KalturaObjectFactory.Create(result));
        }