All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.kaltura.client.services.LiveReportsService Maven / Gradle / Ivy

Go to download

KalturaClient is a library of Java classes that can be used to interact with the Kaltura REST API. More information about the REST API can be found at http://corp.kaltura.com/Products/Kaltura-API Many of the Java classes in this library are auto-generated from a schema that defines the objects that are used to interect with the API. The current schema can be found at http://www.kaltura.com/api_v3/api_schema.php

There is a newer version: 19.3.0
Show newest version
// ===================================================================================================
//                           _  __     _ _
//                          | |/ /__ _| | |_ _  _ _ _ __ _
//                          | ' .
//
// @ignore
// ===================================================================================================
package com.kaltura.client.services;

import com.kaltura.client.enums.LiveReportExportType;
import com.kaltura.client.enums.LiveReportType;
import com.kaltura.client.types.FilterPager;
import com.kaltura.client.types.LiveReportExportParams;
import com.kaltura.client.types.LiveReportExportResponse;
import com.kaltura.client.types.LiveReportInputFilter;
import com.kaltura.client.types.ReportGraph;
import com.kaltura.client.utils.request.ArrayRequestBuilder;
import com.kaltura.client.utils.request.RequestBuilder;

/**
 * This class was generated using generate.php
 * against an XML schema provided by Kaltura.
 * 
 * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN.
 */

public class LiveReportsService {
	
	public static class ExportToCsvLiveReportsBuilder extends RequestBuilder {
		
		public ExportToCsvLiveReportsBuilder(LiveReportExportType reportType, LiveReportExportParams params_) {
			super(LiveReportExportResponse.class, "livereports", "exportToCsv");
			params.add("reportType", reportType);
			params.add("params", params_);
		}
		
		public void reportType(String multirequestToken) {
			params.add("reportType", multirequestToken);
		}
	}

    public static ExportToCsvLiveReportsBuilder exportToCsv(LiveReportExportType reportType, LiveReportExportParams params)  {
		return new ExportToCsvLiveReportsBuilder(reportType, params);
	}
	
	public static class GetEventsLiveReportsBuilder extends ArrayRequestBuilder {
		
		public GetEventsLiveReportsBuilder(LiveReportType reportType, LiveReportInputFilter filter, FilterPager pager) {
			super(ReportGraph.class, "livereports", "getEvents");
			params.add("reportType", reportType);
			params.add("filter", filter);
			params.add("pager", pager);
		}
		
		public void reportType(String multirequestToken) {
			params.add("reportType", multirequestToken);
		}
	}

	public static GetEventsLiveReportsBuilder getEvents(LiveReportType reportType)  {
		return getEvents(reportType, null);
	}

	public static GetEventsLiveReportsBuilder getEvents(LiveReportType reportType, LiveReportInputFilter filter)  {
		return getEvents(reportType, filter, null);
	}

    public static GetEventsLiveReportsBuilder getEvents(LiveReportType reportType, LiveReportInputFilter filter, FilterPager pager)  {
		return new GetEventsLiveReportsBuilder(reportType, filter, pager);
	}
	
	public static class ServeReportLiveReportsBuilder extends RequestBuilder {
		
		public ServeReportLiveReportsBuilder(String id) {
			super(String.class, "livereports", "serveReport");
			params.add("id", id);
		}
		
		public void id(String multirequestToken) {
			params.add("id", multirequestToken);
		}
	}

	/**
	 * Will serve a requested report
	 * 
	 * @param id - the requested id
	 */
    public static ServeReportLiveReportsBuilder serveReport(String id)  {
		return new ServeReportLiveReportsBuilder(id);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy