Exemplo n.º 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);
        }
Exemplo n.º 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));
        }
Exemplo n.º 3
0
 public KalturaReportTable GetTable(KalturaReportType reportType, KalturaReportInputFilter reportInputFilter, KalturaFilterPager pager, string order)
 {
     return(this.GetTable(reportType, reportInputFilter, pager, order, null));
 }
Exemplo n.º 4
0
 public KalturaReportTotal GetTotal(KalturaReportType reportType, KalturaReportInputFilter reportInputFilter)
 {
     return(this.GetTotal(reportType, reportInputFilter, null));
 }
Exemplo n.º 5
0
 public IList <KalturaReportGraph> GetGraphs(KalturaReportType reportType, KalturaReportInputFilter reportInputFilter, string dimension)
 {
     return(this.GetGraphs(reportType, reportInputFilter, dimension, null));
 }
Exemplo n.º 6
0
 public IList <KalturaReportGraph> GetGraphs(KalturaReportType reportType, KalturaReportInputFilter reportInputFilter)
 {
     return(this.GetGraphs(reportType, reportInputFilter, null));
 }
Exemplo n.º 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);
        }
Exemplo n.º 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));
 }
Exemplo n.º 9
0
 public string GetUrlForReportAsCsv(string reportTitle, string reportText, string headers, KalturaReportType reportType, KalturaReportInputFilter reportInputFilter)
 {
     return(this.GetUrlForReportAsCsv(reportTitle, reportText, headers, reportType, reportInputFilter, null));
 }