コード例 #1
0
        public IList <KalturaReportGraph> GetGraphs(KalturaReportType reportType, KalturaReportInputFilter reportInputFilter, string dimension, string objectIds)
        {
            KalturaParams kparams = new KalturaParams();

            kparams.AddEnumIfNotNull("reportType", reportType);
            if (reportInputFilter != null)
            {
                kparams.Add("reportInputFilter", reportInputFilter.ToParams());
            }
            kparams.AddStringIfNotNull("dimension", dimension);
            kparams.AddStringIfNotNull("objectIds", objectIds);
            _Client.QueueServiceCall("report", "getGraphs", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();
            IList <KalturaReportGraph> list = new List <KalturaReportGraph>();

            foreach (XmlElement node in result.ChildNodes)
            {
                list.Add((KalturaReportGraph)KalturaObjectFactory.Create(node));
            }
            return(list);
        }
コード例 #2
0
        public KalturaReportTotal GetTotal(KalturaReportType reportType, KalturaReportInputFilter reportInputFilter, string objectIds)
        {
            KalturaParams kparams = new KalturaParams();

            kparams.AddEnumIfNotNull("reportType", reportType);
            if (reportInputFilter != null)
            {
                kparams.Add("reportInputFilter", reportInputFilter.ToParams());
            }
            kparams.AddStringIfNotNull("objectIds", objectIds);
            _Client.QueueServiceCall("report", "getTotal", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaReportTotal)KalturaObjectFactory.Create(result));
        }
コード例 #3
0
 public KalturaReportTable GetTable(KalturaReportType reportType, KalturaReportInputFilter reportInputFilter, KalturaFilterPager pager, string order)
 {
     return(this.GetTable(reportType, reportInputFilter, pager, order, null));
 }
コード例 #4
0
 public KalturaReportTotal GetTotal(KalturaReportType reportType, KalturaReportInputFilter reportInputFilter)
 {
     return(this.GetTotal(reportType, reportInputFilter, null));
 }
コード例 #5
0
 public IList <KalturaReportGraph> GetGraphs(KalturaReportType reportType, KalturaReportInputFilter reportInputFilter, string dimension)
 {
     return(this.GetGraphs(reportType, reportInputFilter, dimension, null));
 }
コード例 #6
0
 public IList <KalturaReportGraph> GetGraphs(KalturaReportType reportType, KalturaReportInputFilter reportInputFilter)
 {
     return(this.GetGraphs(reportType, reportInputFilter, null));
 }
コード例 #7
0
        public string GetUrlForReportAsCsv(string reportTitle, string reportText, string headers, KalturaReportType reportType, KalturaReportInputFilter reportInputFilter, string dimension, KalturaFilterPager pager, string order, string objectIds)
        {
            KalturaParams kparams = new KalturaParams();

            kparams.AddStringIfNotNull("reportTitle", reportTitle);
            kparams.AddStringIfNotNull("reportText", reportText);
            kparams.AddStringIfNotNull("headers", headers);
            kparams.AddEnumIfNotNull("reportType", reportType);
            if (reportInputFilter != null)
            {
                kparams.Add("reportInputFilter", reportInputFilter.ToParams());
            }
            kparams.AddStringIfNotNull("dimension", dimension);
            if (pager != null)
            {
                kparams.Add("pager", pager.ToParams());
            }
            kparams.AddStringIfNotNull("order", order);
            kparams.AddStringIfNotNull("objectIds", objectIds);
            _Client.QueueServiceCall("report", "getUrlForReportAsCsv", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return(result.InnerText);
        }
コード例 #8
0
 public string GetUrlForReportAsCsv(string reportTitle, string reportText, string headers, KalturaReportType reportType, KalturaReportInputFilter reportInputFilter, string dimension, KalturaFilterPager pager, string order)
 {
     return(this.GetUrlForReportAsCsv(reportTitle, reportText, headers, reportType, reportInputFilter, dimension, pager, order, null));
 }
コード例 #9
0
 public string GetUrlForReportAsCsv(string reportTitle, string reportText, string headers, KalturaReportType reportType, KalturaReportInputFilter reportInputFilter)
 {
     return(this.GetUrlForReportAsCsv(reportTitle, reportText, headers, reportType, reportInputFilter, null));
 }