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

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

Go to download

KalturaOttApiClient is a library of Java classes that can be used to interact with the Kaltura OTT REST API. More information about the REST API can be found at https://ott.developer.kaltura.com/ Many of the Java classes in this library are auto-generated from a schema that defines the objects that are used to interact with the API.

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

import com.kaltura.client.types.CDVRAdapterProfile;
import com.kaltura.client.utils.request.ListResponseRequestBuilder;
import com.kaltura.client.utils.request.RequestBuilder;

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

public class CDVRAdapterProfileService {
	
	public static class AddCDVRAdapterProfileBuilder extends RequestBuilder {
		
		public AddCDVRAdapterProfileBuilder(CDVRAdapterProfile adapter) {
			super(CDVRAdapterProfile.class, "cdvradapterprofile", "add");
			params.add("adapter", adapter);
		}
	}

	/**
	 * Insert new C-DVR adapter for partner
	 * 
	 * @param adapter C-DVR adapter object
	 */
    public static AddCDVRAdapterProfileBuilder add(CDVRAdapterProfile adapter)  {
		return new AddCDVRAdapterProfileBuilder(adapter);
	}
	
	public static class DeleteCDVRAdapterProfileBuilder extends RequestBuilder {
		
		public DeleteCDVRAdapterProfileBuilder(int adapterId) {
			super(Boolean.class, "cdvradapterprofile", "delete");
			params.add("adapterId", adapterId);
		}
		
		public void adapterId(String multirequestToken) {
			params.add("adapterId", multirequestToken);
		}
	}

	/**
	 * Delete C-DVR adapter by C-DVR adapter id
	 * 
	 * @param adapterId C-DVR adapter identifier
	 */
    public static DeleteCDVRAdapterProfileBuilder delete(int adapterId)  {
		return new DeleteCDVRAdapterProfileBuilder(adapterId);
	}
	
	public static class GenerateSharedSecretCDVRAdapterProfileBuilder extends RequestBuilder {
		
		public GenerateSharedSecretCDVRAdapterProfileBuilder(int adapterId) {
			super(CDVRAdapterProfile.class, "cdvradapterprofile", "generateSharedSecret");
			params.add("adapterId", adapterId);
		}
		
		public void adapterId(String multirequestToken) {
			params.add("adapterId", multirequestToken);
		}
	}

	/**
	 * Generate C-DVR adapter shared secret
	 * 
	 * @param adapterId C-DVR adapter identifier
	 */
    public static GenerateSharedSecretCDVRAdapterProfileBuilder generateSharedSecret(int adapterId)  {
		return new GenerateSharedSecretCDVRAdapterProfileBuilder(adapterId);
	}
	
	public static class ListCDVRAdapterProfileBuilder extends ListResponseRequestBuilder {
		
		public ListCDVRAdapterProfileBuilder() {
			super(CDVRAdapterProfile.class, "cdvradapterprofile", "list");
		}
	}

	/**
	 * Returns all C-DVR adapters for partner
	 */
    public static ListCDVRAdapterProfileBuilder list()  {
		return new ListCDVRAdapterProfileBuilder();
	}
	
	public static class UpdateCDVRAdapterProfileBuilder extends RequestBuilder {
		
		public UpdateCDVRAdapterProfileBuilder(int adapterId, CDVRAdapterProfile adapter) {
			super(CDVRAdapterProfile.class, "cdvradapterprofile", "update");
			params.add("adapterId", adapterId);
			params.add("adapter", adapter);
		}
		
		public void adapterId(String multirequestToken) {
			params.add("adapterId", multirequestToken);
		}
	}

	/**
	 * Update C-DVR adapter details
	 * 
	 * @param adapterId C-DVR adapter identifier
	 * @param adapter C-DVR adapter Object
	 */
    public static UpdateCDVRAdapterProfileBuilder update(int adapterId, CDVRAdapterProfile adapter)  {
		return new UpdateCDVRAdapterProfileBuilder(adapterId, adapter);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy