diff --git a/KalturaClient/build.gradle b/KalturaClient/build.gradle new file mode 100644 index 000000000..c827d1c3c --- /dev/null +++ b/KalturaClient/build.gradle @@ -0,0 +1,40 @@ +apply plugin: 'com.android.library' +apply from: '../version.gradle' +apply plugin: 'kotlin-android' + +android { + compileSdkVersion 31 + + defaultConfig { + minSdkVersion 17 + targetSdkVersion 30 + versionName kalturaClientVersion + } + + compileOptions { + sourceCompatibility JavaVersion.VERSION_11 + targetCompatibility JavaVersion.VERSION_11 + } + + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' + } + } + + lintOptions { + abortOnError false + } +} + +tasks.withType(Javadoc) { + options.addBooleanOption('Xdoclint:none', true) +} + +dependencies { + implementation 'com.google.code.gson:gson:2.9.0' + implementation 'com.squareup.okhttp3:okhttp:4.9.2' +} + +apply from: './gradle-mvn-push.gradle' diff --git a/KalturaClient/gradle-mvn-push.gradle b/KalturaClient/gradle-mvn-push.gradle new file mode 100644 index 000000000..789c1358c --- /dev/null +++ b/KalturaClient/gradle-mvn-push.gradle @@ -0,0 +1,61 @@ +apply plugin: 'maven-publish' +apply plugin: 'signing' + +task androidSourcesJar(type: Jar) { + classifier 'sources' + from android.sourceSets.main.java.sourceFiles +} + +artifacts { + archives androidSourcesJar +} + +afterEvaluate { project -> + publishing { + publications { + mavenJava(MavenPublication) { + groupId = GROUP + artifactId = POM_ARTIFACT_ID + VERSION_NAME = kalturaClientVersion + version = VERSION_NAME + + from components.release + artifact androidSourcesJar + + pom { + name = POM_NAME + packaging = POM_PACKAGING + description = POM_DESCRIPTION + url = POM_URL + + licenses { + license { + name = POM_LICENCE_NAME + url = POM_LICENCE_URL + distribution = POM_LICENCE_DIST + } + } + developers { + developer { + id = POM_DEVELOPER_ID + name = POM_DEVELOPER_NAME + } + } + scm { + url = POM_SCM_URL + connection = POM_SCM_CONNECTION + developerConnection = POM_SCM_DEV_CONNECTION + } + } + } + } + } + + signing { + allprojects { ext."signing.keyId" = rootProject.ext["signingKeyId"] } + allprojects { ext."signing.password" = rootProject.ext["signingPassword"] } + allprojects { ext."signing.secretKeyRingFile" = SECRING_PATH } + sign publishing.publications + } +} + diff --git a/KalturaClient/gradle.properties b/KalturaClient/gradle.properties new file mode 100644 index 000000000..e33e80f56 --- /dev/null +++ b/KalturaClient/gradle.properties @@ -0,0 +1,20 @@ +POM_NAME=Kaltura Android Client Library +POM_ARTIFACT_ID=KalturaOttAndroidJavaClient +POM_PACKAGING=aar + +VERSION_NAME=kalturaClientVersion + +POM_DESCRIPTION=Kaltura OTT Android Java Client Library +POM_URL=https://github.com/kaltura/KalturaOttGeneratedAPIClientsAndroid/ + +POM_SCM_URL=https://github.com/kaltura/KalturaOttGeneratedAPIClientsAndroid/ +POM_SCM_CONNECTION=scm:git@https://github.com/kaltura/KalturaOttGeneratedAPIClientsAndroid.git +POM_SCM_DEV_CONNECTION=scm:git@https://github.com/kaltura/KalturaOttGeneratedAPIClientsAndroid.git + +POM_LICENCE_NAME=GNU Affero General Public License, Version 3.0 +POM_LICENCE_URL=https://www.gnu.org/licenses/agpl-3.0.html +POM_LICENCE_DIST=repo +POM_DEVELOPER_ID=playkitdev +POM_DEVELOPER_NAME=Playkit Dev + +SECRING_PATH=../.kltrenv/secring.gpg diff --git a/KalturaClient/proguard-project.txt b/KalturaClient/proguard-project.txt new file mode 100644 index 000000000..f2fe1559a --- /dev/null +++ b/KalturaClient/proguard-project.txt @@ -0,0 +1,20 @@ +# To enable ProGuard in your project, edit project.properties +# to define the proguard.config property as described in that file. +# +# Add project specific ProGuard rules here. +# By default, the flags in this file are appended to flags specified +# in ${sdk.dir}/tools/proguard/proguard-android.txt +# You can edit the include path and order by changing the ProGuard +# include property in project.properties. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# Add any project specific keep options here: + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} diff --git a/KalturaClient/src/main/AndroidManifest.xml b/KalturaClient/src/main/AndroidManifest.xml new file mode 100644 index 000000000..7f639dfd3 --- /dev/null +++ b/KalturaClient/src/main/AndroidManifest.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/KalturaClient/src/main/java/com/kaltura/client/APIOkRequestsExecutor.java b/KalturaClient/src/main/java/com/kaltura/client/APIOkRequestsExecutor.java new file mode 100644 index 000000000..f16b36e35 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/APIOkRequestsExecutor.java @@ -0,0 +1,519 @@ +package com.kaltura.client; + + +import com.kaltura.client.utils.ErrorElement; +import com.kaltura.client.utils.request.ConnectionConfiguration; +import com.kaltura.client.utils.request.ExecutedRequest; +import com.kaltura.client.utils.request.RequestElement; +import com.kaltura.client.utils.response.base.ResponseElement; + +import java.io.IOException; +import java.io.InputStream; +import java.util.HashSet; +import java.util.List; +import java.util.Set; +import java.util.UUID; +import java.util.concurrent.TimeUnit; +// for Proxy support +import java.net.InetSocketAddress; +import java.net.Proxy; +import java.security.KeyManagementException; +import java.security.NoSuchAlgorithmException; +import java.security.cert.CertificateException; +import java.security.cert.X509Certificate; + +import javax.net.ssl.HostnameVerifier; +import javax.net.ssl.SSLContext; +import javax.net.ssl.SSLSession; +import javax.net.ssl.SSLSocketFactory; +import javax.net.ssl.TrustManager; +import javax.net.ssl.X509TrustManager; + +import okhttp3.Call; +import okhttp3.Callback; +import okhttp3.ConnectionPool; +import okhttp3.Dispatcher; +import okhttp3.Headers; +import okhttp3.MediaType; +import okhttp3.MultipartBody; +import okhttp3.MultipartBody.Builder; +import okhttp3.OkHttpClient; +import okhttp3.Request; +import okhttp3.RequestBody; +import okhttp3.Response; +import okhttp3.internal.Util; +import okio.Buffer; +import okio.BufferedSink; +import okio.Okio; +import okio.Source; + +/** + * @hide + */ +public class APIOkRequestsExecutor implements RequestQueue { + + public static final String TAG = "APIOkRequestsExecutor"; + + public interface IdFactory { + String factorId(String factor); + } + + private static class InputStreamRequestBody extends RequestBody { + + private InputStream inputStream; + private MediaType mediaType; + + public InputStreamRequestBody(MediaType mediaType, InputStream inputStream) { + this.mediaType = mediaType; + this.inputStream = inputStream; + } + + @Override + public MediaType contentType() { + return mediaType; + } + + @Override + public long contentLength() { + try { + return inputStream.available(); + } catch (IOException e) { + return 0; + } + } + + @Override + public void writeTo(BufferedSink sink) throws IOException { + Source source = null; + try { + source = Okio.source(inputStream); + sink.writeAll(source); + } finally { + Util.closeQuietly(source); + } + } + } + + + static final MediaType JSON_MediaType = MediaType.parse("application/json"); + + private ConnectionConfiguration defaultConfiguration = new ConnectionConfiguration() { + @Override + public int getReadTimeout() { + return 20000; + } + + @Override + public int getWriteTimeout() { + return 20000; + } + + @Override + public int getConnectTimeout() { + return 10000; + } + + @Override + public boolean getAcceptGzipEncoding() { + return false; + } + + @Override + public int getMaxRetry(int defaultVal) { + return defaultVal; + } + + @Override + public String getEndpoint() { + return "https://www.kaltura.com"; + } + + @Override + public String getProxy() { + return null; + } + + @Override + public int getProxyPort() { + return 0; + } + + @Override + public boolean getIgnoreSslDomainVerification() { + return false; + } + }; + + private IdFactory idFactory = new IdFactory() { + @Override + public String factorId(String factor) { + return UUID.randomUUID().toString() + "::" + (factor != null ? factor : System.currentTimeMillis()); + } + }; + + + private OkHttpClient mOkClient; + private boolean enableLogs = true; + private Set enableLogHeaders = new HashSet(); + + protected static ILogger logger = Logger.getLogger(TAG); + + protected static APIOkRequestsExecutor self; + + protected static HostnameVerifier hostnameVerifier = new HostnameVerifier() { + @Override + public boolean verify(String arg0, SSLSession arg1) { + return true; + } + }; + protected static final TrustManager[] trustAllCerts = new TrustManager[] { + new X509TrustManager() { + @Override + public void checkClientTrusted(java.security.cert.X509Certificate[] chain, String authType) throws CertificateException { + } + + @Override + public void checkServerTrusted(java.security.cert.X509Certificate[] chain, String authType) throws CertificateException { + } + + @Override + public java.security.cert.X509Certificate[] getAcceptedIssuers() { + return new java.security.cert.X509Certificate[]{}; + } + } + }; + protected static final SSLContext trustAllSslContext; + static { + try { + trustAllSslContext = SSLContext.getInstance("SSL"); + trustAllSslContext.init(null, trustAllCerts, new java.security.SecureRandom()); + } catch (NoSuchAlgorithmException | KeyManagementException e) { + throw new RuntimeException(e); + } + } + protected static final SSLSocketFactory trustAllSslSocketFactory = trustAllSslContext.getSocketFactory(); + + public static APIOkRequestsExecutor getExecutor() { + if (self == null) { + self = new APIOkRequestsExecutor(); + } + return self; + } + + public APIOkRequestsExecutor() { + mOkClient = configClient(createOkClientBuilder(), defaultConfiguration).build(); + } + + public APIOkRequestsExecutor(ConnectionConfiguration defaultConfiguration) { + setDefaultConfiguration(defaultConfiguration); + } + + + public APIOkRequestsExecutor setRequestIdFactory(IdFactory factory) { + this.idFactory = factory; + return this; + } + + /** + * in case of specific request configurations, pass newly built client based on mOkClient instance. + * + * @param configuration + * @return + */ + private OkHttpClient getOkClient(ConnectionConfiguration configuration) { + + if (configuration != null) { + // returns specific client for configuration + return configClient(mOkClient.newBuilder(), configuration).build(); + } + //default configurable client instance + return mOkClient; + } + + private OkHttpClient.Builder createOkClientBuilder() { + return new OkHttpClient.Builder().connectionPool(new ConnectionPool()); // default connection pool - holds 5 connections up to 5 minutes idle time + } + + private OkHttpClient.Builder configClient(OkHttpClient.Builder builder, ConnectionConfiguration config) { + builder.followRedirects(true).connectTimeout(config.getConnectTimeout(), TimeUnit.MILLISECONDS) + .readTimeout(config.getReadTimeout(), TimeUnit.MILLISECONDS) + .writeTimeout(config.getWriteTimeout(), TimeUnit.MILLISECONDS) + .retryOnConnectionFailure(config.getMaxRetry(1) > 0); + + if(config.getIgnoreSslDomainVerification()) { + builder.hostnameVerifier(hostnameVerifier); + builder.sslSocketFactory(trustAllSslSocketFactory, (X509TrustManager)trustAllCerts[0]); + } + if (config.getProxy() != null && config.getProxyPort() != 0){ + logger.debug("Proxy host is: " + config.getProxy()); + logger.debug("Proxy port is: " + config.getProxyPort()); + builder.proxy(new Proxy(Proxy.Type.HTTP,new InetSocketAddress(config.getProxy(), config.getProxyPort()))); + } + + return builder; + } + + @Override + public void setDefaultConfiguration(ConnectionConfiguration defaultConfiguration) { + this.defaultConfiguration = defaultConfiguration; + mOkClient = configClient(createOkClientBuilder(), defaultConfiguration).build(); + } + + @Override + public void enableLogs(boolean enable) { + this.enableLogs = enable; + if (enable) { + logger = Logger.getLogger(TAG); + } else { + logger = new LoggerNull(TAG); + } + } + + @Override + public void enableLogResponseHeader(String header, boolean log) { + if(log) { + if(!this.enableLogHeaders.contains(header)) { + this.enableLogHeaders.add(header); + } + } + else if(this.enableLogHeaders.contains(header)) { + this.enableLogHeaders.remove(header); + } + } + + @SuppressWarnings("rawtypes") + @Override + public String queue(final RequestElement requestElement) { + final Request request = buildRestRequest(requestElement); + return queue(request, requestElement); + } + + @SuppressWarnings("rawtypes") + private String queue(final Request request, final RequestElement action) { + try { + Call call = getOkClient(action.config()).newCall(request); + call.enqueue(new Callback() { + @Override + public void onFailure(Call call, IOException e) { //!! in case of request error on client side + + if (call.isCanceled()) { + logger.warn("onFailure: call "+call.request().tag()+" was canceled. not passing results"); + return; + } + // handle failures: create response from exception + //action.onComplete(new ExecutedRequest().error(e).success(false).handler(handler)); + ExecutedRequest responseElement = new ExecutedRequest().error(e).success(false); + postCompletion(action, responseElement); + } + + @Override + public void onResponse(Call call, Response response) throws IOException { + if (call.isCanceled()) { + logger.warn("call "+call.request().tag()+" was canceled. not passing results"); + return; + } + + // pass parsed response to action completion block + postCompletion(action, onGotResponse(response, action)); + } + }); + return (String) call.request().tag(); + + } catch (Exception e) { + e.printStackTrace(); + ExecutedRequest responseElement = new ExecutedRequest().response(getErrorResponse(e)).success(false); + postCompletion(action, responseElement); + + } + return null; // no call id to return. + } + + @SuppressWarnings({ "rawtypes", "unchecked" }) + protected void postCompletion(final RequestElement action, ResponseElement responseElement) { + + final com.kaltura.client.utils.response.base.Response apiResponse = action.parseResponse(responseElement); + action.onComplete(apiResponse); + } + + + private String getErrorResponse(Exception e) { + return e.getClass().getName() + ": " + e.getMessage(); + } + + @SuppressWarnings("rawtypes") + @Override + public com.kaltura.client.utils.response.base.Response execute(RequestElement request) { + try { + Response response = getOkClient(request.config()).newCall(buildRestRequest(request)).execute(); + return request.parseResponse(onGotResponse(response, request)); + + } catch (IOException e) { + // failure on request execution - create error response + ResponseElement responseElement = new ExecutedRequest().response(getErrorResponse(e)).success(false); + return request.parseResponse(responseElement); + } + } + + //TODO: cancel check on executor + null check on provider + + //@Override + public boolean hasRequest(String reqId) { + Dispatcher dispatcher = getOkClient(null).dispatcher(); + + Call call = findCall(reqId, dispatcher.queuedCalls()); + if (call != null) { + return true; + } + call = findCall(reqId, dispatcher.runningCalls()); + return call != null; + } + + @Override + public void cancelRequest(String reqId) { + Dispatcher dispatcher = getOkClient(null).dispatcher(); + + Call call = findCall(reqId, dispatcher.queuedCalls()); + if (call != null) { + call.cancel(); + } + call = findCall(reqId, dispatcher.runningCalls()); + if (call != null) { + call.cancel(); + } + } + + private Call findCall(String reqId, List calls) { + for (Call call : calls) { + if (call.request().tag().equals(reqId)) { + return call; + } + } + return null; + } + + @Override + public void clearRequests() { + if (mOkClient != null) { + mOkClient.dispatcher().cancelAll(); + } + } + + @Override + public boolean isEmpty() { + return mOkClient == null || mOkClient.dispatcher().queuedCallsCount() == 0; + } + + @SuppressWarnings("rawtypes") + protected ResponseElement onGotResponse(final Response response, RequestElement action) { + final String requestId = getRequestId(response); + + if(this.enableLogHeaders.contains("*")) { + logger.debug("response [" + requestId + "] Response: " + response.code() + " " + response.message()); + for(String header : response.headers().names()) { + logger.debug("response [" + requestId + "] " + header + ": " + response.headers().get(header)); + } + } + else { + for(String header : this.enableLogHeaders) { + String value = response.headers().get(header); + if (value != null) { + logger.debug("response [" + requestId + "] " + header + ": " + value); + } + } + } + + if (!response.isSuccessful()) { // in case response has failure status + return new ExecutedRequest().requestId(requestId).headers(response.headers().toMultimap()).error(ErrorElement.fromCode(response.code(), response.message())).success(false); + + } else { + + String responseString = null; + try { + responseString = response.body().string(); + } catch (IOException e) { + e.printStackTrace(); + logger.error("failed to retrieve the response body!"); + } + + if (enableLogs) { + logger.debug("response [" + requestId + "] body:\n" + responseString); + } + + return new ExecutedRequest().requestId(requestId).response(responseString).headers(response.headers().toMultimap()).code(response.code()).success(responseString != null); + } + } + + protected String getRequestId(Response response) { + try { + return response.request().tag().toString(); + } catch (NullPointerException e) { + return ""; + } + } + + private interface BodyBuilder { + @SuppressWarnings("rawtypes") + RequestBody build(RequestElement requestElement); + + BodyBuilder Default = new BodyBuilder() { + @SuppressWarnings("rawtypes") + @Override + public RequestBody build(RequestElement requestElement) { + return requestElement.getBody() != null ? RequestBody.create(JSON_MediaType, requestElement.getBody().getBytes()) : null; + } + }; + } + + @SuppressWarnings({ "rawtypes", "unchecked" }) + private Request buildRestRequest(RequestElement request) { + + RequestBody body; + Files files = request.getFiles(); + if(files == null) { + body = BodyBuilder.Default.build(request); + } + else { + Builder bodyBuilder = new MultipartBody.Builder() + .setType(MultipartBody.FORM) + .addFormDataPart("json", request.getBody()); + + for(String fieldName : files.keySet()) { + FileHolder fileHolder = files.get(fieldName); + MediaType mediaType = MediaType.parse(fileHolder.getMimeType()); + + if(fileHolder.getFile() != null) { + bodyBuilder.addFormDataPart(fieldName, fileHolder.getName(), RequestBody.create(mediaType, fileHolder.getFile())); + } + else if(fileHolder.getInputStream() != null) { + bodyBuilder.addFormDataPart(fieldName, fileHolder.getName(), new InputStreamRequestBody(mediaType, fileHolder.getInputStream())); + } + } + body = bodyBuilder.build(); + } + + String url = request.getUrl(); + + String requestId = idFactory.factorId(request.getTag()); + if (enableLogs) { + logger.debug("request [" + requestId + "] url: " + url + "\nbody:\n" + request.getBody() + "\n"); + } + + return new Request.Builder() + .headers(Headers.of(request.getHeaders())) + .method(request.getMethod(), body) + .url(url) + .tag(requestId) + .build(); + } + + public static String getRequestBody(Request request) { + try { + final Request copy = request.newBuilder().build(); + final Buffer buffer = new Buffer(); + copy.body().writeTo(buffer); + return buffer.readUtf8(); + } catch (final IOException e) { + return "did not work"; + } + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/AndroidAPIRequestsExecutor.java b/KalturaClient/src/main/java/com/kaltura/client/AndroidAPIRequestsExecutor.java new file mode 100644 index 000000000..8b6e26dd3 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/AndroidAPIRequestsExecutor.java @@ -0,0 +1,65 @@ +package com.kaltura.client; + + +import android.os.Handler; +import android.os.Looper; + +import com.kaltura.client.utils.request.ConnectionConfiguration; +import com.kaltura.client.utils.request.RequestElement; +import com.kaltura.client.utils.response.base.ResponseElement; + +/** + * @hide + */ +public class AndroidAPIRequestsExecutor extends APIOkRequestsExecutor { + + public static final String TAG = "AndroidAPIRequestsExecutor"; + + private static APIOkRequestsExecutor mainExecutor; + private Handler handler = null; + + + public static APIOkRequestsExecutor getBackExecutor() { + if (self == null) { + self = new AndroidAPIRequestsExecutor(); + } + return self; + } + + public static APIOkRequestsExecutor getExecutor() { + if (mainExecutor == null) { + mainExecutor = new AndroidAPIRequestsExecutor(new Handler(Looper.getMainLooper())); + } + return mainExecutor; + } + + public AndroidAPIRequestsExecutor() { + super(); + } + + public AndroidAPIRequestsExecutor(Handler handler){ + super(); + this.handler = handler; + } + + public AndroidAPIRequestsExecutor(ConnectionConfiguration defaultConfiguration) { + super(defaultConfiguration); + } + + + @Override + protected void postCompletion(final RequestElement action, ResponseElement responseElement) { + final com.kaltura.client.utils.response.base.Response apiResponse = action.parseResponse(responseElement); + + if (handler != null) { + handler.post(new Runnable() { + @Override + public void run() { + action.onComplete(apiResponse); + } + }); + } else { + action.onComplete(apiResponse); + } + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/Client.java b/KalturaClient/src/main/java/com/kaltura/client/Client.java new file mode 100644 index 000000000..99af49139 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/Client.java @@ -0,0 +1,292 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client; + +import com.kaltura.client.utils.request.ConnectionConfiguration; +import com.kaltura.client.types.BaseResponseProfile; +import com.kaltura.client.types.SkipCondition; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +public class Client extends ClientBase { + + public Client(ConnectionConfiguration config) { + super(config); + + this.setClientTag("java:23-05-30"); + this.setApiVersion("8.8.1.30328"); + this.clientConfiguration.put("format", 1); // JSON + } + + /** + * @param clientTag Client tag + */ + public void setClientTag(String clientTag){ + this.clientConfiguration.put("clientTag", clientTag); + } + + /** + * Client tag + * + * @return String + */ + public String getClientTag(){ + if(this.clientConfiguration.containsKey("clientTag")){ + return(String) this.clientConfiguration.get("clientTag"); + } + + return null; + } + + /** + * @param apiVersion API Version + */ + public void setApiVersion(String apiVersion){ + this.clientConfiguration.put("apiVersion", apiVersion); + } + + /** + * API Version + * + * @return String + */ + public String getApiVersion(){ + if(this.clientConfiguration.containsKey("apiVersion")){ + return(String) this.clientConfiguration.get("apiVersion"); + } + + return null; + } + + /** + * @param partnerId Impersonated partner id + */ + public void setPartnerId(Integer partnerId){ + this.requestConfiguration.put("partnerId", partnerId); + } + + /** + * Impersonated partner id + * + * @return Integer + */ + public Integer getPartnerId(){ + if(this.requestConfiguration.containsKey("partnerId")){ + return(Integer) this.requestConfiguration.get("partnerId"); + } + + return 0; + } + + /** + * @param userId Impersonated user id + */ + public void setUserId(Integer userId){ + this.requestConfiguration.put("userId", userId); + } + + /** + * Impersonated user id + * + * @return Integer + */ + public Integer getUserId(){ + if(this.requestConfiguration.containsKey("userId")){ + return(Integer) this.requestConfiguration.get("userId"); + } + + return 0; + } + + /** + * @param language Content language + */ + public void setLanguage(String language){ + this.requestConfiguration.put("language", language); + } + + /** + * Content language + * + * @return String + */ + public String getLanguage(){ + if(this.requestConfiguration.containsKey("language")){ + return(String) this.requestConfiguration.get("language"); + } + + return null; + } + + /** + * @param currency Content currency + */ + public void setCurrency(String currency){ + this.requestConfiguration.put("currency", currency); + } + + /** + * Content currency + * + * @return String + */ + public String getCurrency(){ + if(this.requestConfiguration.containsKey("currency")){ + return(String) this.requestConfiguration.get("currency"); + } + + return null; + } + + /** + * @param ks Kaltura API session + */ + public void setKs(String ks){ + this.requestConfiguration.put("ks", ks); + } + + /** + * Kaltura API session + * + * @return String + */ + public String getKs(){ + if(this.requestConfiguration.containsKey("ks")){ + return(String) this.requestConfiguration.get("ks"); + } + + return null; + } + + /** + * @param sessionId Kaltura API session + */ + public void setSessionId(String sessionId){ + this.requestConfiguration.put("ks", sessionId); + } + + /** + * Kaltura API session + * + * @return String + */ + public String getSessionId(){ + if(this.requestConfiguration.containsKey("ks")){ + return(String) this.requestConfiguration.get("ks"); + } + + return null; + } + + /** + * @param responseProfile Response profile - this attribute will be automatically unset after every API call + */ + public void setResponseProfile(BaseResponseProfile responseProfile){ + this.requestConfiguration.put("responseProfile", responseProfile); + } + + /** + * Response profile - this attribute will be automatically unset after every API call + * + * @return BaseResponseProfile + */ + public BaseResponseProfile getResponseProfile(){ + if(this.requestConfiguration.containsKey("responseProfile")){ + return(BaseResponseProfile) this.requestConfiguration.get("responseProfile"); + } + + return null; + } + + /** + * @param abortOnError Abort the Multireuqset call if any error occurs in one of the requests + */ + public void setAbortOnError(Boolean abortOnError){ + this.requestConfiguration.put("abortOnError", abortOnError); + } + + /** + * Abort the Multireuqset call if any error occurs in one of the requests + * + * @return Boolean + */ + public Boolean getAbortOnError(){ + if(this.requestConfiguration.containsKey("abortOnError")){ + return(Boolean) this.requestConfiguration.get("abortOnError"); + } + + return null; + } + + /** + * @param abortAllOnError Abort all following requests if current request has an error + */ + public void setAbortAllOnError(Boolean abortAllOnError){ + this.requestConfiguration.put("abortAllOnError", abortAllOnError); + } + + /** + * Abort all following requests if current request has an error + * + * @return Boolean + */ + public Boolean getAbortAllOnError(){ + if(this.requestConfiguration.containsKey("abortAllOnError")){ + return(Boolean) this.requestConfiguration.get("abortAllOnError"); + } + + return null; + } + + /** + * @param skipCondition Skip current request according to skip condition + */ + public void setSkipCondition(SkipCondition skipCondition){ + this.requestConfiguration.put("skipCondition", skipCondition); + } + + /** + * Skip current request according to skip condition + * + * @return SkipCondition + */ + public SkipCondition getSkipCondition(){ + if(this.requestConfiguration.containsKey("skipCondition")){ + return(SkipCondition) this.requestConfiguration.get("skipCondition"); + } + + return null; + } + +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/ClientBase.java b/KalturaClient/src/main/java/com/kaltura/client/ClientBase.java new file mode 100644 index 000000000..629547b01 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/ClientBase.java @@ -0,0 +1,38 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client; + +import com.kaltura.client.utils.request.ConnectionConfiguration; + +@SuppressWarnings("serial") +public class ClientBase extends ClientConfigBase { + + public ClientBase(ConnectionConfiguration configuration) { + super(configuration); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/ClientConfigBase.java b/KalturaClient/src/main/java/com/kaltura/client/ClientConfigBase.java new file mode 100644 index 000000000..9ff3375c3 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/ClientConfigBase.java @@ -0,0 +1,98 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client; + +import java.io.Serializable; + +import com.kaltura.client.utils.request.ConnectionConfiguration; + +@SuppressWarnings("serial") +public class ClientConfigBase implements Serializable { + + protected ConnectionConfiguration configuration; + + /** will be added to the request body to configure version and etc **/ + protected Params clientConfiguration = new Params(); // generated by php script from input file + /** will be added to the request body and will include session related data (ks, partnerId etc) */ + protected Params requestConfiguration = new Params(); // generated by php script from input file + + public ClientConfigBase(ConnectionConfiguration configuration) { + this.clientConfiguration.put("format", 1); + + // sets the default configuration values and add/overwrite with new properties from config + this.configuration = configuration; + } + + public void setClientConfigProperty(String key, String value){ + this.clientConfiguration.put(key, value); + } + + /** + * @param key property name + * @return String + */ + public String getClientConfigProperty(String key){ + if(this.clientConfiguration.containsKey(key)){ + return (String) this.clientConfiguration.get(key); + } + + return null; + } + + public Params getClientConfiguration() { + return clientConfiguration; + } + + public void setRequestConfigProperty(String key, String value){ + this.clientConfiguration.put(key, value); + } + + /** + * @param key property name + * @return String + */ + public String getRequestConfigProperty(String key){ + if(this.clientConfiguration.containsKey(key)){ + return (String) this.clientConfiguration.get(key); + } + + return null; + } + + public Params getRequestConfiguration() { + return requestConfiguration; + } + + public void setConnectionConfiguration(ConnectionConfiguration configuration) { + this.configuration = configuration; + } + + public ConnectionConfiguration getConnectionConfiguration() { + return this.configuration; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/Configuration.java b/KalturaClient/src/main/java/com/kaltura/client/Configuration.java new file mode 100644 index 000000000..11d63e9a8 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/Configuration.java @@ -0,0 +1,199 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client; + +import com.kaltura.client.utils.request.ConnectionConfiguration; + +import java.io.Serializable; +import java.util.HashMap; +import java.util.Map; + +/** + * This class holds information needed by the Kaltura client to establish a session. + * + * @author jpotts + * + */ +public class Configuration implements Serializable, ConnectionConfiguration { + + private static final long serialVersionUID = 2096581946429839651L; + + public final static String EndPoint = "endpoint"; + public final static String Proxy = null; + public final static String ProxyPort = "0"; + public final static String ConnectTimeout = "connectTimeout"; + public final static String ReadTimeout = "readTimeout"; + public final static String WriteTimeout = "writeTimeout"; + public final static String MaxRetry = "maxRetry"; + public final static String AcceptGzipEncoding = "acceptGzipEncoding"; + public final static String ResponseTypeFormat = "responseTypeFormat"; + public final static String IgnoreSslDomainVerification = "ignoreSslDomainVerification"; + + private Map params; + + public static ConnectionConfiguration getDefaults(){ + return new Configuration(); + } + + public Configuration(){ + initDefaults(); + } + + public Configuration(Map config){ + initDefaults(); + params.putAll(config); + } + + public Configuration(ConnectionConfiguration config) { + params = new HashMap(); + params.put(ConnectTimeout, config.getConnectTimeout()); + params.put(ReadTimeout, config.getReadTimeout()); + params.put(WriteTimeout, config.getWriteTimeout()); + params.put(MaxRetry, config.getMaxRetry(2)); + params.put(AcceptGzipEncoding, config.getAcceptGzipEncoding()); + params.put(IgnoreSslDomainVerification, config.getIgnoreSslDomainVerification()); + params.put(EndPoint, config.getEndpoint()); + } + + private void initDefaults() { + params = new HashMap(); + params.put(ConnectTimeout, 20000); + params.put(ReadTimeout, 20000); + params.put(WriteTimeout, 30000); + params.put(MaxRetry, 3); + params.put(AcceptGzipEncoding, false); + params.put(IgnoreSslDomainVerification, false); + params.put(EndPoint, "http://www.kaltura.com/"); + } + + + public String getEndpoint() { + return (String) params.get(EndPoint); + } + + public String getProxy() { + return (String) params.get(Proxy); + } + public int getProxyPort() { + return (int) params.get(ProxyPort); + } + + @Override + public boolean getIgnoreSslDomainVerification() { + return (boolean) params.get(IgnoreSslDomainVerification); + } + + public void setEndpoint(String endpoint) { + this.params.put(EndPoint, endpoint); + } + + public void setProxy(String proxy) { + params.put(Proxy, proxy); + } + + public void setProxyPort(int proxyPort) { + params.put(ProxyPort, proxyPort); + } + + + public Map getParams() { + return params; + } + + public void setParams(Map params) { + this.params = params; + } + + public void setParam(String key, Object value){ + params.put(key, value); + } + + public Object getParam(String key){ + return params.get(key); + } + + public Object getParam(String key, Object defaultValue){ + return params.containsKey(key) ? params.get(key) : defaultValue; + } + + public int getConnectTimeout() { + return (int) params.get(ConnectTimeout); + } + + public void setConnectTimeout(int connectTimeout) { + params.put(ConnectTimeout, connectTimeout); + } + + public int getReadTimeout() { + return (int) params.get(ReadTimeout); + } + + public void setReadTimeout(int readTimeout) { + params.put(ReadTimeout, readTimeout); + } + + public int getWriteTimeout() { + return (int) params.get(WriteTimeout); + } + + public void setWriteTimeout(int writeTimeout) { + params.put(WriteTimeout, writeTimeout); + } + + /** + * Return whether to accept GZIP encoding, that is, whether to + * send the HTTP "Accept-Encoding" header with "gzip" as value. + */ + public boolean getAcceptGzipEncoding(){ + return (boolean) params.get(AcceptGzipEncoding); + } + + /** + * Set whether to accept GZIP encoding, that is, whether to + * send the HTTP "Accept-Encoding" header with "gzip" as value. + *

Default is "true". Turn this flag off if you do not want + * GZIP response compression even if enabled on the HTTP server. + * + * @param accept accept or not + */ + public void setAcceptGzipEncoding(boolean accept){ + params.put(AcceptGzipEncoding, accept); + } + + public void setIgnoreSslDomainVerification(boolean ignore) { + params.put(IgnoreSslDomainVerification, ignore); + } + + public void setMaxRetry(int retry) { + params.put(MaxRetry, retry); + } + + public int getMaxRetry(int defaultVal) { + return params.containsKey(MaxRetry) ? (int) params.get(MaxRetry) : defaultVal; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/FileHolder.java b/KalturaClient/src/main/java/com/kaltura/client/FileHolder.java new file mode 100644 index 000000000..cbf0dc67d --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/FileHolder.java @@ -0,0 +1,151 @@ +/** + * Copyright 2011 Unicon (R) Licensed under the + * Educational Community License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. You may + * obtain a copy of the License at + * + * http://www.osedu.org/licenses/ECL-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an "AS IS" + * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ +package com.kaltura.client; + +import java.io.File; +import java.io.FileInputStream; +import java.io.FileNotFoundException; +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; + +/** + * This is an abstraction of a file which allows this construct to hold a File OR a Stream + * + * @author Aaron Zeckoski (azeckoski @ vt.edu) + */ +@SuppressWarnings("serial") +public class FileHolder implements Serializable { + + private String name; + private long size; + private File file; + private InputStream inputStream; + private String mimeType; + + /** + * Create a KF from a File object + * @param file the file (must not be null) + */ + public FileHolder(File file) { + if (file == null) { + throw new IllegalArgumentException("file must be set"); + } + if (! file.canRead() || ! file.isFile()) { + throw new IllegalArgumentException("file ("+file.getAbsolutePath()+") is not readable or not a file"); + } + this.file = file; + this.name = this.file.getName(); + this.size = this.file.length(); + + try { + this.mimeType = this.file.toURI().toURL().openConnection().getContentType(); + } catch (IOException e) { + this.mimeType = "application/octet-stream"; + } + } + + /** + * Create a KF from a FileInputStream object + * @param fileInputStream the file stream (must not be null) + * @param mimeType mime type + * @param name the file name + */ + public FileHolder(FileInputStream fileInputStream, String mimeType, String name) { + if (fileInputStream == null) { + throw new IllegalArgumentException("fileInputStream must be set"); + } + if (name == null || "".equals(name)) { + throw new IllegalArgumentException("name must be set"); + } + this.inputStream = fileInputStream; + this.name = name; + this.mimeType = mimeType; + try { + this.size = fileInputStream.getChannel().size(); + } catch (IOException e) { + // should not happen + throw new RuntimeException("Failure trying to read info from inptustream: "+e, e); + } + } + + /** + * Create a KF from a normal input stream and some params + * @param inputStream the file content stream (must not be null) + * @param mimeType mime type + * @param name the file name + * @param size the file size + */ + public FileHolder(InputStream inputStream, String mimeType, String name, long size) { + if (inputStream == null) { + throw new IllegalArgumentException("fileInputStream must be set"); + } + if (name == null || "".equals(name)) { + throw new IllegalArgumentException("name must be set"); + } + if (size <= 0) { + throw new IllegalArgumentException("size must be set"); + } + this.inputStream = inputStream; + this.name = name; + this.mimeType = mimeType; + this.size = size; + } + + /** + * @return the name for the file (is NEVER null) + */ + public String getName() { + return name; + } + + /** + * @return the File object if one is set (this can be null) + */ + public File getFile() { + return file; + } + + /** + * @return the size of this file + */ + public long getSize() { + return size; + } + + /** + * @return the mime-type this file + */ + public String getMimeType() { + return mimeType; + } + + /** + * @return the input stream for this File (this is NEVER null) + */ + public InputStream getInputStream() { + InputStream fis = inputStream; + if (inputStream == null && file != null) { + try { + fis = new FileInputStream(file); + } catch (FileNotFoundException e) { + // should not be possible for this to happen + throw new IllegalArgumentException("file ("+file.getAbsolutePath()+") is not readable or not a file"); + } + } + return fis; + } + +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/Files.java b/KalturaClient/src/main/java/com/kaltura/client/Files.java new file mode 100644 index 000000000..15f9b9800 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/Files.java @@ -0,0 +1,60 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client; + +import java.util.HashMap; + +/** + * Helper class that provides a collection of Files. + * + * @author jpotts + * @author azeckoski + * + */ +public class Files extends HashMap { + + private static final long serialVersionUID = -5838275045069221834L; + + private static final String PARAMS_SEPERATOR = ":"; + + public void add(Files files) { + this.putAll(files); + } + + public void add(String objectName, Files files) { + for (java.util.Map.Entry itr : files.entrySet()) { + this.put(objectName + PARAMS_SEPERATOR + itr.getKey(), itr.getValue()); + } + } + + public void add(String key, FileHolder value) { + if (value == null) + return; + this.put(key, value); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/ILogger.java b/KalturaClient/src/main/java/com/kaltura/client/ILogger.java new file mode 100644 index 000000000..d8438a075 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/ILogger.java @@ -0,0 +1,20 @@ +package com.kaltura.client; + +public interface ILogger { + + public boolean isEnabled(); + + public void trace(Object message); + public void debug(Object message); + public void info(Object message); + public void warn(Object message); + public void error(Object message); + public void fatal(Object message); + + public void trace(Object message, Throwable t); + public void debug(Object message, Throwable t); + public void info(Object message, Throwable t); + public void warn(Object message, Throwable t); + public void error(Object message, Throwable t); + public void fatal(Object message, Throwable t); +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/Logger.java b/KalturaClient/src/main/java/com/kaltura/client/Logger.java new file mode 100644 index 000000000..209ed375a --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/Logger.java @@ -0,0 +1,64 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client; + +import com.kaltura.client.LoggerAndroid; + +abstract public class Logger implements ILogger +{ + // Creation & retrieval methods: + public static Logger getLogger(String name) + { + return LoggerAndroid.getLogger(name); + } + + public static Logger getLogger(Class clazz) + { + return getLogger(clazz.getName()); + } + + public boolean isEnabled() + { + return true; + } + + // printing methods: + abstract public void trace(Object message); + abstract public void debug(Object message); + abstract public void info(Object message); + abstract public void warn(Object message); + abstract public void error(Object message); + abstract public void fatal(Object message); + + abstract public void trace(Object message, Throwable t); + abstract public void debug(Object message, Throwable t); + abstract public void info(Object message, Throwable t); + abstract public void warn(Object message, Throwable t); + abstract public void error(Object message, Throwable t); + abstract public void fatal(Object message, Throwable t); +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/LoggerAndroid.java b/KalturaClient/src/main/java/com/kaltura/client/LoggerAndroid.java new file mode 100644 index 000000000..af9752a13 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/LoggerAndroid.java @@ -0,0 +1,107 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client; + +import android.util.Log; + +public class LoggerAndroid extends Logger +{ + protected String tag; + + // Creation & retrieval methods: + public static Logger getLogger(String name) + { + return new LoggerAndroid(name); + } + + protected LoggerAndroid(String name) + { + this.tag = name; + } + + // printing methods: + public void trace(Object message) + { + Log.v(this.tag, message.toString()); + } + + public void debug(Object message) + { + Log.d(this.tag, message.toString()); + } + + public void info(Object message) + { + Log.i(this.tag, message.toString()); + } + + public void warn(Object message) + { + Log.w(this.tag, message.toString()); + } + + public void error(Object message) + { + Log.e(this.tag, message.toString()); + } + + public void fatal(Object message) + { + Log.wtf(this.tag, message.toString()); + } + + public void trace(Object message, Throwable t) + { + Log.v(this.tag, message.toString(), t); + } + + public void debug(Object message, Throwable t) + { + Log.d(this.tag, message.toString(), t); + } + + public void info(Object message, Throwable t) + { + Log.i(this.tag, message.toString(), t); + } + + public void warn(Object message, Throwable t) + { + Log.w(this.tag, message.toString(), t); + } + + public void error(Object message, Throwable t) + { + Log.e(this.tag, message.toString(), t); + } + + public void fatal(Object message, Throwable t) + { + Log.wtf(this.tag, message.toString(), t); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/LoggerNull.java b/KalturaClient/src/main/java/com/kaltura/client/LoggerNull.java new file mode 100644 index 000000000..ba75081aa --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/LoggerNull.java @@ -0,0 +1,95 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client; + +public class LoggerNull implements ILogger +{ + // Creation & retrieval methods: + public static ILogger getLogger(String name) + { + return new LoggerNull(name); + } + + protected LoggerNull(String name) + { + } + + public boolean isEnabled() + { + return false; + } + + // printing methods: + public void trace(Object message) + { + } + + public void debug(Object message) + { + } + + public void info(Object message) + { + } + + public void warn(Object message) + { + } + + public void error(Object message) + { + } + + public void fatal(Object message) + { + } + + public void trace(Object message, Throwable t) + { + } + + public void debug(Object message, Throwable t) + { + } + + public void info(Object message, Throwable t) + { + } + + public void warn(Object message, Throwable t) + { + } + + public void error(Object message, Throwable t) + { + } + + public void fatal(Object message, Throwable t) + { + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/LoggerOut.java b/KalturaClient/src/main/java/com/kaltura/client/LoggerOut.java new file mode 100644 index 000000000..9fc6394c1 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/LoggerOut.java @@ -0,0 +1,88 @@ +package com.kaltura.client; + +import java.text.SimpleDateFormat; +import java.util.Date; + +/** + * Created by tehilarozin on 24/08/2016. + */ +public class LoggerOut implements ILogger { + @Override + public boolean isEnabled() { + return true; + } + + @Override + public void trace(Object message) { + systemOutMsg("trace: ", message); + } + + @Override + public void debug(Object message) { + systemOutMsg("debug: ", message); + } + + @Override + public void info(Object message) { + systemOutMsg(">> info: ", message); + } + + @Override + public void warn(Object message) { + systemOutMsg("# warn: ", message); + } + + @Override + public void error(Object message) { + systemOutMsg("** error: ", message); + } + + @Override + public void fatal(Object message) { + systemOutMsg("!! fatal: ", message); + } + + @Override + public void trace(Object message, Throwable t) { + systemOutMsg("traceThrowable: ", message + "\n "+t); + } + + @Override + public void debug(Object message, Throwable t) { + systemOutMsg("debugThrowable: ", message + "\n "+t); + } + + @Override + public void info(Object message, Throwable t) { + systemOutMsg(">> infoThrowable: ", message + "\n "+t); + } + + @Override + public void warn(Object message, Throwable t) { + systemOutMsg("# warnThrowable: ", message + "\n "+t); + } + + @Override + public void error(Object message, Throwable t) { + systemOutMsg("** errorThrowable: ", message + "\n "+t); + } + + @Override + public void fatal(Object message, Throwable t) { + systemOutMsg("!! fatalThrowable: ", message + "\n "+t); + } + + + private void systemOutMsg(String prefix, Object message) { + System.out.println(getTime() + prefix + message+"\n"); + } + + public static ILogger getLogger(String name) { + return new LoggerOut(); + } + + public static String getTime(){ + return new SimpleDateFormat("HH.mm.ss.SSS").format(new Date()) + ": "; + } + +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/ObjectFactory.java b/KalturaClient/src/main/java/com/kaltura/client/ObjectFactory.java new file mode 100644 index 000000000..131d7e7ca --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/ObjectFactory.java @@ -0,0 +1,78 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client; + +import com.kaltura.client.types.APIException; +import org.w3c.dom.Element; +import org.w3c.dom.Node; +import org.w3c.dom.NodeList; + +import java.lang.reflect.Constructor; + +/** + * This class was generated using generate.php + * against an XML schema provided by Kaltura. + * @date Thu, 09 Feb 12 10:24:52 +0200 + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class ObjectFactory { + + @SuppressWarnings("unchecked") + public static T create(Element xmlElement, Class fallbackClazz) throws APIException { + NodeList objectTypeNodes = xmlElement.getElementsByTagName("objectType"); + Node objectTypeNode = objectTypeNodes.item(0); + + Class clazz = null; + if (objectTypeNode != null) { + String objectType = objectTypeNode.getTextContent(); + + try { + clazz = (Class) Class.forName("com.kaltura.client.types." + objectType); + } catch (ClassNotFoundException e1) { + clazz = null; + } + } + + if(clazz == null){ + if(fallbackClazz != null) { + clazz = fallbackClazz; + } else { + throw new APIException("Invalid object type" ); + } + } + + try { + Constructor ctor = clazz.getConstructor(Element.class); + return (T) ctor.newInstance(xmlElement); + } catch (Exception e) { + throw new APIException("Failed to construct object"); + } + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/Params.java b/KalturaClient/src/main/java/com/kaltura/client/Params.java new file mode 100644 index 000000000..48e660237 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/Params.java @@ -0,0 +1,327 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client; + +import com.google.gson.Gson; +import com.kaltura.client.enums.EnumAsInt; +import com.kaltura.client.enums.EnumAsString; +import com.kaltura.client.types.APIException; +import com.kaltura.client.types.ObjectBase; + +import java.io.Serializable; +import java.util.*; + +/** + * Helper class that provides a collection of Kaltura parameters (key-value + * pairs). + * + * @author jpotts + * + */ +@SuppressWarnings("serial") +public class Params extends LinkedHashMap implements Serializable { + + private static Gson gson = new Gson(); + + public String toQueryString() { + return toQueryString(null); + } + + public String toQueryString(String prefix) { + + StringBuffer str = new StringBuffer(); + Object value; + + for (String key : getKeys()) { + if(!containsKey(key)){ + continue; + } + + if (str.length() > 0) { + str.append("&"); + } + + value = get(key); + + if (prefix != null) { + key = prefix + "[" + key + "]"; + } + if (value instanceof Params) { + str.append(((Params) value).toQueryString(key)); + } else { + str.append(key); + str.append("="); + str.append(value); + } + } + + return str.toString(); + } + + public void add(String key, Integer value) { + if (value == null || value == ParamsValueDefaults.KALTURA_UNDEF_INT) { + return; + } + + if (value == ParamsValueDefaults.KALTURA_NULL_INT) { + putNull(key); + return; + } + + if(key != null) { + put(key, value); + } + } + + public void add(String key, Long value) { + if (value == null || value == ParamsValueDefaults.KALTURA_UNDEF_LONG) { + return; + } + if (value == ParamsValueDefaults.KALTURA_NULL_LONG) { + putNull(key); + return; + } + + if(key != null) { + put(key, value); + } + } + + public void add(String key, Double value) { + if (value == null || value == ParamsValueDefaults.KALTURA_UNDEF_DOUBLE) { + return; + } + if (value == ParamsValueDefaults.KALTURA_NULL_DOUBLE) { + putNull(key); + return; + } + + if(key != null) { + put(key, value); + } + } + + public void add(String key, Boolean value) { + if (value == null) { + return; + } + + put(key, value); + } + + + public void add(String key, String value) { + if (value == null) { + return; + } + + if (value.equals(ParamsValueDefaults.KALTURA_NULL_STRING)) { + putNull(key); + return; + } + + if(key != null) { + put(key, value); + } + } + + public void add(String key, ObjectBase object) { + if (object == null || key == null) + return; + + + put(key, object.toParams()); + } + + public void add(String key, List array) { + if (array == null) + return; + + if (array.isEmpty()) { + Params emptyParams = new Params(); + emptyParams.put("-", ""); + put(key, emptyParams); + + } else if(array.get(0) instanceof ObjectBase) { + List list = new ArrayList(); + for(ObjectBase item : array) { + list.add(item.toParams()); + } + put(key, list); + } + else { + List list = new ArrayList(); + for(ObjectBase item : array) { + list.add(item.toString()); + } + put(key, list); + } + } + + public void link(String destKey, String requestId, String sourceKey) { + String source = "{" + requestId + ":result:" + sourceKey.replace(".", ":") + "}"; + Deque destinationKeys = new LinkedList(Arrays.asList(destKey.split("\\."))); + link(destinationKeys, source); + } + + @SuppressWarnings({ "unchecked", "rawtypes" }) + protected void link(Deque destinationKeys, String source) { + String destination = destinationKeys.pollFirst(); + if(destinationKeys.size() == 0) { + put(destination, source); + } + else if(destinationKeys.getFirst().matches("^\\d+$")) { + int index = Integer.valueOf(destinationKeys.pollFirst()); + List destinationList; + if(containsKey(destination) && get(destination) instanceof List) { + destinationList = (List) get(destination); + } + else { + destinationList = new ArrayList(); + } + + if(destinationKeys.size() == 0) { + destinationList.set(index, source); + } + else { + Params destinationParams; + if(destinationList.size() > index && destinationList.get(index) instanceof Params) { + destinationParams = (Params) destinationList.get(index); + } + else { + destinationParams = new Params(); + destinationList.add(destinationParams); + } + destinationParams.link(destinationKeys, source); + } + } + else { + Params destinationParams = null; + if(containsKey(destination) && get(destination) instanceof Params) { + destinationParams = (Params) get(destination); + } + else { + destinationParams = new Params(); + put(destination, destinationParams); + } + destinationParams.link(destinationKeys, source); + } + } + + @SuppressWarnings("unchecked") + public void add(String key, Map map) { + if (map == null) + return; + + if (map.isEmpty()) { + Params emptyParams = new Params(); + emptyParams.put("-", ""); + put(key, emptyParams); + + } + else { + Map items = new HashMap(); + for(String subKey : map.keySet()) { + items.put(subKey, map.get(subKey).toParams()); + } + + if (containsKey(key) && get(key) instanceof Map) { + Map existingKeys = (Map) get(key); + existingKeys.putAll(items); + } else { + put(key, items); + } + } + } + + public Iterable getKeys() { + return keySet(); + } + + public void add(String key, Params params) { + put(key, params); + } + + protected void putNull(String key) { + put(key + "__null", ""); + } + + /** + * Pay attention - this function does not support setting value to null. + * + * @param key param name + * @param value param value + */ + public void add(String key, EnumAsString value) { + if (value == null) + return; + + add(key, value.getValue()); + } + + /** + * Pay attention - this function does not support setting value to null. + * + * @param key param name + * @param value param value + */ + public void add(String key, EnumAsInt value) { + if (value == null) + return; + + add(key, value.getValue()); + } + + /*public boolean containsKey(String key) { + return containsKey(key); + }*/ + + public void clear() { + for (Object key : getKeys()) { + remove((String) key); + } + } + + public Params getParams(String key) throws APIException { + if (!containsKey(key)) + return null; + + Object value = get(key); + + if (value instanceof Params) + return (Params) value; + + throw new APIException("Key value [" + key + + "] is not instance of Params"); + } + + @Override + public String toString() { + return gson.toJson(this); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/ParamsValueDefaults.java b/KalturaClient/src/main/java/com/kaltura/client/ParamsValueDefaults.java new file mode 100644 index 000000000..81c83b828 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/ParamsValueDefaults.java @@ -0,0 +1,47 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client; + +/** + * This file contains constant values that when arrives from the server requires + * special behavior. + */ +public final class ParamsValueDefaults { + + public static final int KALTURA_UNDEF_INT = Integer.MIN_VALUE; + public static final int KALTURA_NULL_INT = Integer.MAX_VALUE; + + public static final double KALTURA_UNDEF_DOUBLE = Double.MIN_VALUE; + public static final double KALTURA_NULL_DOUBLE = Double.MAX_VALUE; + + public static final long KALTURA_UNDEF_LONG = Long.MIN_VALUE; + public static final long KALTURA_NULL_LONG = Long.MAX_VALUE; + + public static final String KALTURA_NULL_STRING = "__null_string__"; + +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/RequestQueue.java b/KalturaClient/src/main/java/com/kaltura/client/RequestQueue.java new file mode 100644 index 000000000..47cc0f0b4 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/RequestQueue.java @@ -0,0 +1,26 @@ +package com.kaltura.client; + +import com.kaltura.client.utils.request.ConnectionConfiguration; +import com.kaltura.client.utils.request.RequestElement; +import com.kaltura.client.utils.response.base.Response; + +public interface RequestQueue { + + void setDefaultConfiguration(ConnectionConfiguration config); + + @SuppressWarnings("rawtypes") + String queue(RequestElement request); + + @SuppressWarnings("rawtypes") + Response execute(RequestElement request); + + void cancelRequest(String reqId); + + void clearRequests(); + + boolean isEmpty(); + + void enableLogs(boolean enable); + + void enableLogResponseHeader(String header, boolean log); +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/AdsPolicy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/AdsPolicy.java new file mode 100644 index 000000000..8f6d3f5d9 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/AdsPolicy.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum AdsPolicy implements EnumAsString { + NO_ADS("NO_ADS"), + KEEP_ADS("KEEP_ADS"); + + private String value; + + AdsPolicy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static AdsPolicy get(String value) { + if(value == null) + { + return null; + } + + // goes over AdsPolicy defined values and compare the inner value with the given one: + for(AdsPolicy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return AdsPolicy.values().length > 0 ? AdsPolicy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/AggregationCountOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/AggregationCountOrderBy.java new file mode 100644 index 000000000..8f20b020d --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/AggregationCountOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum AggregationCountOrderBy implements EnumAsString { + NONE("NONE"); + + private String value; + + AggregationCountOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static AggregationCountOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over AggregationCountOrderBy defined values and compare the inner value with the given one: + for(AggregationCountOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return AggregationCountOrderBy.values().length > 0 ? AggregationCountOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/AggregationType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/AggregationType.java new file mode 100644 index 000000000..f0049efb4 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/AggregationType.java @@ -0,0 +1,71 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum AggregationType implements EnumAsString { + COUNT("Count"), + SUM("Sum"), + AVG("Avg"); + + private String value; + + AggregationType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static AggregationType get(String value) { + if(value == null) + { + return null; + } + + // goes over AggregationType defined values and compare the inner value with the given one: + for(AggregationType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return AggregationType.values().length > 0 ? AggregationType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/AnnouncementOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/AnnouncementOrderBy.java new file mode 100644 index 000000000..06518334f --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/AnnouncementOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum AnnouncementOrderBy implements EnumAsString { + NONE("NONE"); + + private String value; + + AnnouncementOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static AnnouncementOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over AnnouncementOrderBy defined values and compare the inner value with the given one: + for(AnnouncementOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return AnnouncementOrderBy.values().length > 0 ? AnnouncementOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/AnnouncementRecipientsType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/AnnouncementRecipientsType.java new file mode 100644 index 000000000..a21dd8c62 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/AnnouncementRecipientsType.java @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum AnnouncementRecipientsType implements EnumAsString { + ALL("All"), + LOGGEDIN("LoggedIn"), + GUESTS("Guests"), + OTHER("Other"); + + private String value; + + AnnouncementRecipientsType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static AnnouncementRecipientsType get(String value) { + if(value == null) + { + return null; + } + + // goes over AnnouncementRecipientsType defined values and compare the inner value with the given one: + for(AnnouncementRecipientsType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return AnnouncementRecipientsType.values().length > 0 ? AnnouncementRecipientsType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/AnnouncementStatus.java b/KalturaClient/src/main/java/com/kaltura/client/enums/AnnouncementStatus.java new file mode 100644 index 000000000..28c1936a5 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/AnnouncementStatus.java @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum AnnouncementStatus implements EnumAsString { + NOTSENT("NotSent"), + SENDING("Sending"), + SENT("Sent"), + ABORTED("Aborted"); + + private String value; + + AnnouncementStatus(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static AnnouncementStatus get(String value) { + if(value == null) + { + return null; + } + + // goes over AnnouncementStatus defined values and compare the inner value with the given one: + for(AnnouncementStatus item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return AnnouncementStatus.values().length > 0 ? AnnouncementStatus.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/ApiAction.java b/KalturaClient/src/main/java/com/kaltura/client/enums/ApiAction.java new file mode 100644 index 000000000..39188e078 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/ApiAction.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ApiAction implements EnumAsString { + ADD("ADD"); + + private String value; + + ApiAction(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static ApiAction get(String value) { + if(value == null) + { + return null; + } + + // goes over ApiAction defined values and compare the inner value with the given one: + for(ApiAction item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return ApiAction.values().length > 0 ? ApiAction.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/ApiParameterPermissionItemAction.java b/KalturaClient/src/main/java/com/kaltura/client/enums/ApiParameterPermissionItemAction.java new file mode 100644 index 000000000..57749782e --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/ApiParameterPermissionItemAction.java @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ApiParameterPermissionItemAction implements EnumAsString { + READ("READ"), + INSERT("INSERT"), + UPDATE("UPDATE"), + WRITE("WRITE"), + ALL("ALL"); + + private String value; + + ApiParameterPermissionItemAction(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static ApiParameterPermissionItemAction get(String value) { + if(value == null) + { + return null; + } + + // goes over ApiParameterPermissionItemAction defined values and compare the inner value with the given one: + for(ApiParameterPermissionItemAction item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return ApiParameterPermissionItemAction.values().length > 0 ? ApiParameterPermissionItemAction.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/ApiService.java b/KalturaClient/src/main/java/com/kaltura/client/enums/ApiService.java new file mode 100644 index 000000000..a2e317b1b --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/ApiService.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ApiService implements EnumAsString { + HOUSEHOLD_DEVICE("HOUSEHOLD_DEVICE"); + + private String value; + + ApiService(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static ApiService get(String value) { + if(value == null) + { + return null; + } + + // goes over ApiService defined values and compare the inner value with the given one: + for(ApiService item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return ApiService.values().length > 0 ? ApiService.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/AppTokenHashType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/AppTokenHashType.java new file mode 100644 index 000000000..e449737f3 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/AppTokenHashType.java @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum AppTokenHashType implements EnumAsString { + SHA1("SHA1"), + SHA256("SHA256"), + SHA512("SHA512"), + MD5("MD5"); + + private String value; + + AppTokenHashType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static AppTokenHashType get(String value) { + if(value == null) + { + return null; + } + + // goes over AppTokenHashType defined values and compare the inner value with the given one: + for(AppTokenHashType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return AppTokenHashType.values().length > 0 ? AppTokenHashType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/AssetCommentOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/AssetCommentOrderBy.java new file mode 100644 index 000000000..b575f0112 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/AssetCommentOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum AssetCommentOrderBy implements EnumAsString { + CREATE_DATE_DESC("CREATE_DATE_DESC"); + + private String value; + + AssetCommentOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static AssetCommentOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over AssetCommentOrderBy defined values and compare the inner value with the given one: + for(AssetCommentOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return AssetCommentOrderBy.values().length > 0 ? AssetCommentOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/AssetFilePpvOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/AssetFilePpvOrderBy.java new file mode 100644 index 000000000..5e3995ed3 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/AssetFilePpvOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum AssetFilePpvOrderBy implements EnumAsString { + NONE("NONE"); + + private String value; + + AssetFilePpvOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static AssetFilePpvOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over AssetFilePpvOrderBy defined values and compare the inner value with the given one: + for(AssetFilePpvOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return AssetFilePpvOrderBy.values().length > 0 ? AssetFilePpvOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/AssetHistoryOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/AssetHistoryOrderBy.java new file mode 100644 index 000000000..9f6a7b823 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/AssetHistoryOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum AssetHistoryOrderBy implements EnumAsString { + NONE("NONE"); + + private String value; + + AssetHistoryOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static AssetHistoryOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over AssetHistoryOrderBy defined values and compare the inner value with the given one: + for(AssetHistoryOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return AssetHistoryOrderBy.values().length > 0 ? AssetHistoryOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/AssetImagePerRatioOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/AssetImagePerRatioOrderBy.java new file mode 100644 index 000000000..f72b728f5 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/AssetImagePerRatioOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum AssetImagePerRatioOrderBy implements EnumAsString { + NONE("NONE"); + + private String value; + + AssetImagePerRatioOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static AssetImagePerRatioOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over AssetImagePerRatioOrderBy defined values and compare the inner value with the given one: + for(AssetImagePerRatioOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return AssetImagePerRatioOrderBy.values().length > 0 ? AssetImagePerRatioOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/AssetIndexStatus.java b/KalturaClient/src/main/java/com/kaltura/client/enums/AssetIndexStatus.java new file mode 100644 index 000000000..963c5ff21 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/AssetIndexStatus.java @@ -0,0 +1,71 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum AssetIndexStatus implements EnumAsString { + OK("Ok"), + DELETED("Deleted"), + NOTUPDATED("NotUpdated"); + + private String value; + + AssetIndexStatus(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static AssetIndexStatus get(String value) { + if(value == null) + { + return null; + } + + // goes over AssetIndexStatus defined values and compare the inner value with the given one: + for(AssetIndexStatus item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return AssetIndexStatus.values().length > 0 ? AssetIndexStatus.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/AssetInheritancePolicy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/AssetInheritancePolicy.java new file mode 100644 index 000000000..66fa8ca2d --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/AssetInheritancePolicy.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum AssetInheritancePolicy implements EnumAsString { + ENABLE("Enable"), + DISABLE("Disable"); + + private String value; + + AssetInheritancePolicy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static AssetInheritancePolicy get(String value) { + if(value == null) + { + return null; + } + + // goes over AssetInheritancePolicy defined values and compare the inner value with the given one: + for(AssetInheritancePolicy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return AssetInheritancePolicy.values().length > 0 ? AssetInheritancePolicy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/AssetLifeCycleRuleActionType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/AssetLifeCycleRuleActionType.java new file mode 100644 index 000000000..5d7f281ea --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/AssetLifeCycleRuleActionType.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum AssetLifeCycleRuleActionType implements EnumAsString { + ADD("ADD"), + REMOVE("REMOVE"); + + private String value; + + AssetLifeCycleRuleActionType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static AssetLifeCycleRuleActionType get(String value) { + if(value == null) + { + return null; + } + + // goes over AssetLifeCycleRuleActionType defined values and compare the inner value with the given one: + for(AssetLifeCycleRuleActionType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return AssetLifeCycleRuleActionType.values().length > 0 ? AssetLifeCycleRuleActionType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/AssetLifeCycleRuleTransitionType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/AssetLifeCycleRuleTransitionType.java new file mode 100644 index 000000000..b0c519906 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/AssetLifeCycleRuleTransitionType.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum AssetLifeCycleRuleTransitionType implements EnumAsString { + TAG("TAG"), + BUSINESS_MODEL("BUSINESS_MODEL"); + + private String value; + + AssetLifeCycleRuleTransitionType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static AssetLifeCycleRuleTransitionType get(String value) { + if(value == null) + { + return null; + } + + // goes over AssetLifeCycleRuleTransitionType defined values and compare the inner value with the given one: + for(AssetLifeCycleRuleTransitionType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return AssetLifeCycleRuleTransitionType.values().length > 0 ? AssetLifeCycleRuleTransitionType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/AssetOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/AssetOrderBy.java new file mode 100644 index 000000000..43e8cd286 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/AssetOrderBy.java @@ -0,0 +1,79 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum AssetOrderBy implements EnumAsString { + RELEVANCY_DESC("RELEVANCY_DESC"), + NAME_ASC("NAME_ASC"), + NAME_DESC("NAME_DESC"), + VIEWS_DESC("VIEWS_DESC"), + RATINGS_DESC("RATINGS_DESC"), + VOTES_DESC("VOTES_DESC"), + START_DATE_DESC("START_DATE_DESC"), + START_DATE_ASC("START_DATE_ASC"), + LIKES_DESC("LIKES_DESC"), + CREATE_DATE_ASC("CREATE_DATE_ASC"), + CREATE_DATE_DESC("CREATE_DATE_DESC"); + + private String value; + + AssetOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static AssetOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over AssetOrderBy defined values and compare the inner value with the given one: + for(AssetOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return AssetOrderBy.values().length > 0 ? AssetOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/AssetOrderByStatistics.java b/KalturaClient/src/main/java/com/kaltura/client/enums/AssetOrderByStatistics.java new file mode 100644 index 000000000..77c207767 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/AssetOrderByStatistics.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum AssetOrderByStatistics implements EnumAsString { + VIEWS_DESC("VIEWS_DESC"); + + private String value; + + AssetOrderByStatistics(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static AssetOrderByStatistics get(String value) { + if(value == null) + { + return null; + } + + // goes over AssetOrderByStatistics defined values and compare the inner value with the given one: + for(AssetOrderByStatistics item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return AssetOrderByStatistics.values().length > 0 ? AssetOrderByStatistics.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/AssetOrderByType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/AssetOrderByType.java new file mode 100644 index 000000000..ffb3af359 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/AssetOrderByType.java @@ -0,0 +1,78 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum AssetOrderByType implements EnumAsString { + RELEVANCY_DESC("RELEVANCY_DESC"), + NAME_ASC("NAME_ASC"), + NAME_DESC("NAME_DESC"), + RATINGS_DESC("RATINGS_DESC"), + VOTES_DESC("VOTES_DESC"), + START_DATE_DESC("START_DATE_DESC"), + START_DATE_ASC("START_DATE_ASC"), + LIKES_DESC("LIKES_DESC"), + CREATE_DATE_ASC("CREATE_DATE_ASC"), + CREATE_DATE_DESC("CREATE_DATE_DESC"); + + private String value; + + AssetOrderByType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static AssetOrderByType get(String value) { + if(value == null) + { + return null; + } + + // goes over AssetOrderByType defined values and compare the inner value with the given one: + for(AssetOrderByType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return AssetOrderByType.values().length > 0 ? AssetOrderByType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/AssetPersonalMarkupSearchOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/AssetPersonalMarkupSearchOrderBy.java new file mode 100644 index 000000000..0c37bf82b --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/AssetPersonalMarkupSearchOrderBy.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum AssetPersonalMarkupSearchOrderBy implements EnumAsString { + NONE("NONE"), + REQUEST_ORDER("REQUEST_ORDER"); + + private String value; + + AssetPersonalMarkupSearchOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static AssetPersonalMarkupSearchOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over AssetPersonalMarkupSearchOrderBy defined values and compare the inner value with the given one: + for(AssetPersonalMarkupSearchOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return AssetPersonalMarkupSearchOrderBy.values().length > 0 ? AssetPersonalMarkupSearchOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/AssetReferenceType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/AssetReferenceType.java new file mode 100644 index 000000000..00329642e --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/AssetReferenceType.java @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum AssetReferenceType implements EnumAsString { + MEDIA("media"), + EPG_INTERNAL("epg_internal"), + EPG_EXTERNAL("epg_external"), + NPVR("npvr"); + + private String value; + + AssetReferenceType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static AssetReferenceType get(String value) { + if(value == null) + { + return null; + } + + // goes over AssetReferenceType defined values and compare the inner value with the given one: + for(AssetReferenceType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return AssetReferenceType.values().length > 0 ? AssetReferenceType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/AssetReminderOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/AssetReminderOrderBy.java new file mode 100644 index 000000000..3aba1f8e3 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/AssetReminderOrderBy.java @@ -0,0 +1,77 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum AssetReminderOrderBy implements EnumAsString { + RELEVANCY_DESC("RELEVANCY_DESC"), + NAME_ASC("NAME_ASC"), + NAME_DESC("NAME_DESC"), + VIEWS_DESC("VIEWS_DESC"), + RATINGS_DESC("RATINGS_DESC"), + VOTES_DESC("VOTES_DESC"), + START_DATE_DESC("START_DATE_DESC"), + START_DATE_ASC("START_DATE_ASC"), + LIKES_DESC("LIKES_DESC"); + + private String value; + + AssetReminderOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static AssetReminderOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over AssetReminderOrderBy defined values and compare the inner value with the given one: + for(AssetReminderOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return AssetReminderOrderBy.values().length > 0 ? AssetReminderOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/AssetRuleOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/AssetRuleOrderBy.java new file mode 100644 index 000000000..5ca4b0624 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/AssetRuleOrderBy.java @@ -0,0 +1,71 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum AssetRuleOrderBy implements EnumAsString { + NONE("NONE"), + NAME_ASC("NAME_ASC"), + NAME_DESC("NAME_DESC"); + + private String value; + + AssetRuleOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static AssetRuleOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over AssetRuleOrderBy defined values and compare the inner value with the given one: + for(AssetRuleOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return AssetRuleOrderBy.values().length > 0 ? AssetRuleOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/AssetRuleStatus.java b/KalturaClient/src/main/java/com/kaltura/client/enums/AssetRuleStatus.java new file mode 100644 index 000000000..276f2e370 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/AssetRuleStatus.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum AssetRuleStatus implements EnumAsString { + READY("READY"), + IN_PROGRESS("IN_PROGRESS"); + + private String value; + + AssetRuleStatus(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static AssetRuleStatus get(String value) { + if(value == null) + { + return null; + } + + // goes over AssetRuleStatus defined values and compare the inner value with the given one: + for(AssetRuleStatus item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return AssetRuleStatus.values().length > 0 ? AssetRuleStatus.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/AssetStructMetaOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/AssetStructMetaOrderBy.java new file mode 100644 index 000000000..736c0f57c --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/AssetStructMetaOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum AssetStructMetaOrderBy implements EnumAsString { + NONE("NONE"); + + private String value; + + AssetStructMetaOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static AssetStructMetaOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over AssetStructMetaOrderBy defined values and compare the inner value with the given one: + for(AssetStructMetaOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return AssetStructMetaOrderBy.values().length > 0 ? AssetStructMetaOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/AssetStructOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/AssetStructOrderBy.java new file mode 100644 index 000000000..27f1de6c8 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/AssetStructOrderBy.java @@ -0,0 +1,76 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum AssetStructOrderBy implements EnumAsString { + NAME_ASC("NAME_ASC"), + NAME_DESC("NAME_DESC"), + SYSTEM_NAME_ASC("SYSTEM_NAME_ASC"), + SYSTEM_NAME_DESC("SYSTEM_NAME_DESC"), + CREATE_DATE_ASC("CREATE_DATE_ASC"), + CREATE_DATE_DESC("CREATE_DATE_DESC"), + UPDATE_DATE_ASC("UPDATE_DATE_ASC"), + UPDATE_DATE_DESC("UPDATE_DATE_DESC"); + + private String value; + + AssetStructOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static AssetStructOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over AssetStructOrderBy defined values and compare the inner value with the given one: + for(AssetStructOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return AssetStructOrderBy.values().length > 0 ? AssetStructOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/AssetType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/AssetType.java new file mode 100644 index 000000000..a3c68e0d1 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/AssetType.java @@ -0,0 +1,71 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum AssetType implements EnumAsString { + MEDIA("media"), + RECORDING("recording"), + EPG("epg"); + + private String value; + + AssetType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static AssetType get(String value) { + if(value == null) + { + return null; + } + + // goes over AssetType defined values and compare the inner value with the given one: + for(AssetType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return AssetType.values().length > 0 ? AssetType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/AssetUserRuleOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/AssetUserRuleOrderBy.java new file mode 100644 index 000000000..e935f7593 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/AssetUserRuleOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum AssetUserRuleOrderBy implements EnumAsString { + NONE("NONE"); + + private String value; + + AssetUserRuleOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static AssetUserRuleOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over AssetUserRuleOrderBy defined values and compare the inner value with the given one: + for(AssetUserRuleOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return AssetUserRuleOrderBy.values().length > 0 ? AssetUserRuleOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/BillingAction.java b/KalturaClient/src/main/java/com/kaltura/client/enums/BillingAction.java new file mode 100644 index 000000000..0a14ee9d5 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/BillingAction.java @@ -0,0 +1,75 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum BillingAction implements EnumAsString { + UNKNOWN("unknown"), + PURCHASE("purchase"), + RENEW_PAYMENT("renew_payment"), + RENEW_CANCELED_SUBSCRIPTION("renew_canceled_subscription"), + CANCEL_SUBSCRIPTION_ORDER("cancel_subscription_order"), + SUBSCRIPTION_DATE_CHANGED("subscription_date_changed"), + PENDING("pending"); + + private String value; + + BillingAction(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static BillingAction get(String value) { + if(value == null) + { + return null; + } + + // goes over BillingAction defined values and compare the inner value with the given one: + for(BillingAction item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return BillingAction.values().length > 0 ? BillingAction.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/BillingItemsType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/BillingItemsType.java new file mode 100644 index 000000000..102ef39f9 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/BillingItemsType.java @@ -0,0 +1,75 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum BillingItemsType implements EnumAsString { + UNKNOWN("unknown"), + PPV("ppv"), + SUBSCRIPTION("subscription"), + PRE_PAID("pre_paid"), + PRE_PAID_EXPIRED("pre_paid_expired"), + COLLECTION("collection"), + PROGRAM_ASSET_GROUP_OFFER("program_asset_group_offer"); + + private String value; + + BillingItemsType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static BillingItemsType get(String value) { + if(value == null) + { + return null; + } + + // goes over BillingItemsType defined values and compare the inner value with the given one: + for(BillingItemsType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return BillingItemsType.values().length > 0 ? BillingItemsType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/BillingPriceType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/BillingPriceType.java new file mode 100644 index 000000000..8a59198cb --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/BillingPriceType.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum BillingPriceType implements EnumAsString { + FULLPERIOD("FullPeriod"), + PARTIALPERIOD("PartialPeriod"); + + private String value; + + BillingPriceType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static BillingPriceType get(String value) { + if(value == null) + { + return null; + } + + // goes over BillingPriceType defined values and compare the inner value with the given one: + for(BillingPriceType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return BillingPriceType.values().length > 0 ? BillingPriceType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/BookmarkActionType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/BookmarkActionType.java new file mode 100644 index 000000000..ac228199d --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/BookmarkActionType.java @@ -0,0 +1,82 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum BookmarkActionType implements EnumAsString { + HIT("HIT"), + PLAY("PLAY"), + STOP("STOP"), + PAUSE("PAUSE"), + FIRST_PLAY("FIRST_PLAY"), + SWOOSH("SWOOSH"), + FULL_SCREEN("FULL_SCREEN"), + SEND_TO_FRIEND("SEND_TO_FRIEND"), + LOAD("LOAD"), + FULL_SCREEN_EXIT("FULL_SCREEN_EXIT"), + FINISH("FINISH"), + ERROR("ERROR"), + BITRATE_CHANGE("BITRATE_CHANGE"), + NONE("NONE"); + + private String value; + + BookmarkActionType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static BookmarkActionType get(String value) { + if(value == null) + { + return null; + } + + // goes over BookmarkActionType defined values and compare the inner value with the given one: + for(BookmarkActionType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return BookmarkActionType.values().length > 0 ? BookmarkActionType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/BookmarkOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/BookmarkOrderBy.java new file mode 100644 index 000000000..b9d738e9f --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/BookmarkOrderBy.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum BookmarkOrderBy implements EnumAsString { + POSITION_ASC("POSITION_ASC"), + POSITION_DESC("POSITION_DESC"); + + private String value; + + BookmarkOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static BookmarkOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over BookmarkOrderBy defined values and compare the inner value with the given one: + for(BookmarkOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return BookmarkOrderBy.values().length > 0 ? BookmarkOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/BooleanOperator.java b/KalturaClient/src/main/java/com/kaltura/client/enums/BooleanOperator.java new file mode 100644 index 000000000..3988a5585 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/BooleanOperator.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum BooleanOperator implements EnumAsString { + AND("And"), + OR("Or"); + + private String value; + + BooleanOperator(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static BooleanOperator get(String value) { + if(value == null) + { + return null; + } + + // goes over BooleanOperator defined values and compare the inner value with the given one: + for(BooleanOperator item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return BooleanOperator.values().length > 0 ? BooleanOperator.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/BulkUploadJobAction.java b/KalturaClient/src/main/java/com/kaltura/client/enums/BulkUploadJobAction.java new file mode 100644 index 000000000..0a0d80883 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/BulkUploadJobAction.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum BulkUploadJobAction implements EnumAsString { + UPSERT("Upsert"), + DELETE("Delete"); + + private String value; + + BulkUploadJobAction(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static BulkUploadJobAction get(String value) { + if(value == null) + { + return null; + } + + // goes over BulkUploadJobAction defined values and compare the inner value with the given one: + for(BulkUploadJobAction item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return BulkUploadJobAction.values().length > 0 ? BulkUploadJobAction.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/BulkUploadJobStatus.java b/KalturaClient/src/main/java/com/kaltura/client/enums/BulkUploadJobStatus.java new file mode 100644 index 000000000..3ce03c4fd --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/BulkUploadJobStatus.java @@ -0,0 +1,78 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum BulkUploadJobStatus implements EnumAsString { + PENDING("Pending"), + UPLOADED("Uploaded"), + QUEUED("Queued"), + PARSING("Parsing"), + PROCESSING("Processing"), + PROCESSED("Processed"), + SUCCESS("Success"), + PARTIAL("Partial"), + FAILED("Failed"), + FATAL("Fatal"); + + private String value; + + BulkUploadJobStatus(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static BulkUploadJobStatus get(String value) { + if(value == null) + { + return null; + } + + // goes over BulkUploadJobStatus defined values and compare the inner value with the given one: + for(BulkUploadJobStatus item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return BulkUploadJobStatus.values().length > 0 ? BulkUploadJobStatus.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/BulkUploadOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/BulkUploadOrderBy.java new file mode 100644 index 000000000..4fc6b19ed --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/BulkUploadOrderBy.java @@ -0,0 +1,71 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum BulkUploadOrderBy implements EnumAsString { + NONE("NONE"), + UPDATE_DATE_ASC("UPDATE_DATE_ASC"), + UPDATE_DATE_DESC("UPDATE_DATE_DESC"); + + private String value; + + BulkUploadOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static BulkUploadOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over BulkUploadOrderBy defined values and compare the inner value with the given one: + for(BulkUploadOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return BulkUploadOrderBy.values().length > 0 ? BulkUploadOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/BulkUploadResultStatus.java b/KalturaClient/src/main/java/com/kaltura/client/enums/BulkUploadResultStatus.java new file mode 100644 index 000000000..35bb97e8c --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/BulkUploadResultStatus.java @@ -0,0 +1,71 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum BulkUploadResultStatus implements EnumAsString { + ERROR("Error"), + OK("Ok"), + INPROGRESS("InProgress"); + + private String value; + + BulkUploadResultStatus(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static BulkUploadResultStatus get(String value) { + if(value == null) + { + return null; + } + + // goes over BulkUploadResultStatus defined values and compare the inner value with the given one: + for(BulkUploadResultStatus item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return BulkUploadResultStatus.values().length > 0 ? BulkUploadResultStatus.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/BundleType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/BundleType.java new file mode 100644 index 000000000..39343c3db --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/BundleType.java @@ -0,0 +1,71 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum BundleType implements EnumAsString { + SUBSCRIPTION("subscription"), + COLLECTION("collection"), + PAGO("pago"); + + private String value; + + BundleType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static BundleType get(String value) { + if(value == null) + { + return null; + } + + // goes over BundleType defined values and compare the inner value with the given one: + for(BundleType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return BundleType.values().length > 0 ? BundleType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/CampaignOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/CampaignOrderBy.java new file mode 100644 index 000000000..bd26ad1df --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/CampaignOrderBy.java @@ -0,0 +1,74 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum CampaignOrderBy implements EnumAsString { + START_DATE_DESC("START_DATE_DESC"), + START_DATE_ASC("START_DATE_ASC"), + UPDATE_DATE_DESC("UPDATE_DATE_DESC"), + UPDATE_DATE_ASC("UPDATE_DATE_ASC"), + END_DATE_DESC("END_DATE_DESC"), + END_DATE_ASC("END_DATE_ASC"); + + private String value; + + CampaignOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static CampaignOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over CampaignOrderBy defined values and compare the inner value with the given one: + for(CampaignOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return CampaignOrderBy.values().length > 0 ? CampaignOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/CategoryItemOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/CategoryItemOrderBy.java new file mode 100644 index 000000000..218af63ca --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/CategoryItemOrderBy.java @@ -0,0 +1,75 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum CategoryItemOrderBy implements EnumAsString { + NAME_ASC("NAME_ASC"), + NAME_DESC("NAME_DESC"), + CREATE_DATE_ASC("CREATE_DATE_ASC"), + CREATE_DATE_DESC("CREATE_DATE_DESC"), + NONE("NONE"), + UPDATE_DATE_ASC("UPDATE_DATE_ASC"), + UPDATE_DATE_DESC("UPDATE_DATE_DESC"); + + private String value; + + CategoryItemOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static CategoryItemOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over CategoryItemOrderBy defined values and compare the inner value with the given one: + for(CategoryItemOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return CategoryItemOrderBy.values().length > 0 ? CategoryItemOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/CategoryVersionOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/CategoryVersionOrderBy.java new file mode 100644 index 000000000..6ee667b4e --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/CategoryVersionOrderBy.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum CategoryVersionOrderBy implements EnumAsString { + UPDATE_DATE_DESC("UPDATE_DATE_DESC"), + NONE("NONE"); + + private String value; + + CategoryVersionOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static CategoryVersionOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over CategoryVersionOrderBy defined values and compare the inner value with the given one: + for(CategoryVersionOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return CategoryVersionOrderBy.values().length > 0 ? CategoryVersionOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/CategoryVersionState.java b/KalturaClient/src/main/java/com/kaltura/client/enums/CategoryVersionState.java new file mode 100644 index 000000000..8cd7ac2fc --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/CategoryVersionState.java @@ -0,0 +1,71 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum CategoryVersionState implements EnumAsString { + DRAFT("DRAFT"), + DEFAULT("DEFAULT"), + RELEASED("RELEASED"); + + private String value; + + CategoryVersionState(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static CategoryVersionState get(String value) { + if(value == null) + { + return null; + } + + // goes over CategoryVersionState defined values and compare the inner value with the given one: + for(CategoryVersionState item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return CategoryVersionState.values().length > 0 ? CategoryVersionState.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/ChannelEnrichment.java b/KalturaClient/src/main/java/com/kaltura/client/enums/ChannelEnrichment.java new file mode 100644 index 000000000..abf33ebd3 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/ChannelEnrichment.java @@ -0,0 +1,76 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ChannelEnrichment implements EnumAsString { + CLIENTLOCATION("ClientLocation"), + USERID("UserId"), + HOUSEHOLDID("HouseholdId"), + DEVICEID("DeviceId"), + DEVICETYPE("DeviceType"), + UTCOFFSET("UTCOffset"), + LANGUAGE("Language"), + DTTREGION("DTTRegion"); + + private String value; + + ChannelEnrichment(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static ChannelEnrichment get(String value) { + if(value == null) + { + return null; + } + + // goes over ChannelEnrichment defined values and compare the inner value with the given one: + for(ChannelEnrichment item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return ChannelEnrichment.values().length > 0 ? ChannelEnrichment.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/ChannelFieldOrderByType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/ChannelFieldOrderByType.java new file mode 100644 index 000000000..27642cf0c --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/ChannelFieldOrderByType.java @@ -0,0 +1,76 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ChannelFieldOrderByType implements EnumAsString { + NAME_ASC("NAME_ASC"), + NAME_DESC("NAME_DESC"), + START_DATE_DESC("START_DATE_DESC"), + START_DATE_ASC("START_DATE_ASC"), + CREATE_DATE_ASC("CREATE_DATE_ASC"), + CREATE_DATE_DESC("CREATE_DATE_DESC"), + RELEVANCY_DESC("RELEVANCY_DESC"), + ORDER_NUM("ORDER_NUM"); + + private String value; + + ChannelFieldOrderByType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static ChannelFieldOrderByType get(String value) { + if(value == null) + { + return null; + } + + // goes over ChannelFieldOrderByType defined values and compare the inner value with the given one: + for(ChannelFieldOrderByType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return ChannelFieldOrderByType.values().length > 0 ? ChannelFieldOrderByType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/ChannelOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/ChannelOrderBy.java new file mode 100644 index 000000000..b6a7d73b8 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/ChannelOrderBy.java @@ -0,0 +1,80 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ChannelOrderBy implements EnumAsString { + ORDER_NUM("ORDER_NUM"), + RELEVANCY_DESC("RELEVANCY_DESC"), + NAME_ASC("NAME_ASC"), + NAME_DESC("NAME_DESC"), + VIEWS_DESC("VIEWS_DESC"), + RATINGS_DESC("RATINGS_DESC"), + VOTES_DESC("VOTES_DESC"), + START_DATE_DESC("START_DATE_DESC"), + START_DATE_ASC("START_DATE_ASC"), + LIKES_DESC("LIKES_DESC"), + CREATE_DATE_ASC("CREATE_DATE_ASC"), + CREATE_DATE_DESC("CREATE_DATE_DESC"); + + private String value; + + ChannelOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static ChannelOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over ChannelOrderBy defined values and compare the inner value with the given one: + for(ChannelOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return ChannelOrderBy.values().length > 0 ? ChannelOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/ChannelSlidingWindowOrderByType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/ChannelSlidingWindowOrderByType.java new file mode 100644 index 000000000..b85cf4e52 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/ChannelSlidingWindowOrderByType.java @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ChannelSlidingWindowOrderByType implements EnumAsString { + LIKES_DESC("LIKES_DESC"), + RATINGS_DESC("RATINGS_DESC"), + VOTES_DESC("VOTES_DESC"), + VIEWS_DESC("VIEWS_DESC"); + + private String value; + + ChannelSlidingWindowOrderByType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static ChannelSlidingWindowOrderByType get(String value) { + if(value == null) + { + return null; + } + + // goes over ChannelSlidingWindowOrderByType defined values and compare the inner value with the given one: + for(ChannelSlidingWindowOrderByType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return ChannelSlidingWindowOrderByType.values().length > 0 ? ChannelSlidingWindowOrderByType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/ChannelStruct.java b/KalturaClient/src/main/java/com/kaltura/client/enums/ChannelStruct.java new file mode 100644 index 000000000..7c421a448 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/ChannelStruct.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ChannelStruct implements EnumAsString { + MANUAL("Manual"), + DYNAMIC("Dynamic"); + + private String value; + + ChannelStruct(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static ChannelStruct get(String value) { + if(value == null) + { + return null; + } + + // goes over ChannelStruct defined values and compare the inner value with the given one: + for(ChannelStruct item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return ChannelStruct.values().length > 0 ? ChannelStruct.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/ChannelType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/ChannelType.java new file mode 100644 index 000000000..fc73685e2 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/ChannelType.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ChannelType implements EnumAsString { + INTERNAL("Internal"), + EXTERNAL("External"); + + private String value; + + ChannelType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static ChannelType get(String value) { + if(value == null) + { + return null; + } + + // goes over ChannelType defined values and compare the inner value with the given one: + for(ChannelType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return ChannelType.values().length > 0 ? ChannelType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/ChannelsOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/ChannelsOrderBy.java new file mode 100644 index 000000000..076320dd9 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/ChannelsOrderBy.java @@ -0,0 +1,75 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ChannelsOrderBy implements EnumAsString { + NONE("NONE"), + NAME_ASC("NAME_ASC"), + NAME_DESC("NAME_DESC"), + CREATE_DATE_ASC("CREATE_DATE_ASC"), + CREATE_DATE_DESC("CREATE_DATE_DESC"), + UPDATE_DATE_ASC("UPDATE_DATE_ASC"), + UPDATE_DATE_DESC("UPDATE_DATE_DESC"); + + private String value; + + ChannelsOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static ChannelsOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over ChannelsOrderBy defined values and compare the inner value with the given one: + for(ChannelsOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return ChannelsOrderBy.values().length > 0 ? ChannelsOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/ChronologicalRecordStartTime.java b/KalturaClient/src/main/java/com/kaltura/client/enums/ChronologicalRecordStartTime.java new file mode 100644 index 000000000..bc6c6f0bf --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/ChronologicalRecordStartTime.java @@ -0,0 +1,71 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ChronologicalRecordStartTime implements EnumAsString { + NONE("NONE"), + NOW("NOW"), + EPG_START_TIME("EPG_START_TIME"); + + private String value; + + ChronologicalRecordStartTime(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static ChronologicalRecordStartTime get(String value) { + if(value == null) + { + return null; + } + + // goes over ChronologicalRecordStartTime defined values and compare the inner value with the given one: + for(ChronologicalRecordStartTime item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return ChronologicalRecordStartTime.values().length > 0 ? ChronologicalRecordStartTime.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/CollectionOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/CollectionOrderBy.java new file mode 100644 index 000000000..8d046e0e2 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/CollectionOrderBy.java @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum CollectionOrderBy implements EnumAsString { + NONE("NONE"), + NAME_ASC("NAME_ASC"), + NAME_DESC("NAME_DESC"), + UPDATE_DATE_ASC("UPDATE_DATE_ASC"), + UPDATE_DATE_DESC("UPDATE_DATE_DESC"); + + private String value; + + CollectionOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static CollectionOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over CollectionOrderBy defined values and compare the inner value with the given one: + for(CollectionOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return CollectionOrderBy.values().length > 0 ? CollectionOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/CompensationType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/CompensationType.java new file mode 100644 index 000000000..81a18853f --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/CompensationType.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum CompensationType implements EnumAsString { + PERCENTAGE("PERCENTAGE"), + FIXED_AMOUNT("FIXED_AMOUNT"); + + private String value; + + CompensationType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static CompensationType get(String value) { + if(value == null) + { + return null; + } + + // goes over CompensationType defined values and compare the inner value with the given one: + for(CompensationType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return CompensationType.values().length > 0 ? CompensationType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/ConcurrencyLimitationType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/ConcurrencyLimitationType.java new file mode 100644 index 000000000..e052e6663 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/ConcurrencyLimitationType.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ConcurrencyLimitationType implements EnumAsString { + SINGLE("Single"), + GROUP("Group"); + + private String value; + + ConcurrencyLimitationType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static ConcurrencyLimitationType get(String value) { + if(value == null) + { + return null; + } + + // goes over ConcurrencyLimitationType defined values and compare the inner value with the given one: + for(ConcurrencyLimitationType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return ConcurrencyLimitationType.values().length > 0 ? ConcurrencyLimitationType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/ConfigurationGroupDeviceOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/ConfigurationGroupDeviceOrderBy.java new file mode 100644 index 000000000..1342a25b6 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/ConfigurationGroupDeviceOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ConfigurationGroupDeviceOrderBy implements EnumAsString { + NONE("NONE"); + + private String value; + + ConfigurationGroupDeviceOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static ConfigurationGroupDeviceOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over ConfigurationGroupDeviceOrderBy defined values and compare the inner value with the given one: + for(ConfigurationGroupDeviceOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return ConfigurationGroupDeviceOrderBy.values().length > 0 ? ConfigurationGroupDeviceOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/ConfigurationGroupTagOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/ConfigurationGroupTagOrderBy.java new file mode 100644 index 000000000..93948d558 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/ConfigurationGroupTagOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ConfigurationGroupTagOrderBy implements EnumAsString { + NONE("NONE"); + + private String value; + + ConfigurationGroupTagOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static ConfigurationGroupTagOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over ConfigurationGroupTagOrderBy defined values and compare the inner value with the given one: + for(ConfigurationGroupTagOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return ConfigurationGroupTagOrderBy.values().length > 0 ? ConfigurationGroupTagOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/ConfigurationsOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/ConfigurationsOrderBy.java new file mode 100644 index 000000000..a34386fe8 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/ConfigurationsOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ConfigurationsOrderBy implements EnumAsString { + NONE("NONE"); + + private String value; + + ConfigurationsOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static ConfigurationsOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over ConfigurationsOrderBy defined values and compare the inner value with the given one: + for(ConfigurationsOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return ConfigurationsOrderBy.values().length > 0 ? ConfigurationsOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/ContentAction.java b/KalturaClient/src/main/java/com/kaltura/client/enums/ContentAction.java new file mode 100644 index 000000000..943fc1383 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/ContentAction.java @@ -0,0 +1,75 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ContentAction implements EnumAsString { + WATCH_LINEAR("watch_linear"), + WATCH_VOD("watch_vod"), + CATCHUP("catchup"), + NPVR("npvr"), + FAVORITE("favorite"), + RECORDING("recording"), + SOCIAL_ACTION("social_action"); + + private String value; + + ContentAction(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static ContentAction get(String value) { + if(value == null) + { + return null; + } + + // goes over ContentAction defined values and compare the inner value with the given one: + for(ContentAction item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return ContentAction.values().length > 0 ? ContentAction.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/ContentActionConditionLengthType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/ContentActionConditionLengthType.java new file mode 100644 index 000000000..830ea33bb --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/ContentActionConditionLengthType.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ContentActionConditionLengthType implements EnumAsString { + MINUTES("minutes"), + PERCENTAGE("percentage"); + + private String value; + + ContentActionConditionLengthType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static ContentActionConditionLengthType get(String value) { + if(value == null) + { + return null; + } + + // goes over ContentActionConditionLengthType defined values and compare the inner value with the given one: + for(ContentActionConditionLengthType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return ContentActionConditionLengthType.values().length > 0 ? ContentActionConditionLengthType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/ContextType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/ContextType.java new file mode 100644 index 000000000..32e13118a --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/ContextType.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ContextType implements EnumAsString { + NONE("none"), + RECORDING("recording"); + + private String value; + + ContextType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static ContextType get(String value) { + if(value == null) + { + return null; + } + + // goes over ContextType defined values and compare the inner value with the given one: + for(ContextType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return ContextType.values().length > 0 ? ContextType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/CountryOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/CountryOrderBy.java new file mode 100644 index 000000000..530aa22ad --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/CountryOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum CountryOrderBy implements EnumAsString { + NAME_ASC("NAME_ASC"); + + private String value; + + CountryOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static CountryOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over CountryOrderBy defined values and compare the inner value with the given one: + for(CountryOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return CountryOrderBy.values().length > 0 ? CountryOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/CouponGroupType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/CouponGroupType.java new file mode 100644 index 000000000..f942ddb35 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/CouponGroupType.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum CouponGroupType implements EnumAsString { + COUPON("COUPON"), + GIFT_CARD("GIFT_CARD"); + + private String value; + + CouponGroupType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static CouponGroupType get(String value) { + if(value == null) + { + return null; + } + + // goes over CouponGroupType defined values and compare the inner value with the given one: + for(CouponGroupType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return CouponGroupType.values().length > 0 ? CouponGroupType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/CouponStatus.java b/KalturaClient/src/main/java/com/kaltura/client/enums/CouponStatus.java new file mode 100644 index 000000000..845a398f9 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/CouponStatus.java @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum CouponStatus implements EnumAsString { + VALID("VALID"), + NOT_EXISTS("NOT_EXISTS"), + ALREADY_USED("ALREADY_USED"), + EXPIRED("EXPIRED"), + INACTIVE("INACTIVE"); + + private String value; + + CouponStatus(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static CouponStatus get(String value) { + if(value == null) + { + return null; + } + + // goes over CouponStatus defined values and compare the inner value with the given one: + for(CouponStatus item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return CouponStatus.values().length > 0 ? CouponStatus.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/CurrencyOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/CurrencyOrderBy.java new file mode 100644 index 000000000..2498a8432 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/CurrencyOrderBy.java @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum CurrencyOrderBy implements EnumAsString { + NAME_ASC("NAME_ASC"), + NAME_DESC("NAME_DESC"), + CODE_ASC("CODE_ASC"), + CODE_DESC("CODE_DESC"); + + private String value; + + CurrencyOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static CurrencyOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over CurrencyOrderBy defined values and compare the inner value with the given one: + for(CurrencyOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return CurrencyOrderBy.values().length > 0 ? CurrencyOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/DeleteMediaPolicy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/DeleteMediaPolicy.java new file mode 100644 index 000000000..aa7e0c951 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/DeleteMediaPolicy.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum DeleteMediaPolicy implements EnumAsString { + DISABLE("Disable"), + DELETE("Delete"); + + private String value; + + DeleteMediaPolicy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static DeleteMediaPolicy get(String value) { + if(value == null) + { + return null; + } + + // goes over DeleteMediaPolicy defined values and compare the inner value with the given one: + for(DeleteMediaPolicy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return DeleteMediaPolicy.values().length > 0 ? DeleteMediaPolicy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/DeviceBrandOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/DeviceBrandOrderBy.java new file mode 100644 index 000000000..486ad4866 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/DeviceBrandOrderBy.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum DeviceBrandOrderBy implements EnumAsString { + ID_ASC("ID_ASC"), + ID_DESC("ID_DESC"); + + private String value; + + DeviceBrandOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static DeviceBrandOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over DeviceBrandOrderBy defined values and compare the inner value with the given one: + for(DeviceBrandOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return DeviceBrandOrderBy.values().length > 0 ? DeviceBrandOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/DeviceBrandType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/DeviceBrandType.java new file mode 100644 index 000000000..6aa6c1612 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/DeviceBrandType.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum DeviceBrandType implements EnumAsString { + SYSTEM("System"), + CUSTOM("Custom"); + + private String value; + + DeviceBrandType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static DeviceBrandType get(String value) { + if(value == null) + { + return null; + } + + // goes over DeviceBrandType defined values and compare the inner value with the given one: + for(DeviceBrandType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return DeviceBrandType.values().length > 0 ? DeviceBrandType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/DeviceFamilyOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/DeviceFamilyOrderBy.java new file mode 100644 index 000000000..0f61b2065 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/DeviceFamilyOrderBy.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum DeviceFamilyOrderBy implements EnumAsString { + ID_ASC("ID_ASC"), + ID_DESC("ID_DESC"); + + private String value; + + DeviceFamilyOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static DeviceFamilyOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over DeviceFamilyOrderBy defined values and compare the inner value with the given one: + for(DeviceFamilyOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return DeviceFamilyOrderBy.values().length > 0 ? DeviceFamilyOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/DeviceFamilyType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/DeviceFamilyType.java new file mode 100644 index 000000000..718f45158 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/DeviceFamilyType.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum DeviceFamilyType implements EnumAsString { + SYSTEM("System"), + CUSTOM("Custom"); + + private String value; + + DeviceFamilyType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static DeviceFamilyType get(String value) { + if(value == null) + { + return null; + } + + // goes over DeviceFamilyType defined values and compare the inner value with the given one: + for(DeviceFamilyType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return DeviceFamilyType.values().length > 0 ? DeviceFamilyType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/DeviceReferenceDataOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/DeviceReferenceDataOrderBy.java new file mode 100644 index 000000000..8fa5e9c2f --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/DeviceReferenceDataOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum DeviceReferenceDataOrderBy implements EnumAsString { + NONE("NONE"); + + private String value; + + DeviceReferenceDataOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static DeviceReferenceDataOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over DeviceReferenceDataOrderBy defined values and compare the inner value with the given one: + for(DeviceReferenceDataOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return DeviceReferenceDataOrderBy.values().length > 0 ? DeviceReferenceDataOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/DeviceStatus.java b/KalturaClient/src/main/java/com/kaltura/client/enums/DeviceStatus.java new file mode 100644 index 000000000..86396193e --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/DeviceStatus.java @@ -0,0 +1,71 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum DeviceStatus implements EnumAsString { + PENDING("PENDING"), + ACTIVATED("ACTIVATED"), + NOT_ACTIVATED("NOT_ACTIVATED"); + + private String value; + + DeviceStatus(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static DeviceStatus get(String value) { + if(value == null) + { + return null; + } + + // goes over DeviceStatus defined values and compare the inner value with the given one: + for(DeviceStatus item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return DeviceStatus.values().length > 0 ? DeviceStatus.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/DowngradePolicy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/DowngradePolicy.java new file mode 100644 index 000000000..d1b0258c7 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/DowngradePolicy.java @@ -0,0 +1,71 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum DowngradePolicy implements EnumAsString { + LIFO("LIFO"), + FIFO("FIFO"), + ACTIVE_DATE("ACTIVE_DATE"); + + private String value; + + DowngradePolicy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static DowngradePolicy get(String value) { + if(value == null) + { + return null; + } + + // goes over DowngradePolicy defined values and compare the inner value with the given one: + for(DowngradePolicy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return DowngradePolicy.values().length > 0 ? DowngradePolicy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/DrmSchemeName.java b/KalturaClient/src/main/java/com/kaltura/client/enums/DrmSchemeName.java new file mode 100644 index 000000000..de601fb1b --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/DrmSchemeName.java @@ -0,0 +1,74 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum DrmSchemeName implements EnumAsString { + PLAYREADY_CENC("PLAYREADY_CENC"), + WIDEVINE_CENC("WIDEVINE_CENC"), + FAIRPLAY("FAIRPLAY"), + WIDEVINE("WIDEVINE"), + PLAYREADY("PLAYREADY"), + CUSTOM_DRM("CUSTOM_DRM"); + + private String value; + + DrmSchemeName(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static DrmSchemeName get(String value) { + if(value == null) + { + return null; + } + + // goes over DrmSchemeName defined values and compare the inner value with the given one: + for(DrmSchemeName item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return DrmSchemeName.values().length > 0 ? DrmSchemeName.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/DurationUnit.java b/KalturaClient/src/main/java/com/kaltura/client/enums/DurationUnit.java new file mode 100644 index 000000000..3281ddfbd --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/DurationUnit.java @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum DurationUnit implements EnumAsString { + MINUTES("Minutes"), + HOURS("Hours"), + DAYS("Days"), + MONTHS("Months"), + YEARS("Years"); + + private String value; + + DurationUnit(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static DurationUnit get(String value) { + if(value == null) + { + return null; + } + + // goes over DurationUnit defined values and compare the inner value with the given one: + for(DurationUnit item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return DurationUnit.values().length > 0 ? DurationUnit.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/DynamicListOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/DynamicListOrderBy.java new file mode 100644 index 000000000..d1937660d --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/DynamicListOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum DynamicListOrderBy implements EnumAsString { + NONE("NONE"); + + private String value; + + DynamicListOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static DynamicListOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over DynamicListOrderBy defined values and compare the inner value with the given one: + for(DynamicListOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return DynamicListOrderBy.values().length > 0 ? DynamicListOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/EncryptionType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/EncryptionType.java new file mode 100644 index 000000000..81327b296 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/EncryptionType.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum EncryptionType implements EnumAsString { + AES256("AES256"); + + private String value; + + EncryptionType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static EncryptionType get(String value) { + if(value == null) + { + return null; + } + + // goes over EncryptionType defined values and compare the inner value with the given one: + for(EncryptionType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return EncryptionType.values().length > 0 ? EncryptionType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/EngagementOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/EngagementOrderBy.java new file mode 100644 index 000000000..70f92d86f --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/EngagementOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum EngagementOrderBy implements EnumAsString { + NONE("NONE"); + + private String value; + + EngagementOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static EngagementOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over EngagementOrderBy defined values and compare the inner value with the given one: + for(EngagementOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return EngagementOrderBy.values().length > 0 ? EngagementOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/EngagementType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/EngagementType.java new file mode 100644 index 000000000..1387abaf0 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/EngagementType.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum EngagementType implements EnumAsString { + CHURN("Churn"); + + private String value; + + EngagementType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static EngagementType get(String value) { + if(value == null) + { + return null; + } + + // goes over EngagementType defined values and compare the inner value with the given one: + for(EngagementType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return EngagementType.values().length > 0 ? EngagementType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/EntitlementOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/EntitlementOrderBy.java new file mode 100644 index 000000000..77da2d2d9 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/EntitlementOrderBy.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum EntitlementOrderBy implements EnumAsString { + PURCHASE_DATE_ASC("PURCHASE_DATE_ASC"), + PURCHASE_DATE_DESC("PURCHASE_DATE_DESC"); + + private String value; + + EntitlementOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static EntitlementOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over EntitlementOrderBy defined values and compare the inner value with the given one: + for(EntitlementOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return EntitlementOrderBy.values().length > 0 ? EntitlementOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/EntityAttribute.java b/KalturaClient/src/main/java/com/kaltura/client/enums/EntityAttribute.java new file mode 100644 index 000000000..570c0a310 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/EntityAttribute.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum EntityAttribute implements EnumAsString { + MEDIA_FILE_LABELS("MEDIA_FILE_LABELS"); + + private String value; + + EntityAttribute(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static EntityAttribute get(String value) { + if(value == null) + { + return null; + } + + // goes over EntityAttribute defined values and compare the inner value with the given one: + for(EntityAttribute item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return EntityAttribute.values().length > 0 ? EntityAttribute.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/EntityReferenceBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/EntityReferenceBy.java new file mode 100644 index 000000000..0aa24d5cf --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/EntityReferenceBy.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum EntityReferenceBy implements EnumAsString { + USER("user"), + HOUSEHOLD("household"); + + private String value; + + EntityReferenceBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static EntityReferenceBy get(String value) { + if(value == null) + { + return null; + } + + // goes over EntityReferenceBy defined values and compare the inner value with the given one: + for(EntityReferenceBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return EntityReferenceBy.values().length > 0 ? EntityReferenceBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/EnumAsInt.java b/KalturaClient/src/main/java/com/kaltura/client/enums/EnumAsInt.java new file mode 100644 index 000000000..f7bb7c1b9 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/EnumAsInt.java @@ -0,0 +1,38 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +import java.io.Serializable; + +/** + * This class is an interface for all kaltura enums that their value is represented as Int + */ +public interface EnumAsInt extends Serializable { + + public int getValue(); +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/EnumAsString.java b/KalturaClient/src/main/java/com/kaltura/client/enums/EnumAsString.java new file mode 100644 index 000000000..85f424a20 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/EnumAsString.java @@ -0,0 +1,38 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +import java.io.Serializable; + +/** + * This class is an interface for all kaltura enums that their value is represented as String + */ +public interface EnumAsString extends Serializable { + + public String getValue(); +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/EpgOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/EpgOrderBy.java new file mode 100644 index 000000000..f768a93b6 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/EpgOrderBy.java @@ -0,0 +1,57 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum EpgOrderBy implements EnumAsString { + /** Place holder for future values */; + + private String value; + + EpgOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static EpgOrderBy get(String value) { + return null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/EventNotificationOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/EventNotificationOrderBy.java new file mode 100644 index 000000000..8f36c42ca --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/EventNotificationOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum EventNotificationOrderBy implements EnumAsString { + NONE("NONE"); + + private String value; + + EventNotificationOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static EventNotificationOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over EventNotificationOrderBy defined values and compare the inner value with the given one: + for(EventNotificationOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return EventNotificationOrderBy.values().length > 0 ? EventNotificationOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/EventNotificationStatus.java b/KalturaClient/src/main/java/com/kaltura/client/enums/EventNotificationStatus.java new file mode 100644 index 000000000..57547818b --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/EventNotificationStatus.java @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum EventNotificationStatus implements EnumAsString { + SENT("SENT"), + FAILED("FAILED"), + SUCCESS("SUCCESS"), + FAILED_TO_SEND("FAILED_TO_SEND"); + + private String value; + + EventNotificationStatus(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static EventNotificationStatus get(String value) { + if(value == null) + { + return null; + } + + // goes over EventNotificationStatus defined values and compare the inner value with the given one: + for(EventNotificationStatus item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return EventNotificationStatus.values().length > 0 ? EventNotificationStatus.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/EvictionPolicyType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/EvictionPolicyType.java new file mode 100644 index 000000000..03eccb633 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/EvictionPolicyType.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum EvictionPolicyType implements EnumAsString { + FIFO("FIFO"), + LIFO("LIFO"); + + private String value; + + EvictionPolicyType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static EvictionPolicyType get(String value) { + if(value == null) + { + return null; + } + + // goes over EvictionPolicyType defined values and compare the inner value with the given one: + for(EvictionPolicyType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return EvictionPolicyType.values().length > 0 ? EvictionPolicyType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/ExportDataType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/ExportDataType.java new file mode 100644 index 000000000..b55069491 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/ExportDataType.java @@ -0,0 +1,71 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ExportDataType implements EnumAsString { + VOD("vod"), + EPG("epg"), + USERS("users"); + + private String value; + + ExportDataType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static ExportDataType get(String value) { + if(value == null) + { + return null; + } + + // goes over ExportDataType defined values and compare the inner value with the given one: + for(ExportDataType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return ExportDataType.values().length > 0 ? ExportDataType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/ExportTaskOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/ExportTaskOrderBy.java new file mode 100644 index 000000000..8197c921a --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/ExportTaskOrderBy.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ExportTaskOrderBy implements EnumAsString { + CREATE_DATE_ASC("CREATE_DATE_ASC"), + CREATE_DATE_DESC("CREATE_DATE_DESC"); + + private String value; + + ExportTaskOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static ExportTaskOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over ExportTaskOrderBy defined values and compare the inner value with the given one: + for(ExportTaskOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return ExportTaskOrderBy.values().length > 0 ? ExportTaskOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/ExportType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/ExportType.java new file mode 100644 index 000000000..3436531cb --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/ExportType.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ExportType implements EnumAsString { + FULL("full"), + INCREMENTAL("incremental"); + + private String value; + + ExportType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static ExportType get(String value) { + if(value == null) + { + return null; + } + + // goes over ExportType defined values and compare the inner value with the given one: + for(ExportType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return ExportType.values().length > 0 ? ExportType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/ExternalChannelProfileOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/ExternalChannelProfileOrderBy.java new file mode 100644 index 000000000..ce7598ba0 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/ExternalChannelProfileOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ExternalChannelProfileOrderBy implements EnumAsString { + NONE("NONE"); + + private String value; + + ExternalChannelProfileOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static ExternalChannelProfileOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over ExternalChannelProfileOrderBy defined values and compare the inner value with the given one: + for(ExternalChannelProfileOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return ExternalChannelProfileOrderBy.values().length > 0 ? ExternalChannelProfileOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/ExternalRecordingResponseProfileOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/ExternalRecordingResponseProfileOrderBy.java new file mode 100644 index 000000000..3c6c08a99 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/ExternalRecordingResponseProfileOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ExternalRecordingResponseProfileOrderBy implements EnumAsString { + NONE("NONE"); + + private String value; + + ExternalRecordingResponseProfileOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static ExternalRecordingResponseProfileOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over ExternalRecordingResponseProfileOrderBy defined values and compare the inner value with the given one: + for(ExternalRecordingResponseProfileOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return ExternalRecordingResponseProfileOrderBy.values().length > 0 ? ExternalRecordingResponseProfileOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/FavoriteOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/FavoriteOrderBy.java new file mode 100644 index 000000000..7b42ac2ba --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/FavoriteOrderBy.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum FavoriteOrderBy implements EnumAsString { + CREATE_DATE_ASC("CREATE_DATE_ASC"), + CREATE_DATE_DESC("CREATE_DATE_DESC"); + + private String value; + + FavoriteOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static FavoriteOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over FavoriteOrderBy defined values and compare the inner value with the given one: + for(FavoriteOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return FavoriteOrderBy.values().length > 0 ? FavoriteOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/FollowTvSeriesOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/FollowTvSeriesOrderBy.java new file mode 100644 index 000000000..c92a7141a --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/FollowTvSeriesOrderBy.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum FollowTvSeriesOrderBy implements EnumAsString { + START_DATE_DESC("START_DATE_DESC"), + START_DATE_ASC("START_DATE_ASC"); + + private String value; + + FollowTvSeriesOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static FollowTvSeriesOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over FollowTvSeriesOrderBy defined values and compare the inner value with the given one: + for(FollowTvSeriesOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return FollowTvSeriesOrderBy.values().length > 0 ? FollowTvSeriesOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/GroupByField.java b/KalturaClient/src/main/java/com/kaltura/client/enums/GroupByField.java new file mode 100644 index 000000000..ab128475b --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/GroupByField.java @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum GroupByField implements EnumAsString { + MEDIA_TYPE_ID("media_type_id"), + SUPPRESSED("suppressed"), + CRID("crid"), + LINEAR_MEDIA_ID("linear_media_id"), + NAME("name"); + + private String value; + + GroupByField(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static GroupByField get(String value) { + if(value == null) + { + return null; + } + + // goes over GroupByField defined values and compare the inner value with the given one: + for(GroupByField item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return GroupByField.values().length > 0 ? GroupByField.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/GroupByOrder.java b/KalturaClient/src/main/java/com/kaltura/client/enums/GroupByOrder.java new file mode 100644 index 000000000..7e6cba3e4 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/GroupByOrder.java @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum GroupByOrder implements EnumAsString { + DEFAULTORDER("defaultOrder"), + COUNT_ASC("count_asc"), + COUNT_DESC("count_desc"), + VALUE_ASC("value_asc"), + VALUE_DESC("value_desc"); + + private String value; + + GroupByOrder(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static GroupByOrder get(String value) { + if(value == null) + { + return null; + } + + // goes over GroupByOrder defined values and compare the inner value with the given one: + for(GroupByOrder item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return GroupByOrder.values().length > 0 ? GroupByOrder.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/GroupingOption.java b/KalturaClient/src/main/java/com/kaltura/client/enums/GroupingOption.java new file mode 100644 index 000000000..cf50c0629 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/GroupingOption.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum GroupingOption implements EnumAsString { + OMIT("Omit"), + INCLUDE("Include"); + + private String value; + + GroupingOption(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static GroupingOption get(String value) { + if(value == null) + { + return null; + } + + // goes over GroupingOption defined values and compare the inner value with the given one: + for(GroupingOption item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return GroupingOption.values().length > 0 ? GroupingOption.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/HouseholdCouponOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/HouseholdCouponOrderBy.java new file mode 100644 index 000000000..f8d788d7f --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/HouseholdCouponOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum HouseholdCouponOrderBy implements EnumAsString { + NONE("NONE"); + + private String value; + + HouseholdCouponOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static HouseholdCouponOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over HouseholdCouponOrderBy defined values and compare the inner value with the given one: + for(HouseholdCouponOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return HouseholdCouponOrderBy.values().length > 0 ? HouseholdCouponOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/HouseholdDeviceOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/HouseholdDeviceOrderBy.java new file mode 100644 index 000000000..e1e2cdecf --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/HouseholdDeviceOrderBy.java @@ -0,0 +1,71 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum HouseholdDeviceOrderBy implements EnumAsString { + NONE("NONE"), + CREATED_DATE_ASC("CREATED_DATE_ASC"), + CREATED_DATE_DESC("CREATED_DATE_DESC"); + + private String value; + + HouseholdDeviceOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static HouseholdDeviceOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over HouseholdDeviceOrderBy defined values and compare the inner value with the given one: + for(HouseholdDeviceOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return HouseholdDeviceOrderBy.values().length > 0 ? HouseholdDeviceOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/HouseholdFrequencyType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/HouseholdFrequencyType.java new file mode 100644 index 000000000..917ce090e --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/HouseholdFrequencyType.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum HouseholdFrequencyType implements EnumAsString { + DEVICES("devices"), + USERS("users"); + + private String value; + + HouseholdFrequencyType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static HouseholdFrequencyType get(String value) { + if(value == null) + { + return null; + } + + // goes over HouseholdFrequencyType defined values and compare the inner value with the given one: + for(HouseholdFrequencyType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return HouseholdFrequencyType.values().length > 0 ? HouseholdFrequencyType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/HouseholdOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/HouseholdOrderBy.java new file mode 100644 index 000000000..f21859f5b --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/HouseholdOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum HouseholdOrderBy implements EnumAsString { + CREATE_DATE_DESC("CREATE_DATE_DESC"); + + private String value; + + HouseholdOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static HouseholdOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over HouseholdOrderBy defined values and compare the inner value with the given one: + for(HouseholdOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return HouseholdOrderBy.values().length > 0 ? HouseholdOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/HouseholdPaymentGatewaySelectedBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/HouseholdPaymentGatewaySelectedBy.java new file mode 100644 index 000000000..01dc3747e --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/HouseholdPaymentGatewaySelectedBy.java @@ -0,0 +1,71 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum HouseholdPaymentGatewaySelectedBy implements EnumAsString { + NONE("none"), + ACCOUNT("account"), + HOUSEHOLD("household"); + + private String value; + + HouseholdPaymentGatewaySelectedBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static HouseholdPaymentGatewaySelectedBy get(String value) { + if(value == null) + { + return null; + } + + // goes over HouseholdPaymentGatewaySelectedBy defined values and compare the inner value with the given one: + for(HouseholdPaymentGatewaySelectedBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return HouseholdPaymentGatewaySelectedBy.values().length > 0 ? HouseholdPaymentGatewaySelectedBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/HouseholdRestriction.java b/KalturaClient/src/main/java/com/kaltura/client/enums/HouseholdRestriction.java new file mode 100644 index 000000000..c3127e606 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/HouseholdRestriction.java @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum HouseholdRestriction implements EnumAsString { + NOT_RESTRICTED("not_restricted"), + USER_MASTER_RESTRICTED("user_master_restricted"), + DEVICE_MASTER_RESTRICTED("device_master_restricted"), + DEVICE_USER_MASTER_RESTRICTED("device_user_master_restricted"); + + private String value; + + HouseholdRestriction(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static HouseholdRestriction get(String value) { + if(value == null) + { + return null; + } + + // goes over HouseholdRestriction defined values and compare the inner value with the given one: + for(HouseholdRestriction item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return HouseholdRestriction.values().length > 0 ? HouseholdRestriction.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/HouseholdSegmentOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/HouseholdSegmentOrderBy.java new file mode 100644 index 000000000..662a55e09 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/HouseholdSegmentOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum HouseholdSegmentOrderBy implements EnumAsString { + NONE("NONE"); + + private String value; + + HouseholdSegmentOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static HouseholdSegmentOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over HouseholdSegmentOrderBy defined values and compare the inner value with the given one: + for(HouseholdSegmentOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return HouseholdSegmentOrderBy.values().length > 0 ? HouseholdSegmentOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/HouseholdState.java b/KalturaClient/src/main/java/com/kaltura/client/enums/HouseholdState.java new file mode 100644 index 000000000..b1cc2e4f3 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/HouseholdState.java @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum HouseholdState implements EnumAsString { + OK("ok"), + CREATED_WITHOUT_NPVR_ACCOUNT("created_without_npvr_account"), + SUSPENDED("suspended"), + NO_USERS_IN_HOUSEHOLD("no_users_in_household"), + PENDING("pending"); + + private String value; + + HouseholdState(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static HouseholdState get(String value) { + if(value == null) + { + return null; + } + + // goes over HouseholdState defined values and compare the inner value with the given one: + for(HouseholdState item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return HouseholdState.values().length > 0 ? HouseholdState.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/HouseholdSuspensionState.java b/KalturaClient/src/main/java/com/kaltura/client/enums/HouseholdSuspensionState.java new file mode 100644 index 000000000..1619ccff8 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/HouseholdSuspensionState.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum HouseholdSuspensionState implements EnumAsString { + NOT_SUSPENDED("NOT_SUSPENDED"), + SUSPENDED("SUSPENDED"); + + private String value; + + HouseholdSuspensionState(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static HouseholdSuspensionState get(String value) { + if(value == null) + { + return null; + } + + // goes over HouseholdSuspensionState defined values and compare the inner value with the given one: + for(HouseholdSuspensionState item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return HouseholdSuspensionState.values().length > 0 ? HouseholdSuspensionState.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/HouseholdUserOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/HouseholdUserOrderBy.java new file mode 100644 index 000000000..c669b0e2a --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/HouseholdUserOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum HouseholdUserOrderBy implements EnumAsString { + NONE("NONE"); + + private String value; + + HouseholdUserOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static HouseholdUserOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over HouseholdUserOrderBy defined values and compare the inner value with the given one: + for(HouseholdUserOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return HouseholdUserOrderBy.values().length > 0 ? HouseholdUserOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/HouseholdUserStatus.java b/KalturaClient/src/main/java/com/kaltura/client/enums/HouseholdUserStatus.java new file mode 100644 index 000000000..3edad239e --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/HouseholdUserStatus.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum HouseholdUserStatus implements EnumAsString { + OK("OK"), + PENDING("PENDING"); + + private String value; + + HouseholdUserStatus(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static HouseholdUserStatus get(String value) { + if(value == null) + { + return null; + } + + // goes over HouseholdUserStatus defined values and compare the inner value with the given one: + for(HouseholdUserStatus item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return HouseholdUserStatus.values().length > 0 ? HouseholdUserStatus.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/ImageObjectType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/ImageObjectType.java new file mode 100644 index 000000000..0dfa92cf3 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/ImageObjectType.java @@ -0,0 +1,75 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ImageObjectType implements EnumAsString { + MEDIA_ASSET("MEDIA_ASSET"), + PROGRAM_ASSET("PROGRAM_ASSET"), + CHANNEL("CHANNEL"), + CATEGORY("CATEGORY"), + PARTNER("PARTNER"), + IMAGE_TYPE("IMAGE_TYPE"), + PROGRAM_GROUP("PROGRAM_GROUP"); + + private String value; + + ImageObjectType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static ImageObjectType get(String value) { + if(value == null) + { + return null; + } + + // goes over ImageObjectType defined values and compare the inner value with the given one: + for(ImageObjectType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return ImageObjectType.values().length > 0 ? ImageObjectType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/ImageOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/ImageOrderBy.java new file mode 100644 index 000000000..b0814ff1e --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/ImageOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ImageOrderBy implements EnumAsString { + NONE("NONE"); + + private String value; + + ImageOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static ImageOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over ImageOrderBy defined values and compare the inner value with the given one: + for(ImageOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return ImageOrderBy.values().length > 0 ? ImageOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/ImageStatus.java b/KalturaClient/src/main/java/com/kaltura/client/enums/ImageStatus.java new file mode 100644 index 000000000..634342785 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/ImageStatus.java @@ -0,0 +1,71 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ImageStatus implements EnumAsString { + PENDING("PENDING"), + READY("READY"), + FAILED("FAILED"); + + private String value; + + ImageStatus(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static ImageStatus get(String value) { + if(value == null) + { + return null; + } + + // goes over ImageStatus defined values and compare the inner value with the given one: + for(ImageStatus item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return ImageStatus.values().length > 0 ? ImageStatus.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/ImageTypeOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/ImageTypeOrderBy.java new file mode 100644 index 000000000..7781123bc --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/ImageTypeOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ImageTypeOrderBy implements EnumAsString { + NONE("NONE"); + + private String value; + + ImageTypeOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static ImageTypeOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over ImageTypeOrderBy defined values and compare the inner value with the given one: + for(ImageTypeOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return ImageTypeOrderBy.values().length > 0 ? ImageTypeOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/InboxMessageOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/InboxMessageOrderBy.java new file mode 100644 index 000000000..0e1a2da5c --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/InboxMessageOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum InboxMessageOrderBy implements EnumAsString { + NONE("NONE"); + + private String value; + + InboxMessageOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static InboxMessageOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over InboxMessageOrderBy defined values and compare the inner value with the given one: + for(InboxMessageOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return InboxMessageOrderBy.values().length > 0 ? InboxMessageOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/InboxMessageStatus.java b/KalturaClient/src/main/java/com/kaltura/client/enums/InboxMessageStatus.java new file mode 100644 index 000000000..e6ee32643 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/InboxMessageStatus.java @@ -0,0 +1,71 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum InboxMessageStatus implements EnumAsString { + UNREAD("Unread"), + READ("Read"), + DELETED("Deleted"); + + private String value; + + InboxMessageStatus(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static InboxMessageStatus get(String value) { + if(value == null) + { + return null; + } + + // goes over InboxMessageStatus defined values and compare the inner value with the given one: + for(InboxMessageStatus item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return InboxMessageStatus.values().length > 0 ? InboxMessageStatus.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/InboxMessageType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/InboxMessageType.java new file mode 100644 index 000000000..d82517169 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/InboxMessageType.java @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum InboxMessageType implements EnumAsString { + SYSTEMANNOUNCEMENT("SystemAnnouncement"), + FOLLOWED("Followed"), + ENGAGEMENT("Engagement"), + INTEREST("Interest"), + CAMPAIGN("Campaign"); + + private String value; + + InboxMessageType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static InboxMessageType get(String value) { + if(value == null) + { + return null; + } + + // goes over InboxMessageType defined values and compare the inner value with the given one: + for(InboxMessageType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return InboxMessageType.values().length > 0 ? InboxMessageType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/IngestEpgProgramResultOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/IngestEpgProgramResultOrderBy.java new file mode 100644 index 000000000..8e06b5b94 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/IngestEpgProgramResultOrderBy.java @@ -0,0 +1,79 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum IngestEpgProgramResultOrderBy implements EnumAsString { + NONE("NONE"), + EXTERNAL_PROGRAM_ID_DESC("EXTERNAL_PROGRAM_ID_DESC"), + EXTERNAL_PROGRAM_ID_ASC("EXTERNAL_PROGRAM_ID_ASC"), + LINEAR_CHANNEL_ID_DESC("LINEAR_CHANNEL_ID_DESC"), + LINEAR_CHANNEL_ID_ASC("LINEAR_CHANNEL_ID_ASC"), + INDEX_IN_FILE_DESC("INDEX_IN_FILE_DESC"), + INDEX_IN_FILE_ASC("INDEX_IN_FILE_ASC"), + START_DATE_DESC("START_DATE_DESC"), + START_DATE_ASC("START_DATE_ASC"), + SEVERITY_DESC("SEVERITY_DESC"), + SEVERITY_ASC("SEVERITY_ASC"); + + private String value; + + IngestEpgProgramResultOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static IngestEpgProgramResultOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over IngestEpgProgramResultOrderBy defined values and compare the inner value with the given one: + for(IngestEpgProgramResultOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return IngestEpgProgramResultOrderBy.values().length > 0 ? IngestEpgProgramResultOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/IngestEpgProgramStatus.java b/KalturaClient/src/main/java/com/kaltura/client/enums/IngestEpgProgramStatus.java new file mode 100644 index 000000000..f4de62864 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/IngestEpgProgramStatus.java @@ -0,0 +1,71 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum IngestEpgProgramStatus implements EnumAsString { + FAILURE("FAILURE"), + WARNING("WARNING"), + SUCCESS("SUCCESS"); + + private String value; + + IngestEpgProgramStatus(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static IngestEpgProgramStatus get(String value) { + if(value == null) + { + return null; + } + + // goes over IngestEpgProgramStatus defined values and compare the inner value with the given one: + for(IngestEpgProgramStatus item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return IngestEpgProgramStatus.values().length > 0 ? IngestEpgProgramStatus.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/IngestProfileAutofillPolicy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/IngestProfileAutofillPolicy.java new file mode 100644 index 000000000..a3408bdd7 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/IngestProfileAutofillPolicy.java @@ -0,0 +1,71 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum IngestProfileAutofillPolicy implements EnumAsString { + REJECT("REJECT"), + AUTOFILL("AUTOFILL"), + KEEP_HOLES("KEEP_HOLES"); + + private String value; + + IngestProfileAutofillPolicy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static IngestProfileAutofillPolicy get(String value) { + if(value == null) + { + return null; + } + + // goes over IngestProfileAutofillPolicy defined values and compare the inner value with the given one: + for(IngestProfileAutofillPolicy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return IngestProfileAutofillPolicy.values().length > 0 ? IngestProfileAutofillPolicy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/IngestProfileOverlapPolicy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/IngestProfileOverlapPolicy.java new file mode 100644 index 000000000..574314719 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/IngestProfileOverlapPolicy.java @@ -0,0 +1,71 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum IngestProfileOverlapPolicy implements EnumAsString { + REJECT("REJECT"), + CUT_SOURCE("CUT_SOURCE"), + CUT_TARGET("CUT_TARGET"); + + private String value; + + IngestProfileOverlapPolicy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static IngestProfileOverlapPolicy get(String value) { + if(value == null) + { + return null; + } + + // goes over IngestProfileOverlapPolicy defined values and compare the inner value with the given one: + for(IngestProfileOverlapPolicy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return IngestProfileOverlapPolicy.values().length > 0 ? IngestProfileOverlapPolicy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/IngestStatus.java b/KalturaClient/src/main/java/com/kaltura/client/enums/IngestStatus.java new file mode 100644 index 000000000..0b1a4084a --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/IngestStatus.java @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum IngestStatus implements EnumAsString { + TOTAL_FAILURE("TOTAL_FAILURE"), + PARTIAL_FAILURE("PARTIAL_FAILURE"), + WARNING("WARNING"), + IN_PROGRESS("IN_PROGRESS"), + SUCCESS("SUCCESS"); + + private String value; + + IngestStatus(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static IngestStatus get(String value) { + if(value == null) + { + return null; + } + + // goes over IngestStatus defined values and compare the inner value with the given one: + for(IngestStatus item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return IngestStatus.values().length > 0 ? IngestStatus.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/IotOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/IotOrderBy.java new file mode 100644 index 000000000..a8df4fdd5 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/IotOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum IotOrderBy implements EnumAsString { + NONE("NONE"); + + private String value; + + IotOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static IotOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over IotOrderBy defined values and compare the inner value with the given one: + for(IotOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return IotOrderBy.values().length > 0 ? IotOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/IotProfileOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/IotProfileOrderBy.java new file mode 100644 index 000000000..a0985d4cd --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/IotProfileOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum IotProfileOrderBy implements EnumAsString { + NONE("NONE"); + + private String value; + + IotProfileOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static IotProfileOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over IotProfileOrderBy defined values and compare the inner value with the given one: + for(IotProfileOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return IotProfileOrderBy.values().length > 0 ? IotProfileOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/LabelOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/LabelOrderBy.java new file mode 100644 index 000000000..6a4aeeeeb --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/LabelOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum LabelOrderBy implements EnumAsString { + NONE("NONE"); + + private String value; + + LabelOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static LabelOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over LabelOrderBy defined values and compare the inner value with the given one: + for(LabelOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return LabelOrderBy.values().length > 0 ? LabelOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/LanguageOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/LanguageOrderBy.java new file mode 100644 index 000000000..6c431d1b8 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/LanguageOrderBy.java @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum LanguageOrderBy implements EnumAsString { + SYSTEM_NAME_ASC("SYSTEM_NAME_ASC"), + SYSTEM_NAME_DESC("SYSTEM_NAME_DESC"), + CODE_ASC("CODE_ASC"), + CODE_DESC("CODE_DESC"); + + private String value; + + LanguageOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static LanguageOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over LanguageOrderBy defined values and compare the inner value with the given one: + for(LanguageOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return LanguageOrderBy.values().length > 0 ? LanguageOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/LinearChannelType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/LinearChannelType.java new file mode 100644 index 000000000..de233faa0 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/LinearChannelType.java @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum LinearChannelType implements EnumAsString { + UNKNOWN("UNKNOWN"), + DTT("DTT"), + OTT("OTT"), + DTT_AND_OTT("DTT_AND_OTT"), + VRM_EXPORT("VRM_EXPORT"); + + private String value; + + LinearChannelType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static LinearChannelType get(String value) { + if(value == null) + { + return null; + } + + // goes over LinearChannelType defined values and compare the inner value with the given one: + for(LinearChannelType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return LinearChannelType.values().length > 0 ? LinearChannelType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/LineupRegionalChannelOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/LineupRegionalChannelOrderBy.java new file mode 100644 index 000000000..f24eaa358 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/LineupRegionalChannelOrderBy.java @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum LineupRegionalChannelOrderBy implements EnumAsString { + LCN_ASC("LCN_ASC"), + LCN_DESC("LCN_DESC"), + NAME_ASC("NAME_ASC"), + NAME_DESC("NAME_DESC"); + + private String value; + + LineupRegionalChannelOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static LineupRegionalChannelOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over LineupRegionalChannelOrderBy defined values and compare the inner value with the given one: + for(LineupRegionalChannelOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return LineupRegionalChannelOrderBy.values().length > 0 ? LineupRegionalChannelOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/ListGroupsRepresentativesOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/ListGroupsRepresentativesOrderBy.java new file mode 100644 index 000000000..2778a2b79 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/ListGroupsRepresentativesOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ListGroupsRepresentativesOrderBy implements EnumAsString { + NONE("None"); + + private String value; + + ListGroupsRepresentativesOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static ListGroupsRepresentativesOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over ListGroupsRepresentativesOrderBy defined values and compare the inner value with the given one: + for(ListGroupsRepresentativesOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return ListGroupsRepresentativesOrderBy.values().length > 0 ? ListGroupsRepresentativesOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/ManualCollectionAssetType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/ManualCollectionAssetType.java new file mode 100644 index 000000000..48e95e77d --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/ManualCollectionAssetType.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ManualCollectionAssetType implements EnumAsString { + MEDIA("media"), + EPG("epg"); + + private String value; + + ManualCollectionAssetType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static ManualCollectionAssetType get(String value) { + if(value == null) + { + return null; + } + + // goes over ManualCollectionAssetType defined values and compare the inner value with the given one: + for(ManualCollectionAssetType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return ManualCollectionAssetType.values().length > 0 ? ManualCollectionAssetType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/MathemticalOperatorType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/MathemticalOperatorType.java new file mode 100644 index 000000000..8ee236037 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/MathemticalOperatorType.java @@ -0,0 +1,71 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum MathemticalOperatorType implements EnumAsString { + COUNT("count"), + SUM("sum"), + AVG("avg"); + + private String value; + + MathemticalOperatorType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static MathemticalOperatorType get(String value) { + if(value == null) + { + return null; + } + + // goes over MathemticalOperatorType defined values and compare the inner value with the given one: + for(MathemticalOperatorType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return MathemticalOperatorType.values().length > 0 ? MathemticalOperatorType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/MediaFileDynamicDataOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/MediaFileDynamicDataOrderBy.java new file mode 100644 index 000000000..15b2fb793 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/MediaFileDynamicDataOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum MediaFileDynamicDataOrderBy implements EnumAsString { + NONE("NONE"); + + private String value; + + MediaFileDynamicDataOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static MediaFileDynamicDataOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over MediaFileDynamicDataOrderBy defined values and compare the inner value with the given one: + for(MediaFileDynamicDataOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return MediaFileDynamicDataOrderBy.values().length > 0 ? MediaFileDynamicDataOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/MediaFileOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/MediaFileOrderBy.java new file mode 100644 index 000000000..d25e65466 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/MediaFileOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum MediaFileOrderBy implements EnumAsString { + NONE("NONE"); + + private String value; + + MediaFileOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static MediaFileOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over MediaFileOrderBy defined values and compare the inner value with the given one: + for(MediaFileOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return MediaFileOrderBy.values().length > 0 ? MediaFileOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/MediaFileStreamerType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/MediaFileStreamerType.java new file mode 100644 index 000000000..6f279d39f --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/MediaFileStreamerType.java @@ -0,0 +1,74 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum MediaFileStreamerType implements EnumAsString { + APPLE_HTTP("APPLE_HTTP"), + MPEG_DASH("MPEG_DASH"), + URL("URL"), + SMOOTH_STREAMING("SMOOTH_STREAMING"), + MULTICAST("MULTICAST"), + NONE("NONE"); + + private String value; + + MediaFileStreamerType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static MediaFileStreamerType get(String value) { + if(value == null) + { + return null; + } + + // goes over MediaFileStreamerType defined values and compare the inner value with the given one: + for(MediaFileStreamerType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return MediaFileStreamerType.values().length > 0 ? MediaFileStreamerType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/MediaFileTypeQuality.java b/KalturaClient/src/main/java/com/kaltura/client/enums/MediaFileTypeQuality.java new file mode 100644 index 000000000..054a9942e --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/MediaFileTypeQuality.java @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum MediaFileTypeQuality implements EnumAsString { + ADAPTIVE("ADAPTIVE"), + SD("SD"), + HD_720("HD_720"), + HD_1080("HD_1080"), + UHD_4K("UHD_4K"); + + private String value; + + MediaFileTypeQuality(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static MediaFileTypeQuality get(String value) { + if(value == null) + { + return null; + } + + // goes over MediaFileTypeQuality defined values and compare the inner value with the given one: + for(MediaFileTypeQuality item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return MediaFileTypeQuality.values().length > 0 ? MediaFileTypeQuality.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/MessageTemplateType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/MessageTemplateType.java new file mode 100644 index 000000000..99c1c49c1 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/MessageTemplateType.java @@ -0,0 +1,74 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum MessageTemplateType implements EnumAsString { + SERIES("Series"), + REMINDER("Reminder"), + CHURN("Churn"), + SERIESREMINDER("SeriesReminder"), + INTERESTVOD("InterestVod"), + INTERESTEPG("InterestEPG"); + + private String value; + + MessageTemplateType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static MessageTemplateType get(String value) { + if(value == null) + { + return null; + } + + // goes over MessageTemplateType defined values and compare the inner value with the given one: + for(MessageTemplateType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return MessageTemplateType.values().length > 0 ? MessageTemplateType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/MetaDataType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/MetaDataType.java new file mode 100644 index 000000000..012a49dcb --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/MetaDataType.java @@ -0,0 +1,74 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum MetaDataType implements EnumAsString { + STRING("STRING"), + MULTILINGUAL_STRING("MULTILINGUAL_STRING"), + NUMBER("NUMBER"), + BOOLEAN("BOOLEAN"), + DATE("DATE"), + RELEATED_ENTITY("RELEATED_ENTITY"); + + private String value; + + MetaDataType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static MetaDataType get(String value) { + if(value == null) + { + return null; + } + + // goes over MetaDataType defined values and compare the inner value with the given one: + for(MetaDataType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return MetaDataType.values().length > 0 ? MetaDataType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/MetaOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/MetaOrderBy.java new file mode 100644 index 000000000..7bb68726f --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/MetaOrderBy.java @@ -0,0 +1,76 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum MetaOrderBy implements EnumAsString { + NAME_ASC("NAME_ASC"), + NAME_DESC("NAME_DESC"), + SYSTEM_NAME_ASC("SYSTEM_NAME_ASC"), + SYSTEM_NAME_DESC("SYSTEM_NAME_DESC"), + CREATE_DATE_ASC("CREATE_DATE_ASC"), + CREATE_DATE_DESC("CREATE_DATE_DESC"), + UPDATE_DATE_ASC("UPDATE_DATE_ASC"), + UPDATE_DATE_DESC("UPDATE_DATE_DESC"); + + private String value; + + MetaOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static MetaOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over MetaOrderBy defined values and compare the inner value with the given one: + for(MetaOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return MetaOrderBy.values().length > 0 ? MetaOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/MetaTagOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/MetaTagOrderBy.java new file mode 100644 index 000000000..78ca978d4 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/MetaTagOrderBy.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum MetaTagOrderBy implements EnumAsString { + META_ASC("META_ASC"), + META_DESC("META_DESC"); + + private String value; + + MetaTagOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static MetaTagOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over MetaTagOrderBy defined values and compare the inner value with the given one: + for(MetaTagOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return MetaTagOrderBy.values().length > 0 ? MetaTagOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/MonetizationType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/MonetizationType.java new file mode 100644 index 000000000..6d951c12b --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/MonetizationType.java @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum MonetizationType implements EnumAsString { + PPV("ppv"), + SUBSCRIPTION("subscription"), + BOXSET("boxset"), + ANY("any"), + PPV_LIVE("ppv_live"); + + private String value; + + MonetizationType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static MonetizationType get(String value) { + if(value == null) + { + return null; + } + + // goes over MonetizationType defined values and compare the inner value with the given one: + for(MonetizationType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return MonetizationType.values().length > 0 ? MonetizationType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/NotWatchedReturnStrategy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/NotWatchedReturnStrategy.java new file mode 100644 index 000000000..e455e4582 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/NotWatchedReturnStrategy.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum NotWatchedReturnStrategy implements EnumAsString { + RETURN_NO_NEXT_EPISODE("RETURN_NO_NEXT_EPISODE"), + RETURN_FIRST_EPISODE("RETURN_FIRST_EPISODE"); + + private String value; + + NotWatchedReturnStrategy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static NotWatchedReturnStrategy get(String value) { + if(value == null) + { + return null; + } + + // goes over NotWatchedReturnStrategy defined values and compare the inner value with the given one: + for(NotWatchedReturnStrategy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return NotWatchedReturnStrategy.values().length > 0 ? NotWatchedReturnStrategy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/NotificationType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/NotificationType.java new file mode 100644 index 000000000..f8ed28ab8 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/NotificationType.java @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum NotificationType implements EnumAsString { + ANNOUNCEMENT("announcement"), + SYSTEM("system"), + REMINDER("Reminder"), + SERIES_REMINDER("series_reminder"); + + private String value; + + NotificationType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static NotificationType get(String value) { + if(value == null) + { + return null; + } + + // goes over NotificationType defined values and compare the inner value with the given one: + for(NotificationType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return NotificationType.values().length > 0 ? NotificationType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/OTTUserOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/OTTUserOrderBy.java new file mode 100644 index 000000000..1c4cb20f2 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/OTTUserOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum OTTUserOrderBy implements EnumAsString { + NONE("NONE"); + + private String value; + + OTTUserOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static OTTUserOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over OTTUserOrderBy defined values and compare the inner value with the given one: + for(OTTUserOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return OTTUserOrderBy.values().length > 0 ? OTTUserOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/ObjectState.java b/KalturaClient/src/main/java/com/kaltura/client/enums/ObjectState.java new file mode 100644 index 000000000..81019856b --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/ObjectState.java @@ -0,0 +1,71 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ObjectState implements EnumAsString { + INACTIVE("INACTIVE"), + ACTIVE("ACTIVE"), + ARCHIVE("ARCHIVE"); + + private String value; + + ObjectState(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static ObjectState get(String value) { + if(value == null) + { + return null; + } + + // goes over ObjectState defined values and compare the inner value with the given one: + for(ObjectState item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return ObjectState.values().length > 0 ? ObjectState.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/ObjectVirtualAssetInfoType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/ObjectVirtualAssetInfoType.java new file mode 100644 index 000000000..f0bcfb5c0 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/ObjectVirtualAssetInfoType.java @@ -0,0 +1,74 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ObjectVirtualAssetInfoType implements EnumAsString { + SUBSCRIPTION("Subscription"), + SEGMENT("Segment"), + CATEGORY("Category"), + TVOD("Tvod"), + BOXSET("Boxset"), + PAGO("PAGO"); + + private String value; + + ObjectVirtualAssetInfoType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static ObjectVirtualAssetInfoType get(String value) { + if(value == null) + { + return null; + } + + // goes over ObjectVirtualAssetInfoType defined values and compare the inner value with the given one: + for(ObjectVirtualAssetInfoType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return ObjectVirtualAssetInfoType.values().length > 0 ? ObjectVirtualAssetInfoType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/ParentalRuleOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/ParentalRuleOrderBy.java new file mode 100644 index 000000000..179040735 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/ParentalRuleOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ParentalRuleOrderBy implements EnumAsString { + PARTNER_SORT_VALUE("PARTNER_SORT_VALUE"); + + private String value; + + ParentalRuleOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static ParentalRuleOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over ParentalRuleOrderBy defined values and compare the inner value with the given one: + for(ParentalRuleOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return ParentalRuleOrderBy.values().length > 0 ? ParentalRuleOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/ParentalRuleType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/ParentalRuleType.java new file mode 100644 index 000000000..e8bb6f40d --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/ParentalRuleType.java @@ -0,0 +1,71 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ParentalRuleType implements EnumAsString { + ALL("ALL"), + MOVIES("MOVIES"), + TV_SERIES("TV_SERIES"); + + private String value; + + ParentalRuleType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static ParentalRuleType get(String value) { + if(value == null) + { + return null; + } + + // goes over ParentalRuleType defined values and compare the inner value with the given one: + for(ParentalRuleType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return ParentalRuleType.values().length > 0 ? ParentalRuleType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/PartnerConfigurationOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/PartnerConfigurationOrderBy.java new file mode 100644 index 000000000..e21071d30 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/PartnerConfigurationOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum PartnerConfigurationOrderBy implements EnumAsString { + NONE("NONE"); + + private String value; + + PartnerConfigurationOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static PartnerConfigurationOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over PartnerConfigurationOrderBy defined values and compare the inner value with the given one: + for(PartnerConfigurationOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return PartnerConfigurationOrderBy.values().length > 0 ? PartnerConfigurationOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/PartnerConfigurationType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/PartnerConfigurationType.java new file mode 100644 index 000000000..f9fe132f7 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/PartnerConfigurationType.java @@ -0,0 +1,83 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum PartnerConfigurationType implements EnumAsString { + DEFAULTPAYMENTGATEWAY("DefaultPaymentGateway"), + ENABLEPAYMENTGATEWAYSELECTION("EnablePaymentGatewaySelection"), + OSSADAPTER("OSSAdapter"), + CONCURRENCY("Concurrency"), + GENERAL("General"), + OBJECTVIRTUALASSET("ObjectVirtualAsset"), + COMMERCE("Commerce"), + PLAYBACK("Playback"), + PAYMENT("Payment"), + CATALOG("Catalog"), + SECURITY("Security"), + OPC("Opc"), + BASE("Base"), + CUSTOMFIELDS("CustomFields"), + DEFAULTPARENTALSETTINGS("DefaultParentalSettings"); + + private String value; + + PartnerConfigurationType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static PartnerConfigurationType get(String value) { + if(value == null) + { + return null; + } + + // goes over PartnerConfigurationType defined values and compare the inner value with the given one: + for(PartnerConfigurationType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return PartnerConfigurationType.values().length > 0 ? PartnerConfigurationType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/PasswordPolicyOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/PasswordPolicyOrderBy.java new file mode 100644 index 000000000..f540cb0f2 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/PasswordPolicyOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum PasswordPolicyOrderBy implements EnumAsString { + NONE("NONE"); + + private String value; + + PasswordPolicyOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static PasswordPolicyOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over PasswordPolicyOrderBy defined values and compare the inner value with the given one: + for(PasswordPolicyOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return PasswordPolicyOrderBy.values().length > 0 ? PasswordPolicyOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/PaymentMethodProfileOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/PaymentMethodProfileOrderBy.java new file mode 100644 index 000000000..65b050afa --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/PaymentMethodProfileOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum PaymentMethodProfileOrderBy implements EnumAsString { + NONE("NONE"); + + private String value; + + PaymentMethodProfileOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static PaymentMethodProfileOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over PaymentMethodProfileOrderBy defined values and compare the inner value with the given one: + for(PaymentMethodProfileOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return PaymentMethodProfileOrderBy.values().length > 0 ? PaymentMethodProfileOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/PaymentMethodType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/PaymentMethodType.java new file mode 100644 index 000000000..728809299 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/PaymentMethodType.java @@ -0,0 +1,82 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum PaymentMethodType implements EnumAsString { + UNKNOWN("unknown"), + CREDIT_CARD("credit_card"), + SMS("sms"), + PAY_PAL("pay_pal"), + DEBIT_CARD("debit_card"), + IDEAL("ideal"), + INCASO("incaso"), + GIFT("gift"), + VISA("visa"), + MASTER_CARD("master_card"), + IN_APP("in_app"), + M1("m1"), + CHANGE_SUBSCRIPTION("change_subscription"), + OFFLINE("offline"); + + private String value; + + PaymentMethodType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static PaymentMethodType get(String value) { + if(value == null) + { + return null; + } + + // goes over PaymentMethodType defined values and compare the inner value with the given one: + for(PaymentMethodType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return PaymentMethodType.values().length > 0 ? PaymentMethodType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/PermissionItemOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/PermissionItemOrderBy.java new file mode 100644 index 000000000..9018d9bbc --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/PermissionItemOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum PermissionItemOrderBy implements EnumAsString { + NONE("NONE"); + + private String value; + + PermissionItemOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static PermissionItemOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over PermissionItemOrderBy defined values and compare the inner value with the given one: + for(PermissionItemOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return PermissionItemOrderBy.values().length > 0 ? PermissionItemOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/PermissionOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/PermissionOrderBy.java new file mode 100644 index 000000000..d171a26e6 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/PermissionOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum PermissionOrderBy implements EnumAsString { + NONE("NONE"); + + private String value; + + PermissionOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static PermissionOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over PermissionOrderBy defined values and compare the inner value with the given one: + for(PermissionOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return PermissionOrderBy.values().length > 0 ? PermissionOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/PermissionType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/PermissionType.java new file mode 100644 index 000000000..a9ffd54a8 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/PermissionType.java @@ -0,0 +1,71 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum PermissionType implements EnumAsString { + NORMAL("NORMAL"), + GROUP("GROUP"), + SPECIAL_FEATURE("SPECIAL_FEATURE"); + + private String value; + + PermissionType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static PermissionType get(String value) { + if(value == null) + { + return null; + } + + // goes over PermissionType defined values and compare the inner value with the given one: + for(PermissionType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return PermissionType.values().length > 0 ? PermissionType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/PersonalAssetSelectionOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/PersonalAssetSelectionOrderBy.java new file mode 100644 index 000000000..a13c42358 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/PersonalAssetSelectionOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum PersonalAssetSelectionOrderBy implements EnumAsString { + ASSET_SELECTION_DATE_DESC("ASSET_SELECTION_DATE_DESC"); + + private String value; + + PersonalAssetSelectionOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static PersonalAssetSelectionOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over PersonalAssetSelectionOrderBy defined values and compare the inner value with the given one: + for(PersonalAssetSelectionOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return PersonalAssetSelectionOrderBy.values().length > 0 ? PersonalAssetSelectionOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/PersonalFeedOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/PersonalFeedOrderBy.java new file mode 100644 index 000000000..7175a6fe7 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/PersonalFeedOrderBy.java @@ -0,0 +1,76 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum PersonalFeedOrderBy implements EnumAsString { + RELEVANCY_DESC("RELEVANCY_DESC"), + NAME_ASC("NAME_ASC"), + NAME_DESC("NAME_DESC"), + VIEWS_DESC("VIEWS_DESC"), + RATINGS_DESC("RATINGS_DESC"), + VOTES_DESC("VOTES_DESC"), + START_DATE_DESC("START_DATE_DESC"), + START_DATE_ASC("START_DATE_ASC"); + + private String value; + + PersonalFeedOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static PersonalFeedOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over PersonalFeedOrderBy defined values and compare the inner value with the given one: + for(PersonalFeedOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return PersonalFeedOrderBy.values().length > 0 ? PersonalFeedOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/PersonalListOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/PersonalListOrderBy.java new file mode 100644 index 000000000..a78bd25b8 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/PersonalListOrderBy.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum PersonalListOrderBy implements EnumAsString { + CREATE_DATE_DESC("CREATE_DATE_DESC"), + CREATE_DATE_ASC("CREATE_DATE_ASC"); + + private String value; + + PersonalListOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static PersonalListOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over PersonalListOrderBy defined values and compare the inner value with the given one: + for(PersonalListOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return PersonalListOrderBy.values().length > 0 ? PersonalListOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/PinType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/PinType.java new file mode 100644 index 000000000..bc48bda82 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/PinType.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum PinType implements EnumAsString { + PURCHASE("purchase"), + PARENTAL("parental"); + + private String value; + + PinType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static PinType get(String value) { + if(value == null) + { + return null; + } + + // goes over PinType defined values and compare the inner value with the given one: + for(PinType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return PinType.values().length > 0 ? PinType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/Platform.java b/KalturaClient/src/main/java/com/kaltura/client/enums/Platform.java new file mode 100644 index 000000000..880da27b1 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/Platform.java @@ -0,0 +1,75 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum Platform implements EnumAsString { + ANDROID("Android"), + IOS("iOS"), + WINDOWSPHONE("WindowsPhone"), + BLACKBERRY("Blackberry"), + STB("STB"), + CTV("CTV"), + OTHER("Other"); + + private String value; + + Platform(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static Platform get(String value) { + if(value == null) + { + return null; + } + + // goes over Platform defined values and compare the inner value with the given one: + for(Platform item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return Platform.values().length > 0 ? Platform.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/PlaybackContextType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/PlaybackContextType.java new file mode 100644 index 000000000..e78040663 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/PlaybackContextType.java @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum PlaybackContextType implements EnumAsString { + TRAILER("TRAILER"), + CATCHUP("CATCHUP"), + START_OVER("START_OVER"), + PLAYBACK("PLAYBACK"), + DOWNLOAD("DOWNLOAD"); + + private String value; + + PlaybackContextType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static PlaybackContextType get(String value) { + if(value == null) + { + return null; + } + + // goes over PlaybackContextType defined values and compare the inner value with the given one: + for(PlaybackContextType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return PlaybackContextType.values().length > 0 ? PlaybackContextType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/PlaybackProfileOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/PlaybackProfileOrderBy.java new file mode 100644 index 000000000..64037c7dd --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/PlaybackProfileOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum PlaybackProfileOrderBy implements EnumAsString { + NAME_ASC("NAME_ASC"); + + private String value; + + PlaybackProfileOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static PlaybackProfileOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over PlaybackProfileOrderBy defined values and compare the inner value with the given one: + for(PlaybackProfileOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return PlaybackProfileOrderBy.values().length > 0 ? PlaybackProfileOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/PositionOwner.java b/KalturaClient/src/main/java/com/kaltura/client/enums/PositionOwner.java new file mode 100644 index 000000000..6bb8da95b --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/PositionOwner.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum PositionOwner implements EnumAsString { + HOUSEHOLD("household"), + USER("user"); + + private String value; + + PositionOwner(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static PositionOwner get(String value) { + if(value == null) + { + return null; + } + + // goes over PositionOwner defined values and compare the inner value with the given one: + for(PositionOwner item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return PositionOwner.values().length > 0 ? PositionOwner.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/PpvOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/PpvOrderBy.java new file mode 100644 index 000000000..28b0b4369 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/PpvOrderBy.java @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum PpvOrderBy implements EnumAsString { + NAME_ASC("NAME_ASC"), + NAME_DESC("NAME_DESC"), + UPDATE_DATE_ASC("UPDATE_DATE_ASC"), + UPDATE_DATE_DESC("UPDATE_DATE_DESC"); + + private String value; + + PpvOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static PpvOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over PpvOrderBy defined values and compare the inner value with the given one: + for(PpvOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return PpvOrderBy.values().length > 0 ? PpvOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/PreviewModuleOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/PreviewModuleOrderBy.java new file mode 100644 index 000000000..9f97e2a5f --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/PreviewModuleOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum PreviewModuleOrderBy implements EnumAsString { + NONE("NONE"); + + private String value; + + PreviewModuleOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static PreviewModuleOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over PreviewModuleOrderBy defined values and compare the inner value with the given one: + for(PreviewModuleOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return PreviewModuleOrderBy.values().length > 0 ? PreviewModuleOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/PriceDetailsOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/PriceDetailsOrderBy.java new file mode 100644 index 000000000..ea2dc87b7 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/PriceDetailsOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum PriceDetailsOrderBy implements EnumAsString { + NAME_ASC("NAME_ASC"); + + private String value; + + PriceDetailsOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static PriceDetailsOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over PriceDetailsOrderBy defined values and compare the inner value with the given one: + for(PriceDetailsOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return PriceDetailsOrderBy.values().length > 0 ? PriceDetailsOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/PricePlanOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/PricePlanOrderBy.java new file mode 100644 index 000000000..328293655 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/PricePlanOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum PricePlanOrderBy implements EnumAsString { + CREATE_DATE_DESC("CREATE_DATE_DESC"); + + private String value; + + PricePlanOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static PricePlanOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over PricePlanOrderBy defined values and compare the inner value with the given one: + for(PricePlanOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return PricePlanOrderBy.values().length > 0 ? PricePlanOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/ProductPriceOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/ProductPriceOrderBy.java new file mode 100644 index 000000000..01233921e --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/ProductPriceOrderBy.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ProductPriceOrderBy implements EnumAsString { + PRODUCT_ID_ASC("PRODUCT_ID_ASC"), + PRODUCT_ID_DESC("PRODUCT_ID_DESC"); + + private String value; + + ProductPriceOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static ProductPriceOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over ProductPriceOrderBy defined values and compare the inner value with the given one: + for(ProductPriceOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return ProductPriceOrderBy.values().length > 0 ? ProductPriceOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/ProgramAssetGroupOfferOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/ProgramAssetGroupOfferOrderBy.java new file mode 100644 index 000000000..bb356f797 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/ProgramAssetGroupOfferOrderBy.java @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ProgramAssetGroupOfferOrderBy implements EnumAsString { + NAME_ASC("NAME_ASC"), + NAME_DESC("NAME_DESC"), + UPDATE_DATE_ASC("UPDATE_DATE_ASC"), + UPDATE_DATE_DESC("UPDATE_DATE_DESC"); + + private String value; + + ProgramAssetGroupOfferOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static ProgramAssetGroupOfferOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over ProgramAssetGroupOfferOrderBy defined values and compare the inner value with the given one: + for(ProgramAssetGroupOfferOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return ProgramAssetGroupOfferOrderBy.values().length > 0 ? ProgramAssetGroupOfferOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/ProtectionPolicy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/ProtectionPolicy.java new file mode 100644 index 000000000..6696ab215 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/ProtectionPolicy.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ProtectionPolicy implements EnumAsString { + EXTENDINGRECORDINGLIFETIME("ExtendingRecordingLifetime"), + LIMITEDBYRECORDINGLIFETIME("LimitedByRecordingLifetime"); + + private String value; + + ProtectionPolicy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static ProtectionPolicy get(String value) { + if(value == null) + { + return null; + } + + // goes over ProtectionPolicy defined values and compare the inner value with the given one: + for(ProtectionPolicy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return ProtectionPolicy.values().length > 0 ? ProtectionPolicy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/PurchaseSettingsType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/PurchaseSettingsType.java new file mode 100644 index 000000000..a22e618c2 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/PurchaseSettingsType.java @@ -0,0 +1,71 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum PurchaseSettingsType implements EnumAsString { + BLOCK("block"), + ASK("ask"), + ALLOW("allow"); + + private String value; + + PurchaseSettingsType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static PurchaseSettingsType get(String value) { + if(value == null) + { + return null; + } + + // goes over PurchaseSettingsType defined values and compare the inner value with the given one: + for(PurchaseSettingsType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return PurchaseSettingsType.values().length > 0 ? PurchaseSettingsType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/PurchaseStatus.java b/KalturaClient/src/main/java/com/kaltura/client/enums/PurchaseStatus.java new file mode 100644 index 000000000..49967bb8d --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/PurchaseStatus.java @@ -0,0 +1,85 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum PurchaseStatus implements EnumAsString { + PPV_PURCHASED("ppv_purchased"), + FREE("free"), + FOR_PURCHASE_SUBSCRIPTION_ONLY("for_purchase_subscription_only"), + SUBSCRIPTION_PURCHASED("subscription_purchased"), + FOR_PURCHASE("for_purchase"), + SUBSCRIPTION_PURCHASED_WRONG_CURRENCY("subscription_purchased_wrong_currency"), + PRE_PAID_PURCHASED("pre_paid_purchased"), + GEO_COMMERCE_BLOCKED("geo_commerce_blocked"), + ENTITLED_TO_PREVIEW_MODULE("entitled_to_preview_module"), + FIRST_DEVICE_LIMITATION("first_device_limitation"), + COLLECTION_PURCHASED("collection_purchased"), + USER_SUSPENDED("user_suspended"), + NOT_FOR_PURCHASE("not_for_purchase"), + INVALID_CURRENCY("invalid_currency"), + CURRENCY_NOT_DEFINED_ON_PRICE_CODE("currency_not_defined_on_price_code"), + PENDING_ENTITLEMENT("pending_entitlement"), + PROGRAM_ASSET_GROUP_OFFER_PURCHASED("program_asset_group_offer_purchased"); + + private String value; + + PurchaseStatus(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static PurchaseStatus get(String value) { + if(value == null) + { + return null; + } + + // goes over PurchaseStatus defined values and compare the inner value with the given one: + for(PurchaseStatus item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return PurchaseStatus.values().length > 0 ? PurchaseStatus.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/QuotaOveragePolicy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/QuotaOveragePolicy.java new file mode 100644 index 000000000..7639f5d2a --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/QuotaOveragePolicy.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum QuotaOveragePolicy implements EnumAsString { + STOPATQUOTA("StopAtQuota"), + FIFOAUTODELETE("FIFOAutoDelete"); + + private String value; + + QuotaOveragePolicy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static QuotaOveragePolicy get(String value) { + if(value == null) + { + return null; + } + + // goes over QuotaOveragePolicy defined values and compare the inner value with the given one: + for(QuotaOveragePolicy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return QuotaOveragePolicy.values().length > 0 ? QuotaOveragePolicy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/RecordingContextOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/RecordingContextOrderBy.java new file mode 100644 index 000000000..249ccdc02 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/RecordingContextOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum RecordingContextOrderBy implements EnumAsString { + NONE("NONE"); + + private String value; + + RecordingContextOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static RecordingContextOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over RecordingContextOrderBy defined values and compare the inner value with the given one: + for(RecordingContextOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return RecordingContextOrderBy.values().length > 0 ? RecordingContextOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/RecordingOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/RecordingOrderBy.java new file mode 100644 index 000000000..39c84f57d --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/RecordingOrderBy.java @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum RecordingOrderBy implements EnumAsString { + TITLE_ASC("TITLE_ASC"), + TITLE_DESC("TITLE_DESC"), + START_DATE_ASC("START_DATE_ASC"), + START_DATE_DESC("START_DATE_DESC"); + + private String value; + + RecordingOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static RecordingOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over RecordingOrderBy defined values and compare the inner value with the given one: + for(RecordingOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return RecordingOrderBy.values().length > 0 ? RecordingOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/RecordingStatus.java b/KalturaClient/src/main/java/com/kaltura/client/enums/RecordingStatus.java new file mode 100644 index 000000000..074e3b2c3 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/RecordingStatus.java @@ -0,0 +1,74 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum RecordingStatus implements EnumAsString { + SCHEDULED("SCHEDULED"), + RECORDING("RECORDING"), + RECORDED("RECORDED"), + CANCELED("CANCELED"), + FAILED("FAILED"), + DELETED("DELETED"); + + private String value; + + RecordingStatus(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static RecordingStatus get(String value) { + if(value == null) + { + return null; + } + + // goes over RecordingStatus defined values and compare the inner value with the given one: + for(RecordingStatus item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return RecordingStatus.values().length > 0 ? RecordingStatus.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/RecordingType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/RecordingType.java new file mode 100644 index 000000000..aed576954 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/RecordingType.java @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum RecordingType implements EnumAsString { + SINGLE("SINGLE"), + SEASON("SEASON"), + SERIES("SERIES"), + ORIGINALBROADCAST("OriginalBroadcast"); + + private String value; + + RecordingType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static RecordingType get(String value) { + if(value == null) + { + return null; + } + + // goes over RecordingType defined values and compare the inner value with the given one: + for(RecordingType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return RecordingType.values().length > 0 ? RecordingType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/RegionOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/RegionOrderBy.java new file mode 100644 index 000000000..d5ad15a63 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/RegionOrderBy.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum RegionOrderBy implements EnumAsString { + CREATE_DATE_ASC("CREATE_DATE_ASC"), + CREATE_DATE_DESC("CREATE_DATE_DESC"); + + private String value; + + RegionOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static RegionOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over RegionOrderBy defined values and compare the inner value with the given one: + for(RegionOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return RegionOrderBy.values().length > 0 ? RegionOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/RelatedEntityType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/RelatedEntityType.java new file mode 100644 index 000000000..3b4ab2c32 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/RelatedEntityType.java @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum RelatedEntityType implements EnumAsString { + CHANNEL("CHANNEL"), + EXTERNAL_CHANNEL("EXTERNAL_CHANNEL"), + MEDIA("MEDIA"), + PROGRAM("PROGRAM"); + + private String value; + + RelatedEntityType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static RelatedEntityType get(String value) { + if(value == null) + { + return null; + } + + // goes over RelatedEntityType defined values and compare the inner value with the given one: + for(RelatedEntityType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return RelatedEntityType.values().length > 0 ? RelatedEntityType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/ReminderType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/ReminderType.java new file mode 100644 index 000000000..c008f5efd --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/ReminderType.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ReminderType implements EnumAsString { + ASSET("ASSET"), + SERIES("SERIES"); + + private String value; + + ReminderType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static ReminderType get(String value) { + if(value == null) + { + return null; + } + + // goes over ReminderType defined values and compare the inner value with the given one: + for(ReminderType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return ReminderType.values().length > 0 ? ReminderType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/ReportOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/ReportOrderBy.java new file mode 100644 index 000000000..e8db413b1 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/ReportOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ReportOrderBy implements EnumAsString { + NONE("NONE"); + + private String value; + + ReportOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static ReportOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over ReportOrderBy defined values and compare the inner value with the given one: + for(ReportOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return ReportOrderBy.values().length > 0 ? ReportOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/ResponseType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/ResponseType.java new file mode 100644 index 000000000..b5f15396c --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/ResponseType.java @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ResponseType implements EnumAsInt { + JSON(1), + XML(2), + JSONP(9), + ASSET_XML(30), + EXCEL(31); + + private int value; + + ResponseType(int value) { + this.value = value; + } + + @Override + public int getValue() { + return this.value; + } + + public void setValue(int value) { + this.value = value; + } + + public static ResponseType get(Integer value) { + if(value == null) + { + return null; + } + + // goes over ResponseType defined values and compare the inner value with the given one: + for(ResponseType item: values()) { + if(item.getValue() == value) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return ResponseType.values().length > 0 ? ResponseType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/RollingDevicePolicy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/RollingDevicePolicy.java new file mode 100644 index 000000000..431810461 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/RollingDevicePolicy.java @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum RollingDevicePolicy implements EnumAsString { + NONE("NONE"), + LIFO("LIFO"), + FIFO("FIFO"), + ACTIVE_DEVICE_ASCENDING("ACTIVE_DEVICE_ASCENDING"); + + private String value; + + RollingDevicePolicy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static RollingDevicePolicy get(String value) { + if(value == null) + { + return null; + } + + // goes over RollingDevicePolicy defined values and compare the inner value with the given one: + for(RollingDevicePolicy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return RollingDevicePolicy.values().length > 0 ? RollingDevicePolicy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/RuleActionType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/RuleActionType.java new file mode 100644 index 000000000..755612f21 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/RuleActionType.java @@ -0,0 +1,96 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum RuleActionType implements EnumAsString { + BLOCK("BLOCK"), + START_DATE_OFFSET("START_DATE_OFFSET"), + END_DATE_OFFSET("END_DATE_OFFSET"), + USER_BLOCK("USER_BLOCK"), + ALLOW_PLAYBACK("ALLOW_PLAYBACK"), + BLOCK_PLAYBACK("BLOCK_PLAYBACK"), + APPLY_DISCOUNT_MODULE("APPLY_DISCOUNT_MODULE"), + APPLY_PLAYBACK_ADAPTER("APPLY_PLAYBACK_ADAPTER"), + FILTER("FILTER"), + ASSET_LIFE_CYCLE_TRANSITION("ASSET_LIFE_CYCLE_TRANSITION"), + APPLY_FREE_PLAYBACK("APPLY_FREE_PLAYBACK"), + FILTERASSETBYKSQL("FilterAssetByKsql"), + FILTERFILEBYQUALITYINDISCOVERY("FilterFileByQualityInDiscovery"), + FILTERFILEBYQUALITYINPLAYBACK("FilterFileByQualityInPlayback"), + FILTERFILEBYFILETYPEIDFORASSETTYPEINDISCOVERY("FilterFileByFileTypeIdForAssetTypeInDiscovery"), + FILTERFILEBYFILETYPEIDFORASSETTYPEINPLAYBACK("FilterFileByFileTypeIdForAssetTypeInPlayback"), + FILTERFILEBYFILETYPEIDINDISCOVERY("FilterFileByFileTypeIdInDiscovery"), + FILTERFILEBYFILETYPEIDINPLAYBACK("FilterFileByFileTypeIdInPlayback"), + FILTERFILEBYAUDIOCODECINDISCOVERY("FilterFileByAudioCodecInDiscovery"), + FILTERFILEBYAUDIOCODECINPLAYBACK("FilterFileByAudioCodecInPlayback"), + FILTERFILEBYVIDEOCODECINDISCOVERY("FilterFileByVideoCodecInDiscovery"), + FILTERFILEBYVIDEOCODECINPLAYBACK("FilterFileByVideoCodecInPlayback"), + FILTERFILEBYSTREAMERTYPEINDISCOVERY("FilterFileByStreamerTypeInDiscovery"), + FILTERFILEBYSTREAMERTYPEINPLAYBACK("FilterFileByStreamerTypeInPlayback"), + FILTERFILEBYLABELINDISCOVERY("FilterFileByLabelInDiscovery"), + FILTERFILEBYLABELINPLAYBACK("FilterFileByLabelInPlayback"), + FILTERFILEBYDYNAMICDATAINDISCOVERY("FilterFileByDynamicDataInDiscovery"), + FILTERFILEBYDYNAMICDATAINPLAYBACK("FilterFileByDynamicDataInPlayback"); + + private String value; + + RuleActionType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static RuleActionType get(String value) { + if(value == null) + { + return null; + } + + // goes over RuleActionType defined values and compare the inner value with the given one: + for(RuleActionType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return RuleActionType.values().length > 0 ? RuleActionType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/RuleConditionType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/RuleConditionType.java new file mode 100644 index 000000000..2dafa9855 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/RuleConditionType.java @@ -0,0 +1,92 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum RuleConditionType implements EnumAsString { + ASSET("ASSET"), + COUNTRY("COUNTRY"), + CONCURRENCY("CONCURRENCY"), + IP_RANGE("IP_RANGE"), + BUSINESS_MODULE("BUSINESS_MODULE"), + SEGMENTS("SEGMENTS"), + DATE("DATE"), + OR("OR"), + HEADER("HEADER"), + USER_SUBSCRIPTION("USER_SUBSCRIPTION"), + ASSET_SUBSCRIPTION("ASSET_SUBSCRIPTION"), + USER_ROLE("USER_ROLE"), + DEVICE_BRAND("DEVICE_BRAND"), + DEVICE_FAMILY("DEVICE_FAMILY"), + DEVICE_MANUFACTURER("DEVICE_MANUFACTURER"), + DEVICE_MODEL("DEVICE_MODEL"), + DEVICE_UDID_DYNAMIC_LIST("DEVICE_UDID_DYNAMIC_LIST"), + DYNAMIC_KEYS("DYNAMIC_KEYS"), + USER_SESSION_PROFILE("USER_SESSION_PROFILE"), + DEVICE_DYNAMIC_DATA("DEVICE_DYNAMIC_DATA"), + IP_V6_RANGE("IP_V6_RANGE"), + ASSET_SHOP("ASSET_SHOP"), + CHANNEL("CHANNEL"), + FILE_TYPE("FILE_TYPE"); + + private String value; + + RuleConditionType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static RuleConditionType get(String value) { + if(value == null) + { + return null; + } + + // goes over RuleConditionType defined values and compare the inner value with the given one: + for(RuleConditionType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return RuleConditionType.values().length > 0 ? RuleConditionType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/RuleLevel.java b/KalturaClient/src/main/java/com/kaltura/client/enums/RuleLevel.java new file mode 100644 index 000000000..bb147bbda --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/RuleLevel.java @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum RuleLevel implements EnumAsString { + INVALID("invalid"), + USER("user"), + HOUSEHOLD("household"), + ACCOUNT("account"); + + private String value; + + RuleLevel(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static RuleLevel get(String value) { + if(value == null) + { + return null; + } + + // goes over RuleLevel defined values and compare the inner value with the given one: + for(RuleLevel item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return RuleLevel.values().length > 0 ? RuleLevel.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/RuleType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/RuleType.java new file mode 100644 index 000000000..5ded75e1c --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/RuleType.java @@ -0,0 +1,74 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum RuleType implements EnumAsString { + PARENTAL("parental"), + GEO("geo"), + USER_TYPE("user_type"), + DEVICE("device"), + ASSETUSER("assetUser"), + NETWORK("network"); + + private String value; + + RuleType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static RuleType get(String value) { + if(value == null) + { + return null; + } + + // goes over RuleType defined values and compare the inner value with the given one: + for(RuleType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return RuleType.values().length > 0 ? RuleType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/ScheduledRecordingAssetType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/ScheduledRecordingAssetType.java new file mode 100644 index 000000000..69bd2ac1d --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/ScheduledRecordingAssetType.java @@ -0,0 +1,71 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ScheduledRecordingAssetType implements EnumAsString { + SINGLE("single"), + SERIES("series"), + ALL("all"); + + private String value; + + ScheduledRecordingAssetType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static ScheduledRecordingAssetType get(String value) { + if(value == null) + { + return null; + } + + // goes over ScheduledRecordingAssetType defined values and compare the inner value with the given one: + for(ScheduledRecordingAssetType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return ScheduledRecordingAssetType.values().length > 0 ? ScheduledRecordingAssetType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/SearchHistoryOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/SearchHistoryOrderBy.java new file mode 100644 index 000000000..70e433eb7 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/SearchHistoryOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum SearchHistoryOrderBy implements EnumAsString { + NONE("NONE"); + + private String value; + + SearchHistoryOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static SearchHistoryOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over SearchHistoryOrderBy defined values and compare the inner value with the given one: + for(SearchHistoryOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return SearchHistoryOrderBy.values().length > 0 ? SearchHistoryOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/SearchPriorityCriteriaType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/SearchPriorityCriteriaType.java new file mode 100644 index 000000000..68062d42d --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/SearchPriorityCriteriaType.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum SearchPriorityCriteriaType implements EnumAsString { + KSQL("KSql"); + + private String value; + + SearchPriorityCriteriaType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static SearchPriorityCriteriaType get(String value) { + if(value == null) + { + return null; + } + + // goes over SearchPriorityCriteriaType defined values and compare the inner value with the given one: + for(SearchPriorityCriteriaType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return SearchPriorityCriteriaType.values().length > 0 ? SearchPriorityCriteriaType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/SearchPriorityGroupOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/SearchPriorityGroupOrderBy.java new file mode 100644 index 000000000..48585b088 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/SearchPriorityGroupOrderBy.java @@ -0,0 +1,71 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum SearchPriorityGroupOrderBy implements EnumAsString { + PRIORITY_DESC("PRIORITY_DESC"), + NAME_ASC("NAME_ASC"), + NAME_DESC("NAME_DESC"); + + private String value; + + SearchPriorityGroupOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static SearchPriorityGroupOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over SearchPriorityGroupOrderBy defined values and compare the inner value with the given one: + for(SearchPriorityGroupOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return SearchPriorityGroupOrderBy.values().length > 0 ? SearchPriorityGroupOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/SegmentationTypeOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/SegmentationTypeOrderBy.java new file mode 100644 index 000000000..f1a3f717c --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/SegmentationTypeOrderBy.java @@ -0,0 +1,78 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum SegmentationTypeOrderBy implements EnumAsString { + UPDATE_DATE_DESC("UPDATE_DATE_DESC"), + UPDATE_DATE_ASC("UPDATE_DATE_ASC"), + CREATE_DATE_DESC("CREATE_DATE_DESC"), + CREATE_DATE_ASC("CREATE_DATE_ASC"), + EXECUTE_DATE_DESC("EXECUTE_DATE_DESC"), + EXECUTE_DATE_ASC("EXECUTE_DATE_ASC"), + AFFECTED_USERS_DESC("AFFECTED_USERS_DESC"), + AFFECTED_USERS_ASC("AFFECTED_USERS_ASC"), + AFFECTED_HOUSEHOLDS_DESC("AFFECTED_HOUSEHOLDS_DESC"), + AFFECTED_HOUSEHOLDS_ASC("AFFECTED_HOUSEHOLDS_ASC"); + + private String value; + + SegmentationTypeOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static SegmentationTypeOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over SegmentationTypeOrderBy defined values and compare the inner value with the given one: + for(SegmentationTypeOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return SegmentationTypeOrderBy.values().length > 0 ? SegmentationTypeOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/SeriesRecordingOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/SeriesRecordingOrderBy.java new file mode 100644 index 000000000..0c93aeada --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/SeriesRecordingOrderBy.java @@ -0,0 +1,74 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum SeriesRecordingOrderBy implements EnumAsString { + START_DATE_ASC("START_DATE_ASC"), + START_DATE_DESC("START_DATE_DESC"), + ID_ASC("ID_ASC"), + ID_DESC("ID_DESC"), + SERIES_ID_ASC("SERIES_ID_ASC"), + SERIES_ID_DESC("SERIES_ID_DESC"); + + private String value; + + SeriesRecordingOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static SeriesRecordingOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over SeriesRecordingOrderBy defined values and compare the inner value with the given one: + for(SeriesRecordingOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return SeriesRecordingOrderBy.values().length > 0 ? SeriesRecordingOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/SeriesReminderOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/SeriesReminderOrderBy.java new file mode 100644 index 000000000..1aa735fd8 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/SeriesReminderOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum SeriesReminderOrderBy implements EnumAsString { + NONE("NONE"); + + private String value; + + SeriesReminderOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static SeriesReminderOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over SeriesReminderOrderBy defined values and compare the inner value with the given one: + for(SeriesReminderOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return SeriesReminderOrderBy.values().length > 0 ? SeriesReminderOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/SkipOperators.java b/KalturaClient/src/main/java/com/kaltura/client/enums/SkipOperators.java new file mode 100644 index 000000000..3e4a548e6 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/SkipOperators.java @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum SkipOperators implements EnumAsString { + EQUAL("Equal"), + UNEQUAL("UnEqual"), + LESSTHAN("LessThan"), + GREATERTHAN("GreaterThan"); + + private String value; + + SkipOperators(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static SkipOperators get(String value) { + if(value == null) + { + return null; + } + + // goes over SkipOperators defined values and compare the inner value with the given one: + for(SkipOperators item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return SkipOperators.values().length > 0 ? SkipOperators.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/SkipOptions.java b/KalturaClient/src/main/java/com/kaltura/client/enums/SkipOptions.java new file mode 100644 index 000000000..dbb251ba6 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/SkipOptions.java @@ -0,0 +1,71 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum SkipOptions implements EnumAsString { + NO("No"), + PREVIOUS("Previous"), + ANY("Any"); + + private String value; + + SkipOptions(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static SkipOptions get(String value) { + if(value == null) + { + return null; + } + + // goes over SkipOptions defined values and compare the inner value with the given one: + for(SkipOptions item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return SkipOptions.values().length > 0 ? SkipOptions.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/SmsAdapterProfileOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/SmsAdapterProfileOrderBy.java new file mode 100644 index 000000000..71cfe276d --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/SmsAdapterProfileOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum SmsAdapterProfileOrderBy implements EnumAsString { + NONE("NONE"); + + private String value; + + SmsAdapterProfileOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static SmsAdapterProfileOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over SmsAdapterProfileOrderBy defined values and compare the inner value with the given one: + for(SmsAdapterProfileOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return SmsAdapterProfileOrderBy.values().length > 0 ? SmsAdapterProfileOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/SocialActionOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/SocialActionOrderBy.java new file mode 100644 index 000000000..0ed04908a --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/SocialActionOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum SocialActionOrderBy implements EnumAsString { + NONE("NONE"); + + private String value; + + SocialActionOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static SocialActionOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over SocialActionOrderBy defined values and compare the inner value with the given one: + for(SocialActionOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return SocialActionOrderBy.values().length > 0 ? SocialActionOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/SocialActionPrivacy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/SocialActionPrivacy.java new file mode 100644 index 000000000..34d9fd958 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/SocialActionPrivacy.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum SocialActionPrivacy implements EnumAsString { + ALLOW("ALLOW"), + DONT_ALLOW("DONT_ALLOW"); + + private String value; + + SocialActionPrivacy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static SocialActionPrivacy get(String value) { + if(value == null) + { + return null; + } + + // goes over SocialActionPrivacy defined values and compare the inner value with the given one: + for(SocialActionPrivacy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return SocialActionPrivacy.values().length > 0 ? SocialActionPrivacy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/SocialActionType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/SocialActionType.java new file mode 100644 index 000000000..2d8b9f479 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/SocialActionType.java @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum SocialActionType implements EnumAsString { + LIKE("LIKE"), + WATCH("WATCH"), + RATE("RATE"), + SHARE("SHARE"); + + private String value; + + SocialActionType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static SocialActionType get(String value) { + if(value == null) + { + return null; + } + + // goes over SocialActionType defined values and compare the inner value with the given one: + for(SocialActionType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return SocialActionType.values().length > 0 ? SocialActionType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/SocialCommentOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/SocialCommentOrderBy.java new file mode 100644 index 000000000..625eb8bf0 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/SocialCommentOrderBy.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum SocialCommentOrderBy implements EnumAsString { + CREATE_DATE_ASC("CREATE_DATE_ASC"), + CREATE_DATE_DESC("CREATE_DATE_DESC"); + + private String value; + + SocialCommentOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static SocialCommentOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over SocialCommentOrderBy defined values and compare the inner value with the given one: + for(SocialCommentOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return SocialCommentOrderBy.values().length > 0 ? SocialCommentOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/SocialFriendActivityOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/SocialFriendActivityOrderBy.java new file mode 100644 index 000000000..cc74072bd --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/SocialFriendActivityOrderBy.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum SocialFriendActivityOrderBy implements EnumAsString { + NONE("NONE"), + UPDATE_DATE_DESC("UPDATE_DATE_DESC"); + + private String value; + + SocialFriendActivityOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static SocialFriendActivityOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over SocialFriendActivityOrderBy defined values and compare the inner value with the given one: + for(SocialFriendActivityOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return SocialFriendActivityOrderBy.values().length > 0 ? SocialFriendActivityOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/SocialNetwork.java b/KalturaClient/src/main/java/com/kaltura/client/enums/SocialNetwork.java new file mode 100644 index 000000000..e347b17be --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/SocialNetwork.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum SocialNetwork implements EnumAsString { + FACEBOOK("facebook"); + + private String value; + + SocialNetwork(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static SocialNetwork get(String value) { + if(value == null) + { + return null; + } + + // goes over SocialNetwork defined values and compare the inner value with the given one: + for(SocialNetwork item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return SocialNetwork.values().length > 0 ? SocialNetwork.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/SocialPlatform.java b/KalturaClient/src/main/java/com/kaltura/client/enums/SocialPlatform.java new file mode 100644 index 000000000..3e0b0084b --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/SocialPlatform.java @@ -0,0 +1,71 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum SocialPlatform implements EnumAsString { + IN_APP("IN_APP"), + FACEBOOK("FACEBOOK"), + TWITTER("TWITTER"); + + private String value; + + SocialPlatform(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static SocialPlatform get(String value) { + if(value == null) + { + return null; + } + + // goes over SocialPlatform defined values and compare the inner value with the given one: + for(SocialPlatform item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return SocialPlatform.values().length > 0 ? SocialPlatform.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/SocialPrivacy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/SocialPrivacy.java new file mode 100644 index 000000000..265804d2e --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/SocialPrivacy.java @@ -0,0 +1,74 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum SocialPrivacy implements EnumAsString { + UNKNOWN("UNKNOWN"), + EVERYONE("EVERYONE"), + ALL_FRIENDS("ALL_FRIENDS"), + FRIENDS_OF_FRIENDS("FRIENDS_OF_FRIENDS"), + SELF("SELF"), + CUSTOM("CUSTOM"); + + private String value; + + SocialPrivacy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static SocialPrivacy get(String value) { + if(value == null) + { + return null; + } + + // goes over SocialPrivacy defined values and compare the inner value with the given one: + for(SocialPrivacy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return SocialPrivacy.values().length > 0 ? SocialPrivacy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/SocialStatus.java b/KalturaClient/src/main/java/com/kaltura/client/enums/SocialStatus.java new file mode 100644 index 000000000..277032383 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/SocialStatus.java @@ -0,0 +1,80 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum SocialStatus implements EnumAsString { + ERROR("error"), + OK("ok"), + USER_DOES_NOT_EXIST("user_does_not_exist"), + NO_USER_SOCIAL_SETTINGS_FOUND("no_user_social_settings_found"), + ASSET_ALREADY_LIKED("asset_already_liked"), + NOT_ALLOWED("not_allowed"), + INVALID_PARAMETERS("invalid_parameters"), + NO_FACEBOOK_ACTION("no_facebook_action"), + ASSET_ALREADY_RATED("asset_already_rated"), + ASSET_DOSE_NOT_EXISTS("asset_dose_not_exists"), + INVALID_PLATFORM_REQUEST("invalid_platform_request"), + INVALID_ACCESS_TOKEN("invalid_access_token"); + + private String value; + + SocialStatus(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static SocialStatus get(String value) { + if(value == null) + { + return null; + } + + // goes over SocialStatus defined values and compare the inner value with the given one: + for(SocialStatus item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return SocialStatus.values().length > 0 ? SocialStatus.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/StreamType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/StreamType.java new file mode 100644 index 000000000..645209e97 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/StreamType.java @@ -0,0 +1,71 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum StreamType implements EnumAsString { + CATCHUP("catchup"), + START_OVER("start_over"), + TRICK_PLAY("trick_play"); + + private String value; + + StreamType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static StreamType get(String value) { + if(value == null) + { + return null; + } + + // goes over StreamType defined values and compare the inner value with the given one: + for(StreamType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return StreamType.values().length > 0 ? StreamType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/StreamingDeviceOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/StreamingDeviceOrderBy.java new file mode 100644 index 000000000..c71d63015 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/StreamingDeviceOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum StreamingDeviceOrderBy implements EnumAsString { + NONE("NONE"); + + private String value; + + StreamingDeviceOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static StreamingDeviceOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over StreamingDeviceOrderBy defined values and compare the inner value with the given one: + for(StreamingDeviceOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return StreamingDeviceOrderBy.values().length > 0 ? StreamingDeviceOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/SubscriptionDependencyType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/SubscriptionDependencyType.java new file mode 100644 index 000000000..82dfb7572 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/SubscriptionDependencyType.java @@ -0,0 +1,71 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum SubscriptionDependencyType implements EnumAsString { + NOTAPPLICABLE("NOTAPPLICABLE"), + BASE("BASE"), + ADDON("ADDON"); + + private String value; + + SubscriptionDependencyType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static SubscriptionDependencyType get(String value) { + if(value == null) + { + return null; + } + + // goes over SubscriptionDependencyType defined values and compare the inner value with the given one: + for(SubscriptionDependencyType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return SubscriptionDependencyType.values().length > 0 ? SubscriptionDependencyType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/SubscriptionOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/SubscriptionOrderBy.java new file mode 100644 index 000000000..ddd5c9a80 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/SubscriptionOrderBy.java @@ -0,0 +1,76 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum SubscriptionOrderBy implements EnumAsString { + START_DATE_ASC("START_DATE_ASC"), + START_DATE_DESC("START_DATE_DESC"), + CREATE_DATE_ASC("CREATE_DATE_ASC"), + CREATE_DATE_DESC("CREATE_DATE_DESC"), + UPDATE_DATE_ASC("UPDATE_DATE_ASC"), + UPDATE_DATE_DESC("UPDATE_DATE_DESC"), + NAME_ASC("NAME_ASC"), + NAME_DESC("NAME_DESC"); + + private String value; + + SubscriptionOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static SubscriptionOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over SubscriptionOrderBy defined values and compare the inner value with the given one: + for(SubscriptionOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return SubscriptionOrderBy.values().length > 0 ? SubscriptionOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/SubscriptionSetOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/SubscriptionSetOrderBy.java new file mode 100644 index 000000000..23f416097 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/SubscriptionSetOrderBy.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum SubscriptionSetOrderBy implements EnumAsString { + NAME_ASC("NAME_ASC"), + NAME_DESC("NAME_DESC"); + + private String value; + + SubscriptionSetOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static SubscriptionSetOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over SubscriptionSetOrderBy defined values and compare the inner value with the given one: + for(SubscriptionSetOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return SubscriptionSetOrderBy.values().length > 0 ? SubscriptionSetOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/SubscriptionSetType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/SubscriptionSetType.java new file mode 100644 index 000000000..4f11e8430 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/SubscriptionSetType.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum SubscriptionSetType implements EnumAsString { + SWITCH("SWITCH"), + DEPENDENCY("DEPENDENCY"); + + private String value; + + SubscriptionSetType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static SubscriptionSetType get(String value) { + if(value == null) + { + return null; + } + + // goes over SubscriptionSetType defined values and compare the inner value with the given one: + for(SubscriptionSetType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return SubscriptionSetType.values().length > 0 ? SubscriptionSetType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/SubscriptionTriggerType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/SubscriptionTriggerType.java new file mode 100644 index 000000000..7cbcf0667 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/SubscriptionTriggerType.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum SubscriptionTriggerType implements EnumAsString { + START_DATE("START_DATE"), + END_DATE("END_DATE"); + + private String value; + + SubscriptionTriggerType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static SubscriptionTriggerType get(String value) { + if(value == null) + { + return null; + } + + // goes over SubscriptionTriggerType defined values and compare the inner value with the given one: + for(SubscriptionTriggerType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return SubscriptionTriggerType.values().length > 0 ? SubscriptionTriggerType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/SuspensionProfileInheritanceType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/SuspensionProfileInheritanceType.java new file mode 100644 index 000000000..e68ea7c3d --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/SuspensionProfileInheritanceType.java @@ -0,0 +1,71 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum SuspensionProfileInheritanceType implements EnumAsString { + ALWAYS("ALWAYS"), + NEVER("NEVER"), + DEFAULT("DEFAULT"); + + private String value; + + SuspensionProfileInheritanceType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static SuspensionProfileInheritanceType get(String value) { + if(value == null) + { + return null; + } + + // goes over SuspensionProfileInheritanceType defined values and compare the inner value with the given one: + for(SuspensionProfileInheritanceType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return SuspensionProfileInheritanceType.values().length > 0 ? SuspensionProfileInheritanceType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/TagOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/TagOrderBy.java new file mode 100644 index 000000000..87e4dbe43 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/TagOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum TagOrderBy implements EnumAsString { + NONE("NONE"); + + private String value; + + TagOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static TagOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over TagOrderBy defined values and compare the inner value with the given one: + for(TagOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return TagOrderBy.values().length > 0 ? TagOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/TimeShiftedTvState.java b/KalturaClient/src/main/java/com/kaltura/client/enums/TimeShiftedTvState.java new file mode 100644 index 000000000..d458b8d58 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/TimeShiftedTvState.java @@ -0,0 +1,71 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum TimeShiftedTvState implements EnumAsString { + INHERITED("INHERITED"), + ENABLED("ENABLED"), + DISABLED("DISABLED"); + + private String value; + + TimeShiftedTvState(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static TimeShiftedTvState get(String value) { + if(value == null) + { + return null; + } + + // goes over TimeShiftedTvState defined values and compare the inner value with the given one: + for(TimeShiftedTvState item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return TimeShiftedTvState.values().length > 0 ? TimeShiftedTvState.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/TopicAutomaticIssueNotification.java b/KalturaClient/src/main/java/com/kaltura/client/enums/TopicAutomaticIssueNotification.java new file mode 100644 index 000000000..2a587ffcb --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/TopicAutomaticIssueNotification.java @@ -0,0 +1,71 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum TopicAutomaticIssueNotification implements EnumAsString { + INHERIT("Inherit"), + YES("Yes"), + NO("No"); + + private String value; + + TopicAutomaticIssueNotification(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static TopicAutomaticIssueNotification get(String value) { + if(value == null) + { + return null; + } + + // goes over TopicAutomaticIssueNotification defined values and compare the inner value with the given one: + for(TopicAutomaticIssueNotification item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return TopicAutomaticIssueNotification.values().length > 0 ? TopicAutomaticIssueNotification.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/TopicNotificationMessageOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/TopicNotificationMessageOrderBy.java new file mode 100644 index 000000000..1ea66a7b7 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/TopicNotificationMessageOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum TopicNotificationMessageOrderBy implements EnumAsString { + NONE("NONE"); + + private String value; + + TopicNotificationMessageOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static TopicNotificationMessageOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over TopicNotificationMessageOrderBy defined values and compare the inner value with the given one: + for(TopicNotificationMessageOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return TopicNotificationMessageOrderBy.values().length > 0 ? TopicNotificationMessageOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/TopicNotificationOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/TopicNotificationOrderBy.java new file mode 100644 index 000000000..0fcb16d25 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/TopicNotificationOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum TopicNotificationOrderBy implements EnumAsString { + NONE("NONE"); + + private String value; + + TopicNotificationOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static TopicNotificationOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over TopicNotificationOrderBy defined values and compare the inner value with the given one: + for(TopicNotificationOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return TopicNotificationOrderBy.values().length > 0 ? TopicNotificationOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/TopicOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/TopicOrderBy.java new file mode 100644 index 000000000..35d886504 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/TopicOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum TopicOrderBy implements EnumAsString { + NONE("NONE"); + + private String value; + + TopicOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static TopicOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over TopicOrderBy defined values and compare the inner value with the given one: + for(TopicOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return TopicOrderBy.values().length > 0 ? TopicOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/TransactionAdapterStatus.java b/KalturaClient/src/main/java/com/kaltura/client/enums/TransactionAdapterStatus.java new file mode 100644 index 000000000..f482ce118 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/TransactionAdapterStatus.java @@ -0,0 +1,71 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum TransactionAdapterStatus implements EnumAsString { + OK("OK"), + PENDING("PENDING"), + FAILED("FAILED"); + + private String value; + + TransactionAdapterStatus(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static TransactionAdapterStatus get(String value) { + if(value == null) + { + return null; + } + + // goes over TransactionAdapterStatus defined values and compare the inner value with the given one: + for(TransactionAdapterStatus item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return TransactionAdapterStatus.values().length > 0 ? TransactionAdapterStatus.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/TransactionHistoryOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/TransactionHistoryOrderBy.java new file mode 100644 index 000000000..5952fcf53 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/TransactionHistoryOrderBy.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum TransactionHistoryOrderBy implements EnumAsString { + CREATE_DATE_ASC("CREATE_DATE_ASC"), + CREATE_DATE_DESC("CREATE_DATE_DESC"); + + private String value; + + TransactionHistoryOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static TransactionHistoryOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over TransactionHistoryOrderBy defined values and compare the inner value with the given one: + for(TransactionHistoryOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return TransactionHistoryOrderBy.values().length > 0 ? TransactionHistoryOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/TransactionType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/TransactionType.java new file mode 100644 index 000000000..70e48524f --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/TransactionType.java @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum TransactionType implements EnumAsString { + PPV("ppv"), + SUBSCRIPTION("subscription"), + COLLECTION("collection"), + PROGRAMASSETGROUPOFFER("programAssetGroupOffer"); + + private String value; + + TransactionType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static TransactionType get(String value) { + if(value == null) + { + return null; + } + + // goes over TransactionType defined values and compare the inner value with the given one: + for(TransactionType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return TransactionType.values().length > 0 ? TransactionType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/TvmRuleOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/TvmRuleOrderBy.java new file mode 100644 index 000000000..77a5d7712 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/TvmRuleOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum TvmRuleOrderBy implements EnumAsString { + NONE("NONE"); + + private String value; + + TvmRuleOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static TvmRuleOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over TvmRuleOrderBy defined values and compare the inner value with the given one: + for(TvmRuleOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return TvmRuleOrderBy.values().length > 0 ? TvmRuleOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/TvmRuleType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/TvmRuleType.java new file mode 100644 index 000000000..352e8334f --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/TvmRuleType.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum TvmRuleType implements EnumAsString { + GEO("Geo"), + DEVICE("Device"); + + private String value; + + TvmRuleType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static TvmRuleType get(String value) { + if(value == null) + { + return null; + } + + // goes over TvmRuleType defined values and compare the inner value with the given one: + for(TvmRuleType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return TvmRuleType.values().length > 0 ? TvmRuleType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/UnmatchedItemsPolicy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/UnmatchedItemsPolicy.java new file mode 100644 index 000000000..57b2f4d7c --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/UnmatchedItemsPolicy.java @@ -0,0 +1,71 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum UnmatchedItemsPolicy implements EnumAsString { + OMIT("OMIT"), + GROUP("GROUP"), + INCLUDE_AND_MERGE("INCLUDE_AND_MERGE"); + + private String value; + + UnmatchedItemsPolicy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static UnmatchedItemsPolicy get(String value) { + if(value == null) + { + return null; + } + + // goes over UnmatchedItemsPolicy defined values and compare the inner value with the given one: + for(UnmatchedItemsPolicy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return UnmatchedItemsPolicy.values().length > 0 ? UnmatchedItemsPolicy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/UploadTokenStatus.java b/KalturaClient/src/main/java/com/kaltura/client/enums/UploadTokenStatus.java new file mode 100644 index 000000000..cd8c35784 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/UploadTokenStatus.java @@ -0,0 +1,71 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum UploadTokenStatus implements EnumAsString { + PENDING("PENDING"), + FULL_UPLOAD("FULL_UPLOAD"), + CLOSED("CLOSED"); + + private String value; + + UploadTokenStatus(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static UploadTokenStatus get(String value) { + if(value == null) + { + return null; + } + + // goes over UploadTokenStatus defined values and compare the inner value with the given one: + for(UploadTokenStatus item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return UploadTokenStatus.values().length > 0 ? UploadTokenStatus.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/UrlType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/UrlType.java new file mode 100644 index 000000000..dd5fa9126 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/UrlType.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum UrlType implements EnumAsString { + PLAYMANIFEST("PLAYMANIFEST"), + DIRECT("DIRECT"); + + private String value; + + UrlType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static UrlType get(String value) { + if(value == null) + { + return null; + } + + // goes over UrlType defined values and compare the inner value with the given one: + for(UrlType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return UrlType.values().length > 0 ? UrlType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/UserAssetRuleOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/UserAssetRuleOrderBy.java new file mode 100644 index 000000000..e1d94c800 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/UserAssetRuleOrderBy.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum UserAssetRuleOrderBy implements EnumAsString { + NAME_ASC("NAME_ASC"), + NAME_DESC("NAME_DESC"); + + private String value; + + UserAssetRuleOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static UserAssetRuleOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over UserAssetRuleOrderBy defined values and compare the inner value with the given one: + for(UserAssetRuleOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return UserAssetRuleOrderBy.values().length > 0 ? UserAssetRuleOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/UserAssetsListItemType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/UserAssetsListItemType.java new file mode 100644 index 000000000..2aca0a349 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/UserAssetsListItemType.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum UserAssetsListItemType implements EnumAsString { + ALL("all"), + MEDIA("media"); + + private String value; + + UserAssetsListItemType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static UserAssetsListItemType get(String value) { + if(value == null) + { + return null; + } + + // goes over UserAssetsListItemType defined values and compare the inner value with the given one: + for(UserAssetsListItemType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return UserAssetsListItemType.values().length > 0 ? UserAssetsListItemType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/UserAssetsListType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/UserAssetsListType.java new file mode 100644 index 000000000..5798246c6 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/UserAssetsListType.java @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum UserAssetsListType implements EnumAsString { + ALL("all"), + WATCH("watch"), + PURCHASE("purchase"), + LIBRARY("library"); + + private String value; + + UserAssetsListType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static UserAssetsListType get(String value) { + if(value == null) + { + return null; + } + + // goes over UserAssetsListType defined values and compare the inner value with the given one: + for(UserAssetsListType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return UserAssetsListType.values().length > 0 ? UserAssetsListType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/UserRoleOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/UserRoleOrderBy.java new file mode 100644 index 000000000..9887bd163 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/UserRoleOrderBy.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum UserRoleOrderBy implements EnumAsString { + NONE("NONE"); + + private String value; + + UserRoleOrderBy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static UserRoleOrderBy get(String value) { + if(value == null) + { + return null; + } + + // goes over UserRoleOrderBy defined values and compare the inner value with the given one: + for(UserRoleOrderBy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return UserRoleOrderBy.values().length > 0 ? UserRoleOrderBy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/UserRoleProfile.java b/KalturaClient/src/main/java/com/kaltura/client/enums/UserRoleProfile.java new file mode 100644 index 000000000..6bbb536d0 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/UserRoleProfile.java @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum UserRoleProfile implements EnumAsString { + USER("USER"), + PARTNER("PARTNER"), + PROFILE("PROFILE"), + SYSTEM("SYSTEM"), + PERMISSION_EMBEDDED("PERMISSION_EMBEDDED"); + + private String value; + + UserRoleProfile(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static UserRoleProfile get(String value) { + if(value == null) + { + return null; + } + + // goes over UserRoleProfile defined values and compare the inner value with the given one: + for(UserRoleProfile item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return UserRoleProfile.values().length > 0 ? UserRoleProfile.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/UserRoleType.java b/KalturaClient/src/main/java/com/kaltura/client/enums/UserRoleType.java new file mode 100644 index 000000000..d254ed1f1 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/UserRoleType.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum UserRoleType implements EnumAsString { + SYSTEM("SYSTEM"), + CUSTOM("CUSTOM"); + + private String value; + + UserRoleType(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static UserRoleType get(String value) { + if(value == null) + { + return null; + } + + // goes over UserRoleType defined values and compare the inner value with the given one: + for(UserRoleType item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return UserRoleType.values().length > 0 ? UserRoleType.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/UserState.java b/KalturaClient/src/main/java/com/kaltura/client/enums/UserState.java new file mode 100644 index 000000000..46d8f3562 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/UserState.java @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum UserState implements EnumAsString { + OK("ok"), + USER_WITH_NO_HOUSEHOLD("user_with_no_household"), + USER_CREATED_WITH_NO_ROLE("user_created_with_no_role"), + USER_NOT_ACTIVATED("user_not_activated"); + + private String value; + + UserState(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static UserState get(String value) { + if(value == null) + { + return null; + } + + // goes over UserState defined values and compare the inner value with the given one: + for(UserState item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return UserState.values().length > 0 ? UserState.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/WatchStatus.java b/KalturaClient/src/main/java/com/kaltura/client/enums/WatchStatus.java new file mode 100644 index 000000000..e671b7e14 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/WatchStatus.java @@ -0,0 +1,71 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum WatchStatus implements EnumAsString { + PROGRESS("progress"), + DONE("done"), + ALL("all"); + + private String value; + + WatchStatus(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static WatchStatus get(String value) { + if(value == null) + { + return null; + } + + // goes over WatchStatus defined values and compare the inner value with the given one: + for(WatchStatus item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return WatchStatus.values().length > 0 ? WatchStatus.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/enums/WatchedAllReturnStrategy.java b/KalturaClient/src/main/java/com/kaltura/client/enums/WatchedAllReturnStrategy.java new file mode 100644 index 000000000..4a0a5f9c7 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/enums/WatchedAllReturnStrategy.java @@ -0,0 +1,71 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.enums; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum WatchedAllReturnStrategy implements EnumAsString { + RETURN_NO_NEXT_EPISODE("RETURN_NO_NEXT_EPISODE"), + RETURN_FIRST_EPISODE("RETURN_FIRST_EPISODE"), + RETURN_LAST_EPISODE("RETURN_LAST_EPISODE"); + + private String value; + + WatchedAllReturnStrategy(String value) { + this.value = value; + } + + @Override + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public static WatchedAllReturnStrategy get(String value) { + if(value == null) + { + return null; + } + + // goes over WatchedAllReturnStrategy defined values and compare the inner value with the given one: + for(WatchedAllReturnStrategy item: values()) { + if(item.getValue().equals(value)) { + return item; + } + } + // in case the requested value was not found in the enum values, we return the first item as default. + return WatchedAllReturnStrategy.values().length > 0 ? WatchedAllReturnStrategy.values()[0]: null; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/AnnouncementService.java b/KalturaClient/src/main/java/com/kaltura/client/services/AnnouncementService.java new file mode 100644 index 000000000..42f99e82e --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/AnnouncementService.java @@ -0,0 +1,176 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.Announcement; +import com.kaltura.client.types.AnnouncementFilter; +import com.kaltura.client.types.FilterPager; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class AnnouncementService { + + public static class AddAnnouncementBuilder extends RequestBuilder { + + public AddAnnouncementBuilder(Announcement announcement) { + super(Announcement.class, "announcement", "add"); + params.add("announcement", announcement); + } + } + + /** + * Add a new future scheduled system announcement push notification + * + * @param announcement The announcement to be added. + * timezone parameter should be taken from the 'name of timezone' from: + * https://msdn.microsoft.com/en-us/library/ms912391(v=winembedded.11).aspx + * Recipients values: All, LoggedIn, Guests + */ + public static AddAnnouncementBuilder add(Announcement announcement) { + return new AddAnnouncementBuilder(announcement); + } + + public static class DeleteAnnouncementBuilder extends RequestBuilder { + + public DeleteAnnouncementBuilder(long id) { + super(Boolean.class, "announcement", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Delete an existing announcing. Announcement cannot be delete while being sent. + * + * @param id Id of the announcement. + */ + public static DeleteAnnouncementBuilder delete(long id) { + return new DeleteAnnouncementBuilder(id); + } + + public static class EnableSystemAnnouncementsAnnouncementBuilder extends RequestBuilder { + + public EnableSystemAnnouncementsAnnouncementBuilder() { + super(Boolean.class, "announcement", "enableSystemAnnouncements"); + } + } + + /** + * Enable system announcements + */ + public static EnableSystemAnnouncementsAnnouncementBuilder enableSystemAnnouncements() { + return new EnableSystemAnnouncementsAnnouncementBuilder(); + } + + public static class ListAnnouncementBuilder extends ListResponseRequestBuilder { + + public ListAnnouncementBuilder(AnnouncementFilter filter, FilterPager pager) { + super(Announcement.class, "announcement", "list"); + params.add("filter", filter); + params.add("pager", pager); + } + } + + public static ListAnnouncementBuilder list(AnnouncementFilter filter) { + return list(filter, null); + } + + /** + * Lists all announcements in the system. + * + * @param filter Filter object + * @param pager Paging the request + */ + public static ListAnnouncementBuilder list(AnnouncementFilter filter, FilterPager pager) { + return new ListAnnouncementBuilder(filter, pager); + } + + public static class UpdateAnnouncementBuilder extends RequestBuilder { + + public UpdateAnnouncementBuilder(int announcementId, Announcement announcement) { + super(Announcement.class, "announcement", "update"); + params.add("announcementId", announcementId); + params.add("announcement", announcement); + } + + public void announcementId(String multirequestToken) { + params.add("announcementId", multirequestToken); + } + } + + /** + * Update an existing future system announcement push notification. Announcement + can only be updated only before sending + * + * @param announcementId The announcement identifier + * @param announcement The announcement to update. + * timezone parameter should be taken from the 'name of timezone' from: + * https://msdn.microsoft.com/en-us/library/ms912391(v=winembedded.11).aspx + * Recipients values: All, LoggedIn, Guests + */ + public static UpdateAnnouncementBuilder update(int announcementId, Announcement announcement) { + return new UpdateAnnouncementBuilder(announcementId, announcement); + } + + public static class UpdateStatusAnnouncementBuilder extends RequestBuilder { + + public UpdateStatusAnnouncementBuilder(long id, boolean status) { + super(Boolean.class, "announcement", "updateStatus"); + params.add("id", id); + params.add("status", status); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + + public void status(String multirequestToken) { + params.add("status", multirequestToken); + } + } + + /** + * Update a system announcement status + * + * @param id Id of the announcement. + * @param status Status to update to. + */ + public static UpdateStatusAnnouncementBuilder updateStatus(long id, boolean status) { + return new UpdateStatusAnnouncementBuilder(id, status); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/AppTokenService.java b/KalturaClient/src/main/java/com/kaltura/client/services/AppTokenService.java new file mode 100644 index 000000000..96f571555 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/AppTokenService.java @@ -0,0 +1,161 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.AppToken; +import com.kaltura.client.types.SessionInfo; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class AppTokenService { + + public static class AddAppTokenBuilder extends RequestBuilder { + + public AddAppTokenBuilder(AppToken appToken) { + super(AppToken.class, "apptoken", "add"); + params.add("appToken", appToken); + } + } + + /** + * Add new application authentication token + * + * @param appToken Application token + */ + public static AddAppTokenBuilder add(AppToken appToken) { + return new AddAppTokenBuilder(appToken); + } + + public static class DeleteAppTokenBuilder extends RequestBuilder { + + public DeleteAppTokenBuilder(String id) { + super(Boolean.class, "apptoken", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Delete application authentication token by id + * + * @param id Application token identifier + */ + public static DeleteAppTokenBuilder delete(String id) { + return new DeleteAppTokenBuilder(id); + } + + public static class GetAppTokenBuilder extends RequestBuilder { + + public GetAppTokenBuilder(String id) { + super(AppToken.class, "apptoken", "get"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Get application authentication token by id + * + * @param id Application token identifier + */ + public static GetAppTokenBuilder get(String id) { + return new GetAppTokenBuilder(id); + } + + public static class StartSessionAppTokenBuilder extends RequestBuilder { + + public StartSessionAppTokenBuilder(String id, String tokenHash, String userId, int expiry, String udid) { + super(SessionInfo.class, "apptoken", "startSession"); + params.add("id", id); + params.add("tokenHash", tokenHash); + params.add("userId", userId); + params.add("expiry", expiry); + params.add("udid", udid); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + + public void tokenHash(String multirequestToken) { + params.add("tokenHash", multirequestToken); + } + + public void userId(String multirequestToken) { + params.add("userId", multirequestToken); + } + + public void expiry(String multirequestToken) { + params.add("expiry", multirequestToken); + } + + public void udid(String multirequestToken) { + params.add("udid", multirequestToken); + } + } + + public static StartSessionAppTokenBuilder startSession(String id, String tokenHash) { + return startSession(id, tokenHash, null); + } + + public static StartSessionAppTokenBuilder startSession(String id, String tokenHash, String userId) { + return startSession(id, tokenHash, userId, Integer.MIN_VALUE); + } + + public static StartSessionAppTokenBuilder startSession(String id, String tokenHash, String userId, int expiry) { + return startSession(id, tokenHash, userId, expiry, null); + } + + /** + * Starts a new KS (Kaltura Session) based on application authentication token id + * + * @param id application token id + * @param tokenHash hashed token - current KS concatenated with the application token hashed using + * the application token ‘hashType’ + * @param userId session user id, will be ignored if a different user id already defined on the + * application token + * @param expiry session expiry (in seconds), could be overwritten by shorter expiry of the + * application token and the session-expiry that defined on the application token + * @param udid Device UDID + */ + public static StartSessionAppTokenBuilder startSession(String id, String tokenHash, String userId, int expiry, String udid) { + return new StartSessionAppTokenBuilder(id, tokenHash, userId, expiry, udid); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/AssetCommentService.java b/KalturaClient/src/main/java/com/kaltura/client/services/AssetCommentService.java new file mode 100644 index 000000000..715e36f43 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/AssetCommentService.java @@ -0,0 +1,84 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.AssetComment; +import com.kaltura.client.types.AssetCommentFilter; +import com.kaltura.client.types.FilterPager; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class AssetCommentService { + + public static class AddAssetCommentBuilder extends RequestBuilder { + + public AddAssetCommentBuilder(AssetComment comment) { + super(AssetComment.class, "assetcomment", "add"); + params.add("comment", comment); + } + } + + /** + * Add asset comments by asset id + * + * @param comment comment + */ + public static AddAssetCommentBuilder add(AssetComment comment) { + return new AddAssetCommentBuilder(comment); + } + + public static class ListAssetCommentBuilder extends ListResponseRequestBuilder { + + public ListAssetCommentBuilder(AssetCommentFilter filter, FilterPager pager) { + super(AssetComment.class, "assetcomment", "list"); + params.add("filter", filter); + params.add("pager", pager); + } + } + + public static ListAssetCommentBuilder list(AssetCommentFilter filter) { + return list(filter, null); + } + + /** + * Returns asset comments by asset id + * + * @param filter Filtering the assets comments request + * @param pager Page size and index + */ + public static ListAssetCommentBuilder list(AssetCommentFilter filter, FilterPager pager) { + return new ListAssetCommentBuilder(filter, pager); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/AssetFilePpvService.java b/KalturaClient/src/main/java/com/kaltura/client/services/AssetFilePpvService.java new file mode 100644 index 000000000..509391699 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/AssetFilePpvService.java @@ -0,0 +1,133 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.AssetFilePpv; +import com.kaltura.client.types.AssetFilePpvFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class AssetFilePpvService { + + public static class AddAssetFilePpvBuilder extends RequestBuilder { + + public AddAssetFilePpvBuilder(AssetFilePpv assetFilePpv) { + super(AssetFilePpv.class, "assetfileppv", "add"); + params.add("assetFilePpv", assetFilePpv); + } + } + + /** + * Add asset file ppv + * + * @param assetFilePpv asset file ppv + */ + public static AddAssetFilePpvBuilder add(AssetFilePpv assetFilePpv) { + return new AddAssetFilePpvBuilder(assetFilePpv); + } + + public static class DeleteAssetFilePpvBuilder extends RequestBuilder { + + public DeleteAssetFilePpvBuilder(long assetFileId, long ppvModuleId) { + super(Boolean.class, "assetfileppv", "delete"); + params.add("assetFileId", assetFileId); + params.add("ppvModuleId", ppvModuleId); + } + + public void assetFileId(String multirequestToken) { + params.add("assetFileId", multirequestToken); + } + + public void ppvModuleId(String multirequestToken) { + params.add("ppvModuleId", multirequestToken); + } + } + + /** + * Delete asset file ppv + * + * @param assetFileId Asset file id + * @param ppvModuleId Ppv module id + */ + public static DeleteAssetFilePpvBuilder delete(long assetFileId, long ppvModuleId) { + return new DeleteAssetFilePpvBuilder(assetFileId, ppvModuleId); + } + + public static class ListAssetFilePpvBuilder extends ListResponseRequestBuilder { + + public ListAssetFilePpvBuilder(AssetFilePpvFilter filter) { + super(AssetFilePpv.class, "assetfileppv", "list"); + params.add("filter", filter); + } + } + + /** + * Return a list of asset files ppvs for the account with optional filter + * + * @param filter Filter parameters for filtering out the result + */ + public static ListAssetFilePpvBuilder list(AssetFilePpvFilter filter) { + return new ListAssetFilePpvBuilder(filter); + } + + public static class UpdateAssetFilePpvBuilder extends RequestBuilder { + + public UpdateAssetFilePpvBuilder(long assetFileId, long ppvModuleId, AssetFilePpv assetFilePpv) { + super(AssetFilePpv.class, "assetfileppv", "update"); + params.add("assetFileId", assetFileId); + params.add("ppvModuleId", ppvModuleId); + params.add("assetFilePpv", assetFilePpv); + } + + public void assetFileId(String multirequestToken) { + params.add("assetFileId", multirequestToken); + } + + public void ppvModuleId(String multirequestToken) { + params.add("ppvModuleId", multirequestToken); + } + } + + /** + * Update assetFilePpv + * + * @param assetFileId Asset file id + * @param ppvModuleId Ppv module id + * @param assetFilePpv assetFilePpv + */ + public static UpdateAssetFilePpvBuilder update(long assetFileId, long ppvModuleId, AssetFilePpv assetFilePpv) { + return new UpdateAssetFilePpvBuilder(assetFileId, ppvModuleId, assetFilePpv); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/AssetFileService.java b/KalturaClient/src/main/java/com/kaltura/client/services/AssetFileService.java new file mode 100644 index 000000000..b86b36323 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/AssetFileService.java @@ -0,0 +1,147 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.enums.AssetType; +import com.kaltura.client.enums.ContextType; +import com.kaltura.client.enums.PlaybackContextType; +import com.kaltura.client.types.AssetFile; +import com.kaltura.client.types.AssetFileContext; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class AssetFileService { + + public static class GetContextAssetFileBuilder extends RequestBuilder { + + public GetContextAssetFileBuilder(String id, ContextType contextType) { + super(AssetFileContext.class, "assetfile", "getContext"); + params.add("id", id); + params.add("contextType", contextType); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + + public void contextType(String multirequestToken) { + params.add("contextType", multirequestToken); + } + } + + /** + * get KalturaAssetFileContext + * + * @param id Asset file identifier + * @param contextType Kaltura Context Type (none = 0, recording = 1) + */ + public static GetContextAssetFileBuilder getContext(String id, ContextType contextType) { + return new GetContextAssetFileBuilder(id, contextType); + } + + public static class PlayManifestAssetFileBuilder extends RequestBuilder { + + public PlayManifestAssetFileBuilder(int partnerId, String assetId, AssetType assetType, long assetFileId, PlaybackContextType contextType, String ks, String tokenizedUrl, boolean isAltUrl) { + super(AssetFile.class, "assetfile", "playManifest"); + params.add("partnerId", partnerId); + params.add("assetId", assetId); + params.add("assetType", assetType); + params.add("assetFileId", assetFileId); + params.add("contextType", contextType); + params.add("ks", ks); + params.add("tokenizedUrl", tokenizedUrl); + params.add("isAltUrl", isAltUrl); + } + + public void partnerId(String multirequestToken) { + params.add("partnerId", multirequestToken); + } + + public void assetId(String multirequestToken) { + params.add("assetId", multirequestToken); + } + + public void assetType(String multirequestToken) { + params.add("assetType", multirequestToken); + } + + public void assetFileId(String multirequestToken) { + params.add("assetFileId", multirequestToken); + } + + public void contextType(String multirequestToken) { + params.add("contextType", multirequestToken); + } + + public void ks(String multirequestToken) { + params.add("ks", multirequestToken); + } + + public void tokenizedUrl(String multirequestToken) { + params.add("tokenizedUrl", multirequestToken); + } + + public void isAltUrl(String multirequestToken) { + params.add("isAltUrl", multirequestToken); + } + } + + public static PlayManifestAssetFileBuilder playManifest(int partnerId, String assetId, AssetType assetType, long assetFileId, PlaybackContextType contextType) { + return playManifest(partnerId, assetId, assetType, assetFileId, contextType, null); + } + + public static PlayManifestAssetFileBuilder playManifest(int partnerId, String assetId, AssetType assetType, long assetFileId, PlaybackContextType contextType, String ks) { + return playManifest(partnerId, assetId, assetType, assetFileId, contextType, ks, null); + } + + public static PlayManifestAssetFileBuilder playManifest(int partnerId, String assetId, AssetType assetType, long assetFileId, PlaybackContextType contextType, String ks, String tokenizedUrl) { + return playManifest(partnerId, assetId, assetType, assetFileId, contextType, ks, tokenizedUrl, false); + } + + /** + * Redirects to play manifest + * + * @param partnerId Partner identifier + * @param assetId Asset identifier + * @param assetType Asset type + * @param assetFileId Asset file identifier + * @param contextType Playback context type + * @param ks Kaltura session for the user, not mandatory for anonymous user + * @param tokenizedUrl Tokenized Url, not mandatory + * @param isAltUrl Is alternative url + */ + public static PlayManifestAssetFileBuilder playManifest(int partnerId, String assetId, AssetType assetType, long assetFileId, PlaybackContextType contextType, String ks, String tokenizedUrl, boolean isAltUrl) { + return new PlayManifestAssetFileBuilder(partnerId, assetId, assetType, assetFileId, contextType, ks, tokenizedUrl, isAltUrl); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/AssetHistoryService.java b/KalturaClient/src/main/java/com/kaltura/client/services/AssetHistoryService.java new file mode 100644 index 000000000..3f123bf8f --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/AssetHistoryService.java @@ -0,0 +1,149 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.enums.NotWatchedReturnStrategy; +import com.kaltura.client.enums.WatchedAllReturnStrategy; +import com.kaltura.client.types.AssetHistory; +import com.kaltura.client.types.AssetHistoryFilter; +import com.kaltura.client.types.FilterPager; +import com.kaltura.client.types.SeriesIdArguments; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.NullRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class AssetHistoryService { + + public static class CleanAssetHistoryBuilder extends NullRequestBuilder { + + public CleanAssetHistoryBuilder(AssetHistoryFilter filter) { + super("assethistory", "clean"); + params.add("filter", filter); + } + } + + public static CleanAssetHistoryBuilder clean() { + return clean(null); + } + + /** + * Clean the user’s viewing history + * + * @param filter List of assets identifier + */ + public static CleanAssetHistoryBuilder clean(AssetHistoryFilter filter) { + return new CleanAssetHistoryBuilder(filter); + } + + public static class GetNextEpisodeAssetHistoryBuilder extends RequestBuilder { + + public GetNextEpisodeAssetHistoryBuilder(long assetId, SeriesIdArguments seriesIdArguments, NotWatchedReturnStrategy notWatchedReturnStrategy, WatchedAllReturnStrategy watchedAllReturnStrategy) { + super(AssetHistory.class, "assethistory", "getNextEpisode"); + params.add("assetId", assetId); + params.add("seriesIdArguments", seriesIdArguments); + params.add("notWatchedReturnStrategy", notWatchedReturnStrategy); + params.add("watchedAllReturnStrategy", watchedAllReturnStrategy); + } + + public void assetId(String multirequestToken) { + params.add("assetId", multirequestToken); + } + + public void notWatchedReturnStrategy(String multirequestToken) { + params.add("notWatchedReturnStrategy", multirequestToken); + } + + public void watchedAllReturnStrategy(String multirequestToken) { + params.add("watchedAllReturnStrategy", multirequestToken); + } + } + + public static GetNextEpisodeAssetHistoryBuilder getNextEpisode() { + return getNextEpisode(Long.MIN_VALUE); + } + + public static GetNextEpisodeAssetHistoryBuilder getNextEpisode(long assetId) { + return getNextEpisode(assetId, null); + } + + public static GetNextEpisodeAssetHistoryBuilder getNextEpisode(long assetId, SeriesIdArguments seriesIdArguments) { + return getNextEpisode(assetId, seriesIdArguments, null); + } + + public static GetNextEpisodeAssetHistoryBuilder getNextEpisode(long assetId, SeriesIdArguments seriesIdArguments, NotWatchedReturnStrategy notWatchedReturnStrategy) { + return getNextEpisode(assetId, seriesIdArguments, notWatchedReturnStrategy, null); + } + + /** + * Get next episode by last watch asset in given assetId + * + * @param assetId asset Id of series to search for next episode + * @param seriesIdArguments series Id arguments + * @param notWatchedReturnStrategy not watched any episode strategy + * @param watchedAllReturnStrategy watched all series episodes strategy + */ + public static GetNextEpisodeAssetHistoryBuilder getNextEpisode(long assetId, SeriesIdArguments seriesIdArguments, NotWatchedReturnStrategy notWatchedReturnStrategy, WatchedAllReturnStrategy watchedAllReturnStrategy) { + return new GetNextEpisodeAssetHistoryBuilder(assetId, seriesIdArguments, notWatchedReturnStrategy, watchedAllReturnStrategy); + } + + public static class ListAssetHistoryBuilder extends ListResponseRequestBuilder { + + public ListAssetHistoryBuilder(AssetHistoryFilter filter, FilterPager pager) { + super(AssetHistory.class, "assethistory", "list"); + params.add("filter", filter); + params.add("pager", pager); + } + } + + public static ListAssetHistoryBuilder list() { + return list(null); + } + + public static ListAssetHistoryBuilder list(AssetHistoryFilter filter) { + return list(filter, null); + } + + /** + * Get recently watched media for user, ordered by recently watched first. + * + * @param filter Filter parameters for filtering out the result + * @param pager Page size and index. Number of assets to return per page. Possible range 5 ≤ + * size ≥ 50. If omitted - will be set to 25. If a value > 50 provided – + * will set to 50 + */ + public static ListAssetHistoryBuilder list(AssetHistoryFilter filter, FilterPager pager) { + return new ListAssetHistoryBuilder(filter, pager); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/AssetPersonalMarkupService.java b/KalturaClient/src/main/java/com/kaltura/client/services/AssetPersonalMarkupService.java new file mode 100644 index 000000000..1c0458148 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/AssetPersonalMarkupService.java @@ -0,0 +1,59 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.AssetPersonalMarkup; +import com.kaltura.client.types.AssetPersonalMarkupSearchFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class AssetPersonalMarkupService { + + public static class ListAssetPersonalMarkupBuilder extends ListResponseRequestBuilder { + + public ListAssetPersonalMarkupBuilder(AssetPersonalMarkupSearchFilter filter) { + super(AssetPersonalMarkup.class, "assetpersonalmarkup", "list"); + params.add("filter", filter); + } + } + + /** + * Response with list of assetPersonalMarkup. + * + * @param filter Filter pager + */ + public static ListAssetPersonalMarkupBuilder list(AssetPersonalMarkupSearchFilter filter) { + return new ListAssetPersonalMarkupBuilder(filter); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/AssetPersonalSelectionService.java b/KalturaClient/src/main/java/com/kaltura/client/services/AssetPersonalSelectionService.java new file mode 100644 index 000000000..c0bd18439 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/AssetPersonalSelectionService.java @@ -0,0 +1,130 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.enums.AssetType; +import com.kaltura.client.types.AssetPersonalSelection; +import com.kaltura.client.utils.request.NullRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class AssetPersonalSelectionService { + + public static class DeleteAssetPersonalSelectionBuilder extends NullRequestBuilder { + + public DeleteAssetPersonalSelectionBuilder(long assetId, AssetType assetType, int slotNumber) { + super("assetpersonalselection", "delete"); + params.add("assetId", assetId); + params.add("assetType", assetType); + params.add("slotNumber", slotNumber); + } + + public void assetId(String multirequestToken) { + params.add("assetId", multirequestToken); + } + + public void assetType(String multirequestToken) { + params.add("assetType", multirequestToken); + } + + public void slotNumber(String multirequestToken) { + params.add("slotNumber", multirequestToken); + } + } + + /** + * Remove asset selection in slot + * + * @param assetId asset id + * @param assetType asset type: media/epg + * @param slotNumber slot number + */ + public static DeleteAssetPersonalSelectionBuilder delete(long assetId, AssetType assetType, int slotNumber) { + return new DeleteAssetPersonalSelectionBuilder(assetId, assetType, slotNumber); + } + + public static class DeleteAllAssetPersonalSelectionBuilder extends NullRequestBuilder { + + public DeleteAllAssetPersonalSelectionBuilder(int slotNumber) { + super("assetpersonalselection", "deleteAll"); + params.add("slotNumber", slotNumber); + } + + public void slotNumber(String multirequestToken) { + params.add("slotNumber", multirequestToken); + } + } + + /** + * Remove asset selection in slot + * + * @param slotNumber slot number + */ + public static DeleteAllAssetPersonalSelectionBuilder deleteAll(int slotNumber) { + return new DeleteAllAssetPersonalSelectionBuilder(slotNumber); + } + + public static class UpsertAssetPersonalSelectionBuilder extends RequestBuilder { + + public UpsertAssetPersonalSelectionBuilder(long assetId, AssetType assetType, int slotNumber) { + super(AssetPersonalSelection.class, "assetpersonalselection", "upsert"); + params.add("assetId", assetId); + params.add("assetType", assetType); + params.add("slotNumber", slotNumber); + } + + public void assetId(String multirequestToken) { + params.add("assetId", multirequestToken); + } + + public void assetType(String multirequestToken) { + params.add("assetType", multirequestToken); + } + + public void slotNumber(String multirequestToken) { + params.add("slotNumber", multirequestToken); + } + } + + /** + * Add or update asset selection in slot + * + * @param assetId asset id + * @param assetType asset type: media/epg + * @param slotNumber slot number + */ + public static UpsertAssetPersonalSelectionBuilder upsert(long assetId, AssetType assetType, int slotNumber) { + return new UpsertAssetPersonalSelectionBuilder(assetId, assetType, slotNumber); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/AssetRuleService.java b/KalturaClient/src/main/java/com/kaltura/client/services/AssetRuleService.java new file mode 100644 index 000000000..787a4ed9e --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/AssetRuleService.java @@ -0,0 +1,125 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.AssetRule; +import com.kaltura.client.types.AssetRuleFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class AssetRuleService { + + public static class AddAssetRuleBuilder extends RequestBuilder { + + public AddAssetRuleBuilder(AssetRule assetRule) { + super(AssetRule.class, "assetrule", "add"); + params.add("assetRule", assetRule); + } + } + + /** + * Add asset rule + * + * @param assetRule Asset rule + */ + public static AddAssetRuleBuilder add(AssetRule assetRule) { + return new AddAssetRuleBuilder(assetRule); + } + + public static class DeleteAssetRuleBuilder extends RequestBuilder { + + public DeleteAssetRuleBuilder(long id) { + super(Boolean.class, "assetrule", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Delete asset rule + * + * @param id Asset rule ID + */ + public static DeleteAssetRuleBuilder delete(long id) { + return new DeleteAssetRuleBuilder(id); + } + + public static class ListAssetRuleBuilder extends ListResponseRequestBuilder { + + public ListAssetRuleBuilder(AssetRuleFilter filter) { + super(AssetRule.class, "assetrule", "list"); + params.add("filter", filter); + } + } + + public static ListAssetRuleBuilder list() { + return list(null); + } + + /** + * Get the list of asset rules for the partner + * + * @param filter filter by condition name + */ + public static ListAssetRuleBuilder list(AssetRuleFilter filter) { + return new ListAssetRuleBuilder(filter); + } + + public static class UpdateAssetRuleBuilder extends RequestBuilder { + + public UpdateAssetRuleBuilder(long id, AssetRule assetRule) { + super(AssetRule.class, "assetrule", "update"); + params.add("id", id); + params.add("assetRule", assetRule); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Update asset rule + * + * @param id Asset rule ID to update + * @param assetRule Asset rule + */ + public static UpdateAssetRuleBuilder update(long id, AssetRule assetRule) { + return new UpdateAssetRuleBuilder(id, assetRule); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/AssetService.java b/KalturaClient/src/main/java/com/kaltura/client/services/AssetService.java new file mode 100644 index 000000000..885333c46 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/AssetService.java @@ -0,0 +1,455 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.FileHolder; +import com.kaltura.client.Files; +import com.kaltura.client.enums.AssetReferenceType; +import com.kaltura.client.enums.AssetType; +import com.kaltura.client.enums.UnmatchedItemsPolicy; +import com.kaltura.client.types.AdsContext; +import com.kaltura.client.types.Asset; +import com.kaltura.client.types.AssetCount; +import com.kaltura.client.types.AssetFilter; +import com.kaltura.client.types.AssetGroupBy; +import com.kaltura.client.types.BaseAssetOrder; +import com.kaltura.client.types.BulkUpload; +import com.kaltura.client.types.BulkUploadAssetData; +import com.kaltura.client.types.BulkUploadJobData; +import com.kaltura.client.types.FilterPager; +import com.kaltura.client.types.ListGroupsRepresentativesFilter; +import com.kaltura.client.types.PersonalAssetSelectionFilter; +import com.kaltura.client.types.PlaybackContext; +import com.kaltura.client.types.PlaybackContextOptions; +import com.kaltura.client.types.RepresentativeSelectionPolicy; +import com.kaltura.client.types.SearchAssetFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.io.File; +import java.io.FileInputStream; +import java.io.InputStream; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class AssetService { + + public static class AddAssetBuilder extends RequestBuilder { + + public AddAssetBuilder(Asset asset) { + super(Asset.class, "asset", "add"); + params.add("asset", asset); + } + } + + /** + * Add a new asset. For metas of type bool-&gt; use + kalturaBoolValue, type number-&gt; KalturaDoubleValue, type date -&gt; + KalturaLongValue, type string -&gt; KalturaStringValue + * + * @param asset Asset object + */ + public static AddAssetBuilder add(Asset asset) { + return new AddAssetBuilder(asset); + } + + public static class AddFromBulkUploadAssetBuilder extends RequestBuilder { + + public AddFromBulkUploadAssetBuilder(FileHolder fileData, BulkUploadJobData bulkUploadJobData, BulkUploadAssetData bulkUploadAssetData) { + super(BulkUpload.class, "asset", "addFromBulkUpload"); + files = new Files(); + files.add("fileData", fileData); + params.add("bulkUploadJobData", bulkUploadJobData); + params.add("bulkUploadAssetData", bulkUploadAssetData); + } + } + + public static AddFromBulkUploadAssetBuilder addFromBulkUpload(File fileData, BulkUploadJobData bulkUploadJobData, BulkUploadAssetData bulkUploadAssetData) { + return addFromBulkUpload(new FileHolder(fileData), bulkUploadJobData, bulkUploadAssetData); + } + + public static AddFromBulkUploadAssetBuilder addFromBulkUpload(InputStream fileData, String fileDataMimeType, String fileDataName, long fileDataSize, BulkUploadJobData bulkUploadJobData, BulkUploadAssetData bulkUploadAssetData) { + return addFromBulkUpload(new FileHolder(fileData, fileDataMimeType, fileDataName, fileDataSize), bulkUploadJobData, bulkUploadAssetData); + } + + public static AddFromBulkUploadAssetBuilder addFromBulkUpload(FileInputStream fileData, String fileDataMimeType, String fileDataName, BulkUploadJobData bulkUploadJobData, BulkUploadAssetData bulkUploadAssetData) { + return addFromBulkUpload(new FileHolder(fileData, fileDataMimeType, fileDataName), bulkUploadJobData, bulkUploadAssetData); + } + + /** + * Add new bulk upload batch job Conversion profile id can be specified in the API. + * + * @param fileData fileData + * @param bulkUploadJobData bulkUploadJobData + * @param bulkUploadAssetData bulkUploadAssetData + */ + public static AddFromBulkUploadAssetBuilder addFromBulkUpload(FileHolder fileData, BulkUploadJobData bulkUploadJobData, BulkUploadAssetData bulkUploadAssetData) { + return new AddFromBulkUploadAssetBuilder(fileData, bulkUploadJobData, bulkUploadAssetData); + } + + public static class CountAssetBuilder extends RequestBuilder { + + public CountAssetBuilder(SearchAssetFilter filter) { + super(AssetCount.class, "asset", "count"); + params.add("filter", filter); + } + } + + public static CountAssetBuilder count() { + return count(null); + } + + /** + * Returns a group-by result for media or EPG according to given filter. Lists + values of each field and their respective count. + * + * @param filter Filtering the assets request + */ + public static CountAssetBuilder count(SearchAssetFilter filter) { + return new CountAssetBuilder(filter); + } + + public static class DeleteAssetBuilder extends RequestBuilder { + + public DeleteAssetBuilder(long id, AssetReferenceType assetReferenceType) { + super(Boolean.class, "asset", "delete"); + params.add("id", id); + params.add("assetReferenceType", assetReferenceType); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + + public void assetReferenceType(String multirequestToken) { + params.add("assetReferenceType", multirequestToken); + } + } + + /** + * Delete an existing asset + * + * @param id Asset Identifier + * @param assetReferenceType Type of asset + */ + public static DeleteAssetBuilder delete(long id, AssetReferenceType assetReferenceType) { + return new DeleteAssetBuilder(id, assetReferenceType); + } + + public static class GetAssetBuilder extends RequestBuilder { + + public GetAssetBuilder(String id, AssetReferenceType assetReferenceType) { + super(Asset.class, "asset", "get"); + params.add("id", id); + params.add("assetReferenceType", assetReferenceType); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + + public void assetReferenceType(String multirequestToken) { + params.add("assetReferenceType", multirequestToken); + } + } + + /** + * Returns media or EPG asset by media / EPG internal or external identifier. + Note: OPC accounts asset.get for internal identifier doesn&#39;t take + under consideration personalized aspects neither shop limitations. + * + * @param id Asset identifier + * @param assetReferenceType Asset type + */ + public static GetAssetBuilder get(String id, AssetReferenceType assetReferenceType) { + return new GetAssetBuilder(id, assetReferenceType); + } + + public static class GetAdsContextAssetBuilder extends RequestBuilder { + + public GetAdsContextAssetBuilder(String assetId, AssetType assetType, PlaybackContextOptions contextDataParams) { + super(AdsContext.class, "asset", "getAdsContext"); + params.add("assetId", assetId); + params.add("assetType", assetType); + params.add("contextDataParams", contextDataParams); + } + + public void assetId(String multirequestToken) { + params.add("assetId", multirequestToken); + } + + public void assetType(String multirequestToken) { + params.add("assetType", multirequestToken); + } + } + + /** + * Returns the data for ads control + * + * @param assetId Asset identifier + * @param assetType Asset type + * @param contextDataParams Parameters for the request + */ + public static GetAdsContextAssetBuilder getAdsContext(String assetId, AssetType assetType, PlaybackContextOptions contextDataParams) { + return new GetAdsContextAssetBuilder(assetId, assetType, contextDataParams); + } + + public static class GetPlaybackContextAssetBuilder extends RequestBuilder { + + public GetPlaybackContextAssetBuilder(String assetId, AssetType assetType, PlaybackContextOptions contextDataParams, String sourceType) { + super(PlaybackContext.class, "asset", "getPlaybackContext"); + params.add("assetId", assetId); + params.add("assetType", assetType); + params.add("contextDataParams", contextDataParams); + params.add("sourceType", sourceType); + } + + public void assetId(String multirequestToken) { + params.add("assetId", multirequestToken); + } + + public void assetType(String multirequestToken) { + params.add("assetType", multirequestToken); + } + + public void sourceType(String multirequestToken) { + params.add("sourceType", multirequestToken); + } + } + + public static GetPlaybackContextAssetBuilder getPlaybackContext(String assetId, AssetType assetType, PlaybackContextOptions contextDataParams) { + return getPlaybackContext(assetId, assetType, contextDataParams, null); + } + + /** + * This action delivers all data relevant for player + * + * @param assetId Asset identifier + * @param assetType Asset type + * @param contextDataParams Parameters for the request + * @param sourceType Filter sources by type + */ + public static GetPlaybackContextAssetBuilder getPlaybackContext(String assetId, AssetType assetType, PlaybackContextOptions contextDataParams, String sourceType) { + return new GetPlaybackContextAssetBuilder(assetId, assetType, contextDataParams, sourceType); + } + + public static class GetPlaybackManifestAssetBuilder extends RequestBuilder { + + public GetPlaybackManifestAssetBuilder(String assetId, AssetType assetType, PlaybackContextOptions contextDataParams, String sourceType) { + super(PlaybackContext.class, "asset", "getPlaybackManifest"); + params.add("assetId", assetId); + params.add("assetType", assetType); + params.add("contextDataParams", contextDataParams); + params.add("sourceType", sourceType); + } + + public void assetId(String multirequestToken) { + params.add("assetId", multirequestToken); + } + + public void assetType(String multirequestToken) { + params.add("assetType", multirequestToken); + } + + public void sourceType(String multirequestToken) { + params.add("sourceType", multirequestToken); + } + } + + public static GetPlaybackManifestAssetBuilder getPlaybackManifest(String assetId, AssetType assetType, PlaybackContextOptions contextDataParams) { + return getPlaybackManifest(assetId, assetType, contextDataParams, null); + } + + /** + * This action delivers all data relevant for player + * + * @param assetId Asset identifier + * @param assetType Asset type + * @param contextDataParams Parameters for the request + * @param sourceType Filter sources by type + */ + public static GetPlaybackManifestAssetBuilder getPlaybackManifest(String assetId, AssetType assetType, PlaybackContextOptions contextDataParams, String sourceType) { + return new GetPlaybackManifestAssetBuilder(assetId, assetType, contextDataParams, sourceType); + } + + public static class GroupRepresentativeListAssetBuilder extends ListResponseRequestBuilder { + + public GroupRepresentativeListAssetBuilder(AssetGroupBy groupBy, UnmatchedItemsPolicy unmatchedItemsPolicy, BaseAssetOrder orderBy, ListGroupsRepresentativesFilter filter, RepresentativeSelectionPolicy selectionPolicy, FilterPager pager) { + super(Asset.class, "asset", "groupRepresentativeList"); + params.add("groupBy", groupBy); + params.add("unmatchedItemsPolicy", unmatchedItemsPolicy); + params.add("orderBy", orderBy); + params.add("filter", filter); + params.add("selectionPolicy", selectionPolicy); + params.add("pager", pager); + } + + public void unmatchedItemsPolicy(String multirequestToken) { + params.add("unmatchedItemsPolicy", multirequestToken); + } + } + + public static GroupRepresentativeListAssetBuilder groupRepresentativeList(AssetGroupBy groupBy, UnmatchedItemsPolicy unmatchedItemsPolicy) { + return groupRepresentativeList(groupBy, unmatchedItemsPolicy, null); + } + + public static GroupRepresentativeListAssetBuilder groupRepresentativeList(AssetGroupBy groupBy, UnmatchedItemsPolicy unmatchedItemsPolicy, BaseAssetOrder orderBy) { + return groupRepresentativeList(groupBy, unmatchedItemsPolicy, orderBy, null); + } + + public static GroupRepresentativeListAssetBuilder groupRepresentativeList(AssetGroupBy groupBy, UnmatchedItemsPolicy unmatchedItemsPolicy, BaseAssetOrder orderBy, ListGroupsRepresentativesFilter filter) { + return groupRepresentativeList(groupBy, unmatchedItemsPolicy, orderBy, filter, null); + } + + public static GroupRepresentativeListAssetBuilder groupRepresentativeList(AssetGroupBy groupBy, UnmatchedItemsPolicy unmatchedItemsPolicy, BaseAssetOrder orderBy, ListGroupsRepresentativesFilter filter, RepresentativeSelectionPolicy selectionPolicy) { + return groupRepresentativeList(groupBy, unmatchedItemsPolicy, orderBy, filter, selectionPolicy, null); + } + + /** + * Returns assets deduplicated by asset metadata (or supported asset&#39;s + property). + * + * @param groupBy A metadata (or supported asset's property) to group by the assets + * @param unmatchedItemsPolicy Defines the policy to handle assets that don't have groupBy property + * @param orderBy A metadata or supported asset's property to sort by + * @param filter Filtering the assets request + * @param selectionPolicy A policy that implements a well defined parametric process to select an asset + * out of group + * @param pager Paging the request + */ + public static GroupRepresentativeListAssetBuilder groupRepresentativeList(AssetGroupBy groupBy, UnmatchedItemsPolicy unmatchedItemsPolicy, BaseAssetOrder orderBy, ListGroupsRepresentativesFilter filter, RepresentativeSelectionPolicy selectionPolicy, FilterPager pager) { + return new GroupRepresentativeListAssetBuilder(groupBy, unmatchedItemsPolicy, orderBy, filter, selectionPolicy, pager); + } + + public static class ListAssetBuilder extends ListResponseRequestBuilder { + + public ListAssetBuilder(AssetFilter filter, FilterPager pager) { + super(Asset.class, "asset", "list"); + params.add("filter", filter); + params.add("pager", pager); + } + } + + public static ListAssetBuilder list() { + return list(null); + } + + public static ListAssetBuilder list(AssetFilter filter) { + return list(filter, null); + } + + /** + * Returns media or EPG assets. Filters by media identifiers or by EPG internal or + external identifier. + * + * @param filter Filtering the assets request + * @param pager Paging the request + */ + public static ListAssetBuilder list(AssetFilter filter, FilterPager pager) { + return new ListAssetBuilder(filter, pager); + } + + public static class ListPersonalSelectionAssetBuilder extends ListResponseRequestBuilder { + + public ListPersonalSelectionAssetBuilder(PersonalAssetSelectionFilter filter) { + super(Asset.class, "asset", "listPersonalSelection"); + params.add("filter", filter); + } + } + + /** + * Returns recent selected assets + * + * @param filter Filtering the assets request + */ + public static ListPersonalSelectionAssetBuilder listPersonalSelection(PersonalAssetSelectionFilter filter) { + return new ListPersonalSelectionAssetBuilder(filter); + } + + public static class RemoveMetasAndTagsAssetBuilder extends RequestBuilder { + + public RemoveMetasAndTagsAssetBuilder(long id, AssetReferenceType assetReferenceType, String idIn) { + super(Boolean.class, "asset", "removeMetasAndTags"); + params.add("id", id); + params.add("assetReferenceType", assetReferenceType); + params.add("idIn", idIn); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + + public void assetReferenceType(String multirequestToken) { + params.add("assetReferenceType", multirequestToken); + } + + public void idIn(String multirequestToken) { + params.add("idIn", multirequestToken); + } + } + + /** + * remove metas and tags from asset + * + * @param id Asset Identifier + * @param assetReferenceType Type of asset + * @param idIn comma separated ids of metas and tags + */ + public static RemoveMetasAndTagsAssetBuilder removeMetasAndTags(long id, AssetReferenceType assetReferenceType, String idIn) { + return new RemoveMetasAndTagsAssetBuilder(id, assetReferenceType, idIn); + } + + public static class UpdateAssetBuilder extends RequestBuilder { + + public UpdateAssetBuilder(long id, Asset asset) { + super(Asset.class, "asset", "update"); + params.add("id", id); + params.add("asset", asset); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * update an existing asset. For metas of type bool-&gt; use + kalturaBoolValue, type number-&gt; KalturaDoubleValue, type date -&gt; + KalturaLongValue, type string -&gt; KalturaStringValue + * + * @param id Asset Identifier + * @param asset Asset object + */ + public static UpdateAssetBuilder update(long id, Asset asset) { + return new UpdateAssetBuilder(id, asset); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/AssetStatisticsService.java b/KalturaClient/src/main/java/com/kaltura/client/services/AssetStatisticsService.java new file mode 100644 index 000000000..e57ce7bb7 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/AssetStatisticsService.java @@ -0,0 +1,59 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.AssetStatistics; +import com.kaltura.client.types.AssetStatisticsQuery; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class AssetStatisticsService { + + public static class QueryAssetStatisticsBuilder extends ListResponseRequestBuilder { + + public QueryAssetStatisticsBuilder(AssetStatisticsQuery query) { + super(AssetStatistics.class, "assetstatistics", "query"); + params.add("query", query); + } + } + + /** + * Returns statistics for given list of assets by type and / or time period + * + * @param query Query for assets statistics + */ + public static QueryAssetStatisticsBuilder query(AssetStatisticsQuery query) { + return new QueryAssetStatisticsBuilder(query); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/AssetStructMetaService.java b/KalturaClient/src/main/java/com/kaltura/client/services/AssetStructMetaService.java new file mode 100644 index 000000000..118d567b3 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/AssetStructMetaService.java @@ -0,0 +1,89 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.AssetStructMeta; +import com.kaltura.client.types.AssetStructMetaFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class AssetStructMetaService { + + public static class ListAssetStructMetaBuilder extends ListResponseRequestBuilder { + + public ListAssetStructMetaBuilder(AssetStructMetaFilter filter) { + super(AssetStructMeta.class, "assetstructmeta", "list"); + params.add("filter", filter); + } + } + + /** + * Return a list of asset struct metas for the account with optional filter + * + * @param filter Filter parameters for filtering out the result + */ + public static ListAssetStructMetaBuilder list(AssetStructMetaFilter filter) { + return new ListAssetStructMetaBuilder(filter); + } + + public static class UpdateAssetStructMetaBuilder extends RequestBuilder { + + public UpdateAssetStructMetaBuilder(long assetStructId, long metaId, AssetStructMeta assetStructMeta) { + super(AssetStructMeta.class, "assetstructmeta", "update"); + params.add("assetStructId", assetStructId); + params.add("metaId", metaId); + params.add("assetStructMeta", assetStructMeta); + } + + public void assetStructId(String multirequestToken) { + params.add("assetStructId", multirequestToken); + } + + public void metaId(String multirequestToken) { + params.add("metaId", multirequestToken); + } + } + + /** + * Update Asset struct meta + * + * @param assetStructId AssetStruct Identifier + * @param metaId Meta Identifier + * @param assetStructMeta AssetStructMeta Object + */ + public static UpdateAssetStructMetaBuilder update(long assetStructId, long metaId, AssetStructMeta assetStructMeta) { + return new UpdateAssetStructMetaBuilder(assetStructId, metaId, assetStructMeta); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/AssetStructService.java b/KalturaClient/src/main/java/com/kaltura/client/services/AssetStructService.java new file mode 100644 index 000000000..b7c077645 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/AssetStructService.java @@ -0,0 +1,146 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.AssetStruct; +import com.kaltura.client.types.BaseAssetStructFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class AssetStructService { + + public static class AddAssetStructBuilder extends RequestBuilder { + + public AddAssetStructBuilder(AssetStruct assetStruct) { + super(AssetStruct.class, "assetstruct", "add"); + params.add("assetStruct", assetStruct); + } + } + + /** + * Add a new assetStruct + * + * @param assetStruct AssetStruct Object + */ + public static AddAssetStructBuilder add(AssetStruct assetStruct) { + return new AddAssetStructBuilder(assetStruct); + } + + public static class DeleteAssetStructBuilder extends RequestBuilder { + + public DeleteAssetStructBuilder(long id) { + super(Boolean.class, "assetstruct", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Delete an existing assetStruct + * + * @param id AssetStruct Identifier, id = 0 is identified as program AssetStruct + */ + public static DeleteAssetStructBuilder delete(long id) { + return new DeleteAssetStructBuilder(id); + } + + public static class GetAssetStructBuilder extends RequestBuilder { + + public GetAssetStructBuilder(long id) { + super(AssetStruct.class, "assetstruct", "get"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Get AssetStruct by ID + * + * @param id ID to get + */ + public static GetAssetStructBuilder get(long id) { + return new GetAssetStructBuilder(id); + } + + public static class ListAssetStructBuilder extends ListResponseRequestBuilder { + + public ListAssetStructBuilder(BaseAssetStructFilter filter) { + super(AssetStruct.class, "assetstruct", "list"); + params.add("filter", filter); + } + } + + public static ListAssetStructBuilder list() { + return list(null); + } + + /** + * Return a list of asset structs for the account with optional filter + * + * @param filter Filter parameters for filtering out the result + */ + public static ListAssetStructBuilder list(BaseAssetStructFilter filter) { + return new ListAssetStructBuilder(filter); + } + + public static class UpdateAssetStructBuilder extends RequestBuilder { + + public UpdateAssetStructBuilder(long id, AssetStruct assetStruct) { + super(AssetStruct.class, "assetstruct", "update"); + params.add("id", id); + params.add("assetStruct", assetStruct); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Update an existing assetStruct + * + * @param id AssetStruct Identifier, id = 0 is identified as program AssetStruct + * @param assetStruct AssetStruct Object + */ + public static UpdateAssetStructBuilder update(long id, AssetStruct assetStruct) { + return new UpdateAssetStructBuilder(id, assetStruct); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/AssetUserRuleService.java b/KalturaClient/src/main/java/com/kaltura/client/services/AssetUserRuleService.java new file mode 100644 index 000000000..8aec2c8f3 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/AssetUserRuleService.java @@ -0,0 +1,168 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.AssetUserRule; +import com.kaltura.client.types.AssetUserRuleFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.NullRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class AssetUserRuleService { + + public static class AddAssetUserRuleBuilder extends RequestBuilder { + + public AddAssetUserRuleBuilder(AssetUserRule assetUserRule) { + super(AssetUserRule.class, "assetuserrule", "add"); + params.add("assetUserRule", assetUserRule); + } + } + + /** + * Add asset user rule + * + * @param assetUserRule Asset user rule + */ + public static AddAssetUserRuleBuilder add(AssetUserRule assetUserRule) { + return new AddAssetUserRuleBuilder(assetUserRule); + } + + public static class AttachUserAssetUserRuleBuilder extends NullRequestBuilder { + + public AttachUserAssetUserRuleBuilder(long ruleId) { + super("assetuserrule", "attachUser"); + params.add("ruleId", ruleId); + } + + public void ruleId(String multirequestToken) { + params.add("ruleId", multirequestToken); + } + } + + /** + * Attach AssetUserRule To User + * + * @param ruleId AssetUserRule id to add + */ + public static AttachUserAssetUserRuleBuilder attachUser(long ruleId) { + return new AttachUserAssetUserRuleBuilder(ruleId); + } + + public static class DeleteAssetUserRuleBuilder extends NullRequestBuilder { + + public DeleteAssetUserRuleBuilder(long id) { + super("assetuserrule", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Delete asset user rule + * + * @param id Asset user rule ID + */ + public static DeleteAssetUserRuleBuilder delete(long id) { + return new DeleteAssetUserRuleBuilder(id); + } + + public static class DetachUserAssetUserRuleBuilder extends NullRequestBuilder { + + public DetachUserAssetUserRuleBuilder(long ruleId) { + super("assetuserrule", "detachUser"); + params.add("ruleId", ruleId); + } + + public void ruleId(String multirequestToken) { + params.add("ruleId", multirequestToken); + } + } + + /** + * Detach AssetUserRule from user + * + * @param ruleId AssetUserRule id to remove + */ + public static DetachUserAssetUserRuleBuilder detachUser(long ruleId) { + return new DetachUserAssetUserRuleBuilder(ruleId); + } + + public static class ListAssetUserRuleBuilder extends ListResponseRequestBuilder { + + public ListAssetUserRuleBuilder(AssetUserRuleFilter filter) { + super(AssetUserRule.class, "assetuserrule", "list"); + params.add("filter", filter); + } + } + + public static ListAssetUserRuleBuilder list() { + return list(null); + } + + /** + * Get the list of asset user rules for the partner + * + * @param filter AssetUserRule Filter + */ + public static ListAssetUserRuleBuilder list(AssetUserRuleFilter filter) { + return new ListAssetUserRuleBuilder(filter); + } + + public static class UpdateAssetUserRuleBuilder extends RequestBuilder { + + public UpdateAssetUserRuleBuilder(long id, AssetUserRule assetUserRule) { + super(AssetUserRule.class, "assetuserrule", "update"); + params.add("id", id); + params.add("assetUserRule", assetUserRule); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Update asset user rule + * + * @param id Asset user rule ID to update + * @param assetUserRule Asset user rule + */ + public static UpdateAssetUserRuleBuilder update(long id, AssetUserRule assetUserRule) { + return new UpdateAssetUserRuleBuilder(id, assetUserRule); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/BookmarkService.java b/KalturaClient/src/main/java/com/kaltura/client/services/BookmarkService.java new file mode 100644 index 000000000..65ac9c6ec --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/BookmarkService.java @@ -0,0 +1,82 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.Bookmark; +import com.kaltura.client.types.BookmarkFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class BookmarkService { + + public static class AddBookmarkBuilder extends RequestBuilder { + + public AddBookmarkBuilder(Bookmark bookmark) { + super(Boolean.class, "bookmark", "add"); + params.add("bookmark", bookmark); + } + } + + /** + * Report player position and action for the user on the watched asset. Player + position is used to later allow resume watching. + * + * @param bookmark Bookmark details + */ + public static AddBookmarkBuilder add(Bookmark bookmark) { + return new AddBookmarkBuilder(bookmark); + } + + public static class ListBookmarkBuilder extends ListResponseRequestBuilder { + + public ListBookmarkBuilder(BookmarkFilter filter) { + super(Bookmark.class, "bookmark", "list"); + params.add("filter", filter); + } + } + + /** + * Returns player position record/s for the requested asset and the requesting + user. If default user makes the request – player position + records are provided for all of the users in the household. If + non-default user makes the request - player position records are provided for + the requesting user and the default user of the household. + * + * @param filter Filter option for the last position + */ + public static ListBookmarkBuilder list(BookmarkFilter filter) { + return new ListBookmarkBuilder(filter); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/BulkUploadService.java b/KalturaClient/src/main/java/com/kaltura/client/services/BulkUploadService.java new file mode 100644 index 000000000..6af098b96 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/BulkUploadService.java @@ -0,0 +1,88 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.BulkUpload; +import com.kaltura.client.types.BulkUploadFilter; +import com.kaltura.client.types.FilterPager; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class BulkUploadService { + + public static class GetBulkUploadBuilder extends RequestBuilder { + + public GetBulkUploadBuilder(long id) { + super(BulkUpload.class, "bulkupload", "get"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Get BulkUpload by ID + * + * @param id ID to get + */ + public static GetBulkUploadBuilder get(long id) { + return new GetBulkUploadBuilder(id); + } + + public static class ListBulkUploadBuilder extends ListResponseRequestBuilder { + + public ListBulkUploadBuilder(BulkUploadFilter filter, FilterPager pager) { + super(BulkUpload.class, "bulkupload", "list"); + params.add("filter", filter); + params.add("pager", pager); + } + } + + public static ListBulkUploadBuilder list(BulkUploadFilter filter) { + return list(filter, null); + } + + /** + * Get list of KalturaBulkUpload by filter + * + * @param filter Filtering the bulk action request + * @param pager Paging the request + */ + public static ListBulkUploadBuilder list(BulkUploadFilter filter, FilterPager pager) { + return new ListBulkUploadBuilder(filter, pager); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/BulkUploadStatisticsService.java b/KalturaClient/src/main/java/com/kaltura/client/services/BulkUploadStatisticsService.java new file mode 100644 index 000000000..60ddd2eb9 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/BulkUploadStatisticsService.java @@ -0,0 +1,68 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.BulkUploadStatistics; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class BulkUploadStatisticsService { + + public static class GetBulkUploadStatisticsBuilder extends RequestBuilder { + + public GetBulkUploadStatisticsBuilder(String bulkObjectTypeEqual, long createDateGreaterThanOrEqual) { + super(BulkUploadStatistics.class, "bulkuploadstatistics", "get"); + params.add("bulkObjectTypeEqual", bulkObjectTypeEqual); + params.add("createDateGreaterThanOrEqual", createDateGreaterThanOrEqual); + } + + public void bulkObjectTypeEqual(String multirequestToken) { + params.add("bulkObjectTypeEqual", multirequestToken); + } + + public void createDateGreaterThanOrEqual(String multirequestToken) { + params.add("createDateGreaterThanOrEqual", multirequestToken); + } + } + + /** + * Get BulkUploadStatistics count summary by status + * + * @param bulkObjectTypeEqual bulkUploadObject for status summary + * @param createDateGreaterThanOrEqual date created filter + */ + public static GetBulkUploadStatisticsBuilder get(String bulkObjectTypeEqual, long createDateGreaterThanOrEqual) { + return new GetBulkUploadStatisticsBuilder(bulkObjectTypeEqual, createDateGreaterThanOrEqual); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/BusinessModuleRuleService.java b/KalturaClient/src/main/java/com/kaltura/client/services/BusinessModuleRuleService.java new file mode 100644 index 000000000..1416604da --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/BusinessModuleRuleService.java @@ -0,0 +1,147 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.BusinessModuleRule; +import com.kaltura.client.types.BusinessModuleRuleFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.NullRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class BusinessModuleRuleService { + + public static class AddBusinessModuleRuleBuilder extends RequestBuilder { + + public AddBusinessModuleRuleBuilder(BusinessModuleRule businessModuleRule) { + super(BusinessModuleRule.class, "businessmodulerule", "add"); + params.add("businessModuleRule", businessModuleRule); + } + } + + /** + * Add business module rule + * + * @param businessModuleRule Business module rule + */ + public static AddBusinessModuleRuleBuilder add(BusinessModuleRule businessModuleRule) { + return new AddBusinessModuleRuleBuilder(businessModuleRule); + } + + public static class DeleteBusinessModuleRuleBuilder extends NullRequestBuilder { + + public DeleteBusinessModuleRuleBuilder(long id) { + super("businessmodulerule", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Delete business module rule + * + * @param id Business module rule ID + */ + public static DeleteBusinessModuleRuleBuilder delete(long id) { + return new DeleteBusinessModuleRuleBuilder(id); + } + + public static class GetBusinessModuleRuleBuilder extends RequestBuilder { + + public GetBusinessModuleRuleBuilder(long id) { + super(BusinessModuleRule.class, "businessmodulerule", "get"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Get business module rule by ID + * + * @param id ID to get + */ + public static GetBusinessModuleRuleBuilder get(long id) { + return new GetBusinessModuleRuleBuilder(id); + } + + public static class ListBusinessModuleRuleBuilder extends ListResponseRequestBuilder { + + public ListBusinessModuleRuleBuilder(BusinessModuleRuleFilter filter) { + super(BusinessModuleRule.class, "businessmodulerule", "list"); + params.add("filter", filter); + } + } + + public static ListBusinessModuleRuleBuilder list() { + return list(null); + } + + /** + * Get the list of business module rules for the partner + * + * @param filter filter by condition name + */ + public static ListBusinessModuleRuleBuilder list(BusinessModuleRuleFilter filter) { + return new ListBusinessModuleRuleBuilder(filter); + } + + public static class UpdateBusinessModuleRuleBuilder extends RequestBuilder { + + public UpdateBusinessModuleRuleBuilder(long id, BusinessModuleRule businessModuleRule) { + super(BusinessModuleRule.class, "businessmodulerule", "update"); + params.add("id", id); + params.add("businessModuleRule", businessModuleRule); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Update business module rule + * + * @param id Business module rule ID to update + * @param businessModuleRule Business module rule + */ + public static UpdateBusinessModuleRuleBuilder update(long id, BusinessModuleRule businessModuleRule) { + return new UpdateBusinessModuleRuleBuilder(id, businessModuleRule); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/CDVRAdapterProfileService.java b/KalturaClient/src/main/java/com/kaltura/client/services/CDVRAdapterProfileService.java new file mode 100644 index 000000000..a39a4d42e --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/CDVRAdapterProfileService.java @@ -0,0 +1,138 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @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 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); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/CampaignService.java b/KalturaClient/src/main/java/com/kaltura/client/services/CampaignService.java new file mode 100644 index 000000000..1f7c72b9d --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/CampaignService.java @@ -0,0 +1,157 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.enums.ObjectState; +import com.kaltura.client.types.Campaign; +import com.kaltura.client.types.CampaignFilter; +import com.kaltura.client.types.FilterPager; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.NullRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class CampaignService { + + public static class AddCampaignBuilder extends RequestBuilder { + + public AddCampaignBuilder(Campaign objectToAdd) { + super(Campaign.class, "campaign", "add"); + params.add("objectToAdd", objectToAdd); + } + } + + /** + * Add new Campaign + * + * @param objectToAdd Campaign Object to add + */ + public static AddCampaignBuilder add(Campaign objectToAdd) { + return new AddCampaignBuilder(objectToAdd); + } + + public static class DeleteCampaignBuilder extends NullRequestBuilder { + + public DeleteCampaignBuilder(long id) { + super("campaign", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Delete existing Campaign + * + * @param id Campaign identifier + */ + public static DeleteCampaignBuilder delete(long id) { + return new DeleteCampaignBuilder(id); + } + + public static class ListCampaignBuilder extends ListResponseRequestBuilder { + + public ListCampaignBuilder(CampaignFilter filter, FilterPager pager) { + super(Campaign.class, "campaign", "list"); + params.add("filter", filter); + params.add("pager", pager); + } + } + + public static ListCampaignBuilder list(CampaignFilter filter) { + return list(filter, null); + } + + /** + * Returns the list of available Campaigns + * + * @param filter Filter + * @param pager Pager + */ + public static ListCampaignBuilder list(CampaignFilter filter, FilterPager pager) { + return new ListCampaignBuilder(filter, pager); + } + + public static class SetStateCampaignBuilder extends NullRequestBuilder { + + public SetStateCampaignBuilder(long campaignId, ObjectState newState) { + super("campaign", "setState"); + params.add("campaignId", campaignId); + params.add("newState", newState); + } + + public void campaignId(String multirequestToken) { + params.add("campaignId", multirequestToken); + } + + public void newState(String multirequestToken) { + params.add("newState", multirequestToken); + } + } + + /** + * Set campaign&#39;s state + * + * @param campaignId campaign Id + * @param newState new campaign state + */ + public static SetStateCampaignBuilder setState(long campaignId, ObjectState newState) { + return new SetStateCampaignBuilder(campaignId, newState); + } + + public static class UpdateCampaignBuilder extends RequestBuilder { + + public UpdateCampaignBuilder(long id, Campaign objectToUpdate) { + super(Campaign.class, "campaign", "update"); + params.add("id", id); + params.add("objectToUpdate", objectToUpdate); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Update existing Campaign + * + * @param id id of Campaign to update + * @param objectToUpdate Campaign Object to update + */ + public static UpdateCampaignBuilder update(long id, Campaign objectToUpdate) { + return new UpdateCampaignBuilder(id, objectToUpdate); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/CategoryItemService.java b/KalturaClient/src/main/java/com/kaltura/client/services/CategoryItemService.java new file mode 100644 index 000000000..cbc5f2271 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/CategoryItemService.java @@ -0,0 +1,133 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.CategoryItem; +import com.kaltura.client.types.CategoryItemFilter; +import com.kaltura.client.types.FilterPager; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.NullRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class CategoryItemService { + + public static class AddCategoryItemBuilder extends RequestBuilder { + + public AddCategoryItemBuilder(CategoryItem objectToAdd) { + super(CategoryItem.class, "categoryitem", "add"); + params.add("objectToAdd", objectToAdd); + } + } + + /** + * categoryItem add + * + * @param objectToAdd categoryItem details + */ + public static AddCategoryItemBuilder add(CategoryItem objectToAdd) { + return new AddCategoryItemBuilder(objectToAdd); + } + + public static class DeleteCategoryItemBuilder extends NullRequestBuilder { + + public DeleteCategoryItemBuilder(long id) { + super("categoryitem", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Remove category + * + * @param id Category identifier + */ + public static DeleteCategoryItemBuilder delete(long id) { + return new DeleteCategoryItemBuilder(id); + } + + public static class ListCategoryItemBuilder extends ListResponseRequestBuilder { + + public ListCategoryItemBuilder(CategoryItemFilter filter, FilterPager pager) { + super(CategoryItem.class, "categoryitem", "list"); + params.add("filter", filter); + params.add("pager", pager); + } + } + + public static ListCategoryItemBuilder list() { + return list(null); + } + + public static ListCategoryItemBuilder list(CategoryItemFilter filter) { + return list(filter, null); + } + + /** + * Gets all categoryItem items + * + * @param filter Filter + * @param pager Pager + */ + public static ListCategoryItemBuilder list(CategoryItemFilter filter, FilterPager pager) { + return new ListCategoryItemBuilder(filter, pager); + } + + public static class UpdateCategoryItemBuilder extends RequestBuilder { + + public UpdateCategoryItemBuilder(long id, CategoryItem objectToUpdate) { + super(CategoryItem.class, "categoryitem", "update"); + params.add("id", id); + params.add("objectToUpdate", objectToUpdate); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * categoryItem update + * + * @param id Category identifier + * @param objectToUpdate categoryItem details + */ + public static UpdateCategoryItemBuilder update(long id, CategoryItem objectToUpdate) { + return new UpdateCategoryItemBuilder(id, objectToUpdate); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/CategoryTreeService.java b/KalturaClient/src/main/java/com/kaltura/client/services/CategoryTreeService.java new file mode 100644 index 000000000..00f36bfb2 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/CategoryTreeService.java @@ -0,0 +1,135 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.CategoryTree; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class CategoryTreeService { + + public static class DuplicateCategoryTreeBuilder extends RequestBuilder { + + public DuplicateCategoryTreeBuilder(long categoryItemId, String name) { + super(CategoryTree.class, "categorytree", "duplicate"); + params.add("categoryItemId", categoryItemId); + params.add("name", name); + } + + public void categoryItemId(String multirequestToken) { + params.add("categoryItemId", multirequestToken); + } + + public void name(String multirequestToken) { + params.add("name", multirequestToken); + } + } + + /** + * Duplicate category Item + * + * @param categoryItemId Category item identifier + * @param name Root category name + */ + public static DuplicateCategoryTreeBuilder duplicate(long categoryItemId, String name) { + return new DuplicateCategoryTreeBuilder(categoryItemId, name); + } + + public static class GetCategoryTreeBuilder extends RequestBuilder { + + public GetCategoryTreeBuilder(long categoryItemId, boolean filter) { + super(CategoryTree.class, "categorytree", "get"); + params.add("categoryItemId", categoryItemId); + params.add("filter", filter); + } + + public void categoryItemId(String multirequestToken) { + params.add("categoryItemId", multirequestToken); + } + + public void filter(String multirequestToken) { + params.add("filter", multirequestToken); + } + } + + public static GetCategoryTreeBuilder get(long categoryItemId) { + return get(categoryItemId, false); + } + + /** + * Retrive category tree. + * + * @param categoryItemId Category item identifier + * @param filter filter categories dates + */ + public static GetCategoryTreeBuilder get(long categoryItemId, boolean filter) { + return new GetCategoryTreeBuilder(categoryItemId, filter); + } + + public static class GetByVersionCategoryTreeBuilder extends RequestBuilder { + + public GetByVersionCategoryTreeBuilder(long versionId, int deviceFamilyId) { + super(CategoryTree.class, "categorytree", "getByVersion"); + params.add("versionId", versionId); + params.add("deviceFamilyId", deviceFamilyId); + } + + public void versionId(String multirequestToken) { + params.add("versionId", multirequestToken); + } + + public void deviceFamilyId(String multirequestToken) { + params.add("deviceFamilyId", multirequestToken); + } + } + + public static GetByVersionCategoryTreeBuilder getByVersion() { + return getByVersion(Long.MIN_VALUE); + } + + public static GetByVersionCategoryTreeBuilder getByVersion(long versionId) { + return getByVersion(versionId, Integer.MIN_VALUE); + } + + /** + * Retrieve default category tree of deviceFamilyId by KS or specific one if + versionId is set. + * + * @param versionId Category version id of tree + * @param deviceFamilyId deviceFamilyId related to category tree + */ + public static GetByVersionCategoryTreeBuilder getByVersion(long versionId, int deviceFamilyId) { + return new GetByVersionCategoryTreeBuilder(versionId, deviceFamilyId); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/CategoryVersionService.java b/KalturaClient/src/main/java/com/kaltura/client/services/CategoryVersionService.java new file mode 100644 index 000000000..66af855d9 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/CategoryVersionService.java @@ -0,0 +1,193 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.CategoryVersion; +import com.kaltura.client.types.CategoryVersionFilter; +import com.kaltura.client.types.FilterPager; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.NullRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class CategoryVersionService { + + public static class AddCategoryVersionBuilder extends RequestBuilder { + + public AddCategoryVersionBuilder(CategoryVersion objectToAdd) { + super(CategoryVersion.class, "categoryversion", "add"); + params.add("objectToAdd", objectToAdd); + } + } + + /** + * categoryVersion add + * + * @param objectToAdd categoryVersion details + */ + public static AddCategoryVersionBuilder add(CategoryVersion objectToAdd) { + return new AddCategoryVersionBuilder(objectToAdd); + } + + public static class CreateTreeCategoryVersionBuilder extends RequestBuilder { + + public CreateTreeCategoryVersionBuilder(long categoryItemId, String name, String comment) { + super(CategoryVersion.class, "categoryversion", "createTree"); + params.add("categoryItemId", categoryItemId); + params.add("name", name); + params.add("comment", comment); + } + + public void categoryItemId(String multirequestToken) { + params.add("categoryItemId", multirequestToken); + } + + public void name(String multirequestToken) { + params.add("name", multirequestToken); + } + + public void comment(String multirequestToken) { + params.add("comment", multirequestToken); + } + } + + /** + * Acreate new tree for this categoryItem + * + * @param categoryItemId the categoryItemId to create the tree accordingly + * @param name Name of version + * @param comment Comment of version + */ + public static CreateTreeCategoryVersionBuilder createTree(long categoryItemId, String name, String comment) { + return new CreateTreeCategoryVersionBuilder(categoryItemId, name, comment); + } + + public static class DeleteCategoryVersionBuilder extends NullRequestBuilder { + + public DeleteCategoryVersionBuilder(long id) { + super("categoryversion", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Remove category version + * + * @param id Category version identifier + */ + public static DeleteCategoryVersionBuilder delete(long id) { + return new DeleteCategoryVersionBuilder(id); + } + + public static class ListCategoryVersionBuilder extends ListResponseRequestBuilder { + + public ListCategoryVersionBuilder(CategoryVersionFilter filter, FilterPager pager) { + super(CategoryVersion.class, "categoryversion", "list"); + params.add("filter", filter); + params.add("pager", pager); + } + } + + public static ListCategoryVersionBuilder list(CategoryVersionFilter filter) { + return list(filter, null); + } + + /** + * Gets all category versions + * + * @param filter Filter + * @param pager Pager + */ + public static ListCategoryVersionBuilder list(CategoryVersionFilter filter, FilterPager pager) { + return new ListCategoryVersionBuilder(filter, pager); + } + + public static class SetDefaultCategoryVersionBuilder extends NullRequestBuilder { + + public SetDefaultCategoryVersionBuilder(long id, boolean force) { + super("categoryversion", "setDefault"); + params.add("id", id); + params.add("force", force); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + + public void force(String multirequestToken) { + params.add("force", multirequestToken); + } + } + + public static SetDefaultCategoryVersionBuilder setDefault(long id) { + return setDefault(id, false); + } + + /** + * Set new default category version + * + * @param id category version id to set as default + * @param force force to set even if version is older then currenct version + */ + public static SetDefaultCategoryVersionBuilder setDefault(long id, boolean force) { + return new SetDefaultCategoryVersionBuilder(id, force); + } + + public static class UpdateCategoryVersionBuilder extends RequestBuilder { + + public UpdateCategoryVersionBuilder(long id, CategoryVersion objectToUpdate) { + super(CategoryVersion.class, "categoryversion", "update"); + params.add("id", id); + params.add("objectToUpdate", objectToUpdate); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * categoryVersion update + * + * @param id Category version identifier + * @param objectToUpdate categoryVersion details + */ + public static UpdateCategoryVersionBuilder update(long id, CategoryVersion objectToUpdate) { + return new UpdateCategoryVersionBuilder(id, objectToUpdate); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/CdnAdapterProfileService.java b/KalturaClient/src/main/java/com/kaltura/client/services/CdnAdapterProfileService.java new file mode 100644 index 000000000..a19939603 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/CdnAdapterProfileService.java @@ -0,0 +1,138 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.CDNAdapterProfile; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class CdnAdapterProfileService { + + public static class AddCdnAdapterProfileBuilder extends RequestBuilder { + + public AddCdnAdapterProfileBuilder(CDNAdapterProfile adapter) { + super(CDNAdapterProfile.class, "cdnadapterprofile", "add"); + params.add("adapter", adapter); + } + } + + /** + * Insert new CDN adapter for partner + * + * @param adapter CDN adapter object + */ + public static AddCdnAdapterProfileBuilder add(CDNAdapterProfile adapter) { + return new AddCdnAdapterProfileBuilder(adapter); + } + + public static class DeleteCdnAdapterProfileBuilder extends RequestBuilder { + + public DeleteCdnAdapterProfileBuilder(int adapterId) { + super(Boolean.class, "cdnadapterprofile", "delete"); + params.add("adapterId", adapterId); + } + + public void adapterId(String multirequestToken) { + params.add("adapterId", multirequestToken); + } + } + + /** + * Delete CDN adapter by CDN adapter id + * + * @param adapterId CDN adapter identifier + */ + public static DeleteCdnAdapterProfileBuilder delete(int adapterId) { + return new DeleteCdnAdapterProfileBuilder(adapterId); + } + + public static class GenerateSharedSecretCdnAdapterProfileBuilder extends RequestBuilder { + + public GenerateSharedSecretCdnAdapterProfileBuilder(int adapterId) { + super(CDNAdapterProfile.class, "cdnadapterprofile", "generateSharedSecret"); + params.add("adapterId", adapterId); + } + + public void adapterId(String multirequestToken) { + params.add("adapterId", multirequestToken); + } + } + + /** + * Generate CDN adapter shared secret + * + * @param adapterId CDN adapter identifier + */ + public static GenerateSharedSecretCdnAdapterProfileBuilder generateSharedSecret(int adapterId) { + return new GenerateSharedSecretCdnAdapterProfileBuilder(adapterId); + } + + public static class ListCdnAdapterProfileBuilder extends ListResponseRequestBuilder { + + public ListCdnAdapterProfileBuilder() { + super(CDNAdapterProfile.class, "cdnadapterprofile", "list"); + } + } + + /** + * Returns all CDN adapters for partner + */ + public static ListCdnAdapterProfileBuilder list() { + return new ListCdnAdapterProfileBuilder(); + } + + public static class UpdateCdnAdapterProfileBuilder extends RequestBuilder { + + public UpdateCdnAdapterProfileBuilder(int adapterId, CDNAdapterProfile adapter) { + super(CDNAdapterProfile.class, "cdnadapterprofile", "update"); + params.add("adapterId", adapterId); + params.add("adapter", adapter); + } + + public void adapterId(String multirequestToken) { + params.add("adapterId", multirequestToken); + } + } + + /** + * Update CDN adapter details + * + * @param adapterId CDN adapter id to update + * @param adapter CDN adapter Object + */ + public static UpdateCdnAdapterProfileBuilder update(int adapterId, CDNAdapterProfile adapter) { + return new UpdateCdnAdapterProfileBuilder(adapterId, adapter); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/CdnPartnerSettingsService.java b/KalturaClient/src/main/java/com/kaltura/client/services/CdnPartnerSettingsService.java new file mode 100644 index 000000000..cb33de830 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/CdnPartnerSettingsService.java @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.CDNPartnerSettings; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class CdnPartnerSettingsService { + + public static class GetCdnPartnerSettingsBuilder extends RequestBuilder { + + public GetCdnPartnerSettingsBuilder() { + super(CDNPartnerSettings.class, "cdnpartnersettings", "get"); + } + } + + /** + * Retrieve the partner’s CDN settings (default adapters) + */ + public static GetCdnPartnerSettingsBuilder get() { + return new GetCdnPartnerSettingsBuilder(); + } + + public static class UpdateCdnPartnerSettingsBuilder extends RequestBuilder { + + public UpdateCdnPartnerSettingsBuilder(CDNPartnerSettings settings) { + super(CDNPartnerSettings.class, "cdnpartnersettings", "update"); + params.add("settings", settings); + } + } + + /** + * Configure the partner’s CDN settings (default adapters) + * + * @param settings CDN partner settings + */ + public static UpdateCdnPartnerSettingsBuilder update(CDNPartnerSettings settings) { + return new UpdateCdnPartnerSettingsBuilder(settings); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/ChannelService.java b/KalturaClient/src/main/java/com/kaltura/client/services/ChannelService.java new file mode 100644 index 000000000..a883d79fc --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/ChannelService.java @@ -0,0 +1,154 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.Channel; +import com.kaltura.client.types.ChannelsBaseFilter; +import com.kaltura.client.types.FilterPager; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class ChannelService { + + public static class AddChannelBuilder extends RequestBuilder { + + public AddChannelBuilder(Channel channel) { + super(Channel.class, "channel", "add"); + params.add("channel", channel); + } + } + + /** + * Insert new channel for partner. Supports KalturaDynamicChannel or + KalturaManualChannel + * + * @param channel KSQL channel Object + */ + public static AddChannelBuilder add(Channel channel) { + return new AddChannelBuilder(channel); + } + + public static class DeleteChannelBuilder extends RequestBuilder { + + public DeleteChannelBuilder(int channelId) { + super(Boolean.class, "channel", "delete"); + params.add("channelId", channelId); + } + + public void channelId(String multirequestToken) { + params.add("channelId", multirequestToken); + } + } + + /** + * Delete channel by its channel id + * + * @param channelId channel identifier + */ + public static DeleteChannelBuilder delete(int channelId) { + return new DeleteChannelBuilder(channelId); + } + + public static class GetChannelBuilder extends RequestBuilder { + + public GetChannelBuilder(int id) { + super(Channel.class, "channel", "get"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Returns channel + * + * @param id Channel Identifier + */ + public static GetChannelBuilder get(int id) { + return new GetChannelBuilder(id); + } + + public static class ListChannelBuilder extends ListResponseRequestBuilder { + + public ListChannelBuilder(ChannelsBaseFilter filter, FilterPager pager) { + super(Channel.class, "channel", "list"); + params.add("filter", filter); + params.add("pager", pager); + } + } + + public static ListChannelBuilder list() { + return list(null); + } + + public static ListChannelBuilder list(ChannelsBaseFilter filter) { + return list(filter, null); + } + + /** + * Get the list of tags for the partner + * + * @param filter Filter + * @param pager Page size and index + */ + public static ListChannelBuilder list(ChannelsBaseFilter filter, FilterPager pager) { + return new ListChannelBuilder(filter, pager); + } + + public static class UpdateChannelBuilder extends RequestBuilder { + + public UpdateChannelBuilder(int id, Channel channel) { + super(Channel.class, "channel", "update"); + params.add("id", id); + params.add("channel", channel); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Update channel details. Supports KalturaDynamicChannel or KalturaManualChannel + * + * @param id Channel identifier + * @param channel KSQL channel Object + */ + public static UpdateChannelBuilder update(int id, Channel channel) { + return new UpdateChannelBuilder(id, channel); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/CollectionService.java b/KalturaClient/src/main/java/com/kaltura/client/services/CollectionService.java new file mode 100644 index 000000000..ea74fbf4d --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/CollectionService.java @@ -0,0 +1,133 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.Collection; +import com.kaltura.client.types.CollectionFilter; +import com.kaltura.client.types.FilterPager; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class CollectionService { + + public static class AddCollectionBuilder extends RequestBuilder { + + public AddCollectionBuilder(Collection collection) { + super(Collection.class, "collection", "add"); + params.add("collection", collection); + } + } + + /** + * Insert new collection for partner + * + * @param collection collection object + */ + public static AddCollectionBuilder add(Collection collection) { + return new AddCollectionBuilder(collection); + } + + public static class DeleteCollectionBuilder extends RequestBuilder { + + public DeleteCollectionBuilder(long id) { + super(Boolean.class, "collection", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Delete collection + * + * @param id Collection id + */ + public static DeleteCollectionBuilder delete(long id) { + return new DeleteCollectionBuilder(id); + } + + public static class ListCollectionBuilder extends ListResponseRequestBuilder { + + public ListCollectionBuilder(CollectionFilter filter, FilterPager pager) { + super(Collection.class, "collection", "list"); + params.add("filter", filter); + params.add("pager", pager); + } + } + + public static ListCollectionBuilder list() { + return list(null); + } + + public static ListCollectionBuilder list(CollectionFilter filter) { + return list(filter, null); + } + + /** + * Returns a list of collections requested by Collection IDs or file identifier or + coupon group identifier + * + * @param filter Filter request + * @param pager Page size and index + */ + public static ListCollectionBuilder list(CollectionFilter filter, FilterPager pager) { + return new ListCollectionBuilder(filter, pager); + } + + public static class UpdateCollectionBuilder extends RequestBuilder { + + public UpdateCollectionBuilder(long id, Collection collection) { + super(Collection.class, "collection", "update"); + params.add("id", id); + params.add("collection", collection); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Update Collection + * + * @param id Collection id + * @param collection Collection + */ + public static UpdateCollectionBuilder update(long id, Collection collection) { + return new UpdateCollectionBuilder(id, collection); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/CompensationService.java b/KalturaClient/src/main/java/com/kaltura/client/services/CompensationService.java new file mode 100644 index 000000000..50f48b6e9 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/CompensationService.java @@ -0,0 +1,102 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.Compensation; +import com.kaltura.client.utils.request.NullRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class CompensationService { + + public static class AddCompensationBuilder extends RequestBuilder { + + public AddCompensationBuilder(Compensation compensation) { + super(Compensation.class, "compensation", "add"); + params.add("compensation", compensation); + } + } + + /** + * Adds a new compensation for a household for a given number of iterations of a + subscription renewal for a fixed amount / percentage of the renewal price. + * + * @param compensation Compensation parameters + */ + public static AddCompensationBuilder add(Compensation compensation) { + return new AddCompensationBuilder(compensation); + } + + public static class DeleteCompensationBuilder extends NullRequestBuilder { + + public DeleteCompensationBuilder(long id) { + super("compensation", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Delete a compensation by identifier + * + * @param id Compensation identifier + */ + public static DeleteCompensationBuilder delete(long id) { + return new DeleteCompensationBuilder(id); + } + + public static class GetCompensationBuilder extends RequestBuilder { + + public GetCompensationBuilder(long id) { + super(Compensation.class, "compensation", "get"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Get a compensation by identifier + * + * @param id Compensation identifier + */ + public static GetCompensationBuilder get(long id) { + return new GetCompensationBuilder(id); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/ConfigurationGroupDeviceService.java b/KalturaClient/src/main/java/com/kaltura/client/services/ConfigurationGroupDeviceService.java new file mode 100644 index 000000000..f1d780a60 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/ConfigurationGroupDeviceService.java @@ -0,0 +1,127 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.ConfigurationGroupDevice; +import com.kaltura.client.types.ConfigurationGroupDeviceFilter; +import com.kaltura.client.types.FilterPager; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class ConfigurationGroupDeviceService { + + public static class AddConfigurationGroupDeviceBuilder extends RequestBuilder { + + public AddConfigurationGroupDeviceBuilder(ConfigurationGroupDevice configurationGroupDevice) { + super(Boolean.class, "configurationgroupdevice", "add"); + params.add("configurationGroupDevice", configurationGroupDevice); + } + } + + /** + * Associate a collection of devices to a configuration group. If a device is + already associated to another group – old association is replaced + * + * @param configurationGroupDevice Configuration group device + */ + public static AddConfigurationGroupDeviceBuilder add(ConfigurationGroupDevice configurationGroupDevice) { + return new AddConfigurationGroupDeviceBuilder(configurationGroupDevice); + } + + public static class DeleteConfigurationGroupDeviceBuilder extends RequestBuilder { + + public DeleteConfigurationGroupDeviceBuilder(String udid) { + super(Boolean.class, "configurationgroupdevice", "delete"); + params.add("udid", udid); + } + + public void udid(String multirequestToken) { + params.add("udid", multirequestToken); + } + } + + /** + * Remove a device association + * + * @param udid Device UDID + */ + public static DeleteConfigurationGroupDeviceBuilder delete(String udid) { + return new DeleteConfigurationGroupDeviceBuilder(udid); + } + + public static class GetConfigurationGroupDeviceBuilder extends RequestBuilder { + + public GetConfigurationGroupDeviceBuilder(String udid) { + super(ConfigurationGroupDevice.class, "configurationgroupdevice", "get"); + params.add("udid", udid); + } + + public void udid(String multirequestToken) { + params.add("udid", multirequestToken); + } + } + + /** + * Return the configuration group to which a specific device is associated to + * + * @param udid Device UDID + */ + public static GetConfigurationGroupDeviceBuilder get(String udid) { + return new GetConfigurationGroupDeviceBuilder(udid); + } + + public static class ListConfigurationGroupDeviceBuilder extends ListResponseRequestBuilder { + + public ListConfigurationGroupDeviceBuilder(ConfigurationGroupDeviceFilter filter, FilterPager pager) { + super(ConfigurationGroupDevice.class, "configurationgroupdevice", "list"); + params.add("filter", filter); + params.add("pager", pager); + } + } + + public static ListConfigurationGroupDeviceBuilder list(ConfigurationGroupDeviceFilter filter) { + return list(filter, null); + } + + /** + * Return the list of associated devices for a given configuration group + * + * @param filter Filter option for configuration group identifier + * @param pager Page size and index + */ + public static ListConfigurationGroupDeviceBuilder list(ConfigurationGroupDeviceFilter filter, FilterPager pager) { + return new ListConfigurationGroupDeviceBuilder(filter, pager); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/ConfigurationGroupService.java b/KalturaClient/src/main/java/com/kaltura/client/services/ConfigurationGroupService.java new file mode 100644 index 000000000..ea70ce37c --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/ConfigurationGroupService.java @@ -0,0 +1,140 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.ConfigurationGroup; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class ConfigurationGroupService { + + public static class AddConfigurationGroupBuilder extends RequestBuilder { + + public AddConfigurationGroupBuilder(ConfigurationGroup configurationGroup) { + super(ConfigurationGroup.class, "configurationgroup", "add"); + params.add("configurationGroup", configurationGroup); + } + } + + /** + * Add a new configuration group + * + * @param configurationGroup Configuration group + */ + public static AddConfigurationGroupBuilder add(ConfigurationGroup configurationGroup) { + return new AddConfigurationGroupBuilder(configurationGroup); + } + + public static class DeleteConfigurationGroupBuilder extends RequestBuilder { + + public DeleteConfigurationGroupBuilder(String id) { + super(Boolean.class, "configurationgroup", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Remove a configuration group, including its tags, device configurations and + devices associations + * + * @param id Configuration group identifier + */ + public static DeleteConfigurationGroupBuilder delete(String id) { + return new DeleteConfigurationGroupBuilder(id); + } + + public static class GetConfigurationGroupBuilder extends RequestBuilder { + + public GetConfigurationGroupBuilder(String id) { + super(ConfigurationGroup.class, "configurationgroup", "get"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Return the configuration group details, including group identifiers, tags, and + number of associated devices, and list of device configuration + * + * @param id Configuration group identifier + */ + public static GetConfigurationGroupBuilder get(String id) { + return new GetConfigurationGroupBuilder(id); + } + + public static class ListConfigurationGroupBuilder extends ListResponseRequestBuilder { + + public ListConfigurationGroupBuilder() { + super(ConfigurationGroup.class, "configurationgroup", "list"); + } + } + + /** + * Return the list of configuration groups + */ + public static ListConfigurationGroupBuilder list() { + return new ListConfigurationGroupBuilder(); + } + + public static class UpdateConfigurationGroupBuilder extends RequestBuilder { + + public UpdateConfigurationGroupBuilder(String id, ConfigurationGroup configurationGroup) { + super(ConfigurationGroup.class, "configurationgroup", "update"); + params.add("id", id); + params.add("configurationGroup", configurationGroup); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Update configuration group name + * + * @param id Configuration group identifier + * @param configurationGroup Configuration group + */ + public static UpdateConfigurationGroupBuilder update(String id, ConfigurationGroup configurationGroup) { + return new UpdateConfigurationGroupBuilder(id, configurationGroup); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/ConfigurationGroupTagService.java b/KalturaClient/src/main/java/com/kaltura/client/services/ConfigurationGroupTagService.java new file mode 100644 index 000000000..e3715d98a --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/ConfigurationGroupTagService.java @@ -0,0 +1,120 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.ConfigurationGroupTag; +import com.kaltura.client.types.ConfigurationGroupTagFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class ConfigurationGroupTagService { + + public static class AddConfigurationGroupTagBuilder extends RequestBuilder { + + public AddConfigurationGroupTagBuilder(ConfigurationGroupTag configurationGroupTag) { + super(ConfigurationGroupTag.class, "configurationgrouptag", "add"); + params.add("configurationGroupTag", configurationGroupTag); + } + } + + /** + * Add a new tag to a configuration group. If this tag is already associated to + another group, request fails + * + * @param configurationGroupTag Configuration group tag + */ + public static AddConfigurationGroupTagBuilder add(ConfigurationGroupTag configurationGroupTag) { + return new AddConfigurationGroupTagBuilder(configurationGroupTag); + } + + public static class DeleteConfigurationGroupTagBuilder extends RequestBuilder { + + public DeleteConfigurationGroupTagBuilder(String tag) { + super(Boolean.class, "configurationgrouptag", "delete"); + params.add("tag", tag); + } + + public void tag(String multirequestToken) { + params.add("tag", multirequestToken); + } + } + + /** + * Remove a tag association from configuration group + * + * @param tag Tag + */ + public static DeleteConfigurationGroupTagBuilder delete(String tag) { + return new DeleteConfigurationGroupTagBuilder(tag); + } + + public static class GetConfigurationGroupTagBuilder extends RequestBuilder { + + public GetConfigurationGroupTagBuilder(String tag) { + super(ConfigurationGroupTag.class, "configurationgrouptag", "get"); + params.add("tag", tag); + } + + public void tag(String multirequestToken) { + params.add("tag", multirequestToken); + } + } + + /** + * Return the configuration group the tag is associated to + * + * @param tag Tag + */ + public static GetConfigurationGroupTagBuilder get(String tag) { + return new GetConfigurationGroupTagBuilder(tag); + } + + public static class ListConfigurationGroupTagBuilder extends ListResponseRequestBuilder { + + public ListConfigurationGroupTagBuilder(ConfigurationGroupTagFilter filter) { + super(ConfigurationGroupTag.class, "configurationgrouptag", "list"); + params.add("filter", filter); + } + } + + /** + * Return list of tags for a configuration group + * + * @param filter Filter option for configuration group identifier + */ + public static ListConfigurationGroupTagBuilder list(ConfigurationGroupTagFilter filter) { + return new ListConfigurationGroupTagBuilder(filter); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/ConfigurationsService.java b/KalturaClient/src/main/java/com/kaltura/client/services/ConfigurationsService.java new file mode 100644 index 000000000..5c2c06239 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/ConfigurationsService.java @@ -0,0 +1,199 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.Configurations; +import com.kaltura.client.types.ConfigurationsFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import com.kaltura.client.utils.request.ServeRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class ConfigurationsService { + + public static class AddConfigurationsBuilder extends RequestBuilder { + + public AddConfigurationsBuilder(Configurations configurations) { + super(Configurations.class, "configurations", "add"); + params.add("configurations", configurations); + } + } + + /** + * Add a new device configuration to a configuration group + * + * @param configurations Device configuration + */ + public static AddConfigurationsBuilder add(Configurations configurations) { + return new AddConfigurationsBuilder(configurations); + } + + public static class DeleteConfigurationsBuilder extends RequestBuilder { + + public DeleteConfigurationsBuilder(String id) { + super(Boolean.class, "configurations", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Delete a device configuration + * + * @param id Configuration identifier + */ + public static DeleteConfigurationsBuilder delete(String id) { + return new DeleteConfigurationsBuilder(id); + } + + public static class GetConfigurationsBuilder extends RequestBuilder { + + public GetConfigurationsBuilder(String id) { + super(Configurations.class, "configurations", "get"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Return the device configuration + * + * @param id Configuration identifier + */ + public static GetConfigurationsBuilder get(String id) { + return new GetConfigurationsBuilder(id); + } + + public static class ListConfigurationsBuilder extends ListResponseRequestBuilder { + + public ListConfigurationsBuilder(ConfigurationsFilter filter) { + super(Configurations.class, "configurations", "list"); + params.add("filter", filter); + } + } + + /** + * Return a list of device configurations of a configuration group + * + * @param filter Filter option for configuration group id. + */ + public static ListConfigurationsBuilder list(ConfigurationsFilter filter) { + return new ListConfigurationsBuilder(filter); + } + + public static class ServeByDeviceConfigurationsBuilder extends ServeRequestBuilder { + + public ServeByDeviceConfigurationsBuilder(String applicationName, String clientVersion, String platform, String udid, String tag, int partnerId) { + super("configurations", "serveByDevice"); + params.add("applicationName", applicationName); + params.add("clientVersion", clientVersion); + params.add("platform", platform); + params.add("udid", udid); + params.add("tag", tag); + params.add("partnerId", partnerId); + } + + public void applicationName(String multirequestToken) { + params.add("applicationName", multirequestToken); + } + + public void clientVersion(String multirequestToken) { + params.add("clientVersion", multirequestToken); + } + + public void platform(String multirequestToken) { + params.add("platform", multirequestToken); + } + + public void udid(String multirequestToken) { + params.add("udid", multirequestToken); + } + + public void tag(String multirequestToken) { + params.add("tag", multirequestToken); + } + + public void partnerId(String multirequestToken) { + params.add("partnerId", multirequestToken); + } + } + + public static ServeByDeviceConfigurationsBuilder serveByDevice(String applicationName, String clientVersion, String platform, String udid, String tag) { + return serveByDevice(applicationName, clientVersion, platform, udid, tag, 0); + } + + /** + * Return a device configuration applicable for a specific device (UDID), app name, + software version, platform and optionally a configuration group’s tag + * + * @param applicationName Application name + * @param clientVersion Client version + * @param platform platform + * @param udid Device UDID + * @param tag Tag + * @param partnerId Partner Id + */ + public static ServeByDeviceConfigurationsBuilder serveByDevice(String applicationName, String clientVersion, String platform, String udid, String tag, int partnerId) { + return new ServeByDeviceConfigurationsBuilder(applicationName, clientVersion, platform, udid, tag, partnerId); + } + + public static class UpdateConfigurationsBuilder extends RequestBuilder { + + public UpdateConfigurationsBuilder(String id, Configurations configurations) { + super(Configurations.class, "configurations", "update"); + params.add("id", id); + params.add("configurations", configurations); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Update device configuration + * + * @param id Configuration identifier + * @param configurations configuration to update + */ + public static UpdateConfigurationsBuilder update(String id, Configurations configurations) { + return new UpdateConfigurationsBuilder(id, configurations); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/CountryService.java b/KalturaClient/src/main/java/com/kaltura/client/services/CountryService.java new file mode 100644 index 000000000..00e771a86 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/CountryService.java @@ -0,0 +1,60 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.Country; +import com.kaltura.client.types.CountryFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class CountryService { + + public static class ListCountryBuilder extends ListResponseRequestBuilder { + + public ListCountryBuilder(CountryFilter filter) { + super(Country.class, "country", "list"); + params.add("filter", filter); + } + } + + /** + * Get the list of countries for the partner with option to filter by countries + identifiers + * + * @param filter Country filter + */ + public static ListCountryBuilder list(CountryFilter filter) { + return new ListCountryBuilder(filter); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/CouponService.java b/KalturaClient/src/main/java/com/kaltura/client/services/CouponService.java new file mode 100644 index 000000000..b666ccd6d --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/CouponService.java @@ -0,0 +1,62 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.Coupon; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class CouponService { + + public static class GetCouponBuilder extends RequestBuilder { + + public GetCouponBuilder(String code) { + super(Coupon.class, "coupon", "get"); + params.add("code", code); + } + + public void code(String multirequestToken) { + params.add("code", multirequestToken); + } + } + + /** + * Returns information about a coupon + * + * @param code Coupon code + */ + public static GetCouponBuilder get(String code) { + return new GetCouponBuilder(code); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/CouponsGroupService.java b/KalturaClient/src/main/java/com/kaltura/client/services/CouponsGroupService.java new file mode 100644 index 000000000..4c71648cd --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/CouponsGroupService.java @@ -0,0 +1,163 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.CouponGenerationOptions; +import com.kaltura.client.types.CouponsGroup; +import com.kaltura.client.types.StringValueArray; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class CouponsGroupService { + + public static class AddCouponsGroupBuilder extends RequestBuilder { + + public AddCouponsGroupBuilder(CouponsGroup couponsGroup) { + super(CouponsGroup.class, "couponsgroup", "add"); + params.add("couponsGroup", couponsGroup); + } + } + + /** + * Add coupons group + * + * @param couponsGroup Coupons group + */ + public static AddCouponsGroupBuilder add(CouponsGroup couponsGroup) { + return new AddCouponsGroupBuilder(couponsGroup); + } + + public static class DeleteCouponsGroupBuilder extends RequestBuilder { + + public DeleteCouponsGroupBuilder(long id) { + super(Boolean.class, "couponsgroup", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Delete a coupons group + * + * @param id Coupons group identifier + */ + public static DeleteCouponsGroupBuilder delete(long id) { + return new DeleteCouponsGroupBuilder(id); + } + + public static class GenerateCouponsGroupBuilder extends RequestBuilder { + + public GenerateCouponsGroupBuilder(long id, CouponGenerationOptions couponGenerationOptions) { + super(StringValueArray.class, "couponsgroup", "generate"); + params.add("id", id); + params.add("couponGenerationOptions", couponGenerationOptions); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Generate a coupon + * + * @param id Coupon group identifier + * @param couponGenerationOptions Coupon generation options + */ + public static GenerateCouponsGroupBuilder generate(long id, CouponGenerationOptions couponGenerationOptions) { + return new GenerateCouponsGroupBuilder(id, couponGenerationOptions); + } + + public static class GetCouponsGroupBuilder extends RequestBuilder { + + public GetCouponsGroupBuilder(long id) { + super(CouponsGroup.class, "couponsgroup", "get"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Returns information about coupons group + * + * @param id Coupons group ID + */ + public static GetCouponsGroupBuilder get(long id) { + return new GetCouponsGroupBuilder(id); + } + + public static class ListCouponsGroupBuilder extends ListResponseRequestBuilder { + + public ListCouponsGroupBuilder() { + super(CouponsGroup.class, "couponsgroup", "list"); + } + } + + /** + * Returns information about partner coupons groups + */ + public static ListCouponsGroupBuilder list() { + return new ListCouponsGroupBuilder(); + } + + public static class UpdateCouponsGroupBuilder extends RequestBuilder { + + public UpdateCouponsGroupBuilder(long id, CouponsGroup couponsGroup) { + super(CouponsGroup.class, "couponsgroup", "update"); + params.add("id", id); + params.add("couponsGroup", couponsGroup); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Update coupons group + * + * @param id Coupons group identifier + * @param couponsGroup Coupons group + */ + public static UpdateCouponsGroupBuilder update(long id, CouponsGroup couponsGroup) { + return new UpdateCouponsGroupBuilder(id, couponsGroup); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/CurrencyService.java b/KalturaClient/src/main/java/com/kaltura/client/services/CurrencyService.java new file mode 100644 index 000000000..004957ffb --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/CurrencyService.java @@ -0,0 +1,60 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.Currency; +import com.kaltura.client.types.CurrencyFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class CurrencyService { + + public static class ListCurrencyBuilder extends ListResponseRequestBuilder { + + public ListCurrencyBuilder(CurrencyFilter filter) { + super(Currency.class, "currency", "list"); + params.add("filter", filter); + } + } + + /** + * Get the list of currencies for the partner with option to filter by currency + codes + * + * @param filter currency filter + */ + public static ListCurrencyBuilder list(CurrencyFilter filter) { + return new ListCurrencyBuilder(filter); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/DeviceBrandService.java b/KalturaClient/src/main/java/com/kaltura/client/services/DeviceBrandService.java new file mode 100644 index 000000000..ce88db564 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/DeviceBrandService.java @@ -0,0 +1,111 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.DeviceBrand; +import com.kaltura.client.types.DeviceBrandFilter; +import com.kaltura.client.types.FilterPager; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class DeviceBrandService { + + public static class AddDeviceBrandBuilder extends RequestBuilder { + + public AddDeviceBrandBuilder(DeviceBrand deviceBrand) { + super(DeviceBrand.class, "devicebrand", "add"); + params.add("deviceBrand", deviceBrand); + } + } + + /** + * Adds a new device brand which belongs to a specific group. + * + * @param deviceBrand Device brand. + */ + public static AddDeviceBrandBuilder add(DeviceBrand deviceBrand) { + return new AddDeviceBrandBuilder(deviceBrand); + } + + public static class ListDeviceBrandBuilder extends ListResponseRequestBuilder { + + public ListDeviceBrandBuilder(DeviceBrandFilter filter, FilterPager pager) { + super(DeviceBrand.class, "devicebrand", "list"); + params.add("filter", filter); + params.add("pager", pager); + } + } + + public static ListDeviceBrandBuilder list() { + return list(null); + } + + public static ListDeviceBrandBuilder list(DeviceBrandFilter filter) { + return list(filter, null); + } + + /** + * Return a list of the available device brands. + * + * @param filter Filter with no more than one condition specified. + * @param pager Page size and index. + */ + public static ListDeviceBrandBuilder list(DeviceBrandFilter filter, FilterPager pager) { + return new ListDeviceBrandBuilder(filter, pager); + } + + public static class UpdateDeviceBrandBuilder extends RequestBuilder { + + public UpdateDeviceBrandBuilder(long id, DeviceBrand deviceBrand) { + super(DeviceBrand.class, "devicebrand", "update"); + params.add("id", id); + params.add("deviceBrand", deviceBrand); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Updates an existing device brand which belongs to a specific group. + * + * @param id Device brand's identifier. + * @param deviceBrand Device brand. + */ + public static UpdateDeviceBrandBuilder update(long id, DeviceBrand deviceBrand) { + return new UpdateDeviceBrandBuilder(id, deviceBrand); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/DeviceFamilyService.java b/KalturaClient/src/main/java/com/kaltura/client/services/DeviceFamilyService.java new file mode 100644 index 000000000..beed170b3 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/DeviceFamilyService.java @@ -0,0 +1,111 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.DeviceFamily; +import com.kaltura.client.types.DeviceFamilyFilter; +import com.kaltura.client.types.FilterPager; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class DeviceFamilyService { + + public static class AddDeviceFamilyBuilder extends RequestBuilder { + + public AddDeviceFamilyBuilder(DeviceFamily deviceFamily) { + super(DeviceFamily.class, "devicefamily", "add"); + params.add("deviceFamily", deviceFamily); + } + } + + /** + * Adds a new device family which belongs to a specific group. + * + * @param deviceFamily Device family. + */ + public static AddDeviceFamilyBuilder add(DeviceFamily deviceFamily) { + return new AddDeviceFamilyBuilder(deviceFamily); + } + + public static class ListDeviceFamilyBuilder extends ListResponseRequestBuilder { + + public ListDeviceFamilyBuilder(DeviceFamilyFilter filter, FilterPager pager) { + super(DeviceFamily.class, "devicefamily", "list"); + params.add("filter", filter); + params.add("pager", pager); + } + } + + public static ListDeviceFamilyBuilder list() { + return list(null); + } + + public static ListDeviceFamilyBuilder list(DeviceFamilyFilter filter) { + return list(filter, null); + } + + /** + * Return a list of the available device families. + * + * @param filter Filter with no more than one condition specified. + * @param pager Page size and index. + */ + public static ListDeviceFamilyBuilder list(DeviceFamilyFilter filter, FilterPager pager) { + return new ListDeviceFamilyBuilder(filter, pager); + } + + public static class UpdateDeviceFamilyBuilder extends RequestBuilder { + + public UpdateDeviceFamilyBuilder(long id, DeviceFamily deviceFamily) { + super(DeviceFamily.class, "devicefamily", "update"); + params.add("id", id); + params.add("deviceFamily", deviceFamily); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Updates an existing device family which belongs to a specific group. + * + * @param id Device family's identifier. + * @param deviceFamily Device family. + */ + public static UpdateDeviceFamilyBuilder update(long id, DeviceFamily deviceFamily) { + return new UpdateDeviceFamilyBuilder(id, deviceFamily); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/DeviceReferenceDataService.java b/KalturaClient/src/main/java/com/kaltura/client/services/DeviceReferenceDataService.java new file mode 100644 index 000000000..1f4f46949 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/DeviceReferenceDataService.java @@ -0,0 +1,129 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.DeviceReferenceData; +import com.kaltura.client.types.DeviceReferenceDataFilter; +import com.kaltura.client.types.FilterPager; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.NullRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class DeviceReferenceDataService { + + public static class AddDeviceReferenceDataBuilder extends RequestBuilder { + + public AddDeviceReferenceDataBuilder(DeviceReferenceData objectToAdd) { + super(DeviceReferenceData.class, "devicereferencedata", "add"); + params.add("objectToAdd", objectToAdd); + } + } + + /** + * add DeviceReferenceData + * + * @param objectToAdd DeviceReferenceData details + */ + public static AddDeviceReferenceDataBuilder add(DeviceReferenceData objectToAdd) { + return new AddDeviceReferenceDataBuilder(objectToAdd); + } + + public static class DeleteDeviceReferenceDataBuilder extends NullRequestBuilder { + + public DeleteDeviceReferenceDataBuilder(long id) { + super("devicereferencedata", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Delete existing DeviceReferenceData + * + * @param id DeviceReferenceData identifier + */ + public static DeleteDeviceReferenceDataBuilder delete(long id) { + return new DeleteDeviceReferenceDataBuilder(id); + } + + public static class ListDeviceReferenceDataBuilder extends ListResponseRequestBuilder { + + public ListDeviceReferenceDataBuilder(DeviceReferenceDataFilter filter, FilterPager pager) { + super(DeviceReferenceData.class, "devicereferencedata", "list"); + params.add("filter", filter); + params.add("pager", pager); + } + } + + public static ListDeviceReferenceDataBuilder list(DeviceReferenceDataFilter filter) { + return list(filter, null); + } + + /** + * Returns the list of available DeviceReferenceData + * + * @param filter Filter + * @param pager Pager + */ + public static ListDeviceReferenceDataBuilder list(DeviceReferenceDataFilter filter, FilterPager pager) { + return new ListDeviceReferenceDataBuilder(filter, pager); + } + + public static class UpdateDeviceReferenceDataBuilder extends RequestBuilder { + + public UpdateDeviceReferenceDataBuilder(long id, DeviceReferenceData objectToUpdate) { + super(DeviceReferenceData.class, "devicereferencedata", "update"); + params.add("id", id); + params.add("objectToUpdate", objectToUpdate); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Update existing DeviceReferenceData + * + * @param id id of DeviceReferenceData to update + * @param objectToUpdate DeviceReferenceData Object to update + */ + public static UpdateDeviceReferenceDataBuilder update(long id, DeviceReferenceData objectToUpdate) { + return new UpdateDeviceReferenceDataBuilder(id, objectToUpdate); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/DiscountDetailsService.java b/KalturaClient/src/main/java/com/kaltura/client/services/DiscountDetailsService.java new file mode 100644 index 000000000..1c05775a7 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/DiscountDetailsService.java @@ -0,0 +1,126 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.DiscountDetails; +import com.kaltura.client.types.DiscountDetailsFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class DiscountDetailsService { + + public static class AddDiscountDetailsBuilder extends RequestBuilder { + + public AddDiscountDetailsBuilder(DiscountDetails discountDetails) { + super(DiscountDetails.class, "discountdetails", "add"); + params.add("discountDetails", discountDetails); + } + } + + /** + * Internal API !!! Insert new DiscountDetails for partner + * + * @param discountDetails Discount details Object + */ + public static AddDiscountDetailsBuilder add(DiscountDetails discountDetails) { + return new AddDiscountDetailsBuilder(discountDetails); + } + + public static class DeleteDiscountDetailsBuilder extends RequestBuilder { + + public DeleteDiscountDetailsBuilder(long id) { + super(Boolean.class, "discountdetails", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Internal API !!! Delete DiscountDetails + * + * @param id DiscountDetails id + */ + public static DeleteDiscountDetailsBuilder delete(long id) { + return new DeleteDiscountDetailsBuilder(id); + } + + public static class ListDiscountDetailsBuilder extends ListResponseRequestBuilder { + + public ListDiscountDetailsBuilder(DiscountDetailsFilter filter) { + super(DiscountDetails.class, "discountdetails", "list"); + params.add("filter", filter); + } + } + + public static ListDiscountDetailsBuilder list() { + return list(null); + } + + /** + * Returns the list of available discounts details, can be filtered by discount + codes + * + * @param filter Filter + */ + public static ListDiscountDetailsBuilder list(DiscountDetailsFilter filter) { + return new ListDiscountDetailsBuilder(filter); + } + + public static class UpdateDiscountDetailsBuilder extends RequestBuilder { + + public UpdateDiscountDetailsBuilder(long id, DiscountDetails discountDetails) { + super(DiscountDetails.class, "discountdetails", "update"); + params.add("id", id); + params.add("discountDetails", discountDetails); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Update discount details + * + * @param id DiscountDetails id + * @param discountDetails Discount details Object + */ + public static UpdateDiscountDetailsBuilder update(long id, DiscountDetails discountDetails) { + return new UpdateDiscountDetailsBuilder(id, discountDetails); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/DrmProfileService.java b/KalturaClient/src/main/java/com/kaltura/client/services/DrmProfileService.java new file mode 100644 index 000000000..ade0d748d --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/DrmProfileService.java @@ -0,0 +1,94 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.DrmProfile; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class DrmProfileService { + + public static class AddDrmProfileBuilder extends RequestBuilder { + + public AddDrmProfileBuilder(DrmProfile drmProfile) { + super(DrmProfile.class, "drmprofile", "add"); + params.add("drmProfile", drmProfile); + } + } + + /** + * Internal API !!! Insert new DrmProfile + * + * @param drmProfile Drm adapter Object + */ + public static AddDrmProfileBuilder add(DrmProfile drmProfile) { + return new AddDrmProfileBuilder(drmProfile); + } + + public static class DeleteDrmProfileBuilder extends RequestBuilder { + + public DeleteDrmProfileBuilder(long id) { + super(Boolean.class, "drmprofile", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Internal API !!! Delete DrmProfile + * + * @param id Drm adapter id + */ + public static DeleteDrmProfileBuilder delete(long id) { + return new DeleteDrmProfileBuilder(id); + } + + public static class ListDrmProfileBuilder extends ListResponseRequestBuilder { + + public ListDrmProfileBuilder() { + super(DrmProfile.class, "drmprofile", "list"); + } + } + + /** + * Returns all DRM adapters for partner + */ + public static ListDrmProfileBuilder list() { + return new ListDrmProfileBuilder(); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/DurationService.java b/KalturaClient/src/main/java/com/kaltura/client/services/DurationService.java new file mode 100644 index 000000000..4a80cdace --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/DurationService.java @@ -0,0 +1,55 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.Duration; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class DurationService { + + public static class ListDurationBuilder extends ListResponseRequestBuilder { + + public ListDurationBuilder() { + super(Duration.class, "duration", "list"); + } + } + + /** + * Get the list of optinal Duration codes + */ + public static ListDurationBuilder list() { + return new ListDurationBuilder(); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/DynamicListService.java b/KalturaClient/src/main/java/com/kaltura/client/services/DynamicListService.java new file mode 100644 index 000000000..cc62a70a1 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/DynamicListService.java @@ -0,0 +1,171 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.FileHolder; +import com.kaltura.client.Files; +import com.kaltura.client.types.BulkUpload; +import com.kaltura.client.types.BulkUploadDynamicListData; +import com.kaltura.client.types.BulkUploadExcelJobData; +import com.kaltura.client.types.DynamicList; +import com.kaltura.client.types.DynamicListFilter; +import com.kaltura.client.types.FilterPager; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.NullRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.io.File; +import java.io.FileInputStream; +import java.io.InputStream; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class DynamicListService { + + public static class AddDynamicListBuilder extends RequestBuilder { + + public AddDynamicListBuilder(DynamicList objectToAdd) { + super(DynamicList.class, "dynamiclist", "add"); + params.add("objectToAdd", objectToAdd); + } + } + + /** + * Add new KalturaDynamicList + * + * @param objectToAdd KalturaDynamicList Object to add + */ + public static AddDynamicListBuilder add(DynamicList objectToAdd) { + return new AddDynamicListBuilder(objectToAdd); + } + + public static class AddFromBulkUploadDynamicListBuilder extends RequestBuilder { + + public AddFromBulkUploadDynamicListBuilder(FileHolder fileData, BulkUploadExcelJobData jobData, BulkUploadDynamicListData bulkUploadData) { + super(BulkUpload.class, "dynamiclist", "addFromBulkUpload"); + files = new Files(); + files.add("fileData", fileData); + params.add("jobData", jobData); + params.add("bulkUploadData", bulkUploadData); + } + } + + public static AddFromBulkUploadDynamicListBuilder addFromBulkUpload(File fileData, BulkUploadExcelJobData jobData, BulkUploadDynamicListData bulkUploadData) { + return addFromBulkUpload(new FileHolder(fileData), jobData, bulkUploadData); + } + + public static AddFromBulkUploadDynamicListBuilder addFromBulkUpload(InputStream fileData, String fileDataMimeType, String fileDataName, long fileDataSize, BulkUploadExcelJobData jobData, BulkUploadDynamicListData bulkUploadData) { + return addFromBulkUpload(new FileHolder(fileData, fileDataMimeType, fileDataName, fileDataSize), jobData, bulkUploadData); + } + + public static AddFromBulkUploadDynamicListBuilder addFromBulkUpload(FileInputStream fileData, String fileDataMimeType, String fileDataName, BulkUploadExcelJobData jobData, BulkUploadDynamicListData bulkUploadData) { + return addFromBulkUpload(new FileHolder(fileData, fileDataMimeType, fileDataName), jobData, bulkUploadData); + } + + /** + * Add new bulk upload batch job Conversion profile id can be specified in the API. + * + * @param fileData fileData + * @param jobData jobData + * @param bulkUploadData bulkUploadData + */ + public static AddFromBulkUploadDynamicListBuilder addFromBulkUpload(FileHolder fileData, BulkUploadExcelJobData jobData, BulkUploadDynamicListData bulkUploadData) { + return new AddFromBulkUploadDynamicListBuilder(fileData, jobData, bulkUploadData); + } + + public static class DeleteDynamicListBuilder extends NullRequestBuilder { + + public DeleteDynamicListBuilder(long id) { + super("dynamiclist", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Delete existing DynamicList + * + * @param id DynamicList identifier + */ + public static DeleteDynamicListBuilder delete(long id) { + return new DeleteDynamicListBuilder(id); + } + + public static class ListDynamicListBuilder extends ListResponseRequestBuilder { + + public ListDynamicListBuilder(DynamicListFilter filter, FilterPager pager) { + super(DynamicList.class, "dynamiclist", "list"); + params.add("filter", filter); + params.add("pager", pager); + } + } + + public static ListDynamicListBuilder list(DynamicListFilter filter) { + return list(filter, null); + } + + /** + * Returns the list of available DynamicList + * + * @param filter Filter + * @param pager Pager + */ + public static ListDynamicListBuilder list(DynamicListFilter filter, FilterPager pager) { + return new ListDynamicListBuilder(filter, pager); + } + + public static class UpdateDynamicListBuilder extends RequestBuilder { + + public UpdateDynamicListBuilder(long id, DynamicList objectToUpdate) { + super(DynamicList.class, "dynamiclist", "update"); + params.add("id", id); + params.add("objectToUpdate", objectToUpdate); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Update existing KalturaDynamicList + * + * @param id id of KalturaDynamicList to update + * @param objectToUpdate KalturaDynamicList Object to update + */ + public static UpdateDynamicListBuilder update(long id, DynamicList objectToUpdate) { + return new UpdateDynamicListBuilder(id, objectToUpdate); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/EmailService.java b/KalturaClient/src/main/java/com/kaltura/client/services/EmailService.java new file mode 100644 index 000000000..19c921051 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/EmailService.java @@ -0,0 +1,58 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.EmailMessage; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class EmailService { + + public static class SendEmailBuilder extends RequestBuilder { + + public SendEmailBuilder(EmailMessage emailMessage) { + super(Boolean.class, "email", "send"); + params.add("emailMessage", emailMessage); + } + } + + /** + * Sends email notification + * + * @param emailMessage email details + */ + public static SendEmailBuilder send(EmailMessage emailMessage) { + return new SendEmailBuilder(emailMessage); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/EngagementAdapterService.java b/KalturaClient/src/main/java/com/kaltura/client/services/EngagementAdapterService.java new file mode 100644 index 000000000..c5b448d04 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/EngagementAdapterService.java @@ -0,0 +1,159 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.EngagementAdapter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class EngagementAdapterService { + + public static class AddEngagementAdapterBuilder extends RequestBuilder { + + public AddEngagementAdapterBuilder(EngagementAdapter engagementAdapter) { + super(EngagementAdapter.class, "engagementadapter", "add"); + params.add("engagementAdapter", engagementAdapter); + } + } + + /** + * Insert new Engagement adapter for partner + * + * @param engagementAdapter Engagement adapter Object + */ + public static AddEngagementAdapterBuilder add(EngagementAdapter engagementAdapter) { + return new AddEngagementAdapterBuilder(engagementAdapter); + } + + public static class DeleteEngagementAdapterBuilder extends RequestBuilder { + + public DeleteEngagementAdapterBuilder(int id) { + super(Boolean.class, "engagementadapter", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Delete Engagement adapter by Engagement adapter id + * + * @param id Engagement adapter identifier + */ + public static DeleteEngagementAdapterBuilder delete(int id) { + return new DeleteEngagementAdapterBuilder(id); + } + + public static class GenerateSharedSecretEngagementAdapterBuilder extends RequestBuilder { + + public GenerateSharedSecretEngagementAdapterBuilder(int id) { + super(EngagementAdapter.class, "engagementadapter", "generateSharedSecret"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Generate engagement adapter shared secret + * + * @param id Engagement adapter identifier + */ + public static GenerateSharedSecretEngagementAdapterBuilder generateSharedSecret(int id) { + return new GenerateSharedSecretEngagementAdapterBuilder(id); + } + + public static class GetEngagementAdapterBuilder extends RequestBuilder { + + public GetEngagementAdapterBuilder(int id) { + super(EngagementAdapter.class, "engagementadapter", "get"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Returns all Engagement adapters for partner : id + name + * + * @param id Engagement adapter identifier + */ + public static GetEngagementAdapterBuilder get(int id) { + return new GetEngagementAdapterBuilder(id); + } + + public static class ListEngagementAdapterBuilder extends ListResponseRequestBuilder { + + public ListEngagementAdapterBuilder() { + super(EngagementAdapter.class, "engagementadapter", "list"); + } + } + + /** + * Returns all Engagement adapters for partner : id + name + */ + public static ListEngagementAdapterBuilder list() { + return new ListEngagementAdapterBuilder(); + } + + public static class UpdateEngagementAdapterBuilder extends RequestBuilder { + + public UpdateEngagementAdapterBuilder(int id, EngagementAdapter engagementAdapter) { + super(EngagementAdapter.class, "engagementadapter", "update"); + params.add("id", id); + params.add("engagementAdapter", engagementAdapter); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Update Engagement adapter details + * + * @param id Engagement adapter identifier + * @param engagementAdapter Engagement adapter Object + */ + public static UpdateEngagementAdapterBuilder update(int id, EngagementAdapter engagementAdapter) { + return new UpdateEngagementAdapterBuilder(id, engagementAdapter); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/EngagementService.java b/KalturaClient/src/main/java/com/kaltura/client/services/EngagementService.java new file mode 100644 index 000000000..461aa681c --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/EngagementService.java @@ -0,0 +1,119 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.Engagement; +import com.kaltura.client.types.EngagementFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class EngagementService { + + public static class AddEngagementBuilder extends RequestBuilder { + + public AddEngagementBuilder(Engagement engagement) { + super(Engagement.class, "engagement", "add"); + params.add("engagement", engagement); + } + } + + /** + * Insert new Engagement for partner + * + * @param engagement Engagement adapter Object + */ + public static AddEngagementBuilder add(Engagement engagement) { + return new AddEngagementBuilder(engagement); + } + + public static class DeleteEngagementBuilder extends RequestBuilder { + + public DeleteEngagementBuilder(int id) { + super(Boolean.class, "engagement", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Delete engagement by engagement adapter id + * + * @param id Engagement identifier + */ + public static DeleteEngagementBuilder delete(int id) { + return new DeleteEngagementBuilder(id); + } + + public static class GetEngagementBuilder extends RequestBuilder { + + public GetEngagementBuilder(int id) { + super(Engagement.class, "engagement", "get"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Return engagement + * + * @param id Engagement identifier + */ + public static GetEngagementBuilder get(int id) { + return new GetEngagementBuilder(id); + } + + public static class ListEngagementBuilder extends ListResponseRequestBuilder { + + public ListEngagementBuilder(EngagementFilter filter) { + super(Engagement.class, "engagement", "list"); + params.add("filter", filter); + } + } + + /** + * Returns all Engagement for partner + * + * @param filter filter + */ + public static ListEngagementBuilder list(EngagementFilter filter) { + return new ListEngagementBuilder(filter); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/EntitlementService.java b/KalturaClient/src/main/java/com/kaltura/client/services/EntitlementService.java new file mode 100644 index 000000000..ae0b5be58 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/EntitlementService.java @@ -0,0 +1,339 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.enums.TransactionType; +import com.kaltura.client.types.Entitlement; +import com.kaltura.client.types.EntitlementFilter; +import com.kaltura.client.types.EntitlementRenewal; +import com.kaltura.client.types.FilterPager; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.NullRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class EntitlementService { + + public static class ApplyCouponEntitlementBuilder extends NullRequestBuilder { + + public ApplyCouponEntitlementBuilder(long purchaseId, String couponCode) { + super("entitlement", "applyCoupon"); + params.add("purchaseId", purchaseId); + params.add("couponCode", couponCode); + } + + public void purchaseId(String multirequestToken) { + params.add("purchaseId", multirequestToken); + } + + public void couponCode(String multirequestToken) { + params.add("couponCode", multirequestToken); + } + } + + /** + * Apply new coupon for existing subscription + * + * @param purchaseId purchase Id + * @param couponCode coupon Code + */ + public static ApplyCouponEntitlementBuilder applyCoupon(long purchaseId, String couponCode) { + return new ApplyCouponEntitlementBuilder(purchaseId, couponCode); + } + + public static class CancelEntitlementBuilder extends RequestBuilder { + + public CancelEntitlementBuilder(int assetId, TransactionType productType) { + super(Boolean.class, "entitlement", "cancel"); + params.add("assetId", assetId); + params.add("productType", productType); + } + + public void assetId(String multirequestToken) { + params.add("assetId", multirequestToken); + } + + public void productType(String multirequestToken) { + params.add("productType", multirequestToken); + } + } + + /** + * Immediately cancel a subscription, PPV, collection or programAssetGroupOffer. + Cancel is possible only if within cancellation window and content not already + consumed + * + * @param assetId The mediaFileID to cancel + * @param productType The product type for the cancelation + */ + public static CancelEntitlementBuilder cancel(int assetId, TransactionType productType) { + return new CancelEntitlementBuilder(assetId, productType); + } + + public static class CancelRenewalEntitlementBuilder extends NullRequestBuilder { + + public CancelRenewalEntitlementBuilder(String subscriptionId) { + super("entitlement", "cancelRenewal"); + params.add("subscriptionId", subscriptionId); + } + + public void subscriptionId(String multirequestToken) { + params.add("subscriptionId", multirequestToken); + } + } + + /** + * Cancel a household service subscription at the next renewal. The subscription + stays valid till the next renewal. + * + * @param subscriptionId Subscription Code + */ + public static CancelRenewalEntitlementBuilder cancelRenewal(String subscriptionId) { + return new CancelRenewalEntitlementBuilder(subscriptionId); + } + + public static class CancelScheduledSubscriptionEntitlementBuilder extends RequestBuilder { + + public CancelScheduledSubscriptionEntitlementBuilder(long scheduledSubscriptionId) { + super(Boolean.class, "entitlement", "cancelScheduledSubscription"); + params.add("scheduledSubscriptionId", scheduledSubscriptionId); + } + + public void scheduledSubscriptionId(String multirequestToken) { + params.add("scheduledSubscriptionId", multirequestToken); + } + } + + /** + * Cancel Scheduled Subscription + * + * @param scheduledSubscriptionId Scheduled Subscription Identifier + */ + public static CancelScheduledSubscriptionEntitlementBuilder cancelScheduledSubscription(long scheduledSubscriptionId) { + return new CancelScheduledSubscriptionEntitlementBuilder(scheduledSubscriptionId); + } + + public static class ExternalReconcileEntitlementBuilder extends RequestBuilder { + + public ExternalReconcileEntitlementBuilder() { + super(Boolean.class, "entitlement", "externalReconcile"); + } + } + + /** + * Reconcile the user household&#39;s entitlements with an external + entitlements source. This request is frequency protected to avoid too frequent + calls per household. + */ + public static ExternalReconcileEntitlementBuilder externalReconcile() { + return new ExternalReconcileEntitlementBuilder(); + } + + public static class ForceCancelEntitlementBuilder extends RequestBuilder { + + public ForceCancelEntitlementBuilder(int assetId, TransactionType productType) { + super(Boolean.class, "entitlement", "forceCancel"); + params.add("assetId", assetId); + params.add("productType", productType); + } + + public void assetId(String multirequestToken) { + params.add("assetId", multirequestToken); + } + + public void productType(String multirequestToken) { + params.add("productType", multirequestToken); + } + } + + /** + * Immediately cancel a subscription, PPV, collection or programAssetGroupOffer. + Cancel applies regardless of cancellation window and content consumption status + * + * @param assetId The mediaFileID to cancel + * @param productType The product type for the cancelation + */ + public static ForceCancelEntitlementBuilder forceCancel(int assetId, TransactionType productType) { + return new ForceCancelEntitlementBuilder(assetId, productType); + } + + public static class GetNextRenewalEntitlementBuilder extends RequestBuilder { + + public GetNextRenewalEntitlementBuilder(int id) { + super(EntitlementRenewal.class, "entitlement", "getNextRenewal"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Returns the data about the next renewal + * + * @param id Purchase Id + */ + public static GetNextRenewalEntitlementBuilder getNextRenewal(int id) { + return new GetNextRenewalEntitlementBuilder(id); + } + + public static class GrantEntitlementBuilder extends RequestBuilder { + + public GrantEntitlementBuilder(int productId, TransactionType productType, boolean history, int contentId) { + super(Boolean.class, "entitlement", "grant"); + params.add("productId", productId); + params.add("productType", productType); + params.add("history", history); + params.add("contentId", contentId); + } + + public void productId(String multirequestToken) { + params.add("productId", multirequestToken); + } + + public void productType(String multirequestToken) { + params.add("productType", multirequestToken); + } + + public void history(String multirequestToken) { + params.add("history", multirequestToken); + } + + public void contentId(String multirequestToken) { + params.add("contentId", multirequestToken); + } + } + + public static GrantEntitlementBuilder grant(int productId, TransactionType productType, boolean history) { + return grant(productId, productType, history, 0); + } + + /** + * Grant household for an entitlement for a PPV, Subscription or + programAssetGroupOffer. + * + * @param productId Identifier for the product package from which this content is offered + * @param productType Product package type. Possible values: PPV, Subscription, Collection + * @param history Controls if the new entitlements grant will appear in the user’s history. True + * – will add a history entry. False (or if ommited) – no history entry will be + * added + * @param contentId Identifier for the content. Relevant only if Product type = PPV + */ + public static GrantEntitlementBuilder grant(int productId, TransactionType productType, boolean history, int contentId) { + return new GrantEntitlementBuilder(productId, productType, history, contentId); + } + + public static class ListEntitlementBuilder extends ListResponseRequestBuilder { + + public ListEntitlementBuilder(EntitlementFilter filter, FilterPager pager) { + super(Entitlement.class, "entitlement", "list"); + params.add("filter", filter); + params.add("pager", pager); + } + } + + public static ListEntitlementBuilder list(EntitlementFilter filter) { + return list(filter, null); + } + + /** + * Gets all the entitled media items for a household + * + * @param filter Request filter + * @param pager Request pager + */ + public static ListEntitlementBuilder list(EntitlementFilter filter, FilterPager pager) { + return new ListEntitlementBuilder(filter, pager); + } + + public static class SwapEntitlementBuilder extends RequestBuilder { + + public SwapEntitlementBuilder(int currentProductId, int newProductId, boolean history) { + super(Boolean.class, "entitlement", "swap"); + params.add("currentProductId", currentProductId); + params.add("newProductId", newProductId); + params.add("history", history); + } + + public void currentProductId(String multirequestToken) { + params.add("currentProductId", multirequestToken); + } + + public void newProductId(String multirequestToken) { + params.add("newProductId", multirequestToken); + } + + public void history(String multirequestToken) { + params.add("history", multirequestToken); + } + } + + /** + * Swap current entitlement (subscription) with new entitlement (subscription) - + only Grant + * + * @param currentProductId Identifier for the current product package + * @param newProductId Identifier for the new product package + * @param history Controls if the new entitlements swap will appear in the user’s history. True + * – will add a history entry. False (or if ommited) – no history entry will be + * added + */ + public static SwapEntitlementBuilder swap(int currentProductId, int newProductId, boolean history) { + return new SwapEntitlementBuilder(currentProductId, newProductId, history); + } + + public static class UpdateEntitlementBuilder extends RequestBuilder { + + public UpdateEntitlementBuilder(int id, Entitlement entitlement) { + super(Entitlement.class, "entitlement", "update"); + params.add("id", id); + params.add("entitlement", entitlement); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Update Kaltura Entitelment by Purchase id + * + * @param id Purchase Id + * @param entitlement KalturaEntitlement object + */ + public static UpdateEntitlementBuilder update(int id, Entitlement entitlement) { + return new UpdateEntitlementBuilder(id, entitlement); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/EpgService.java b/KalturaClient/src/main/java/com/kaltura/client/services/EpgService.java new file mode 100644 index 000000000..499557e75 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/EpgService.java @@ -0,0 +1,64 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.Epg; +import com.kaltura.client.types.EpgFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class EpgService { + + public static class ListEpgBuilder extends ListResponseRequestBuilder { + + public ListEpgBuilder(EpgFilter filter) { + super(Epg.class, "epg", "list"); + params.add("filter", filter); + } + } + + public static ListEpgBuilder list() { + return list(null); + } + + /** + * Returns EPG assets. + * + * @param filter Filters by EPG live asset identifier and date in unix timestamp, e.g. + * 1610928000(January 18, 2021 0:00:00), 1611014400(January 19, 2021 0:00:00) + */ + public static ListEpgBuilder list(EpgFilter filter) { + return new ListEpgBuilder(filter); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/EpgServicePartnerConfigurationService.java b/KalturaClient/src/main/java/com/kaltura/client/services/EpgServicePartnerConfigurationService.java new file mode 100644 index 000000000..d3e804218 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/EpgServicePartnerConfigurationService.java @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.EpgServicePartnerConfiguration; +import com.kaltura.client.utils.request.NullRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class EpgServicePartnerConfigurationService { + + public static class GetEpgServicePartnerConfigurationBuilder extends RequestBuilder { + + public GetEpgServicePartnerConfigurationBuilder() { + super(EpgServicePartnerConfiguration.class, "epgservicepartnerconfiguration", "get"); + } + } + + /** + * Returns EPG cache service partner configurations + */ + public static GetEpgServicePartnerConfigurationBuilder get() { + return new GetEpgServicePartnerConfigurationBuilder(); + } + + public static class UpdateEpgServicePartnerConfigurationBuilder extends NullRequestBuilder { + + public UpdateEpgServicePartnerConfigurationBuilder(EpgServicePartnerConfiguration config) { + super("epgservicepartnerconfiguration", "update"); + params.add("config", config); + } + } + + /** + * Returns EPG cache service partner configurations + * + * @param config the partner config updates + */ + public static UpdateEpgServicePartnerConfigurationBuilder update(EpgServicePartnerConfiguration config) { + return new UpdateEpgServicePartnerConfigurationBuilder(config); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/EventNotificationActionService.java b/KalturaClient/src/main/java/com/kaltura/client/services/EventNotificationActionService.java new file mode 100644 index 000000000..896038f69 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/EventNotificationActionService.java @@ -0,0 +1,58 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.EventNotificationScope; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class EventNotificationActionService { + + public static class DispatchEventNotificationActionBuilder extends RequestBuilder { + + public DispatchEventNotificationActionBuilder(EventNotificationScope scope) { + super(Boolean.class, "eventnotificationaction", "dispatch"); + params.add("scope", scope); + } + } + + /** + * Dispatches event notification + * + * @param scope Scope + */ + public static DispatchEventNotificationActionBuilder dispatch(EventNotificationScope scope) { + return new DispatchEventNotificationActionBuilder(scope); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/EventNotificationService.java b/KalturaClient/src/main/java/com/kaltura/client/services/EventNotificationService.java new file mode 100644 index 000000000..4c24be4cd --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/EventNotificationService.java @@ -0,0 +1,83 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.EventNotification; +import com.kaltura.client.types.EventNotificationFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class EventNotificationService { + + public static class ListEventNotificationBuilder extends ListResponseRequestBuilder { + + public ListEventNotificationBuilder(EventNotificationFilter filter) { + super(EventNotification.class, "eventnotification", "list"); + params.add("filter", filter); + } + } + + /** + * Gets all EventNotification items for a given Object id and type + * + * @param filter Filter + */ + public static ListEventNotificationBuilder list(EventNotificationFilter filter) { + return new ListEventNotificationBuilder(filter); + } + + public static class UpdateEventNotificationBuilder extends RequestBuilder { + + public UpdateEventNotificationBuilder(String id, EventNotification objectToUpdate) { + super(EventNotification.class, "eventnotification", "update"); + params.add("id", id); + params.add("objectToUpdate", objectToUpdate); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * eventNotification update + * + * @param id id of eventNotification + * @param objectToUpdate eventNotification details + */ + public static UpdateEventNotificationBuilder update(String id, EventNotification objectToUpdate) { + return new UpdateEventNotificationBuilder(id, objectToUpdate); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/ExportTaskService.java b/KalturaClient/src/main/java/com/kaltura/client/services/ExportTaskService.java new file mode 100644 index 000000000..df2e55aef --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/ExportTaskService.java @@ -0,0 +1,146 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.ExportTask; +import com.kaltura.client.types.ExportTaskFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class ExportTaskService { + + public static class AddExportTaskBuilder extends RequestBuilder { + + public AddExportTaskBuilder(ExportTask task) { + super(ExportTask.class, "exporttask", "add"); + params.add("task", task); + } + } + + /** + * Adds a new bulk export task + * + * @param task The task model to add + */ + public static AddExportTaskBuilder add(ExportTask task) { + return new AddExportTaskBuilder(task); + } + + public static class DeleteExportTaskBuilder extends RequestBuilder { + + public DeleteExportTaskBuilder(long id) { + super(Boolean.class, "exporttask", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Deletes an existing bulk export task by task identifier + * + * @param id The identifier of the task to delete + */ + public static DeleteExportTaskBuilder delete(long id) { + return new DeleteExportTaskBuilder(id); + } + + public static class GetExportTaskBuilder extends RequestBuilder { + + public GetExportTaskBuilder(long id) { + super(ExportTask.class, "exporttask", "get"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Gets an existing bulk export task by task identifier + * + * @param id The identifier of the task to get + */ + public static GetExportTaskBuilder get(long id) { + return new GetExportTaskBuilder(id); + } + + public static class ListExportTaskBuilder extends ListResponseRequestBuilder { + + public ListExportTaskBuilder(ExportTaskFilter filter) { + super(ExportTask.class, "exporttask", "list"); + params.add("filter", filter); + } + } + + public static ListExportTaskBuilder list() { + return list(null); + } + + /** + * Returns bulk export tasks by tasks identifiers + * + * @param filter Bulk export tasks filter + */ + public static ListExportTaskBuilder list(ExportTaskFilter filter) { + return new ListExportTaskBuilder(filter); + } + + public static class UpdateExportTaskBuilder extends RequestBuilder { + + public UpdateExportTaskBuilder(long id, ExportTask task) { + super(ExportTask.class, "exporttask", "update"); + params.add("id", id); + params.add("task", task); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Updates an existing bulk export task by task identifier + * + * @param id The task id to update + * @param task The task model to update + */ + public static UpdateExportTaskBuilder update(long id, ExportTask task) { + return new UpdateExportTaskBuilder(id, task); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/ExternalChannelProfileService.java b/KalturaClient/src/main/java/com/kaltura/client/services/ExternalChannelProfileService.java new file mode 100644 index 000000000..1af0d96a9 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/ExternalChannelProfileService.java @@ -0,0 +1,125 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.ExternalChannelProfile; +import com.kaltura.client.types.ExternalChannelProfileFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class ExternalChannelProfileService { + + public static class AddExternalChannelProfileBuilder extends RequestBuilder { + + public AddExternalChannelProfileBuilder(ExternalChannelProfile externalChannel) { + super(ExternalChannelProfile.class, "externalchannelprofile", "add"); + params.add("externalChannel", externalChannel); + } + } + + /** + * Insert new External channel for partner + * + * @param externalChannel External channel Object + */ + public static AddExternalChannelProfileBuilder add(ExternalChannelProfile externalChannel) { + return new AddExternalChannelProfileBuilder(externalChannel); + } + + public static class DeleteExternalChannelProfileBuilder extends RequestBuilder { + + public DeleteExternalChannelProfileBuilder(int externalChannelId) { + super(Boolean.class, "externalchannelprofile", "delete"); + params.add("externalChannelId", externalChannelId); + } + + public void externalChannelId(String multirequestToken) { + params.add("externalChannelId", multirequestToken); + } + } + + /** + * Delete External channel by External channel id + * + * @param externalChannelId External channel identifier + */ + public static DeleteExternalChannelProfileBuilder delete(int externalChannelId) { + return new DeleteExternalChannelProfileBuilder(externalChannelId); + } + + public static class ListExternalChannelProfileBuilder extends ListResponseRequestBuilder { + + public ListExternalChannelProfileBuilder(ExternalChannelProfileFilter filter) { + super(ExternalChannelProfile.class, "externalchannelprofile", "list"); + params.add("filter", filter); + } + } + + public static ListExternalChannelProfileBuilder list() { + return list(null); + } + + /** + * Returns all External channels for partner + * + * @param filter External channel profile filter + */ + public static ListExternalChannelProfileBuilder list(ExternalChannelProfileFilter filter) { + return new ListExternalChannelProfileBuilder(filter); + } + + public static class UpdateExternalChannelProfileBuilder extends RequestBuilder { + + public UpdateExternalChannelProfileBuilder(int externalChannelId, ExternalChannelProfile externalChannel) { + super(ExternalChannelProfile.class, "externalchannelprofile", "update"); + params.add("externalChannelId", externalChannelId); + params.add("externalChannel", externalChannel); + } + + public void externalChannelId(String multirequestToken) { + params.add("externalChannelId", multirequestToken); + } + } + + /** + * Update External channel details + * + * @param externalChannelId External channel identifier + * @param externalChannel External channel Object + */ + public static UpdateExternalChannelProfileBuilder update(int externalChannelId, ExternalChannelProfile externalChannel) { + return new UpdateExternalChannelProfileBuilder(externalChannelId, externalChannel); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/FavoriteService.java b/KalturaClient/src/main/java/com/kaltura/client/services/FavoriteService.java new file mode 100644 index 000000000..ac23541d1 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/FavoriteService.java @@ -0,0 +1,102 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.Favorite; +import com.kaltura.client.types.FavoriteFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class FavoriteService { + + public static class AddFavoriteBuilder extends RequestBuilder { + + public AddFavoriteBuilder(Favorite favorite) { + super(Favorite.class, "favorite", "add"); + params.add("favorite", favorite); + } + } + + /** + * Add media to user&#39;s favorite list + * + * @param favorite Favorite details. + */ + public static AddFavoriteBuilder add(Favorite favorite) { + return new AddFavoriteBuilder(favorite); + } + + public static class DeleteFavoriteBuilder extends RequestBuilder { + + public DeleteFavoriteBuilder(long id) { + super(Boolean.class, "favorite", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Remove media from user&#39;s favorite list + * + * @param id Media identifier + */ + public static DeleteFavoriteBuilder delete(long id) { + return new DeleteFavoriteBuilder(id); + } + + public static class ListFavoriteBuilder extends ListResponseRequestBuilder { + + public ListFavoriteBuilder(FavoriteFilter filter) { + super(Favorite.class, "favorite", "list"); + params.add("filter", filter); + } + } + + public static ListFavoriteBuilder list() { + return list(null); + } + + /** + * Retrieving users&#39; favorites + * + * @param filter Request filter + */ + public static ListFavoriteBuilder list(FavoriteFilter filter) { + return new ListFavoriteBuilder(filter); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/FollowTvSeriesService.java b/KalturaClient/src/main/java/com/kaltura/client/services/FollowTvSeriesService.java new file mode 100644 index 000000000..fcf06b9da --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/FollowTvSeriesService.java @@ -0,0 +1,140 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.FilterPager; +import com.kaltura.client.types.FollowTvSeries; +import com.kaltura.client.types.FollowTvSeriesFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.NullRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class FollowTvSeriesService { + + public static class AddFollowTvSeriesBuilder extends RequestBuilder { + + public AddFollowTvSeriesBuilder(FollowTvSeries followTvSeries) { + super(FollowTvSeries.class, "followtvseries", "add"); + params.add("followTvSeries", followTvSeries); + } + } + + /** + * Add a user&#39;s tv series follow. Possible status codes: + UserAlreadyFollowing = 8013, NotFound = 500007, InvalidAssetId = 4024 + * + * @param followTvSeries Follow series request parameters + */ + public static AddFollowTvSeriesBuilder add(FollowTvSeries followTvSeries) { + return new AddFollowTvSeriesBuilder(followTvSeries); + } + + public static class DeleteFollowTvSeriesBuilder extends RequestBuilder { + + public DeleteFollowTvSeriesBuilder(int assetId) { + super(Boolean.class, "followtvseries", "delete"); + params.add("assetId", assetId); + } + + public void assetId(String multirequestToken) { + params.add("assetId", multirequestToken); + } + } + + /** + * Delete a user&#39;s tv series follow. + * + * @param assetId Asset identifier + */ + public static DeleteFollowTvSeriesBuilder delete(int assetId) { + return new DeleteFollowTvSeriesBuilder(assetId); + } + + public static class DeleteWithTokenFollowTvSeriesBuilder extends NullRequestBuilder { + + public DeleteWithTokenFollowTvSeriesBuilder(int assetId, String token, int partnerId) { + super("followtvseries", "deleteWithToken"); + params.add("assetId", assetId); + params.add("token", token); + params.add("partnerId", partnerId); + } + + public void assetId(String multirequestToken) { + params.add("assetId", multirequestToken); + } + + public void token(String multirequestToken) { + params.add("token", multirequestToken); + } + + public void partnerId(String multirequestToken) { + params.add("partnerId", multirequestToken); + } + } + + /** + * Delete a user&#39;s tv series follow. + * + * @param assetId Asset identifier + * @param token User's token identifier + * @param partnerId Partner identifier + */ + public static DeleteWithTokenFollowTvSeriesBuilder deleteWithToken(int assetId, String token, int partnerId) { + return new DeleteWithTokenFollowTvSeriesBuilder(assetId, token, partnerId); + } + + public static class ListFollowTvSeriesBuilder extends ListResponseRequestBuilder { + + public ListFollowTvSeriesBuilder(FollowTvSeriesFilter filter, FilterPager pager) { + super(FollowTvSeries.class, "followtvseries", "list"); + params.add("filter", filter); + params.add("pager", pager); + } + } + + public static ListFollowTvSeriesBuilder list(FollowTvSeriesFilter filter) { + return list(filter, null); + } + + /** + * List user&#39;s tv series follows. Possible status codes: + * + * @param filter Follow TV series filter + * @param pager pager + */ + public static ListFollowTvSeriesBuilder list(FollowTvSeriesFilter filter, FilterPager pager) { + return new ListFollowTvSeriesBuilder(filter, pager); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/HomeNetworkService.java b/KalturaClient/src/main/java/com/kaltura/client/services/HomeNetworkService.java new file mode 100644 index 000000000..07fa239da --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/HomeNetworkService.java @@ -0,0 +1,117 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.HomeNetwork; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class HomeNetworkService { + + public static class AddHomeNetworkBuilder extends RequestBuilder { + + public AddHomeNetworkBuilder(HomeNetwork homeNetwork) { + super(HomeNetwork.class, "homenetwork", "add"); + params.add("homeNetwork", homeNetwork); + } + } + + /** + * Add a new home network to a household + * + * @param homeNetwork Home network to add + */ + public static AddHomeNetworkBuilder add(HomeNetwork homeNetwork) { + return new AddHomeNetworkBuilder(homeNetwork); + } + + public static class DeleteHomeNetworkBuilder extends RequestBuilder { + + public DeleteHomeNetworkBuilder(String externalId) { + super(Boolean.class, "homenetwork", "delete"); + params.add("externalId", externalId); + } + + public void externalId(String multirequestToken) { + params.add("externalId", multirequestToken); + } + } + + /** + * Delete household’s existing home network + * + * @param externalId The network to update + */ + public static DeleteHomeNetworkBuilder delete(String externalId) { + return new DeleteHomeNetworkBuilder(externalId); + } + + public static class ListHomeNetworkBuilder extends ListResponseRequestBuilder { + + public ListHomeNetworkBuilder() { + super(HomeNetwork.class, "homenetwork", "list"); + } + } + + /** + * Retrieve the household’s home networks + */ + public static ListHomeNetworkBuilder list() { + return new ListHomeNetworkBuilder(); + } + + public static class UpdateHomeNetworkBuilder extends RequestBuilder { + + public UpdateHomeNetworkBuilder(String externalId, HomeNetwork homeNetwork) { + super(HomeNetwork.class, "homenetwork", "update"); + params.add("externalId", externalId); + params.add("homeNetwork", homeNetwork); + } + + public void externalId(String multirequestToken) { + params.add("externalId", multirequestToken); + } + } + + /** + * Update and existing home network for a household + * + * @param externalId Home network identifier + * @param homeNetwork Home network to update + */ + public static UpdateHomeNetworkBuilder update(String externalId, HomeNetwork homeNetwork) { + return new UpdateHomeNetworkBuilder(externalId, homeNetwork); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/HouseholdCouponService.java b/KalturaClient/src/main/java/com/kaltura/client/services/HouseholdCouponService.java new file mode 100644 index 000000000..f2426cdd0 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/HouseholdCouponService.java @@ -0,0 +1,103 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.HouseholdCoupon; +import com.kaltura.client.types.HouseholdCouponFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.NullRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class HouseholdCouponService { + + public static class AddHouseholdCouponBuilder extends RequestBuilder { + + public AddHouseholdCouponBuilder(HouseholdCoupon objectToAdd) { + super(HouseholdCoupon.class, "householdcoupon", "add"); + params.add("objectToAdd", objectToAdd); + } + } + + /** + * householdCoupon add + * + * @param objectToAdd householdCoupon details + */ + public static AddHouseholdCouponBuilder add(HouseholdCoupon objectToAdd) { + return new AddHouseholdCouponBuilder(objectToAdd); + } + + public static class DeleteHouseholdCouponBuilder extends NullRequestBuilder { + + public DeleteHouseholdCouponBuilder(String id) { + super("householdcoupon", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Remove coupon from household + * + * @param id Coupon code + */ + public static DeleteHouseholdCouponBuilder delete(String id) { + return new DeleteHouseholdCouponBuilder(id); + } + + public static class ListHouseholdCouponBuilder extends ListResponseRequestBuilder { + + public ListHouseholdCouponBuilder(HouseholdCouponFilter filter) { + super(HouseholdCoupon.class, "householdcoupon", "list"); + params.add("filter", filter); + } + } + + public static ListHouseholdCouponBuilder list() { + return list(null); + } + + /** + * Gets all HouseholdCoupon items for a household + * + * @param filter Filter + */ + public static ListHouseholdCouponBuilder list(HouseholdCouponFilter filter) { + return new ListHouseholdCouponBuilder(filter); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/HouseholdDeviceService.java b/KalturaClient/src/main/java/com/kaltura/client/services/HouseholdDeviceService.java new file mode 100644 index 000000000..8f8daccaa --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/HouseholdDeviceService.java @@ -0,0 +1,337 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.enums.DeviceStatus; +import com.kaltura.client.types.DevicePin; +import com.kaltura.client.types.DynamicData; +import com.kaltura.client.types.HouseholdDevice; +import com.kaltura.client.types.HouseholdDeviceFilter; +import com.kaltura.client.types.LoginResponse; +import com.kaltura.client.types.StringValue; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.Map; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class HouseholdDeviceService { + + public static class AddHouseholdDeviceBuilder extends RequestBuilder { + + public AddHouseholdDeviceBuilder(HouseholdDevice device) { + super(HouseholdDevice.class, "householddevice", "add"); + params.add("device", device); + } + } + + /** + * Add device to household + * + * @param device Device + */ + public static AddHouseholdDeviceBuilder add(HouseholdDevice device) { + return new AddHouseholdDeviceBuilder(device); + } + + public static class AddByPinHouseholdDeviceBuilder extends RequestBuilder { + + public AddByPinHouseholdDeviceBuilder(String deviceName, String pin) { + super(HouseholdDevice.class, "householddevice", "addByPin"); + params.add("deviceName", deviceName); + params.add("pin", pin); + } + + public void deviceName(String multirequestToken) { + params.add("deviceName", multirequestToken); + } + + public void pin(String multirequestToken) { + params.add("pin", multirequestToken); + } + } + + /** + * Registers a device to a household using pin code + * + * @param deviceName Device name + * @param pin Pin code + */ + public static AddByPinHouseholdDeviceBuilder addByPin(String deviceName, String pin) { + return new AddByPinHouseholdDeviceBuilder(deviceName, pin); + } + + public static class DeleteHouseholdDeviceBuilder extends RequestBuilder { + + public DeleteHouseholdDeviceBuilder(String udid) { + super(Boolean.class, "householddevice", "delete"); + params.add("udid", udid); + } + + public void udid(String multirequestToken) { + params.add("udid", multirequestToken); + } + } + + /** + * Removes a device from household + * + * @param udid device UDID + */ + public static DeleteHouseholdDeviceBuilder delete(String udid) { + return new DeleteHouseholdDeviceBuilder(udid); + } + + public static class DeleteDynamicDataHouseholdDeviceBuilder extends RequestBuilder { + + public DeleteDynamicDataHouseholdDeviceBuilder(String udid, String key) { + super(Boolean.class, "householddevice", "deleteDynamicData"); + params.add("udid", udid); + params.add("key", key); + } + + public void udid(String multirequestToken) { + params.add("udid", multirequestToken); + } + + public void key(String multirequestToken) { + params.add("key", multirequestToken); + } + } + + /** + * Deletes dynamic data item with key for device with identifier . + * + * @param udid Unique identifier of device. + * @param key Key of dynamic data item. + */ + public static DeleteDynamicDataHouseholdDeviceBuilder deleteDynamicData(String udid, String key) { + return new DeleteDynamicDataHouseholdDeviceBuilder(udid, key); + } + + public static class GeneratePinHouseholdDeviceBuilder extends RequestBuilder { + + public GeneratePinHouseholdDeviceBuilder(String udid, int brandId) { + super(DevicePin.class, "householddevice", "generatePin"); + params.add("udid", udid); + params.add("brandId", brandId); + } + + public void udid(String multirequestToken) { + params.add("udid", multirequestToken); + } + + public void brandId(String multirequestToken) { + params.add("brandId", multirequestToken); + } + } + + /** + * Generates device pin to use when adding a device to household by pin + * + * @param udid Device UDID + * @param brandId Device brand identifier + */ + public static GeneratePinHouseholdDeviceBuilder generatePin(String udid, int brandId) { + return new GeneratePinHouseholdDeviceBuilder(udid, brandId); + } + + public static class GetHouseholdDeviceBuilder extends RequestBuilder { + + public GetHouseholdDeviceBuilder(String udid) { + super(HouseholdDevice.class, "householddevice", "get"); + params.add("udid", udid); + } + + public void udid(String multirequestToken) { + params.add("udid", multirequestToken); + } + } + + public static GetHouseholdDeviceBuilder get() { + return get(null); + } + + /** + * Returns device registration status to the supplied household + * + * @param udid device id + */ + public static GetHouseholdDeviceBuilder get(String udid) { + return new GetHouseholdDeviceBuilder(udid); + } + + public static class ListHouseholdDeviceBuilder extends ListResponseRequestBuilder { + + public ListHouseholdDeviceBuilder(HouseholdDeviceFilter filter) { + super(HouseholdDevice.class, "householddevice", "list"); + params.add("filter", filter); + } + } + + public static ListHouseholdDeviceBuilder list() { + return list(null); + } + + /** + * Returns the devices within the household + * + * @param filter Household devices filter + */ + public static ListHouseholdDeviceBuilder list(HouseholdDeviceFilter filter) { + return new ListHouseholdDeviceBuilder(filter); + } + + public static class LoginWithPinHouseholdDeviceBuilder extends RequestBuilder { + + public LoginWithPinHouseholdDeviceBuilder(int partnerId, String pin, String udid, Map extraParams) { + super(LoginResponse.class, "householddevice", "loginWithPin"); + params.add("partnerId", partnerId); + params.add("pin", pin); + params.add("udid", udid); + params.add("extraParams", extraParams); + } + + public void partnerId(String multirequestToken) { + params.add("partnerId", multirequestToken); + } + + public void pin(String multirequestToken) { + params.add("pin", multirequestToken); + } + + public void udid(String multirequestToken) { + params.add("udid", multirequestToken); + } + } + + public static LoginWithPinHouseholdDeviceBuilder loginWithPin(int partnerId, String pin) { + return loginWithPin(partnerId, pin, null); + } + + public static LoginWithPinHouseholdDeviceBuilder loginWithPin(int partnerId, String pin, String udid) { + return loginWithPin(partnerId, pin, udid, null); + } + + /** + * User sign-in via a time-expired sign-in PIN. + * + * @param partnerId Partner Identifier + * @param pin pin code + * @param udid Device UDID + * @param extraParams extra params + */ + public static LoginWithPinHouseholdDeviceBuilder loginWithPin(int partnerId, String pin, String udid, Map extraParams) { + return new LoginWithPinHouseholdDeviceBuilder(partnerId, pin, udid, extraParams); + } + + public static class UpdateHouseholdDeviceBuilder extends RequestBuilder { + + public UpdateHouseholdDeviceBuilder(String udid, HouseholdDevice device) { + super(HouseholdDevice.class, "householddevice", "update"); + params.add("udid", udid); + params.add("device", device); + } + + public void udid(String multirequestToken) { + params.add("udid", multirequestToken); + } + } + + /** + * Update the name of the device by UDID + * + * @param udid Device UDID + * @param device Device object + */ + public static UpdateHouseholdDeviceBuilder update(String udid, HouseholdDevice device) { + return new UpdateHouseholdDeviceBuilder(udid, device); + } + + public static class UpdateStatusHouseholdDeviceBuilder extends RequestBuilder { + + public UpdateStatusHouseholdDeviceBuilder(String udid, DeviceStatus status) { + super(Boolean.class, "householddevice", "updateStatus"); + params.add("udid", udid); + params.add("status", status); + } + + public void udid(String multirequestToken) { + params.add("udid", multirequestToken); + } + + public void status(String multirequestToken) { + params.add("status", multirequestToken); + } + } + + /** + * Update the name of the device by UDID + * + * @param udid Device UDID + * @param status Device status + */ + public static UpdateStatusHouseholdDeviceBuilder updateStatus(String udid, DeviceStatus status) { + return new UpdateStatusHouseholdDeviceBuilder(udid, status); + } + + public static class UpsertDynamicDataHouseholdDeviceBuilder extends RequestBuilder { + + public UpsertDynamicDataHouseholdDeviceBuilder(String udid, String key, StringValue value) { + super(DynamicData.class, "householddevice", "upsertDynamicData"); + params.add("udid", udid); + params.add("key", key); + params.add("value", value); + } + + public void udid(String multirequestToken) { + params.add("udid", multirequestToken); + } + + public void key(String multirequestToken) { + params.add("key", multirequestToken); + } + } + + /** + * Adds or updates dynamic data item for device with identifier udid. If it is + needed to update several items, use a multi-request to avoid race conditions. + * + * @param udid Unique identifier of device. + * @param key Key of dynamic data item. Max length of key is 125 characters. + * @param value Value of dynamic data item. Max length of value is 255 characters. + */ + public static UpsertDynamicDataHouseholdDeviceBuilder upsertDynamicData(String udid, String key, StringValue value) { + return new UpsertDynamicDataHouseholdDeviceBuilder(udid, key, value); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/HouseholdLimitationsService.java b/KalturaClient/src/main/java/com/kaltura/client/services/HouseholdLimitationsService.java new file mode 100644 index 000000000..e054ee8aa --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/HouseholdLimitationsService.java @@ -0,0 +1,159 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.HouseholdLimitations; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class HouseholdLimitationsService { + + public static class AddHouseholdLimitationsBuilder extends RequestBuilder { + + public AddHouseholdLimitationsBuilder(HouseholdLimitations householdLimitations) { + super(HouseholdLimitations.class, "householdlimitations", "add"); + params.add("householdLimitations", householdLimitations); + } + } + + /** + * Add household limitation + * + * @param householdLimitations Household limitations + */ + public static AddHouseholdLimitationsBuilder add(HouseholdLimitations householdLimitations) { + return new AddHouseholdLimitationsBuilder(householdLimitations); + } + + public static class DeleteHouseholdLimitationsBuilder extends RequestBuilder { + + public DeleteHouseholdLimitationsBuilder(int householdLimitationsId) { + super(Boolean.class, "householdlimitations", "delete"); + params.add("householdLimitationsId", householdLimitationsId); + } + + public void householdLimitationsId(String multirequestToken) { + params.add("householdLimitationsId", multirequestToken); + } + } + + /** + * Delete household limitation + * + * @param householdLimitationsId Id of household limitation + */ + public static DeleteHouseholdLimitationsBuilder delete(int householdLimitationsId) { + return new DeleteHouseholdLimitationsBuilder(householdLimitationsId); + } + + public static class GetHouseholdLimitationsBuilder extends RequestBuilder { + + public GetHouseholdLimitationsBuilder(int id) { + super(HouseholdLimitations.class, "householdlimitations", "get"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Get the limitation module by id + * + * @param id Household limitations module identifier + */ + public static GetHouseholdLimitationsBuilder get(int id) { + return new GetHouseholdLimitationsBuilder(id); + } + + public static class IsUsedHouseholdLimitationsBuilder extends RequestBuilder { + + public IsUsedHouseholdLimitationsBuilder(int dlmId) { + super(Boolean.class, "householdlimitations", "isUsed"); + params.add("dlmId", dlmId); + } + + public void dlmId(String multirequestToken) { + params.add("dlmId", multirequestToken); + } + } + + /** + * Checks if the DLM is used + * + * @param dlmId Household limitations module identifier + */ + public static IsUsedHouseholdLimitationsBuilder isUsed(int dlmId) { + return new IsUsedHouseholdLimitationsBuilder(dlmId); + } + + public static class ListHouseholdLimitationsBuilder extends ListResponseRequestBuilder { + + public ListHouseholdLimitationsBuilder() { + super(HouseholdLimitations.class, "householdlimitations", "list"); + } + } + + /** + * Get the list of PartnerConfiguration + */ + public static ListHouseholdLimitationsBuilder list() { + return new ListHouseholdLimitationsBuilder(); + } + + public static class UpdateHouseholdLimitationsBuilder extends RequestBuilder { + + public UpdateHouseholdLimitationsBuilder(int dlmId, HouseholdLimitations householdLimitation) { + super(HouseholdLimitations.class, "householdlimitations", "update"); + params.add("dlmId", dlmId); + params.add("householdLimitation", householdLimitation); + } + + public void dlmId(String multirequestToken) { + params.add("dlmId", multirequestToken); + } + } + + /** + * Updates household limitation + * + * @param dlmId Id of household limitation + * @param householdLimitation household limitation + */ + public static UpdateHouseholdLimitationsBuilder update(int dlmId, HouseholdLimitations householdLimitation) { + return new UpdateHouseholdLimitationsBuilder(dlmId, householdLimitation); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/HouseholdPaymentGatewayService.java b/KalturaClient/src/main/java/com/kaltura/client/services/HouseholdPaymentGatewayService.java new file mode 100644 index 000000000..33d2a8492 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/HouseholdPaymentGatewayService.java @@ -0,0 +1,242 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.HouseholdPaymentGateway; +import com.kaltura.client.types.KeyValue; +import com.kaltura.client.types.PaymentGatewayConfiguration; +import com.kaltura.client.types.SuspendSettings; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.NullRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.List; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class HouseholdPaymentGatewayService { + + public static class DisableHouseholdPaymentGatewayBuilder extends RequestBuilder { + + public DisableHouseholdPaymentGatewayBuilder(int paymentGatewayId) { + super(Boolean.class, "householdpaymentgateway", "disable"); + params.add("paymentGatewayId", paymentGatewayId); + } + + public void paymentGatewayId(String multirequestToken) { + params.add("paymentGatewayId", multirequestToken); + } + } + + /** + * Disable payment-gateway on the household + * + * @param paymentGatewayId Payment Gateway Identifier + */ + public static DisableHouseholdPaymentGatewayBuilder disable(int paymentGatewayId) { + return new DisableHouseholdPaymentGatewayBuilder(paymentGatewayId); + } + + public static class EnableHouseholdPaymentGatewayBuilder extends RequestBuilder { + + public EnableHouseholdPaymentGatewayBuilder(int paymentGatewayId) { + super(Boolean.class, "householdpaymentgateway", "enable"); + params.add("paymentGatewayId", paymentGatewayId); + } + + public void paymentGatewayId(String multirequestToken) { + params.add("paymentGatewayId", multirequestToken); + } + } + + /** + * Enable a payment-gateway provider for the household. + * + * @param paymentGatewayId Payment Gateway Identifier + */ + public static EnableHouseholdPaymentGatewayBuilder enable(int paymentGatewayId) { + return new EnableHouseholdPaymentGatewayBuilder(paymentGatewayId); + } + + public static class GetChargeIDHouseholdPaymentGatewayBuilder extends RequestBuilder { + + public GetChargeIDHouseholdPaymentGatewayBuilder(String paymentGatewayExternalId) { + super(String.class, "householdpaymentgateway", "getChargeID"); + params.add("paymentGatewayExternalId", paymentGatewayExternalId); + } + + public void paymentGatewayExternalId(String multirequestToken) { + params.add("paymentGatewayExternalId", multirequestToken); + } + } + + /** + * Get a household’s billing account identifier (charge ID) for a given payment + gateway + * + * @param paymentGatewayExternalId External identifier for the payment gateway + */ + public static GetChargeIDHouseholdPaymentGatewayBuilder getChargeID(String paymentGatewayExternalId) { + return new GetChargeIDHouseholdPaymentGatewayBuilder(paymentGatewayExternalId); + } + + public static class InvokeHouseholdPaymentGatewayBuilder extends RequestBuilder { + + public InvokeHouseholdPaymentGatewayBuilder(int paymentGatewayId, String intent, List extraParameters) { + super(PaymentGatewayConfiguration.class, "householdpaymentgateway", "invoke"); + params.add("paymentGatewayId", paymentGatewayId); + params.add("intent", intent); + params.add("extraParameters", extraParameters); + } + + public void paymentGatewayId(String multirequestToken) { + params.add("paymentGatewayId", multirequestToken); + } + + public void intent(String multirequestToken) { + params.add("intent", multirequestToken); + } + } + + /** + * Gets the Payment Gateway Configuration for the payment gateway identifier given + * + * @param paymentGatewayId The payemnt gateway for which to return the registration URL/s for the + * household. If omitted – return the regisration URL for the household for the + * default payment gateway + * @param intent Represent the client’s intent for working with the payment gateway. Intent + * options to be coordinated with the applicable payment gateway adapter. + * @param extraParameters Additional parameters to send to the payment gateway adapter. + */ + public static InvokeHouseholdPaymentGatewayBuilder invoke(int paymentGatewayId, String intent, List extraParameters) { + return new InvokeHouseholdPaymentGatewayBuilder(paymentGatewayId, intent, extraParameters); + } + + public static class ListHouseholdPaymentGatewayBuilder extends ListResponseRequestBuilder { + + public ListHouseholdPaymentGatewayBuilder() { + super(HouseholdPaymentGateway.class, "householdpaymentgateway", "list"); + } + } + + /** + * Get a list of all configured Payment Gateways providers available for the + account. For each payment is provided with the household associated payment + methods. + */ + public static ListHouseholdPaymentGatewayBuilder list() { + return new ListHouseholdPaymentGatewayBuilder(); + } + + public static class ResumeHouseholdPaymentGatewayBuilder extends NullRequestBuilder { + + public ResumeHouseholdPaymentGatewayBuilder(int paymentGatewayId, List adapterData) { + super("householdpaymentgateway", "resume"); + params.add("paymentGatewayId", paymentGatewayId); + params.add("adapterData", adapterData); + } + + public void paymentGatewayId(String multirequestToken) { + params.add("paymentGatewayId", multirequestToken); + } + } + + public static ResumeHouseholdPaymentGatewayBuilder resume(int paymentGatewayId) { + return resume(paymentGatewayId, null); + } + + /** + * Resumes all the entitlements of the given payment gateway + * + * @param paymentGatewayId Payment gateway ID + * @param adapterData Adapter data + */ + public static ResumeHouseholdPaymentGatewayBuilder resume(int paymentGatewayId, List adapterData) { + return new ResumeHouseholdPaymentGatewayBuilder(paymentGatewayId, adapterData); + } + + public static class SetChargeIDHouseholdPaymentGatewayBuilder extends RequestBuilder { + + public SetChargeIDHouseholdPaymentGatewayBuilder(String paymentGatewayExternalId, String chargeId) { + super(Boolean.class, "householdpaymentgateway", "setChargeID"); + params.add("paymentGatewayExternalId", paymentGatewayExternalId); + params.add("chargeId", chargeId); + } + + public void paymentGatewayExternalId(String multirequestToken) { + params.add("paymentGatewayExternalId", multirequestToken); + } + + public void chargeId(String multirequestToken) { + params.add("chargeId", multirequestToken); + } + } + + /** + * Set user billing account identifier (charge ID), for a specific household and a + specific payment gateway + * + * @param paymentGatewayExternalId External identifier for the payment gateway + * @param chargeId The billing user account identifier for this household at the given payment + * gateway + */ + public static SetChargeIDHouseholdPaymentGatewayBuilder setChargeID(String paymentGatewayExternalId, String chargeId) { + return new SetChargeIDHouseholdPaymentGatewayBuilder(paymentGatewayExternalId, chargeId); + } + + public static class SuspendHouseholdPaymentGatewayBuilder extends NullRequestBuilder { + + public SuspendHouseholdPaymentGatewayBuilder(int paymentGatewayId, SuspendSettings suspendSettings) { + super("householdpaymentgateway", "suspend"); + params.add("paymentGatewayId", paymentGatewayId); + params.add("suspendSettings", suspendSettings); + } + + public void paymentGatewayId(String multirequestToken) { + params.add("paymentGatewayId", multirequestToken); + } + } + + public static SuspendHouseholdPaymentGatewayBuilder suspend(int paymentGatewayId) { + return suspend(paymentGatewayId, null); + } + + /** + * Suspends all the entitlements of the given payment gateway + * + * @param paymentGatewayId Payment gateway ID + * @param suspendSettings suspend settings + */ + public static SuspendHouseholdPaymentGatewayBuilder suspend(int paymentGatewayId, SuspendSettings suspendSettings) { + return new SuspendHouseholdPaymentGatewayBuilder(paymentGatewayId, suspendSettings); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/HouseholdPaymentMethodService.java b/KalturaClient/src/main/java/com/kaltura/client/services/HouseholdPaymentMethodService.java new file mode 100644 index 000000000..11ec8f951 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/HouseholdPaymentMethodService.java @@ -0,0 +1,154 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.HouseholdPaymentMethod; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class HouseholdPaymentMethodService { + + public static class AddHouseholdPaymentMethodBuilder extends RequestBuilder { + + public AddHouseholdPaymentMethodBuilder(HouseholdPaymentMethod householdPaymentMethod) { + super(HouseholdPaymentMethod.class, "householdpaymentmethod", "add"); + params.add("householdPaymentMethod", householdPaymentMethod); + } + } + + /** + * Add a new payment method for household + * + * @param householdPaymentMethod Household payment method + */ + public static AddHouseholdPaymentMethodBuilder add(HouseholdPaymentMethod householdPaymentMethod) { + return new AddHouseholdPaymentMethodBuilder(householdPaymentMethod); + } + + public static class ForceRemoveHouseholdPaymentMethodBuilder extends RequestBuilder { + + public ForceRemoveHouseholdPaymentMethodBuilder(int paymentGatewayId, int paymentMethodId) { + super(Boolean.class, "householdpaymentmethod", "forceRemove"); + params.add("paymentGatewayId", paymentGatewayId); + params.add("paymentMethodId", paymentMethodId); + } + + public void paymentGatewayId(String multirequestToken) { + params.add("paymentGatewayId", multirequestToken); + } + + public void paymentMethodId(String multirequestToken) { + params.add("paymentMethodId", multirequestToken); + } + } + + /** + * Force remove of a payment method of the household. + * + * @param paymentGatewayId Payment Gateway Identifier + * @param paymentMethodId Payment method Identifier + */ + public static ForceRemoveHouseholdPaymentMethodBuilder forceRemove(int paymentGatewayId, int paymentMethodId) { + return new ForceRemoveHouseholdPaymentMethodBuilder(paymentGatewayId, paymentMethodId); + } + + public static class ListHouseholdPaymentMethodBuilder extends ListResponseRequestBuilder { + + public ListHouseholdPaymentMethodBuilder() { + super(HouseholdPaymentMethod.class, "householdpaymentmethod", "list"); + } + } + + /** + * Get a list of all payment methods of the household. + */ + public static ListHouseholdPaymentMethodBuilder list() { + return new ListHouseholdPaymentMethodBuilder(); + } + + public static class RemoveHouseholdPaymentMethodBuilder extends RequestBuilder { + + public RemoveHouseholdPaymentMethodBuilder(int paymentGatewayId, int paymentMethodId) { + super(Boolean.class, "householdpaymentmethod", "remove"); + params.add("paymentGatewayId", paymentGatewayId); + params.add("paymentMethodId", paymentMethodId); + } + + public void paymentGatewayId(String multirequestToken) { + params.add("paymentGatewayId", multirequestToken); + } + + public void paymentMethodId(String multirequestToken) { + params.add("paymentMethodId", multirequestToken); + } + } + + /** + * Removes a payment method of the household. + * + * @param paymentGatewayId Payment Gateway Identifier + * @param paymentMethodId Payment method Identifier + */ + public static RemoveHouseholdPaymentMethodBuilder remove(int paymentGatewayId, int paymentMethodId) { + return new RemoveHouseholdPaymentMethodBuilder(paymentGatewayId, paymentMethodId); + } + + public static class SetAsDefaultHouseholdPaymentMethodBuilder extends RequestBuilder { + + public SetAsDefaultHouseholdPaymentMethodBuilder(int paymentGatewayId, int paymentMethodId) { + super(Boolean.class, "householdpaymentmethod", "setAsDefault"); + params.add("paymentGatewayId", paymentGatewayId); + params.add("paymentMethodId", paymentMethodId); + } + + public void paymentGatewayId(String multirequestToken) { + params.add("paymentGatewayId", multirequestToken); + } + + public void paymentMethodId(String multirequestToken) { + params.add("paymentMethodId", multirequestToken); + } + } + + /** + * Set a payment method as default for the household. + * + * @param paymentGatewayId Payment Gateway Identifier + * @param paymentMethodId Payment method Identifier + */ + public static SetAsDefaultHouseholdPaymentMethodBuilder setAsDefault(int paymentGatewayId, int paymentMethodId) { + return new SetAsDefaultHouseholdPaymentMethodBuilder(paymentGatewayId, paymentMethodId); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/HouseholdPremiumServiceService.java b/KalturaClient/src/main/java/com/kaltura/client/services/HouseholdPremiumServiceService.java new file mode 100644 index 000000000..4ba864c8d --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/HouseholdPremiumServiceService.java @@ -0,0 +1,55 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.HouseholdPremiumService; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class HouseholdPremiumServiceService { + + public static class ListHouseholdPremiumServiceBuilder extends ListResponseRequestBuilder { + + public ListHouseholdPremiumServiceBuilder() { + super(HouseholdPremiumService.class, "householdpremiumservice", "list"); + } + } + + /** + * Returns all the premium services allowed for the household + */ + public static ListHouseholdPremiumServiceBuilder list() { + return new ListHouseholdPremiumServiceBuilder(); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/HouseholdQuotaService.java b/KalturaClient/src/main/java/com/kaltura/client/services/HouseholdQuotaService.java new file mode 100644 index 000000000..29d248cae --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/HouseholdQuotaService.java @@ -0,0 +1,55 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.HouseholdQuota; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class HouseholdQuotaService { + + public static class GetHouseholdQuotaBuilder extends RequestBuilder { + + public GetHouseholdQuotaBuilder() { + super(HouseholdQuota.class, "householdquota", "get"); + } + } + + /** + * Returns the household&#39;s quota data + */ + public static GetHouseholdQuotaBuilder get() { + return new GetHouseholdQuotaBuilder(); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/HouseholdSegmentService.java b/KalturaClient/src/main/java/com/kaltura/client/services/HouseholdSegmentService.java new file mode 100644 index 000000000..cf3f7a9ab --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/HouseholdSegmentService.java @@ -0,0 +1,103 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.HouseholdSegment; +import com.kaltura.client.types.HouseholdSegmentFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.NullRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class HouseholdSegmentService { + + public static class AddHouseholdSegmentBuilder extends RequestBuilder { + + public AddHouseholdSegmentBuilder(HouseholdSegment objectToAdd) { + super(HouseholdSegment.class, "householdsegment", "add"); + params.add("objectToAdd", objectToAdd); + } + } + + /** + * householdSegment add + * + * @param objectToAdd householdSegment details + */ + public static AddHouseholdSegmentBuilder add(HouseholdSegment objectToAdd) { + return new AddHouseholdSegmentBuilder(objectToAdd); + } + + public static class DeleteHouseholdSegmentBuilder extends NullRequestBuilder { + + public DeleteHouseholdSegmentBuilder(long id) { + super("householdsegment", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Remove segment from household + * + * @param id Segment identifier + */ + public static DeleteHouseholdSegmentBuilder delete(long id) { + return new DeleteHouseholdSegmentBuilder(id); + } + + public static class ListHouseholdSegmentBuilder extends ListResponseRequestBuilder { + + public ListHouseholdSegmentBuilder(HouseholdSegmentFilter filter) { + super(HouseholdSegment.class, "householdsegment", "list"); + params.add("filter", filter); + } + } + + public static ListHouseholdSegmentBuilder list() { + return list(null); + } + + /** + * Gets all HouseholdSegment items for a household + * + * @param filter Filter + */ + public static ListHouseholdSegmentBuilder list(HouseholdSegmentFilter filter) { + return new ListHouseholdSegmentBuilder(filter); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/HouseholdService.java b/KalturaClient/src/main/java/com/kaltura/client/services/HouseholdService.java new file mode 100644 index 000000000..dcf4ad8e8 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/HouseholdService.java @@ -0,0 +1,240 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.enums.HouseholdFrequencyType; +import com.kaltura.client.types.FilterPager; +import com.kaltura.client.types.Household; +import com.kaltura.client.types.HouseholdFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class HouseholdService { + + public static class AddHouseholdBuilder extends RequestBuilder { + + public AddHouseholdBuilder(Household household) { + super(Household.class, "household", "add"); + params.add("household", household); + } + } + + /** + * Creates a household for the user + * + * @param household Household object + */ + public static AddHouseholdBuilder add(Household household) { + return new AddHouseholdBuilder(household); + } + + public static class DeleteHouseholdBuilder extends RequestBuilder { + + public DeleteHouseholdBuilder(int id) { + super(Boolean.class, "household", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + public static DeleteHouseholdBuilder delete() { + return delete(Integer.MIN_VALUE); + } + + /** + * Fully delete a household. Delete all of the household information, including + users, devices, entitlements, payment methods and notification date. + * + * @param id Household identifier + */ + public static DeleteHouseholdBuilder delete(int id) { + return new DeleteHouseholdBuilder(id); + } + + public static class GetHouseholdBuilder extends RequestBuilder { + + public GetHouseholdBuilder(int id) { + super(Household.class, "household", "get"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + public static GetHouseholdBuilder get() { + return get(Integer.MIN_VALUE); + } + + /** + * Returns the household model + * + * @param id Household identifier + */ + public static GetHouseholdBuilder get(int id) { + return new GetHouseholdBuilder(id); + } + + public static class ListHouseholdBuilder extends ListResponseRequestBuilder { + + public ListHouseholdBuilder(HouseholdFilter filter, FilterPager pager) { + super(Household.class, "household", "list"); + params.add("filter", filter); + params.add("pager", pager); + } + } + + public static ListHouseholdBuilder list(HouseholdFilter filter) { + return list(filter, null); + } + + /** + * Retrive household for the partner filter by external identifier + * + * @param filter Filter parameters for filtering out the result + * @param pager Page size and index. Number of assets to return per page. Possible range 5 ≤ + * size ≥ 50. If omitted - will be set to 25. If a value > 50 provided – + * will set to 50 + */ + public static ListHouseholdBuilder list(HouseholdFilter filter, FilterPager pager) { + return new ListHouseholdBuilder(filter, pager); + } + + public static class PurgeHouseholdBuilder extends RequestBuilder { + + public PurgeHouseholdBuilder(int id) { + super(Boolean.class, "household", "purge"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Purge a household. Delete all of the household information, including users, + devices, entitlements, payment methods and notification date. + * + * @param id Household identifier + */ + public static PurgeHouseholdBuilder purge(int id) { + return new PurgeHouseholdBuilder(id); + } + + public static class ResetFrequencyHouseholdBuilder extends RequestBuilder { + + public ResetFrequencyHouseholdBuilder(HouseholdFrequencyType frequencyType) { + super(Household.class, "household", "resetFrequency"); + params.add("frequencyType", frequencyType); + } + + public void frequencyType(String multirequestToken) { + params.add("frequencyType", multirequestToken); + } + } + + /** + * Reset a household’s time limitation for removing user or device + * + * @param frequencyType Possible values: devices – reset the device change frequency. + * users – reset the user add/remove frequency + */ + public static ResetFrequencyHouseholdBuilder resetFrequency(HouseholdFrequencyType frequencyType) { + return new ResetFrequencyHouseholdBuilder(frequencyType); + } + + public static class ResumeHouseholdBuilder extends RequestBuilder { + + public ResumeHouseholdBuilder() { + super(Boolean.class, "household", "resume"); + } + } + + /** + * Resumed a given household service to its previous service settings + */ + public static ResumeHouseholdBuilder resume() { + return new ResumeHouseholdBuilder(); + } + + public static class SuspendHouseholdBuilder extends RequestBuilder { + + public SuspendHouseholdBuilder(int roleId) { + super(Boolean.class, "household", "suspend"); + params.add("roleId", roleId); + } + + public void roleId(String multirequestToken) { + params.add("roleId", multirequestToken); + } + } + + public static SuspendHouseholdBuilder suspend() { + return suspend(Integer.MIN_VALUE); + } + + /** + * Suspend a given household service. Sets the household status to + “suspended&quot;.The household service settings are maintained for later + resume + * + * @param roleId roleId + */ + public static SuspendHouseholdBuilder suspend(int roleId) { + return new SuspendHouseholdBuilder(roleId); + } + + public static class UpdateHouseholdBuilder extends RequestBuilder { + + public UpdateHouseholdBuilder(Household household) { + super(Household.class, "household", "update"); + params.add("household", household); + } + } + + /** + * Update the household name and description + * + * @param household Household object + */ + public static UpdateHouseholdBuilder update(Household household) { + return new UpdateHouseholdBuilder(household); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/HouseholdUserService.java b/KalturaClient/src/main/java/com/kaltura/client/services/HouseholdUserService.java new file mode 100644 index 000000000..27f861c30 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/HouseholdUserService.java @@ -0,0 +1,102 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.HouseholdUser; +import com.kaltura.client.types.HouseholdUserFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class HouseholdUserService { + + public static class AddHouseholdUserBuilder extends RequestBuilder { + + public AddHouseholdUserBuilder(HouseholdUser householdUser) { + super(HouseholdUser.class, "householduser", "add"); + params.add("householdUser", householdUser); + } + } + + /** + * Adds a user to household + * + * @param householdUser User details to add + */ + public static AddHouseholdUserBuilder add(HouseholdUser householdUser) { + return new AddHouseholdUserBuilder(householdUser); + } + + public static class DeleteHouseholdUserBuilder extends RequestBuilder { + + public DeleteHouseholdUserBuilder(String id) { + super(Boolean.class, "householduser", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Removes a user from household + * + * @param id The identifier of the user to delete + */ + public static DeleteHouseholdUserBuilder delete(String id) { + return new DeleteHouseholdUserBuilder(id); + } + + public static class ListHouseholdUserBuilder extends ListResponseRequestBuilder { + + public ListHouseholdUserBuilder(HouseholdUserFilter filter) { + super(HouseholdUser.class, "householduser", "list"); + params.add("filter", filter); + } + } + + public static ListHouseholdUserBuilder list() { + return list(null); + } + + /** + * Returns the users within the household + * + * @param filter Household user filter + */ + public static ListHouseholdUserBuilder list(HouseholdUserFilter filter) { + return new ListHouseholdUserBuilder(filter); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/ImageService.java b/KalturaClient/src/main/java/com/kaltura/client/services/ImageService.java new file mode 100644 index 000000000..829067029 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/ImageService.java @@ -0,0 +1,123 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.ContentResource; +import com.kaltura.client.types.Image; +import com.kaltura.client.types.ImageFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.NullRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class ImageService { + + public static class AddImageBuilder extends RequestBuilder { + + public AddImageBuilder(Image image) { + super(Image.class, "image", "add"); + params.add("image", image); + } + } + + /** + * Add a new image + * + * @param image Image + */ + public static AddImageBuilder add(Image image) { + return new AddImageBuilder(image); + } + + public static class DeleteImageBuilder extends RequestBuilder { + + public DeleteImageBuilder(long id) { + super(Boolean.class, "image", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Delete an existing image + * + * @param id Image ID + */ + public static DeleteImageBuilder delete(long id) { + return new DeleteImageBuilder(id); + } + + public static class ListImageBuilder extends ListResponseRequestBuilder { + + public ListImageBuilder(ImageFilter filter) { + super(Image.class, "image", "list"); + params.add("filter", filter); + } + } + + /** + * Get the list of images by different filtering + * + * @param filter Filter + */ + public static ListImageBuilder list(ImageFilter filter) { + return new ListImageBuilder(filter); + } + + public static class SetContentImageBuilder extends NullRequestBuilder { + + public SetContentImageBuilder(long id, ContentResource content) { + super("image", "setContent"); + params.add("id", id); + params.add("content", content); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Sets the content of an existing image + * + * @param id Image ID + * @param content Content of the image to set + */ + public static SetContentImageBuilder setContent(long id, ContentResource content) { + return new SetContentImageBuilder(id, content); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/ImageTypeService.java b/KalturaClient/src/main/java/com/kaltura/client/services/ImageTypeService.java new file mode 100644 index 000000000..1f47ba682 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/ImageTypeService.java @@ -0,0 +1,125 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.ImageType; +import com.kaltura.client.types.ImageTypeFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class ImageTypeService { + + public static class AddImageTypeBuilder extends RequestBuilder { + + public AddImageTypeBuilder(ImageType imageType) { + super(ImageType.class, "imagetype", "add"); + params.add("imageType", imageType); + } + } + + /** + * Add a new image type + * + * @param imageType Image type object + */ + public static AddImageTypeBuilder add(ImageType imageType) { + return new AddImageTypeBuilder(imageType); + } + + public static class DeleteImageTypeBuilder extends RequestBuilder { + + public DeleteImageTypeBuilder(long id) { + super(Boolean.class, "imagetype", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Delete an existing image type + * + * @param id Image type ID + */ + public static DeleteImageTypeBuilder delete(long id) { + return new DeleteImageTypeBuilder(id); + } + + public static class ListImageTypeBuilder extends ListResponseRequestBuilder { + + public ListImageTypeBuilder(ImageTypeFilter filter) { + super(ImageType.class, "imagetype", "list"); + params.add("filter", filter); + } + } + + public static ListImageTypeBuilder list() { + return list(null); + } + + /** + * Get the list of image types for the partner + * + * @param filter Filter + */ + public static ListImageTypeBuilder list(ImageTypeFilter filter) { + return new ListImageTypeBuilder(filter); + } + + public static class UpdateImageTypeBuilder extends RequestBuilder { + + public UpdateImageTypeBuilder(long id, ImageType imageType) { + super(ImageType.class, "imagetype", "update"); + params.add("id", id); + params.add("imageType", imageType); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Update an existing image type + * + * @param id Image type ID + * @param imageType Image type object + */ + public static UpdateImageTypeBuilder update(long id, ImageType imageType) { + return new UpdateImageTypeBuilder(id, imageType); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/InboxMessageService.java b/KalturaClient/src/main/java/com/kaltura/client/services/InboxMessageService.java new file mode 100644 index 000000000..3e864fa8b --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/InboxMessageService.java @@ -0,0 +1,120 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.enums.InboxMessageStatus; +import com.kaltura.client.types.FilterPager; +import com.kaltura.client.types.InboxMessage; +import com.kaltura.client.types.InboxMessageFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class InboxMessageService { + + public static class GetInboxMessageBuilder extends RequestBuilder { + + public GetInboxMessageBuilder(String id) { + super(InboxMessage.class, "inboxmessage", "get"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * TBD + * + * @param id message id + */ + public static GetInboxMessageBuilder get(String id) { + return new GetInboxMessageBuilder(id); + } + + public static class ListInboxMessageBuilder extends ListResponseRequestBuilder { + + public ListInboxMessageBuilder(InboxMessageFilter filter, FilterPager pager) { + super(InboxMessage.class, "inboxmessage", "list"); + params.add("filter", filter); + params.add("pager", pager); + } + } + + public static ListInboxMessageBuilder list() { + return list(null); + } + + public static ListInboxMessageBuilder list(InboxMessageFilter filter) { + return list(filter, null); + } + + /** + * List inbox messages + * + * @param filter filter + * @param pager Page size and index + */ + public static ListInboxMessageBuilder list(InboxMessageFilter filter, FilterPager pager) { + return new ListInboxMessageBuilder(filter, pager); + } + + public static class UpdateStatusInboxMessageBuilder extends RequestBuilder { + + public UpdateStatusInboxMessageBuilder(String id, InboxMessageStatus status) { + super(Boolean.class, "inboxmessage", "updateStatus"); + params.add("id", id); + params.add("status", status); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + + public void status(String multirequestToken) { + params.add("status", multirequestToken); + } + } + + /** + * Updates the message status. + * + * @param id Message identifier + * @param status Message status + */ + public static UpdateStatusInboxMessageBuilder updateStatus(String id, InboxMessageStatus status) { + return new UpdateStatusInboxMessageBuilder(id, status); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/IngestProfileService.java b/KalturaClient/src/main/java/com/kaltura/client/services/IngestProfileService.java new file mode 100644 index 000000000..6bdd1ab26 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/IngestProfileService.java @@ -0,0 +1,117 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.IngestProfile; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class IngestProfileService { + + public static class AddIngestProfileBuilder extends RequestBuilder { + + public AddIngestProfileBuilder(IngestProfile ingestProfile) { + super(IngestProfile.class, "ingestprofile", "add"); + params.add("ingestProfile", ingestProfile); + } + } + + /** + * Insert new ingest profile for partner + * + * @param ingestProfile ingest profile Object to be added + */ + public static AddIngestProfileBuilder add(IngestProfile ingestProfile) { + return new AddIngestProfileBuilder(ingestProfile); + } + + public static class DeleteIngestProfileBuilder extends RequestBuilder { + + public DeleteIngestProfileBuilder(int ingestProfileId) { + super(Boolean.class, "ingestprofile", "delete"); + params.add("ingestProfileId", ingestProfileId); + } + + public void ingestProfileId(String multirequestToken) { + params.add("ingestProfileId", multirequestToken); + } + } + + /** + * Delete ingest profiles by ingest profiles id + * + * @param ingestProfileId ingest profile Identifier + */ + public static DeleteIngestProfileBuilder delete(int ingestProfileId) { + return new DeleteIngestProfileBuilder(ingestProfileId); + } + + public static class ListIngestProfileBuilder extends ListResponseRequestBuilder { + + public ListIngestProfileBuilder() { + super(IngestProfile.class, "ingestprofile", "list"); + } + } + + /** + * Returns all ingest profiles for partner + */ + public static ListIngestProfileBuilder list() { + return new ListIngestProfileBuilder(); + } + + public static class UpdateIngestProfileBuilder extends RequestBuilder { + + public UpdateIngestProfileBuilder(int ingestProfileId, IngestProfile ingestProfile) { + super(IngestProfile.class, "ingestprofile", "update"); + params.add("ingestProfileId", ingestProfileId); + params.add("ingestProfile", ingestProfile); + } + + public void ingestProfileId(String multirequestToken) { + params.add("ingestProfileId", multirequestToken); + } + } + + /** + * Update ingest profile details + * + * @param ingestProfileId ingest profile Identifier + * @param ingestProfile ingest profile Object + */ + public static UpdateIngestProfileBuilder update(int ingestProfileId, IngestProfile ingestProfile) { + return new UpdateIngestProfileBuilder(ingestProfileId, ingestProfile); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/IngestStatusService.java b/KalturaClient/src/main/java/com/kaltura/client/services/IngestStatusService.java new file mode 100644 index 000000000..e54d7f7bf --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/IngestStatusService.java @@ -0,0 +1,169 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.FilterPager; +import com.kaltura.client.types.IngestByCompoundFilter; +import com.kaltura.client.types.IngestByIdsFilter; +import com.kaltura.client.types.IngestEpg; +import com.kaltura.client.types.IngestEpgDetails; +import com.kaltura.client.types.IngestEpgProgramResult; +import com.kaltura.client.types.IngestEpgProgramResultFilter; +import com.kaltura.client.types.IngestStatusPartnerConfiguration; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.NullRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class IngestStatusService { + + public static class GetEpgDetailsIngestStatusBuilder extends RequestBuilder { + + public GetEpgDetailsIngestStatusBuilder(long ingestId) { + super(IngestEpgDetails.class, "ingeststatus", "getEpgDetails"); + params.add("ingestId", ingestId); + } + + public void ingestId(String multirequestToken) { + params.add("ingestId", multirequestToken); + } + } + + /** + * Returns information about specific Ingest job + * + * @param ingestId The id of the requested ingest job + */ + public static GetEpgDetailsIngestStatusBuilder getEpgDetails(long ingestId) { + return new GetEpgDetailsIngestStatusBuilder(ingestId); + } + + public static class GetEpgListIngestStatusBuilder extends ListResponseRequestBuilder { + + public GetEpgListIngestStatusBuilder(IngestByIdsFilter idsFilter, IngestByCompoundFilter filter, FilterPager pager) { + super(IngestEpg.class, "ingeststatus", "getEpgList"); + params.add("idsFilter", idsFilter); + params.add("filter", filter); + params.add("pager", pager); + } + } + + public static GetEpgListIngestStatusBuilder getEpgList() { + return getEpgList(null); + } + + public static GetEpgListIngestStatusBuilder getEpgList(IngestByIdsFilter idsFilter) { + return getEpgList(idsFilter, null); + } + + public static GetEpgListIngestStatusBuilder getEpgList(IngestByIdsFilter idsFilter, IngestByCompoundFilter filter) { + return getEpgList(idsFilter, filter, null); + } + + /** + * Response with list of ingest jobs. + * + * @param idsFilter Filter pager + * @param filter Filter pager + * @param pager Filter pager + */ + public static GetEpgListIngestStatusBuilder getEpgList(IngestByIdsFilter idsFilter, IngestByCompoundFilter filter, FilterPager pager) { + return new GetEpgListIngestStatusBuilder(idsFilter, filter, pager); + } + + public static class GetEpgProgramResultListIngestStatusBuilder extends ListResponseRequestBuilder { + + public GetEpgProgramResultListIngestStatusBuilder(long ingestId, IngestEpgProgramResultFilter filter, FilterPager pager) { + super(IngestEpgProgramResult.class, "ingeststatus", "getEpgProgramResultList"); + params.add("ingestId", ingestId); + params.add("filter", filter); + params.add("pager", pager); + } + + public void ingestId(String multirequestToken) { + params.add("ingestId", multirequestToken); + } + } + + public static GetEpgProgramResultListIngestStatusBuilder getEpgProgramResultList(long ingestId) { + return getEpgProgramResultList(ingestId, null); + } + + public static GetEpgProgramResultListIngestStatusBuilder getEpgProgramResultList(long ingestId, IngestEpgProgramResultFilter filter) { + return getEpgProgramResultList(ingestId, filter, null); + } + + /** + * Get as input ingest job id, filter and pager and response with page of filtered + detailed ingest job results. + * + * @param ingestId The id of the requested ingest job + * @param filter Filter for Ingest program, results + * @param pager Paging the request + */ + public static GetEpgProgramResultListIngestStatusBuilder getEpgProgramResultList(long ingestId, IngestEpgProgramResultFilter filter, FilterPager pager) { + return new GetEpgProgramResultListIngestStatusBuilder(ingestId, filter, pager); + } + + public static class GetPartnerConfigurationIngestStatusBuilder extends RequestBuilder { + + public GetPartnerConfigurationIngestStatusBuilder() { + super(IngestStatusPartnerConfiguration.class, "ingeststatus", "getPartnerConfiguration"); + } + } + + /** + * Returns Core Ingest service partner configurations + */ + public static GetPartnerConfigurationIngestStatusBuilder getPartnerConfiguration() { + return new GetPartnerConfigurationIngestStatusBuilder(); + } + + public static class UpdatePartnerConfigurationIngestStatusBuilder extends NullRequestBuilder { + + public UpdatePartnerConfigurationIngestStatusBuilder(IngestStatusPartnerConfiguration config) { + super("ingeststatus", "updatePartnerConfiguration"); + params.add("config", config); + } + } + + /** + * Returns Core Ingest service partner configurations + * + * @param config the partner config updates + */ + public static UpdatePartnerConfigurationIngestStatusBuilder updatePartnerConfiguration(IngestStatusPartnerConfiguration config) { + return new UpdatePartnerConfigurationIngestStatusBuilder(config); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/IotProfileService.java b/KalturaClient/src/main/java/com/kaltura/client/services/IotProfileService.java new file mode 100644 index 000000000..fcac62ff7 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/IotProfileService.java @@ -0,0 +1,54 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class IotProfileService { + + public static class AddIotProfileBuilder extends RequestBuilder { + + public AddIotProfileBuilder() { + super(Boolean.class, "iotprofile", "add"); + } + } + + /** + * Add new environment in aws + */ + public static AddIotProfileBuilder add() { + return new AddIotProfileBuilder(); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/IotService.java b/KalturaClient/src/main/java/com/kaltura/client/services/IotService.java new file mode 100644 index 000000000..c79dd95f8 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/IotService.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.IotClientConfiguration; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class IotService { + + public static class GetClientConfigurationIotBuilder extends RequestBuilder { + + public GetClientConfigurationIotBuilder() { + super(IotClientConfiguration.class, "iot", "getClientConfiguration"); + } + } + + /** + * Get iot Client Configuration + */ + public static GetClientConfigurationIotBuilder getClientConfiguration() { + return new GetClientConfigurationIotBuilder(); + } + + public static class RegisterIotBuilder extends RequestBuilder { + + public RegisterIotBuilder() { + super(Boolean.class, "iot", "register"); + } + } + + /** + * Register IOT device + */ + public static RegisterIotBuilder register() { + return new RegisterIotBuilder(); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/LabelService.java b/KalturaClient/src/main/java/com/kaltura/client/services/LabelService.java new file mode 100644 index 000000000..13336e851 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/LabelService.java @@ -0,0 +1,129 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.FilterPager; +import com.kaltura.client.types.Label; +import com.kaltura.client.types.LabelFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class LabelService { + + public static class AddLabelBuilder extends RequestBuilder { + + public AddLabelBuilder(Label label) { + super(Label.class, "label", "add"); + params.add("label", label); + } + } + + /** + * Create a new label associated with a predefined entity attribute. Currently + supports only labels on KalturaMediaFile. + * + * @param label KalturaLabel object with defined Value. + */ + public static AddLabelBuilder add(Label label) { + return new AddLabelBuilder(label); + } + + public static class DeleteLabelBuilder extends RequestBuilder { + + public DeleteLabelBuilder(long id) { + super(Boolean.class, "label", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Deletes the existing label by its identifier. + * + * @param id The identifier of label. + */ + public static DeleteLabelBuilder delete(long id) { + return new DeleteLabelBuilder(id); + } + + public static class ListLabelBuilder extends ListResponseRequestBuilder { + + public ListLabelBuilder(LabelFilter filter, FilterPager pager) { + super(Label.class, "label", "list"); + params.add("filter", filter); + params.add("pager", pager); + } + } + + public static ListLabelBuilder list(LabelFilter filter) { + return list(filter, null); + } + + /** + * Gets list of labels which meet the filter criteria. + * + * @param filter Filter. + * @param pager Page size and index. + */ + public static ListLabelBuilder list(LabelFilter filter, FilterPager pager) { + return new ListLabelBuilder(filter, pager); + } + + public static class UpdateLabelBuilder extends RequestBuilder { + + public UpdateLabelBuilder(long id, Label label) { + super(Label.class, "label", "update"); + params.add("id", id); + params.add("label", label); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Updates the existing label with a new value. + * + * @param id The identifier of label. + * @param label KalturaLabel object with new Value. + */ + public static UpdateLabelBuilder update(long id, Label label) { + return new UpdateLabelBuilder(id, label); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/LanguageService.java b/KalturaClient/src/main/java/com/kaltura/client/services/LanguageService.java new file mode 100644 index 000000000..37e642d0e --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/LanguageService.java @@ -0,0 +1,60 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.Language; +import com.kaltura.client.types.LanguageFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class LanguageService { + + public static class ListLanguageBuilder extends ListResponseRequestBuilder { + + public ListLanguageBuilder(LanguageFilter filter) { + super(Language.class, "language", "list"); + params.add("filter", filter); + } + } + + /** + * Get the list of languages for the partner with option to filter by language + codes + * + * @param filter language filter + */ + public static ListLanguageBuilder list(LanguageFilter filter) { + return new ListLanguageBuilder(filter); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/LicensedUrlService.java b/KalturaClient/src/main/java/com/kaltura/client/services/LicensedUrlService.java new file mode 100644 index 000000000..055bb3d00 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/LicensedUrlService.java @@ -0,0 +1,59 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.LicensedUrl; +import com.kaltura.client.types.LicensedUrlBaseRequest; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class LicensedUrlService { + + public static class GetLicensedUrlBuilder extends RequestBuilder { + + public GetLicensedUrlBuilder(LicensedUrlBaseRequest request) { + super(LicensedUrl.class, "licensedurl", "get"); + params.add("request", request); + } + } + + /** + * Get the URL for playing an asset - program, media or recording + * + * @param request Licensed URL request parameters + */ + public static GetLicensedUrlBuilder get(LicensedUrlBaseRequest request) { + return new GetLicensedUrlBuilder(request); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/LineupService.java b/KalturaClient/src/main/java/com/kaltura/client/services/LineupService.java new file mode 100644 index 000000000..0fced8b80 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/LineupService.java @@ -0,0 +1,120 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.FilterPager; +import com.kaltura.client.types.LineupChannelAsset; +import com.kaltura.client.types.LineupRegionalChannelFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class LineupService { + + public static class GetLineupBuilder extends ListResponseRequestBuilder { + + public GetLineupBuilder(int pageIndex, int pageSize) { + super(LineupChannelAsset.class, "lineup", "get"); + params.add("pageIndex", pageIndex); + params.add("pageSize", pageSize); + } + + public void pageIndex(String multirequestToken) { + params.add("pageIndex", multirequestToken); + } + + public void pageSize(String multirequestToken) { + params.add("pageSize", multirequestToken); + } + } + + /** + * Return regional lineup (list of lineup channel asset objects) based on the + requester session characteristics and his region. + * + * @param pageIndex Page index - The page index to retrieve, (if it is not sent the default page + * size is 1). + * @param pageSize Page size - The page size to retrieve. Must be one of the follow numbers: 100, + * 200, 800, 1200, 1600 (if it is not sent the default page size is 500). + */ + public static GetLineupBuilder get(int pageIndex, int pageSize) { + return new GetLineupBuilder(pageIndex, pageSize); + } + + public static class ListLineupBuilder extends ListResponseRequestBuilder { + + public ListLineupBuilder(LineupRegionalChannelFilter filter, FilterPager pager) { + super(LineupChannelAsset.class, "lineup", "list"); + params.add("filter", filter); + params.add("pager", pager); + } + } + + public static ListLineupBuilder list(LineupRegionalChannelFilter filter) { + return list(filter, null); + } + + /** + * Returns list of lineup regional linear channels associated with one LCN and its + region information. Allows to apply sorting and filtering by LCN and linear + channels. + * + * @param filter Request filter + * @param pager Paging the request + */ + public static ListLineupBuilder list(LineupRegionalChannelFilter filter, FilterPager pager) { + return new ListLineupBuilder(filter, pager); + } + + public static class SendUpdatedNotificationLineupBuilder extends RequestBuilder { + + public SendUpdatedNotificationLineupBuilder(String regionIds) { + super(Boolean.class, "lineup", "sendUpdatedNotification"); + params.add("regionIds", regionIds); + } + + public void regionIds(String multirequestToken) { + params.add("regionIds", multirequestToken); + } + } + + /** + * Sends lineup update requested notification. + * + * @param regionIds Region IDs separated by commas. + */ + public static SendUpdatedNotificationLineupBuilder sendUpdatedNotification(String regionIds) { + return new SendUpdatedNotificationLineupBuilder(regionIds); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/LiveToVodService.java b/KalturaClient/src/main/java/com/kaltura/client/services/LiveToVodService.java new file mode 100644 index 000000000..ec4bbde37 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/LiveToVodService.java @@ -0,0 +1,127 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.LiveToVodFullConfiguration; +import com.kaltura.client.types.LiveToVodLinearAssetConfiguration; +import com.kaltura.client.types.LiveToVodPartnerConfiguration; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class LiveToVodService { + + public static class GetConfigurationLiveToVodBuilder extends RequestBuilder { + + public GetConfigurationLiveToVodBuilder() { + super(LiveToVodFullConfiguration.class, "livetovod", "getConfiguration"); + } + } + + /** + * Get existing L2V configuration for both the partner level and all channels + level. + */ + public static GetConfigurationLiveToVodBuilder getConfiguration() { + return new GetConfigurationLiveToVodBuilder(); + } + + public static class GetLinearAssetConfigurationLiveToVodBuilder extends RequestBuilder { + + public GetLinearAssetConfigurationLiveToVodBuilder(long linearAssetId) { + super(LiveToVodLinearAssetConfiguration.class, "livetovod", "getLinearAssetConfiguration"); + params.add("linearAssetId", linearAssetId); + } + + public void linearAssetId(String multirequestToken) { + params.add("linearAssetId", multirequestToken); + } + } + + /** + * Get existing L2V configuration for a specific linear asset. + * + * @param linearAssetId Linear asset's identifier. + */ + public static GetLinearAssetConfigurationLiveToVodBuilder getLinearAssetConfiguration(long linearAssetId) { + return new GetLinearAssetConfigurationLiveToVodBuilder(linearAssetId); + } + + public static class GetPartnerConfigurationLiveToVodBuilder extends RequestBuilder { + + public GetPartnerConfigurationLiveToVodBuilder() { + super(LiveToVodPartnerConfiguration.class, "livetovod", "getPartnerConfiguration"); + } + } + + /** + * Get existing L2V partner configuration. + */ + public static GetPartnerConfigurationLiveToVodBuilder getPartnerConfiguration() { + return new GetPartnerConfigurationLiveToVodBuilder(); + } + + public static class UpdateLinearAssetConfigurationLiveToVodBuilder extends RequestBuilder { + + public UpdateLinearAssetConfigurationLiveToVodBuilder(LiveToVodLinearAssetConfiguration configuration) { + super(LiveToVodLinearAssetConfiguration.class, "livetovod", "updateLinearAssetConfiguration"); + params.add("configuration", configuration); + } + } + + /** + * Set L2V configuration for a specific Linear channel. + * + * @param configuration Live to VOD linear asset (live channel) configuration object. + */ + public static UpdateLinearAssetConfigurationLiveToVodBuilder updateLinearAssetConfiguration(LiveToVodLinearAssetConfiguration configuration) { + return new UpdateLinearAssetConfigurationLiveToVodBuilder(configuration); + } + + public static class UpdatePartnerConfigurationLiveToVodBuilder extends RequestBuilder { + + public UpdatePartnerConfigurationLiveToVodBuilder(LiveToVodPartnerConfiguration configuration) { + super(LiveToVodPartnerConfiguration.class, "livetovod", "updatePartnerConfiguration"); + params.add("configuration", configuration); + } + } + + /** + * Set L2V configuration on the partner level. + * + * @param configuration Live to VOD configuration object. + */ + public static UpdatePartnerConfigurationLiveToVodBuilder updatePartnerConfiguration(LiveToVodPartnerConfiguration configuration) { + return new UpdatePartnerConfigurationLiveToVodBuilder(configuration); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/MediaConcurrencyRuleService.java b/KalturaClient/src/main/java/com/kaltura/client/services/MediaConcurrencyRuleService.java new file mode 100644 index 000000000..62c206bf5 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/MediaConcurrencyRuleService.java @@ -0,0 +1,55 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.MediaConcurrencyRule; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class MediaConcurrencyRuleService { + + public static class ListMediaConcurrencyRuleBuilder extends ListResponseRequestBuilder { + + public ListMediaConcurrencyRuleBuilder() { + super(MediaConcurrencyRule.class, "mediaconcurrencyrule", "list"); + } + } + + /** + * Get the list of meta mappings for the partner + */ + public static ListMediaConcurrencyRuleBuilder list() { + return new ListMediaConcurrencyRuleBuilder(); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/MediaFileDynamicDataService.java b/KalturaClient/src/main/java/com/kaltura/client/services/MediaFileDynamicDataService.java new file mode 100644 index 000000000..dd2178b2a --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/MediaFileDynamicDataService.java @@ -0,0 +1,106 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.FilterPager; +import com.kaltura.client.types.MediaFileDynamicData; +import com.kaltura.client.types.MediaFileDynamicDataFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class MediaFileDynamicDataService { + + public static class AddMediaFileDynamicDataBuilder extends RequestBuilder { + + public AddMediaFileDynamicDataBuilder(MediaFileDynamicData dynamicData) { + super(MediaFileDynamicData.class, "mediafiledynamicdata", "add"); + params.add("dynamicData", dynamicData); + } + } + + /** + * Add a dynamicData value to the values list of a specific key name in a specific + mediaFileTypeId + * + * @param dynamicData DynamicData value + */ + public static AddMediaFileDynamicDataBuilder add(MediaFileDynamicData dynamicData) { + return new AddMediaFileDynamicDataBuilder(dynamicData); + } + + public static class DeleteMediaFileDynamicDataBuilder extends RequestBuilder { + + public DeleteMediaFileDynamicDataBuilder(long id) { + super(Boolean.class, "mediafiledynamicdata", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Delete an existing DynamicData value + * + * @param id DynamicData identifier + */ + public static DeleteMediaFileDynamicDataBuilder delete(long id) { + return new DeleteMediaFileDynamicDataBuilder(id); + } + + public static class ListMediaFileDynamicDataBuilder extends ListResponseRequestBuilder { + + public ListMediaFileDynamicDataBuilder(MediaFileDynamicDataFilter filter, FilterPager pager) { + super(MediaFileDynamicData.class, "mediafiledynamicdata", "list"); + params.add("filter", filter); + params.add("pager", pager); + } + } + + public static ListMediaFileDynamicDataBuilder list(MediaFileDynamicDataFilter filter) { + return list(filter, null); + } + + /** + * List and filter existing mediaFile dynamicData values + * + * @param filter Filter + * @param pager Pager + */ + public static ListMediaFileDynamicDataBuilder list(MediaFileDynamicDataFilter filter, FilterPager pager) { + return new ListMediaFileDynamicDataBuilder(filter, pager); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/MediaFileService.java b/KalturaClient/src/main/java/com/kaltura/client/services/MediaFileService.java new file mode 100644 index 000000000..b055a1d50 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/MediaFileService.java @@ -0,0 +1,125 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.MediaFile; +import com.kaltura.client.types.MediaFileFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class MediaFileService { + + public static class AddMediaFileBuilder extends RequestBuilder { + + public AddMediaFileBuilder(MediaFile mediaFile) { + super(MediaFile.class, "mediafile", "add"); + params.add("mediaFile", mediaFile); + } + } + + /** + * Add a new media file + * + * @param mediaFile Media file object + */ + public static AddMediaFileBuilder add(MediaFile mediaFile) { + return new AddMediaFileBuilder(mediaFile); + } + + public static class DeleteMediaFileBuilder extends RequestBuilder { + + public DeleteMediaFileBuilder(long id) { + super(Boolean.class, "mediafile", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Delete an existing media file + * + * @param id Media file identifier + */ + public static DeleteMediaFileBuilder delete(long id) { + return new DeleteMediaFileBuilder(id); + } + + public static class ListMediaFileBuilder extends ListResponseRequestBuilder { + + public ListMediaFileBuilder(MediaFileFilter filter) { + super(MediaFile.class, "mediafile", "list"); + params.add("filter", filter); + } + } + + public static ListMediaFileBuilder list() { + return list(null); + } + + /** + * Returns a list of media-file + * + * @param filter Filter + */ + public static ListMediaFileBuilder list(MediaFileFilter filter) { + return new ListMediaFileBuilder(filter); + } + + public static class UpdateMediaFileBuilder extends RequestBuilder { + + public UpdateMediaFileBuilder(long id, MediaFile mediaFile) { + super(MediaFile.class, "mediafile", "update"); + params.add("id", id); + params.add("mediaFile", mediaFile); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * update an existing media file + * + * @param id Media file identifier + * @param mediaFile Media file object + */ + public static UpdateMediaFileBuilder update(long id, MediaFile mediaFile) { + return new UpdateMediaFileBuilder(id, mediaFile); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/MediaFileTypeService.java b/KalturaClient/src/main/java/com/kaltura/client/services/MediaFileTypeService.java new file mode 100644 index 000000000..a8d605c11 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/MediaFileTypeService.java @@ -0,0 +1,117 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.MediaFileType; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class MediaFileTypeService { + + public static class AddMediaFileTypeBuilder extends RequestBuilder { + + public AddMediaFileTypeBuilder(MediaFileType mediaFileType) { + super(MediaFileType.class, "mediafiletype", "add"); + params.add("mediaFileType", mediaFileType); + } + } + + /** + * Add new media-file type + * + * @param mediaFileType Media-file type + */ + public static AddMediaFileTypeBuilder add(MediaFileType mediaFileType) { + return new AddMediaFileTypeBuilder(mediaFileType); + } + + public static class DeleteMediaFileTypeBuilder extends RequestBuilder { + + public DeleteMediaFileTypeBuilder(int id) { + super(Boolean.class, "mediafiletype", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Delete media-file type by id + * + * @param id Media-file type identifier + */ + public static DeleteMediaFileTypeBuilder delete(int id) { + return new DeleteMediaFileTypeBuilder(id); + } + + public static class ListMediaFileTypeBuilder extends ListResponseRequestBuilder { + + public ListMediaFileTypeBuilder() { + super(MediaFileType.class, "mediafiletype", "list"); + } + } + + /** + * Returns a list of media-file types + */ + public static ListMediaFileTypeBuilder list() { + return new ListMediaFileTypeBuilder(); + } + + public static class UpdateMediaFileTypeBuilder extends RequestBuilder { + + public UpdateMediaFileTypeBuilder(int id, MediaFileType mediaFileType) { + super(MediaFileType.class, "mediafiletype", "update"); + params.add("id", id); + params.add("mediaFileType", mediaFileType); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Update existing media-file type + * + * @param id Media-file type identifier + * @param mediaFileType Media-file type + */ + public static UpdateMediaFileTypeBuilder update(int id, MediaFileType mediaFileType) { + return new UpdateMediaFileTypeBuilder(id, mediaFileType); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/MessageTemplateService.java b/KalturaClient/src/main/java/com/kaltura/client/services/MessageTemplateService.java new file mode 100644 index 000000000..0823e7f9a --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/MessageTemplateService.java @@ -0,0 +1,86 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.enums.MessageTemplateType; +import com.kaltura.client.types.MessageTemplate; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class MessageTemplateService { + + public static class GetMessageTemplateBuilder extends RequestBuilder { + + public GetMessageTemplateBuilder(MessageTemplateType messageType) { + super(MessageTemplate.class, "messagetemplate", "get"); + params.add("messageType", messageType); + } + + public void messageType(String multirequestToken) { + params.add("messageType", multirequestToken); + } + } + + /** + * Retrieve a message template used in push notifications and inbox + * + * @param messageType possible values: Asset type – Series, Reminder,Churn + */ + public static GetMessageTemplateBuilder get(MessageTemplateType messageType) { + return new GetMessageTemplateBuilder(messageType); + } + + public static class UpdateMessageTemplateBuilder extends RequestBuilder { + + public UpdateMessageTemplateBuilder(MessageTemplateType messageType, MessageTemplate template) { + super(MessageTemplate.class, "messagetemplate", "update"); + params.add("messageType", messageType); + params.add("template", template); + } + + public void messageType(String multirequestToken) { + params.add("messageType", multirequestToken); + } + } + + /** + * Set the account’s push notifications and inbox messages templates + * + * @param messageType The asset type to update its template + * @param template The actual message with placeholders to be presented to the user + */ + public static UpdateMessageTemplateBuilder update(MessageTemplateType messageType, MessageTemplate template) { + return new UpdateMessageTemplateBuilder(messageType, template); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/MetaService.java b/KalturaClient/src/main/java/com/kaltura/client/services/MetaService.java new file mode 100644 index 000000000..ce47729f7 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/MetaService.java @@ -0,0 +1,125 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.Meta; +import com.kaltura.client.types.MetaFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class MetaService { + + public static class AddMetaBuilder extends RequestBuilder { + + public AddMetaBuilder(Meta meta) { + super(Meta.class, "meta", "add"); + params.add("meta", meta); + } + } + + /** + * Add a new meta + * + * @param meta Meta Object + */ + public static AddMetaBuilder add(Meta meta) { + return new AddMetaBuilder(meta); + } + + public static class DeleteMetaBuilder extends RequestBuilder { + + public DeleteMetaBuilder(long id) { + super(Boolean.class, "meta", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Delete an existing meta + * + * @param id Meta Identifier + */ + public static DeleteMetaBuilder delete(long id) { + return new DeleteMetaBuilder(id); + } + + public static class ListMetaBuilder extends ListResponseRequestBuilder { + + public ListMetaBuilder(MetaFilter filter) { + super(Meta.class, "meta", "list"); + params.add("filter", filter); + } + } + + public static ListMetaBuilder list() { + return list(null); + } + + /** + * Return a list of metas for the account with optional filter + * + * @param filter Meta filter + */ + public static ListMetaBuilder list(MetaFilter filter) { + return new ListMetaBuilder(filter); + } + + public static class UpdateMetaBuilder extends RequestBuilder { + + public UpdateMetaBuilder(long id, Meta meta) { + super(Meta.class, "meta", "update"); + params.add("id", id); + params.add("meta", meta); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Update an existing meta + * + * @param id Meta identifier + * @param meta Meta + */ + public static UpdateMetaBuilder update(long id, Meta meta) { + return new UpdateMetaBuilder(id, meta); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/NotificationService.java b/KalturaClient/src/main/java/com/kaltura/client/services/NotificationService.java new file mode 100644 index 000000000..2087069ee --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/NotificationService.java @@ -0,0 +1,154 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.enums.NotificationType; +import com.kaltura.client.types.PushMessage; +import com.kaltura.client.types.RegistryResponse; +import com.kaltura.client.types.StringValue; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.Map; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class NotificationService { + + public static class RegisterNotificationBuilder extends RequestBuilder { + + public RegisterNotificationBuilder(String identifier, NotificationType type) { + super(RegistryResponse.class, "notification", "register"); + params.add("identifier", identifier); + params.add("type", type); + } + + public void identifier(String multirequestToken) { + params.add("identifier", multirequestToken); + } + + public void type(String multirequestToken) { + params.add("type", multirequestToken); + } + } + + /** + * TBD + * + * @param identifier In case type is 'announcement', identifier should be the announcement ID. In + * case type is 'system', identifier should be 'login' (the login topic) + * @param type 'announcement' - TV-Series topic, 'system' - login topic + */ + public static RegisterNotificationBuilder register(String identifier, NotificationType type) { + return new RegisterNotificationBuilder(identifier, type); + } + + public static class SendPushNotificationBuilder extends RequestBuilder { + + public SendPushNotificationBuilder(int userId, PushMessage pushMessage) { + super(Boolean.class, "notification", "sendPush"); + params.add("userId", userId); + params.add("pushMessage", pushMessage); + } + + public void userId(String multirequestToken) { + params.add("userId", multirequestToken); + } + } + + /** + * Sends push notification to user devices + * + * @param userId User identifications + * @param pushMessage Message push data + */ + public static SendPushNotificationBuilder sendPush(int userId, PushMessage pushMessage) { + return new SendPushNotificationBuilder(userId, pushMessage); + } + + public static class SendSmsNotificationBuilder extends RequestBuilder { + + public SendSmsNotificationBuilder(String message, String phoneNumber, Map adapterData) { + super(Boolean.class, "notification", "sendSms"); + params.add("message", message); + params.add("phoneNumber", phoneNumber); + params.add("adapterData", adapterData); + } + + public void message(String multirequestToken) { + params.add("message", multirequestToken); + } + + public void phoneNumber(String multirequestToken) { + params.add("phoneNumber", multirequestToken); + } + } + + public static SendSmsNotificationBuilder sendSms(String message) { + return sendSms(message, null); + } + + public static SendSmsNotificationBuilder sendSms(String message, String phoneNumber) { + return sendSms(message, phoneNumber, null); + } + + /** + * Sends SMS notification to user + * + * @param message Message to send + * @param phoneNumber Optional phoneNumber + * @param adapterData Data used by the adapter + */ + public static SendSmsNotificationBuilder sendSms(String message, String phoneNumber, Map adapterData) { + return new SendSmsNotificationBuilder(message, phoneNumber, adapterData); + } + + public static class SetDevicePushTokenNotificationBuilder extends RequestBuilder { + + public SetDevicePushTokenNotificationBuilder(String pushToken) { + super(Boolean.class, "notification", "setDevicePushToken"); + params.add("pushToken", pushToken); + } + + public void pushToken(String multirequestToken) { + params.add("pushToken", multirequestToken); + } + } + + /** + * Registers the device push token to the push service + * + * @param pushToken The device-application pair authentication for push delivery + */ + public static SetDevicePushTokenNotificationBuilder setDevicePushToken(String pushToken) { + return new SetDevicePushTokenNotificationBuilder(pushToken); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/NotificationsPartnerSettingsService.java b/KalturaClient/src/main/java/com/kaltura/client/services/NotificationsPartnerSettingsService.java new file mode 100644 index 000000000..0d917fea7 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/NotificationsPartnerSettingsService.java @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.NotificationsPartnerSettings; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class NotificationsPartnerSettingsService { + + public static class GetNotificationsPartnerSettingsBuilder extends RequestBuilder { + + public GetNotificationsPartnerSettingsBuilder() { + super(NotificationsPartnerSettings.class, "notificationspartnersettings", "get"); + } + } + + /** + * Retrieve the partner notification settings. + */ + public static GetNotificationsPartnerSettingsBuilder get() { + return new GetNotificationsPartnerSettingsBuilder(); + } + + public static class UpdateNotificationsPartnerSettingsBuilder extends RequestBuilder { + + public UpdateNotificationsPartnerSettingsBuilder(NotificationsPartnerSettings settings) { + super(Boolean.class, "notificationspartnersettings", "update"); + params.add("settings", settings); + } + } + + /** + * Update the account notification settings + * + * @param settings Account notification settings model + */ + public static UpdateNotificationsPartnerSettingsBuilder update(NotificationsPartnerSettings settings) { + return new UpdateNotificationsPartnerSettingsBuilder(settings); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/NotificationsSettingsService.java b/KalturaClient/src/main/java/com/kaltura/client/services/NotificationsSettingsService.java new file mode 100644 index 000000000..e16550e56 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/NotificationsSettingsService.java @@ -0,0 +1,101 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.NotificationsSettings; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class NotificationsSettingsService { + + public static class GetNotificationsSettingsBuilder extends RequestBuilder { + + public GetNotificationsSettingsBuilder() { + super(NotificationsSettings.class, "notificationssettings", "get"); + } + } + + /** + * Retrieve the user’s notification settings. + */ + public static GetNotificationsSettingsBuilder get() { + return new GetNotificationsSettingsBuilder(); + } + + public static class UpdateNotificationsSettingsBuilder extends RequestBuilder { + + public UpdateNotificationsSettingsBuilder(NotificationsSettings settings) { + super(Boolean.class, "notificationssettings", "update"); + params.add("settings", settings); + } + } + + /** + * Update the user’s notification settings. + * + * @param settings Notifications settings + */ + public static UpdateNotificationsSettingsBuilder update(NotificationsSettings settings) { + return new UpdateNotificationsSettingsBuilder(settings); + } + + public static class UpdateWithTokenNotificationsSettingsBuilder extends RequestBuilder { + + public UpdateWithTokenNotificationsSettingsBuilder(NotificationsSettings settings, String token, int partnerId) { + super(Boolean.class, "notificationssettings", "updateWithToken"); + params.add("settings", settings); + params.add("token", token); + params.add("partnerId", partnerId); + } + + public void token(String multirequestToken) { + params.add("token", multirequestToken); + } + + public void partnerId(String multirequestToken) { + params.add("partnerId", multirequestToken); + } + } + + /** + * Update the user’s notification settings. + * + * @param settings Notifications settings + * @param token User's token identifier + * @param partnerId Partner identifier + */ + public static UpdateWithTokenNotificationsSettingsBuilder updateWithToken(NotificationsSettings settings, String token, int partnerId) { + return new UpdateWithTokenNotificationsSettingsBuilder(settings, token, partnerId); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/OssAdapterProfileService.java b/KalturaClient/src/main/java/com/kaltura/client/services/OssAdapterProfileService.java new file mode 100644 index 000000000..808381860 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/OssAdapterProfileService.java @@ -0,0 +1,159 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.OSSAdapterProfile; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class OssAdapterProfileService { + + public static class AddOssAdapterProfileBuilder extends RequestBuilder { + + public AddOssAdapterProfileBuilder(OSSAdapterProfile ossAdapter) { + super(OSSAdapterProfile.class, "ossadapterprofile", "add"); + params.add("ossAdapter", ossAdapter); + } + } + + /** + * Insert new OSS adapter for partner + * + * @param ossAdapter OSS adapter Object + */ + public static AddOssAdapterProfileBuilder add(OSSAdapterProfile ossAdapter) { + return new AddOssAdapterProfileBuilder(ossAdapter); + } + + public static class DeleteOssAdapterProfileBuilder extends RequestBuilder { + + public DeleteOssAdapterProfileBuilder(int ossAdapterId) { + super(Boolean.class, "ossadapterprofile", "delete"); + params.add("ossAdapterId", ossAdapterId); + } + + public void ossAdapterId(String multirequestToken) { + params.add("ossAdapterId", multirequestToken); + } + } + + /** + * Delete OSS adapter by OSS adapter id + * + * @param ossAdapterId OSS adapter identifier + */ + public static DeleteOssAdapterProfileBuilder delete(int ossAdapterId) { + return new DeleteOssAdapterProfileBuilder(ossAdapterId); + } + + public static class GenerateSharedSecretOssAdapterProfileBuilder extends RequestBuilder { + + public GenerateSharedSecretOssAdapterProfileBuilder(int ossAdapterId) { + super(OSSAdapterProfile.class, "ossadapterprofile", "generateSharedSecret"); + params.add("ossAdapterId", ossAdapterId); + } + + public void ossAdapterId(String multirequestToken) { + params.add("ossAdapterId", multirequestToken); + } + } + + /** + * Generate oss adapter shared secret + * + * @param ossAdapterId OSS adapter identifier + */ + public static GenerateSharedSecretOssAdapterProfileBuilder generateSharedSecret(int ossAdapterId) { + return new GenerateSharedSecretOssAdapterProfileBuilder(ossAdapterId); + } + + public static class GetOssAdapterProfileBuilder extends RequestBuilder { + + public GetOssAdapterProfileBuilder(int id) { + super(OSSAdapterProfile.class, "ossadapterprofile", "get"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Returns all OSS adapters for partner : id + name + * + * @param id OSS adapter identifier + */ + public static GetOssAdapterProfileBuilder get(int id) { + return new GetOssAdapterProfileBuilder(id); + } + + public static class ListOssAdapterProfileBuilder extends ListResponseRequestBuilder { + + public ListOssAdapterProfileBuilder() { + super(OSSAdapterProfile.class, "ossadapterprofile", "list"); + } + } + + /** + * Returns all OSS adapters for partner : id + name + */ + public static ListOssAdapterProfileBuilder list() { + return new ListOssAdapterProfileBuilder(); + } + + public static class UpdateOssAdapterProfileBuilder extends RequestBuilder { + + public UpdateOssAdapterProfileBuilder(int ossAdapterId, OSSAdapterProfile ossAdapter) { + super(OSSAdapterProfile.class, "ossadapterprofile", "update"); + params.add("ossAdapterId", ossAdapterId); + params.add("ossAdapter", ossAdapter); + } + + public void ossAdapterId(String multirequestToken) { + params.add("ossAdapterId", multirequestToken); + } + } + + /** + * Update OSS adapter details + * + * @param ossAdapterId OSS adapter identifier + * @param ossAdapter OSS adapter Object + */ + public static UpdateOssAdapterProfileBuilder update(int ossAdapterId, OSSAdapterProfile ossAdapter) { + return new UpdateOssAdapterProfileBuilder(ossAdapterId, ossAdapter); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/OttCategoryService.java b/KalturaClient/src/main/java/com/kaltura/client/services/OttCategoryService.java new file mode 100644 index 000000000..ec1dfd9f9 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/OttCategoryService.java @@ -0,0 +1,62 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.OTTCategory; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class OttCategoryService { + + public static class GetOttCategoryBuilder extends RequestBuilder { + + public GetOttCategoryBuilder(int id) { + super(OTTCategory.class, "ottcategory", "get"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Retrieve the list of categories (hierarchical) and their associated channels + * + * @param id Category Identifier + */ + public static GetOttCategoryBuilder get(int id) { + return new GetOttCategoryBuilder(id); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/OttUserService.java b/KalturaClient/src/main/java/com/kaltura/client/services/OttUserService.java new file mode 100644 index 000000000..936fbb181 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/OttUserService.java @@ -0,0 +1,616 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.DynamicData; +import com.kaltura.client.types.LoginResponse; +import com.kaltura.client.types.LoginSession; +import com.kaltura.client.types.OTTUser; +import com.kaltura.client.types.OTTUserDynamicData; +import com.kaltura.client.types.OTTUserFilter; +import com.kaltura.client.types.StringValue; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.NullRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.Map; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class OttUserService { + + public static class ActivateOttUserBuilder extends RequestBuilder { + + public ActivateOttUserBuilder(int partnerId, String username, String activationToken) { + super(OTTUser.class, "ottuser", "activate"); + params.add("partnerId", partnerId); + params.add("username", username); + params.add("activationToken", activationToken); + } + + public void partnerId(String multirequestToken) { + params.add("partnerId", multirequestToken); + } + + public void username(String multirequestToken) { + params.add("username", multirequestToken); + } + + public void activationToken(String multirequestToken) { + params.add("activationToken", multirequestToken); + } + } + + /** + * Activate the account by activation token + * + * @param partnerId The partner ID + * @param username Username of the user to activate + * @param activationToken Activation token of the user + */ + public static ActivateOttUserBuilder activate(int partnerId, String username, String activationToken) { + return new ActivateOttUserBuilder(partnerId, username, activationToken); + } + + public static class AddRoleOttUserBuilder extends RequestBuilder { + + public AddRoleOttUserBuilder(long roleId) { + super(Boolean.class, "ottuser", "addRole"); + params.add("roleId", roleId); + } + + public void roleId(String multirequestToken) { + params.add("roleId", multirequestToken); + } + } + + /** + * Deprecate - use Register or Update actions instead by setting user.roleIds + parameter + * + * @param roleId The role identifier to add + */ + public static AddRoleOttUserBuilder addRole(long roleId) { + return new AddRoleOttUserBuilder(roleId); + } + + public static class AnonymousLoginOttUserBuilder extends RequestBuilder { + + public AnonymousLoginOttUserBuilder(int partnerId, String udid) { + super(LoginSession.class, "ottuser", "anonymousLogin"); + params.add("partnerId", partnerId); + params.add("udid", udid); + } + + public void partnerId(String multirequestToken) { + params.add("partnerId", multirequestToken); + } + + public void udid(String multirequestToken) { + params.add("udid", multirequestToken); + } + } + + public static AnonymousLoginOttUserBuilder anonymousLogin(int partnerId) { + return anonymousLogin(partnerId, null); + } + + /** + * Returns tokens (KS and refresh token) for anonymous access + * + * @param partnerId The partner ID + * @param udid The caller device's UDID + */ + public static AnonymousLoginOttUserBuilder anonymousLogin(int partnerId, String udid) { + return new AnonymousLoginOttUserBuilder(partnerId, udid); + } + + public static class DeleteOttUserBuilder extends RequestBuilder { + + public DeleteOttUserBuilder() { + super(Boolean.class, "ottuser", "delete"); + } + } + + /** + * Permanently delete a user. User to delete cannot be an exclusive household + master, and cannot be default user. + */ + public static DeleteOttUserBuilder delete() { + return new DeleteOttUserBuilder(); + } + + public static class DeleteDynamicDataOttUserBuilder extends RequestBuilder { + + public DeleteDynamicDataOttUserBuilder(String key) { + super(Boolean.class, "ottuser", "deleteDynamicData"); + params.add("key", key); + } + + public void key(String multirequestToken) { + params.add("key", multirequestToken); + } + } + + /** + * Deletes dynamic data item for a user. + * + * @param key Key of dynamic data item. + */ + public static DeleteDynamicDataOttUserBuilder deleteDynamicData(String key) { + return new DeleteDynamicDataOttUserBuilder(key); + } + + public static class GetOttUserBuilder extends RequestBuilder { + + public GetOttUserBuilder() { + super(OTTUser.class, "ottuser", "get"); + } + } + + /** + * Retrieving users&#39; data + */ + public static GetOttUserBuilder get() { + return new GetOttUserBuilder(); + } + + public static class GetEncryptedUserIdOttUserBuilder extends RequestBuilder { + + public GetEncryptedUserIdOttUserBuilder() { + super(StringValue.class, "ottuser", "getEncryptedUserId"); + } + } + + /** + * Returns the identifier of the user encrypted with SHA1 using configured key + */ + public static GetEncryptedUserIdOttUserBuilder getEncryptedUserId() { + return new GetEncryptedUserIdOttUserBuilder(); + } + + public static class ListOttUserBuilder extends ListResponseRequestBuilder { + + public ListOttUserBuilder(OTTUserFilter filter) { + super(OTTUser.class, "ottuser", "list"); + params.add("filter", filter); + } + } + + public static ListOttUserBuilder list() { + return list(null); + } + + /** + * Returns list of OTTUser (limited to 500 items). Filters by username/external + identifier/idIn or roleIdIn + * + * @param filter Filter request + */ + public static ListOttUserBuilder list(OTTUserFilter filter) { + return new ListOttUserBuilder(filter); + } + + public static class LoginOttUserBuilder extends RequestBuilder { + + public LoginOttUserBuilder(int partnerId, String username, String password, Map extraParams, String udid) { + super(LoginResponse.class, "ottuser", "login"); + params.add("partnerId", partnerId); + params.add("username", username); + params.add("password", password); + params.add("extraParams", extraParams); + params.add("udid", udid); + } + + public void partnerId(String multirequestToken) { + params.add("partnerId", multirequestToken); + } + + public void username(String multirequestToken) { + params.add("username", multirequestToken); + } + + public void password(String multirequestToken) { + params.add("password", multirequestToken); + } + + public void udid(String multirequestToken) { + params.add("udid", multirequestToken); + } + } + + public static LoginOttUserBuilder login(int partnerId) { + return login(partnerId, null); + } + + public static LoginOttUserBuilder login(int partnerId, String username) { + return login(partnerId, username, null); + } + + public static LoginOttUserBuilder login(int partnerId, String username, String password) { + return login(partnerId, username, password, null); + } + + public static LoginOttUserBuilder login(int partnerId, String username, String password, Map extraParams) { + return login(partnerId, username, password, extraParams, null); + } + + /** + * login with user name and password. + * + * @param partnerId Partner Identifier + * @param username user name + * @param password password + * @param extraParams extra params + * @param udid Device UDID + */ + public static LoginOttUserBuilder login(int partnerId, String username, String password, Map extraParams, String udid) { + return new LoginOttUserBuilder(partnerId, username, password, extraParams, udid); + } + + public static class LoginWithPinOttUserBuilder extends RequestBuilder { + + public LoginWithPinOttUserBuilder(int partnerId, String pin, String udid, String secret, Map extraParams) { + super(LoginResponse.class, "ottuser", "loginWithPin"); + params.add("partnerId", partnerId); + params.add("pin", pin); + params.add("udid", udid); + params.add("secret", secret); + params.add("extraParams", extraParams); + } + + public void partnerId(String multirequestToken) { + params.add("partnerId", multirequestToken); + } + + public void pin(String multirequestToken) { + params.add("pin", multirequestToken); + } + + public void udid(String multirequestToken) { + params.add("udid", multirequestToken); + } + + public void secret(String multirequestToken) { + params.add("secret", multirequestToken); + } + } + + public static LoginWithPinOttUserBuilder loginWithPin(int partnerId, String pin) { + return loginWithPin(partnerId, pin, null); + } + + public static LoginWithPinOttUserBuilder loginWithPin(int partnerId, String pin, String udid) { + return loginWithPin(partnerId, pin, udid, null); + } + + public static LoginWithPinOttUserBuilder loginWithPin(int partnerId, String pin, String udid, String secret) { + return loginWithPin(partnerId, pin, udid, secret, null); + } + + /** + * User sign-in via a time-expired sign-in PIN. + * + * @param partnerId Partner Identifier + * @param pin pin code + * @param udid Device UDID + * @param secret Additional security parameter to validate the login + * @param extraParams extra params + */ + public static LoginWithPinOttUserBuilder loginWithPin(int partnerId, String pin, String udid, String secret, Map extraParams) { + return new LoginWithPinOttUserBuilder(partnerId, pin, udid, secret, extraParams); + } + + public static class LogoutOttUserBuilder extends RequestBuilder { + + public LogoutOttUserBuilder(Map adapterData) { + super(Boolean.class, "ottuser", "logout"); + params.add("adapterData", adapterData); + } + } + + public static LogoutOttUserBuilder logout() { + return logout(null); + } + + /** + * Logout the calling user. + * + * @param adapterData adapter data + */ + public static LogoutOttUserBuilder logout(Map adapterData) { + return new LogoutOttUserBuilder(adapterData); + } + + public static class RegisterOttUserBuilder extends RequestBuilder { + + public RegisterOttUserBuilder(int partnerId, OTTUser user, String password) { + super(OTTUser.class, "ottuser", "register"); + params.add("partnerId", partnerId); + params.add("user", user); + params.add("password", password); + } + + public void partnerId(String multirequestToken) { + params.add("partnerId", multirequestToken); + } + + public void password(String multirequestToken) { + params.add("password", multirequestToken); + } + } + + /** + * Sign up a new user. + * + * @param partnerId Partner identifier + * @param user The user model to add + * @param password password + */ + public static RegisterOttUserBuilder register(int partnerId, OTTUser user, String password) { + return new RegisterOttUserBuilder(partnerId, user, password); + } + + public static class ResendActivationTokenOttUserBuilder extends RequestBuilder { + + public ResendActivationTokenOttUserBuilder(int partnerId, String username) { + super(Boolean.class, "ottuser", "resendActivationToken"); + params.add("partnerId", partnerId); + params.add("username", username); + } + + public void partnerId(String multirequestToken) { + params.add("partnerId", multirequestToken); + } + + public void username(String multirequestToken) { + params.add("username", multirequestToken); + } + } + + /** + * Resend the activation token to a user + * + * @param partnerId The partner ID + * @param username Username of the user to activate + */ + public static ResendActivationTokenOttUserBuilder resendActivationToken(int partnerId, String username) { + return new ResendActivationTokenOttUserBuilder(partnerId, username); + } + + public static class ResetPasswordOttUserBuilder extends RequestBuilder { + + public ResetPasswordOttUserBuilder(int partnerId, String username, String templateName) { + super(Boolean.class, "ottuser", "resetPassword"); + params.add("partnerId", partnerId); + params.add("username", username); + params.add("templateName", templateName); + } + + public void partnerId(String multirequestToken) { + params.add("partnerId", multirequestToken); + } + + public void username(String multirequestToken) { + params.add("username", multirequestToken); + } + + public void templateName(String multirequestToken) { + params.add("templateName", multirequestToken); + } + } + + public static ResetPasswordOttUserBuilder resetPassword(int partnerId, String username) { + return resetPassword(partnerId, username, null); + } + + /** + * Send an e-mail with URL to enable the user to set new password. + * + * @param partnerId Partner Identifier + * @param username user name + * @param templateName Template name for reset password + */ + public static ResetPasswordOttUserBuilder resetPassword(int partnerId, String username, String templateName) { + return new ResetPasswordOttUserBuilder(partnerId, username, templateName); + } + + public static class SetInitialPasswordOttUserBuilder extends RequestBuilder { + + public SetInitialPasswordOttUserBuilder(int partnerId, String token, String password) { + super(OTTUser.class, "ottuser", "setInitialPassword"); + params.add("partnerId", partnerId); + params.add("token", token); + params.add("password", password); + } + + public void partnerId(String multirequestToken) { + params.add("partnerId", multirequestToken); + } + + public void token(String multirequestToken) { + params.add("token", multirequestToken); + } + + public void password(String multirequestToken) { + params.add("password", multirequestToken); + } + } + + /** + * Renew the user&#39;s password after validating the token that sent as part + of URL in e-mail. + * + * @param partnerId Partner Identifier + * @param token Token that sent by e-mail + * @param password New password + */ + public static SetInitialPasswordOttUserBuilder setInitialPassword(int partnerId, String token, String password) { + return new SetInitialPasswordOttUserBuilder(partnerId, token, password); + } + + public static class UpdateOttUserBuilder extends RequestBuilder { + + public UpdateOttUserBuilder(OTTUser user, String id) { + super(OTTUser.class, "ottuser", "update"); + params.add("user", user); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + public static UpdateOttUserBuilder update(OTTUser user) { + return update(user, null); + } + + /** + * Update user information + * + * @param user User data (includes basic and dynamic data) + * @param id User ID + */ + public static UpdateOttUserBuilder update(OTTUser user, String id) { + return new UpdateOttUserBuilder(user, id); + } + + public static class UpdateDynamicDataOttUserBuilder extends RequestBuilder { + + public UpdateDynamicDataOttUserBuilder(String key, StringValue value) { + super(OTTUserDynamicData.class, "ottuser", "updateDynamicData"); + params.add("key", key); + params.add("value", value); + } + + public void key(String multirequestToken) { + params.add("key", multirequestToken); + } + } + + /** + * Update user dynamic data. If it is needed to update several items, use a + multi-request to avoid race conditions. This API endpoint will + deprecated soon. Please use UpsertDynamicData instead of it. + * + * @param key Type of dynamicData. Max length of key is 50 characters. + * @param value Value of dynamicData. Max length of value is 512 characters. + */ + public static UpdateDynamicDataOttUserBuilder updateDynamicData(String key, StringValue value) { + return new UpdateDynamicDataOttUserBuilder(key, value); + } + + public static class UpdateLoginDataOttUserBuilder extends RequestBuilder { + + public UpdateLoginDataOttUserBuilder(String username, String oldPassword, String newPassword) { + super(Boolean.class, "ottuser", "updateLoginData"); + params.add("username", username); + params.add("oldPassword", oldPassword); + params.add("newPassword", newPassword); + } + + public void username(String multirequestToken) { + params.add("username", multirequestToken); + } + + public void oldPassword(String multirequestToken) { + params.add("oldPassword", multirequestToken); + } + + public void newPassword(String multirequestToken) { + params.add("newPassword", multirequestToken); + } + } + + /** + * Given a user name and existing password, change to a new password. + * + * @param username user name + * @param oldPassword old password + * @param newPassword new password + */ + public static UpdateLoginDataOttUserBuilder updateLoginData(String username, String oldPassword, String newPassword) { + return new UpdateLoginDataOttUserBuilder(username, oldPassword, newPassword); + } + + public static class UpdatePasswordOttUserBuilder extends NullRequestBuilder { + + public UpdatePasswordOttUserBuilder(int userId, String password) { + super("ottuser", "updatePassword"); + params.add("userId", userId); + params.add("password", password); + } + + public void userId(String multirequestToken) { + params.add("userId", multirequestToken); + } + + public void password(String multirequestToken) { + params.add("password", multirequestToken); + } + } + + /** + * Update the user&#39;s existing password. + * + * @param userId User Identifier + * @param password new password + */ + public static UpdatePasswordOttUserBuilder updatePassword(int userId, String password) { + return new UpdatePasswordOttUserBuilder(userId, password); + } + + public static class UpsertDynamicDataOttUserBuilder extends RequestBuilder { + + public UpsertDynamicDataOttUserBuilder(String key, StringValue value) { + super(DynamicData.class, "ottuser", "upsertDynamicData"); + params.add("key", key); + params.add("value", value); + } + + public void key(String multirequestToken) { + params.add("key", multirequestToken); + } + } + + /** + * Adds or updates dynamic data item for a user. If it is needed to update several + items, use a multi-request to avoid race conditions. + * + * @param key Key of dynamic data item. Max length of key is 50 characters. + * @param value Value of dynamic data item. Max length of value is 512 characters. + */ + public static UpsertDynamicDataOttUserBuilder upsertDynamicData(String key, StringValue value) { + return new UpsertDynamicDataOttUserBuilder(key, value); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/ParentalRuleService.java b/KalturaClient/src/main/java/com/kaltura/client/services/ParentalRuleService.java new file mode 100644 index 000000000..5818281e2 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/ParentalRuleService.java @@ -0,0 +1,222 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.enums.EntityReferenceBy; +import com.kaltura.client.types.ParentalRule; +import com.kaltura.client.types.ParentalRuleFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class ParentalRuleService { + + public static class AddParentalRuleBuilder extends RequestBuilder { + + public AddParentalRuleBuilder(ParentalRule parentalRule) { + super(ParentalRule.class, "parentalrule", "add"); + params.add("parentalRule", parentalRule); + } + } + + /** + * Add a new parentalRule + * + * @param parentalRule parentalRule object + */ + public static AddParentalRuleBuilder add(ParentalRule parentalRule) { + return new AddParentalRuleBuilder(parentalRule); + } + + public static class DeleteParentalRuleBuilder extends RequestBuilder { + + public DeleteParentalRuleBuilder(long id) { + super(Boolean.class, "parentalrule", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Delete an existing parentalRule + * + * @param id parentalRule identifier + */ + public static DeleteParentalRuleBuilder delete(long id) { + return new DeleteParentalRuleBuilder(id); + } + + public static class DisableParentalRuleBuilder extends RequestBuilder { + + public DisableParentalRuleBuilder(long ruleId, EntityReferenceBy entityReference) { + super(Boolean.class, "parentalrule", "disable"); + params.add("ruleId", ruleId); + params.add("entityReference", entityReference); + } + + public void ruleId(String multirequestToken) { + params.add("ruleId", multirequestToken); + } + + public void entityReference(String multirequestToken) { + params.add("entityReference", multirequestToken); + } + } + + /** + * Disables a parental rule that was previously defined by the household master. + Disable can be at specific user or household level. + * + * @param ruleId Rule Identifier + * @param entityReference Reference type to filter by + */ + public static DisableParentalRuleBuilder disable(long ruleId, EntityReferenceBy entityReference) { + return new DisableParentalRuleBuilder(ruleId, entityReference); + } + + public static class DisableDefaultParentalRuleBuilder extends RequestBuilder { + + public DisableDefaultParentalRuleBuilder(EntityReferenceBy entityReference) { + super(Boolean.class, "parentalrule", "disableDefault"); + params.add("entityReference", entityReference); + } + + public void entityReference(String multirequestToken) { + params.add("entityReference", multirequestToken); + } + } + + /** + * Disables a parental rule that was defined at account level. Disable can be at + specific user or household level. + * + * @param entityReference Reference type to filter by + */ + public static DisableDefaultParentalRuleBuilder disableDefault(EntityReferenceBy entityReference) { + return new DisableDefaultParentalRuleBuilder(entityReference); + } + + public static class EnableParentalRuleBuilder extends RequestBuilder { + + public EnableParentalRuleBuilder(long ruleId, EntityReferenceBy entityReference) { + super(Boolean.class, "parentalrule", "enable"); + params.add("ruleId", ruleId); + params.add("entityReference", entityReference); + } + + public void ruleId(String multirequestToken) { + params.add("ruleId", multirequestToken); + } + + public void entityReference(String multirequestToken) { + params.add("entityReference", multirequestToken); + } + } + + /** + * Enable a parental rules for a user + * + * @param ruleId Rule Identifier + * @param entityReference Reference type to filter by + */ + public static EnableParentalRuleBuilder enable(long ruleId, EntityReferenceBy entityReference) { + return new EnableParentalRuleBuilder(ruleId, entityReference); + } + + public static class GetParentalRuleBuilder extends RequestBuilder { + + public GetParentalRuleBuilder(long id) { + super(ParentalRule.class, "parentalrule", "get"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Get an existing parentalRule by identifier + * + * @param id parentalRule identifier + */ + public static GetParentalRuleBuilder get(long id) { + return new GetParentalRuleBuilder(id); + } + + public static class ListParentalRuleBuilder extends ListResponseRequestBuilder { + + public ListParentalRuleBuilder(ParentalRuleFilter filter) { + super(ParentalRule.class, "parentalrule", "list"); + params.add("filter", filter); + } + } + + /** + * Return the parental rules that applies for the user or household. Can include + rules that have been associated in account, household, or user level. + Association level is also specified in the response. + * + * @param filter Filter + */ + public static ListParentalRuleBuilder list(ParentalRuleFilter filter) { + return new ListParentalRuleBuilder(filter); + } + + public static class UpdateParentalRuleBuilder extends RequestBuilder { + + public UpdateParentalRuleBuilder(long id, ParentalRule parentalRule) { + super(ParentalRule.class, "parentalrule", "update"); + params.add("id", id); + params.add("parentalRule", parentalRule); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Update an existing parentalRule + * + * @param id parentalRule identifier + * @param parentalRule parentalRule object + */ + public static UpdateParentalRuleBuilder update(long id, ParentalRule parentalRule) { + return new UpdateParentalRuleBuilder(id, parentalRule); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/PartnerConfigurationService.java b/KalturaClient/src/main/java/com/kaltura/client/services/PartnerConfigurationService.java new file mode 100644 index 000000000..6f36ff3d3 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/PartnerConfigurationService.java @@ -0,0 +1,77 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.PartnerConfiguration; +import com.kaltura.client.types.PartnerConfigurationFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class PartnerConfigurationService { + + public static class ListPartnerConfigurationBuilder extends ListResponseRequestBuilder { + + public ListPartnerConfigurationBuilder(PartnerConfigurationFilter filter) { + super(PartnerConfiguration.class, "partnerconfiguration", "list"); + params.add("filter", filter); + } + } + + /** + * Get the list of PartnerConfiguration + * + * @param filter filter by PartnerConfiguration type + */ + public static ListPartnerConfigurationBuilder list(PartnerConfigurationFilter filter) { + return new ListPartnerConfigurationBuilder(filter); + } + + public static class UpdatePartnerConfigurationBuilder extends RequestBuilder { + + public UpdatePartnerConfigurationBuilder(PartnerConfiguration configuration) { + super(Boolean.class, "partnerconfiguration", "update"); + params.add("configuration", configuration); + } + } + + /** + * Update/set Partner Configuration + * + * @param configuration Partner Configuration to update + */ + public static UpdatePartnerConfigurationBuilder update(PartnerConfiguration configuration) { + return new UpdatePartnerConfigurationBuilder(configuration); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/PartnerPremiumServicesService.java b/KalturaClient/src/main/java/com/kaltura/client/services/PartnerPremiumServicesService.java new file mode 100644 index 000000000..ec0ae8ac2 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/PartnerPremiumServicesService.java @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.PartnerPremiumServices; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class PartnerPremiumServicesService { + + public static class GetPartnerPremiumServicesBuilder extends RequestBuilder { + + public GetPartnerPremiumServicesBuilder() { + super(PartnerPremiumServices.class, "partnerpremiumservices", "get"); + } + } + + /** + * Returns list of services + */ + public static GetPartnerPremiumServicesBuilder get() { + return new GetPartnerPremiumServicesBuilder(); + } + + public static class UpdatePartnerPremiumServicesBuilder extends RequestBuilder { + + public UpdatePartnerPremiumServicesBuilder(PartnerPremiumServices partnerPremiumServices) { + super(PartnerPremiumServices.class, "partnerpremiumservices", "update"); + params.add("partnerPremiumServices", partnerPremiumServices); + } + } + + /** + * update partnerPremiumServices + * + * @param partnerPremiumServices partnerPremiumServices to update + */ + public static UpdatePartnerPremiumServicesBuilder update(PartnerPremiumServices partnerPremiumServices) { + return new UpdatePartnerPremiumServicesBuilder(partnerPremiumServices); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/PartnerService.java b/KalturaClient/src/main/java/com/kaltura/client/services/PartnerService.java new file mode 100644 index 000000000..de574eaa2 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/PartnerService.java @@ -0,0 +1,134 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.LoginSession; +import com.kaltura.client.types.Partner; +import com.kaltura.client.types.PartnerFilter; +import com.kaltura.client.types.PartnerSetup; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class PartnerService { + + public static class AddPartnerBuilder extends RequestBuilder { + + public AddPartnerBuilder(Partner partner, PartnerSetup partnerSetup) { + super(Partner.class, "partner", "add"); + params.add("partner", partner); + params.add("partnerSetup", partnerSetup); + } + } + + /** + * Add a partner with default user + * + * @param partner partner + * @param partnerSetup mandatory parameters to create partner + */ + public static AddPartnerBuilder add(Partner partner, PartnerSetup partnerSetup) { + return new AddPartnerBuilder(partner, partnerSetup); + } + + public static class CreateIndexesPartnerBuilder extends RequestBuilder { + + public CreateIndexesPartnerBuilder() { + super(Boolean.class, "partner", "createIndexes"); + } + } + + /** + * Internal API !!! create ElasticSearch indexes for partner + */ + public static CreateIndexesPartnerBuilder createIndexes() { + return new CreateIndexesPartnerBuilder(); + } + + public static class DeletePartnerBuilder extends RequestBuilder { + + public DeletePartnerBuilder(int id) { + super(Boolean.class, "partner", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Internal API !!! Delete Partner + * + * @param id Partner id + */ + public static DeletePartnerBuilder delete(int id) { + return new DeletePartnerBuilder(id); + } + + public static class ExternalLoginPartnerBuilder extends RequestBuilder { + + public ExternalLoginPartnerBuilder() { + super(LoginSession.class, "partner", "externalLogin"); + } + } + + /** + * Returns a login session for external system (like OVP) + */ + public static ExternalLoginPartnerBuilder externalLogin() { + return new ExternalLoginPartnerBuilder(); + } + + public static class ListPartnerBuilder extends ListResponseRequestBuilder { + + public ListPartnerBuilder(PartnerFilter filter) { + super(Partner.class, "partner", "list"); + params.add("filter", filter); + } + } + + public static ListPartnerBuilder list() { + return list(null); + } + + /** + * Internal API !!! Returns the list of active Partners + * + * @param filter Filter + */ + public static ListPartnerBuilder list(PartnerFilter filter) { + return new ListPartnerBuilder(filter); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/PasswordPolicyService.java b/KalturaClient/src/main/java/com/kaltura/client/services/PasswordPolicyService.java new file mode 100644 index 000000000..ff46dbfc3 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/PasswordPolicyService.java @@ -0,0 +1,126 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.PasswordPolicy; +import com.kaltura.client.types.PasswordPolicyFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.NullRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class PasswordPolicyService { + + public static class AddPasswordPolicyBuilder extends RequestBuilder { + + public AddPasswordPolicyBuilder(PasswordPolicy objectToAdd) { + super(PasswordPolicy.class, "passwordpolicy", "add"); + params.add("objectToAdd", objectToAdd); + } + } + + /** + * Add new KalturaPasswordPolicy + * + * @param objectToAdd KalturaPasswordPolicy Object to add + */ + public static AddPasswordPolicyBuilder add(PasswordPolicy objectToAdd) { + return new AddPasswordPolicyBuilder(objectToAdd); + } + + public static class DeletePasswordPolicyBuilder extends NullRequestBuilder { + + public DeletePasswordPolicyBuilder(long id) { + super("passwordpolicy", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Delete existing PasswordPolicy + * + * @param id PasswordPolicy identifier + */ + public static DeletePasswordPolicyBuilder delete(long id) { + return new DeletePasswordPolicyBuilder(id); + } + + public static class ListPasswordPolicyBuilder extends ListResponseRequestBuilder { + + public ListPasswordPolicyBuilder(PasswordPolicyFilter filter) { + super(PasswordPolicy.class, "passwordpolicy", "list"); + params.add("filter", filter); + } + } + + public static ListPasswordPolicyBuilder list() { + return list(null); + } + + /** + * Returns the list of available KalturaPasswordPolicy + * + * @param filter Filter + */ + public static ListPasswordPolicyBuilder list(PasswordPolicyFilter filter) { + return new ListPasswordPolicyBuilder(filter); + } + + public static class UpdatePasswordPolicyBuilder extends RequestBuilder { + + public UpdatePasswordPolicyBuilder(long id, PasswordPolicy objectToUpdate) { + super(PasswordPolicy.class, "passwordpolicy", "update"); + params.add("id", id); + params.add("objectToUpdate", objectToUpdate); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Update existing KalturaPasswordPolicy + * + * @param id id of KalturaPasswordPolicy to update + * @param objectToUpdate KalturaPasswordPolicy Object to update + */ + public static UpdatePasswordPolicyBuilder update(long id, PasswordPolicy objectToUpdate) { + return new UpdatePasswordPolicyBuilder(id, objectToUpdate); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/PaymentGatewayProfileService.java b/KalturaClient/src/main/java/com/kaltura/client/services/PaymentGatewayProfileService.java new file mode 100644 index 000000000..69d7c1e68 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/PaymentGatewayProfileService.java @@ -0,0 +1,173 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.KeyValue; +import com.kaltura.client.types.PaymentGatewayConfiguration; +import com.kaltura.client.types.PaymentGatewayProfile; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.List; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class PaymentGatewayProfileService { + + public static class AddPaymentGatewayProfileBuilder extends RequestBuilder { + + public AddPaymentGatewayProfileBuilder(PaymentGatewayProfile paymentGateway) { + super(PaymentGatewayProfile.class, "paymentgatewayprofile", "add"); + params.add("paymentGateway", paymentGateway); + } + } + + /** + * Insert new payment gateway for partner + * + * @param paymentGateway Payment Gateway Object + */ + public static AddPaymentGatewayProfileBuilder add(PaymentGatewayProfile paymentGateway) { + return new AddPaymentGatewayProfileBuilder(paymentGateway); + } + + public static class DeletePaymentGatewayProfileBuilder extends RequestBuilder { + + public DeletePaymentGatewayProfileBuilder(int paymentGatewayId) { + super(Boolean.class, "paymentgatewayprofile", "delete"); + params.add("paymentGatewayId", paymentGatewayId); + } + + public void paymentGatewayId(String multirequestToken) { + params.add("paymentGatewayId", multirequestToken); + } + } + + /** + * Delete payment gateway by payment gateway id + * + * @param paymentGatewayId Payment Gateway Identifier + */ + public static DeletePaymentGatewayProfileBuilder delete(int paymentGatewayId) { + return new DeletePaymentGatewayProfileBuilder(paymentGatewayId); + } + + public static class GenerateSharedSecretPaymentGatewayProfileBuilder extends RequestBuilder { + + public GenerateSharedSecretPaymentGatewayProfileBuilder(int paymentGatewayId) { + super(PaymentGatewayProfile.class, "paymentgatewayprofile", "generateSharedSecret"); + params.add("paymentGatewayId", paymentGatewayId); + } + + public void paymentGatewayId(String multirequestToken) { + params.add("paymentGatewayId", multirequestToken); + } + } + + /** + * Generate payment gateway shared secret + * + * @param paymentGatewayId Payment gateway identifier + */ + public static GenerateSharedSecretPaymentGatewayProfileBuilder generateSharedSecret(int paymentGatewayId) { + return new GenerateSharedSecretPaymentGatewayProfileBuilder(paymentGatewayId); + } + + public static class GetConfigurationPaymentGatewayProfileBuilder extends RequestBuilder { + + public GetConfigurationPaymentGatewayProfileBuilder(String alias, String intent, List extraParameters) { + super(PaymentGatewayConfiguration.class, "paymentgatewayprofile", "getConfiguration"); + params.add("alias", alias); + params.add("intent", intent); + params.add("extraParameters", extraParameters); + } + + public void alias(String multirequestToken) { + params.add("alias", multirequestToken); + } + + public void intent(String multirequestToken) { + params.add("intent", multirequestToken); + } + } + + /** + * Gets the Payment Gateway Configuration for the payment gateway identifier given + * + * @param alias The payemnt gateway for which to return the registration URL/s for the + * household. If omitted – return the regisration URL for the household for the + * default payment gateway + * @param intent Represent the client’s intent for working with the payment gateway. Intent + * options to be coordinated with the applicable payment gateway adapter. + * @param extraParameters Additional parameters to send to the payment gateway adapter. + */ + public static GetConfigurationPaymentGatewayProfileBuilder getConfiguration(String alias, String intent, List extraParameters) { + return new GetConfigurationPaymentGatewayProfileBuilder(alias, intent, extraParameters); + } + + public static class ListPaymentGatewayProfileBuilder extends ListResponseRequestBuilder { + + public ListPaymentGatewayProfileBuilder() { + super(PaymentGatewayProfile.class, "paymentgatewayprofile", "list"); + } + } + + /** + * Returns all payment gateways for partner : id + name + */ + public static ListPaymentGatewayProfileBuilder list() { + return new ListPaymentGatewayProfileBuilder(); + } + + public static class UpdatePaymentGatewayProfileBuilder extends RequestBuilder { + + public UpdatePaymentGatewayProfileBuilder(int paymentGatewayId, PaymentGatewayProfile paymentGateway) { + super(PaymentGatewayProfile.class, "paymentgatewayprofile", "update"); + params.add("paymentGatewayId", paymentGatewayId); + params.add("paymentGateway", paymentGateway); + } + + public void paymentGatewayId(String multirequestToken) { + params.add("paymentGatewayId", multirequestToken); + } + } + + /** + * Update payment gateway details + * + * @param paymentGatewayId Payment Gateway Identifier + * @param paymentGateway Payment Gateway Object + */ + public static UpdatePaymentGatewayProfileBuilder update(int paymentGatewayId, PaymentGatewayProfile paymentGateway) { + return new UpdatePaymentGatewayProfileBuilder(paymentGatewayId, paymentGateway); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/PaymentMethodProfileService.java b/KalturaClient/src/main/java/com/kaltura/client/services/PaymentMethodProfileService.java new file mode 100644 index 000000000..f21d2948d --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/PaymentMethodProfileService.java @@ -0,0 +1,121 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.PaymentMethodProfile; +import com.kaltura.client.types.PaymentMethodProfileFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class PaymentMethodProfileService { + + public static class AddPaymentMethodProfileBuilder extends RequestBuilder { + + public AddPaymentMethodProfileBuilder(PaymentMethodProfile paymentMethod) { + super(PaymentMethodProfile.class, "paymentmethodprofile", "add"); + params.add("paymentMethod", paymentMethod); + } + } + + /** + * TBD + * + * @param paymentMethod Payment method to add + */ + public static AddPaymentMethodProfileBuilder add(PaymentMethodProfile paymentMethod) { + return new AddPaymentMethodProfileBuilder(paymentMethod); + } + + public static class DeletePaymentMethodProfileBuilder extends RequestBuilder { + + public DeletePaymentMethodProfileBuilder(int paymentMethodId) { + super(Boolean.class, "paymentmethodprofile", "delete"); + params.add("paymentMethodId", paymentMethodId); + } + + public void paymentMethodId(String multirequestToken) { + params.add("paymentMethodId", multirequestToken); + } + } + + /** + * Delete payment method profile + * + * @param paymentMethodId Payment method identifier to delete + */ + public static DeletePaymentMethodProfileBuilder delete(int paymentMethodId) { + return new DeletePaymentMethodProfileBuilder(paymentMethodId); + } + + public static class ListPaymentMethodProfileBuilder extends ListResponseRequestBuilder { + + public ListPaymentMethodProfileBuilder(PaymentMethodProfileFilter filter) { + super(PaymentMethodProfile.class, "paymentmethodprofile", "list"); + params.add("filter", filter); + } + } + + /** + * TBD + * + * @param filter Payment gateway method profile filter + */ + public static ListPaymentMethodProfileBuilder list(PaymentMethodProfileFilter filter) { + return new ListPaymentMethodProfileBuilder(filter); + } + + public static class UpdatePaymentMethodProfileBuilder extends RequestBuilder { + + public UpdatePaymentMethodProfileBuilder(int paymentMethodId, PaymentMethodProfile paymentMethod) { + super(PaymentMethodProfile.class, "paymentmethodprofile", "update"); + params.add("paymentMethodId", paymentMethodId); + params.add("paymentMethod", paymentMethod); + } + + public void paymentMethodId(String multirequestToken) { + params.add("paymentMethodId", multirequestToken); + } + } + + /** + * Update payment method + * + * @param paymentMethodId Payment method identifier to update + * @param paymentMethod Payment method to update + */ + public static UpdatePaymentMethodProfileBuilder update(int paymentMethodId, PaymentMethodProfile paymentMethod) { + return new UpdatePaymentMethodProfileBuilder(paymentMethodId, paymentMethod); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/PermissionItemService.java b/KalturaClient/src/main/java/com/kaltura/client/services/PermissionItemService.java new file mode 100644 index 000000000..e6675ade4 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/PermissionItemService.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.FilterPager; +import com.kaltura.client.types.PermissionItem; +import com.kaltura.client.types.PermissionItemFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class PermissionItemService { + + public static class ListPermissionItemBuilder extends ListResponseRequestBuilder { + + public ListPermissionItemBuilder(PermissionItemFilter filter, FilterPager pager) { + super(PermissionItem.class, "permissionitem", "list"); + params.add("filter", filter); + params.add("pager", pager); + } + } + + public static ListPermissionItemBuilder list() { + return list(null); + } + + public static ListPermissionItemBuilder list(PermissionItemFilter filter) { + return list(filter, null); + } + + /** + * Return a list of permission items with filtering options + * + * @param filter Filter + * @param pager Pager + */ + public static ListPermissionItemBuilder list(PermissionItemFilter filter, FilterPager pager) { + return new ListPermissionItemBuilder(filter, pager); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/PermissionService.java b/KalturaClient/src/main/java/com/kaltura/client/services/PermissionService.java new file mode 100644 index 000000000..719fffeed --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/PermissionService.java @@ -0,0 +1,195 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.BasePermissionFilter; +import com.kaltura.client.types.Permission; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.NullRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class PermissionService { + + public static class AddPermissionBuilder extends RequestBuilder { + + public AddPermissionBuilder(Permission permission) { + super(Permission.class, "permission", "add"); + params.add("permission", permission); + } + } + + /** + * Adds new permission + * + * @param permission Permission to insert + */ + public static AddPermissionBuilder add(Permission permission) { + return new AddPermissionBuilder(permission); + } + + public static class AddPermissionItemPermissionBuilder extends NullRequestBuilder { + + public AddPermissionItemPermissionBuilder(long permissionId, long permissionItemId) { + super("permission", "addPermissionItem"); + params.add("permissionId", permissionId); + params.add("permissionItemId", permissionItemId); + } + + public void permissionId(String multirequestToken) { + params.add("permissionId", multirequestToken); + } + + public void permissionItemId(String multirequestToken) { + params.add("permissionItemId", multirequestToken); + } + } + + /** + * Adds permission item to permission + * + * @param permissionId Permission ID to add to + * @param permissionItemId Permission item ID to add + */ + public static AddPermissionItemPermissionBuilder addPermissionItem(long permissionId, long permissionItemId) { + return new AddPermissionItemPermissionBuilder(permissionId, permissionItemId); + } + + public static class DeletePermissionBuilder extends NullRequestBuilder { + + public DeletePermissionBuilder(long id) { + super("permission", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Deletes an existing permission + * + * @param id Permission ID to delete + */ + public static DeletePermissionBuilder delete(long id) { + return new DeletePermissionBuilder(id); + } + + public static class GetCurrentPermissionsPermissionBuilder extends RequestBuilder { + + public GetCurrentPermissionsPermissionBuilder() { + super(String.class, "permission", "getCurrentPermissions"); + } + } + + /** + * Returns permission names as comma separated string + */ + public static GetCurrentPermissionsPermissionBuilder getCurrentPermissions() { + return new GetCurrentPermissionsPermissionBuilder(); + } + + public static class ListPermissionBuilder extends ListResponseRequestBuilder { + + public ListPermissionBuilder(BasePermissionFilter filter) { + super(Permission.class, "permission", "list"); + params.add("filter", filter); + } + } + + public static ListPermissionBuilder list() { + return list(null); + } + + /** + * Retrieving permissions by identifiers, if filter is empty, returns all partner + permissions + * + * @param filter Filter for permissions + */ + public static ListPermissionBuilder list(BasePermissionFilter filter) { + return new ListPermissionBuilder(filter); + } + + public static class RemovePermissionItemPermissionBuilder extends NullRequestBuilder { + + public RemovePermissionItemPermissionBuilder(long permissionId, long permissionItemId) { + super("permission", "removePermissionItem"); + params.add("permissionId", permissionId); + params.add("permissionItemId", permissionItemId); + } + + public void permissionId(String multirequestToken) { + params.add("permissionId", multirequestToken); + } + + public void permissionItemId(String multirequestToken) { + params.add("permissionItemId", multirequestToken); + } + } + + /** + * Removes permission item from permission + * + * @param permissionId Permission ID to remove from + * @param permissionItemId Permission item ID to remove + */ + public static RemovePermissionItemPermissionBuilder removePermissionItem(long permissionId, long permissionItemId) { + return new RemovePermissionItemPermissionBuilder(permissionId, permissionItemId); + } + + public static class UpdatePermissionBuilder extends RequestBuilder { + + public UpdatePermissionBuilder(long id, Permission permission) { + super(Permission.class, "permission", "update"); + params.add("id", id); + params.add("permission", permission); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Update an existing permission. + * + * @param id Permission Identifier + * @param permission Permission object + */ + public static UpdatePermissionBuilder update(long id, Permission permission) { + return new UpdatePermissionBuilder(id, permission); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/PersonalActivityCleanupService.java b/KalturaClient/src/main/java/com/kaltura/client/services/PersonalActivityCleanupService.java new file mode 100644 index 000000000..7bc76e564 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/PersonalActivityCleanupService.java @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.PersonalActivityCleanupConfiguration; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class PersonalActivityCleanupService { + + public static class GetPartnerConfigurationPersonalActivityCleanupBuilder extends RequestBuilder { + + public GetPartnerConfigurationPersonalActivityCleanupBuilder() { + super(PersonalActivityCleanupConfiguration.class, "personalactivitycleanup", "getPartnerConfiguration"); + } + } + + /** + * PersonalActivityCleanupConfiguration get + */ + public static GetPartnerConfigurationPersonalActivityCleanupBuilder getPartnerConfiguration() { + return new GetPartnerConfigurationPersonalActivityCleanupBuilder(); + } + + public static class UpdatePartnerConfigurationPersonalActivityCleanupBuilder extends RequestBuilder { + + public UpdatePartnerConfigurationPersonalActivityCleanupBuilder(PersonalActivityCleanupConfiguration personalActivityCleanupConfiguration) { + super(PersonalActivityCleanupConfiguration.class, "personalactivitycleanup", "updatePartnerConfiguration"); + params.add("personalActivityCleanupConfiguration", personalActivityCleanupConfiguration); + } + } + + /** + * PersonalActivityCleanupConfiguration Update + * + * @param personalActivityCleanupConfiguration PersonalActivityCleanupConfiguration details + */ + public static UpdatePartnerConfigurationPersonalActivityCleanupBuilder updatePartnerConfiguration(PersonalActivityCleanupConfiguration personalActivityCleanupConfiguration) { + return new UpdatePartnerConfigurationPersonalActivityCleanupBuilder(personalActivityCleanupConfiguration); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/PersonalFeedService.java b/KalturaClient/src/main/java/com/kaltura/client/services/PersonalFeedService.java new file mode 100644 index 000000000..8b21177b1 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/PersonalFeedService.java @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.FilterPager; +import com.kaltura.client.types.PersonalFeed; +import com.kaltura.client.types.PersonalFeedFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class PersonalFeedService { + + public static class ListPersonalFeedBuilder extends ListResponseRequestBuilder { + + public ListPersonalFeedBuilder(PersonalFeedFilter filter, FilterPager pager) { + super(PersonalFeed.class, "personalfeed", "list"); + params.add("filter", filter); + params.add("pager", pager); + } + } + + public static ListPersonalFeedBuilder list(PersonalFeedFilter filter) { + return list(filter, null); + } + + /** + * List user&#39;s feeds. Possible status codes: + * + * @param filter Required sort option to apply for the identified assets. If omitted – will use + * relevancy. + * Possible values: relevancy, a_to_z, z_to_a, views, ratings, votes, + * newest. + * @param pager Page size and index + */ + public static ListPersonalFeedBuilder list(PersonalFeedFilter filter, FilterPager pager) { + return new ListPersonalFeedBuilder(filter, pager); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/PersonalListService.java b/KalturaClient/src/main/java/com/kaltura/client/services/PersonalListService.java new file mode 100644 index 000000000..cbf53a9f2 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/PersonalListService.java @@ -0,0 +1,111 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.FilterPager; +import com.kaltura.client.types.PersonalList; +import com.kaltura.client.types.PersonalListFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.NullRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class PersonalListService { + + public static class AddPersonalListBuilder extends RequestBuilder { + + public AddPersonalListBuilder(PersonalList personalList) { + super(PersonalList.class, "personallist", "add"); + params.add("personalList", personalList); + } + } + + /** + * Add a user&#39;s personal list item to follow. + * + * @param personalList Follow personal list item request parameters + */ + public static AddPersonalListBuilder add(PersonalList personalList) { + return new AddPersonalListBuilder(personalList); + } + + public static class DeletePersonalListBuilder extends NullRequestBuilder { + + public DeletePersonalListBuilder(long personalListId) { + super("personallist", "delete"); + params.add("personalListId", personalListId); + } + + public void personalListId(String multirequestToken) { + params.add("personalListId", multirequestToken); + } + } + + /** + * Remove followed item from user&#39;s personal list + * + * @param personalListId personalListId identifier + */ + public static DeletePersonalListBuilder delete(long personalListId) { + return new DeletePersonalListBuilder(personalListId); + } + + public static class ListPersonalListBuilder extends ListResponseRequestBuilder { + + public ListPersonalListBuilder(PersonalListFilter filter, FilterPager pager) { + super(PersonalList.class, "personallist", "list"); + params.add("filter", filter); + params.add("pager", pager); + } + } + + public static ListPersonalListBuilder list() { + return list(null); + } + + public static ListPersonalListBuilder list(PersonalListFilter filter) { + return list(filter, null); + } + + /** + * List user&#39;s tv personal item to follow. Possible status + codes: + * + * @param filter Personal list filter + * @param pager pager + */ + public static ListPersonalListBuilder list(PersonalListFilter filter, FilterPager pager) { + return new ListPersonalListBuilder(filter, pager); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/PinService.java b/KalturaClient/src/main/java/com/kaltura/client/services/PinService.java new file mode 100644 index 000000000..0e2ce1583 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/PinService.java @@ -0,0 +1,158 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.enums.EntityReferenceBy; +import com.kaltura.client.enums.PinType; +import com.kaltura.client.types.Pin; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class PinService { + + public static class GetPinBuilder extends RequestBuilder { + + public GetPinBuilder(EntityReferenceBy by, PinType type, int ruleId) { + super(Pin.class, "pin", "get"); + params.add("by", by); + params.add("type", type); + params.add("ruleId", ruleId); + } + + public void by(String multirequestToken) { + params.add("by", multirequestToken); + } + + public void type(String multirequestToken) { + params.add("type", multirequestToken); + } + + public void ruleId(String multirequestToken) { + params.add("ruleId", multirequestToken); + } + } + + public static GetPinBuilder get(EntityReferenceBy by, PinType type) { + return get(by, type, Integer.MIN_VALUE); + } + + /** + * Retrieve the parental or purchase PIN that applies for the household or user. + Includes specification of where the PIN was defined at – account, household or + user level + * + * @param by Reference type to filter by + * @param type The PIN type to retrieve + * @param ruleId Rule ID - for PIN per rule (MediaCorp): BEO-1923 + */ + public static GetPinBuilder get(EntityReferenceBy by, PinType type, int ruleId) { + return new GetPinBuilder(by, type, ruleId); + } + + public static class UpdatePinBuilder extends RequestBuilder { + + public UpdatePinBuilder(EntityReferenceBy by, PinType type, Pin pin, int ruleId) { + super(Pin.class, "pin", "update"); + params.add("by", by); + params.add("type", type); + params.add("pin", pin); + params.add("ruleId", ruleId); + } + + public void by(String multirequestToken) { + params.add("by", multirequestToken); + } + + public void type(String multirequestToken) { + params.add("type", multirequestToken); + } + + public void ruleId(String multirequestToken) { + params.add("ruleId", multirequestToken); + } + } + + public static UpdatePinBuilder update(EntityReferenceBy by, PinType type, Pin pin) { + return update(by, type, pin, Integer.MIN_VALUE); + } + + /** + * Set the parental or purchase PIN that applies for the user or the household. + * + * @param by Reference type to filter by + * @param type The PIN type to retrieve + * @param pin PIN to set + * @param ruleId Rule ID - for PIN per rule (MediaCorp): BEO-1923 + */ + public static UpdatePinBuilder update(EntityReferenceBy by, PinType type, Pin pin, int ruleId) { + return new UpdatePinBuilder(by, type, pin, ruleId); + } + + public static class ValidatePinBuilder extends RequestBuilder { + + public ValidatePinBuilder(String pin, PinType type, int ruleId) { + super(Boolean.class, "pin", "validate"); + params.add("pin", pin); + params.add("type", type); + params.add("ruleId", ruleId); + } + + public void pin(String multirequestToken) { + params.add("pin", multirequestToken); + } + + public void type(String multirequestToken) { + params.add("type", multirequestToken); + } + + public void ruleId(String multirequestToken) { + params.add("ruleId", multirequestToken); + } + } + + public static ValidatePinBuilder validate(String pin, PinType type) { + return validate(pin, type, Integer.MIN_VALUE); + } + + /** + * Validate a purchase or parental PIN for a user. + * + * @param pin PIN to validate + * @param type The PIN type to retrieve + * @param ruleId Rule ID - for PIN per rule (MediaCorp): BEO-1923 + */ + public static ValidatePinBuilder validate(String pin, PinType type, int ruleId) { + return new ValidatePinBuilder(pin, type, ruleId); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/PlaybackProfileService.java b/KalturaClient/src/main/java/com/kaltura/client/services/PlaybackProfileService.java new file mode 100644 index 000000000..53f08f387 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/PlaybackProfileService.java @@ -0,0 +1,146 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.PlaybackProfile; +import com.kaltura.client.types.PlaybackProfileFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class PlaybackProfileService { + + public static class AddPlaybackProfileBuilder extends RequestBuilder { + + public AddPlaybackProfileBuilder(PlaybackProfile playbackProfile) { + super(PlaybackProfile.class, "playbackprofile", "add"); + params.add("playbackProfile", playbackProfile); + } + } + + /** + * Insert new Playback adapter for partner + * + * @param playbackProfile Playback adapter Object + */ + public static AddPlaybackProfileBuilder add(PlaybackProfile playbackProfile) { + return new AddPlaybackProfileBuilder(playbackProfile); + } + + public static class DeletePlaybackProfileBuilder extends RequestBuilder { + + public DeletePlaybackProfileBuilder(int id) { + super(Boolean.class, "playbackprofile", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Delete Playback adapter by Playback adapter id + * + * @param id Playback adapter identifier + */ + public static DeletePlaybackProfileBuilder delete(int id) { + return new DeletePlaybackProfileBuilder(id); + } + + public static class GenerateSharedSecretPlaybackProfileBuilder extends RequestBuilder { + + public GenerateSharedSecretPlaybackProfileBuilder(int id) { + super(PlaybackProfile.class, "playbackprofile", "generateSharedSecret"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Generate playback adapter shared secret + * + * @param id Playback adapter identifier + */ + public static GenerateSharedSecretPlaybackProfileBuilder generateSharedSecret(int id) { + return new GenerateSharedSecretPlaybackProfileBuilder(id); + } + + public static class ListPlaybackProfileBuilder extends ListResponseRequestBuilder { + + public ListPlaybackProfileBuilder(PlaybackProfileFilter filter) { + super(PlaybackProfile.class, "playbackprofile", "list"); + params.add("filter", filter); + } + } + + public static ListPlaybackProfileBuilder list() { + return list(null); + } + + /** + * Returns all playback profiles for partner : id + name + * + * @param filter Filter parameters for filtering out the result + */ + public static ListPlaybackProfileBuilder list(PlaybackProfileFilter filter) { + return new ListPlaybackProfileBuilder(filter); + } + + public static class UpdatePlaybackProfileBuilder extends RequestBuilder { + + public UpdatePlaybackProfileBuilder(int id, PlaybackProfile playbackProfile) { + super(PlaybackProfile.class, "playbackprofile", "update"); + params.add("id", id); + params.add("playbackProfile", playbackProfile); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Update Playback adapter details + * + * @param id Playback adapter identifier + * @param playbackProfile Playback adapter Object + */ + public static UpdatePlaybackProfileBuilder update(int id, PlaybackProfile playbackProfile) { + return new UpdatePlaybackProfileBuilder(id, playbackProfile); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/PpvService.java b/KalturaClient/src/main/java/com/kaltura/client/services/PpvService.java new file mode 100644 index 000000000..338600c0f --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/PpvService.java @@ -0,0 +1,153 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.FilterPager; +import com.kaltura.client.types.Ppv; +import com.kaltura.client.types.PpvFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class PpvService { + + public static class AddPpvBuilder extends RequestBuilder { + + public AddPpvBuilder(Ppv ppv) { + super(Ppv.class, "ppv", "add"); + params.add("ppv", ppv); + } + } + + /** + * Add new ppv + * + * @param ppv ppv objec + */ + public static AddPpvBuilder add(Ppv ppv) { + return new AddPpvBuilder(ppv); + } + + public static class DeletePpvBuilder extends RequestBuilder { + + public DeletePpvBuilder(long id) { + super(Boolean.class, "ppv", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Delete Ppv + * + * @param id Ppv id + */ + public static DeletePpvBuilder delete(long id) { + return new DeletePpvBuilder(id); + } + + public static class GetPpvBuilder extends RequestBuilder { + + public GetPpvBuilder(long id) { + super(Ppv.class, "ppv", "get"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Returns ppv object by internal identifier + * + * @param id ppv identifier + */ + public static GetPpvBuilder get(long id) { + return new GetPpvBuilder(id); + } + + public static class ListPpvBuilder extends ListResponseRequestBuilder { + + public ListPpvBuilder(PpvFilter filter, FilterPager pager) { + super(Ppv.class, "ppv", "list"); + params.add("filter", filter); + params.add("pager", pager); + } + } + + public static ListPpvBuilder list() { + return list(null); + } + + public static ListPpvBuilder list(PpvFilter filter) { + return list(filter, null); + } + + /** + * Returns all ppv objects + * + * @param filter Filter parameters for filtering out the result + * @param pager Page size and index + */ + public static ListPpvBuilder list(PpvFilter filter, FilterPager pager) { + return new ListPpvBuilder(filter, pager); + } + + public static class UpdatePpvBuilder extends RequestBuilder { + + public UpdatePpvBuilder(int id, Ppv ppv) { + super(Ppv.class, "ppv", "update"); + params.add("id", id); + params.add("ppv", ppv); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Update ppv + * + * @param id ppv id + * @param ppv ppv Object + */ + public static UpdatePpvBuilder update(int id, Ppv ppv) { + return new UpdatePpvBuilder(id, ppv); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/PreviewModuleService.java b/KalturaClient/src/main/java/com/kaltura/client/services/PreviewModuleService.java new file mode 100644 index 000000000..3c794d50f --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/PreviewModuleService.java @@ -0,0 +1,125 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.PreviewModule; +import com.kaltura.client.types.PreviewModuleFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class PreviewModuleService { + + public static class AddPreviewModuleBuilder extends RequestBuilder { + + public AddPreviewModuleBuilder(PreviewModule previewModule) { + super(PreviewModule.class, "previewmodule", "add"); + params.add("previewModule", previewModule); + } + } + + /** + * Insert new PreviewModule for partner + * + * @param previewModule Preview module object + */ + public static AddPreviewModuleBuilder add(PreviewModule previewModule) { + return new AddPreviewModuleBuilder(previewModule); + } + + public static class DeletePreviewModuleBuilder extends RequestBuilder { + + public DeletePreviewModuleBuilder(long id) { + super(Boolean.class, "previewmodule", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Internal API !!! Delete PreviewModule + * + * @param id PreviewModule id + */ + public static DeletePreviewModuleBuilder delete(long id) { + return new DeletePreviewModuleBuilder(id); + } + + public static class ListPreviewModuleBuilder extends ListResponseRequestBuilder { + + public ListPreviewModuleBuilder(PreviewModuleFilter filter) { + super(PreviewModule.class, "previewmodule", "list"); + params.add("filter", filter); + } + } + + public static ListPreviewModuleBuilder list() { + return list(null); + } + + /** + * Returns all PreviewModule + * + * @param filter Filter + */ + public static ListPreviewModuleBuilder list(PreviewModuleFilter filter) { + return new ListPreviewModuleBuilder(filter); + } + + public static class UpdatePreviewModuleBuilder extends RequestBuilder { + + public UpdatePreviewModuleBuilder(long id, PreviewModule previewModule) { + super(PreviewModule.class, "previewmodule", "update"); + params.add("id", id); + params.add("previewModule", previewModule); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Update PreviewModule + * + * @param id PreviewModule id + * @param previewModule PreviewModule + */ + public static UpdatePreviewModuleBuilder update(long id, PreviewModule previewModule) { + return new UpdatePreviewModuleBuilder(id, previewModule); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/PriceDetailsService.java b/KalturaClient/src/main/java/com/kaltura/client/services/PriceDetailsService.java new file mode 100644 index 000000000..3880dde61 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/PriceDetailsService.java @@ -0,0 +1,125 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.PriceDetails; +import com.kaltura.client.types.PriceDetailsFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class PriceDetailsService { + + public static class AddPriceDetailsBuilder extends RequestBuilder { + + public AddPriceDetailsBuilder(PriceDetails priceDetails) { + super(PriceDetails.class, "pricedetails", "add"); + params.add("priceDetails", priceDetails); + } + } + + /** + * Insert new PriceDetails for partner + * + * @param priceDetails PriceDetails Object + */ + public static AddPriceDetailsBuilder add(PriceDetails priceDetails) { + return new AddPriceDetailsBuilder(priceDetails); + } + + public static class DeletePriceDetailsBuilder extends RequestBuilder { + + public DeletePriceDetailsBuilder(long id) { + super(Boolean.class, "pricedetails", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Delete PriceDetails + * + * @param id PriceDetails identifier + */ + public static DeletePriceDetailsBuilder delete(long id) { + return new DeletePriceDetailsBuilder(id); + } + + public static class ListPriceDetailsBuilder extends ListResponseRequestBuilder { + + public ListPriceDetailsBuilder(PriceDetailsFilter filter) { + super(PriceDetails.class, "pricedetails", "list"); + params.add("filter", filter); + } + } + + public static ListPriceDetailsBuilder list() { + return list(null); + } + + /** + * Returns the list of available prices, can be filtered by price IDs + * + * @param filter Filter + */ + public static ListPriceDetailsBuilder list(PriceDetailsFilter filter) { + return new ListPriceDetailsBuilder(filter); + } + + public static class UpdatePriceDetailsBuilder extends RequestBuilder { + + public UpdatePriceDetailsBuilder(long id, PriceDetails priceDetails) { + super(PriceDetails.class, "pricedetails", "update"); + params.add("id", id); + params.add("priceDetails", priceDetails); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * update existing PriceDetails + * + * @param id id of priceDetails + * @param priceDetails priceDetails to update + */ + public static UpdatePriceDetailsBuilder update(long id, PriceDetails priceDetails) { + return new UpdatePriceDetailsBuilder(id, priceDetails); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/PricePlanService.java b/KalturaClient/src/main/java/com/kaltura/client/services/PricePlanService.java new file mode 100644 index 000000000..090fdade5 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/PricePlanService.java @@ -0,0 +1,125 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.PricePlan; +import com.kaltura.client.types.PricePlanFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class PricePlanService { + + public static class AddPricePlanBuilder extends RequestBuilder { + + public AddPricePlanBuilder(PricePlan pricePlan) { + super(PricePlan.class, "priceplan", "add"); + params.add("pricePlan", pricePlan); + } + } + + /** + * Insert new PricePlan + * + * @param pricePlan Price plan Object + */ + public static AddPricePlanBuilder add(PricePlan pricePlan) { + return new AddPricePlanBuilder(pricePlan); + } + + public static class DeletePricePlanBuilder extends RequestBuilder { + + public DeletePricePlanBuilder(long id) { + super(Boolean.class, "priceplan", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Delete PricePlan + * + * @param id PricePlan identifier + */ + public static DeletePricePlanBuilder delete(long id) { + return new DeletePricePlanBuilder(id); + } + + public static class ListPricePlanBuilder extends ListResponseRequestBuilder { + + public ListPricePlanBuilder(PricePlanFilter filter) { + super(PricePlan.class, "priceplan", "list"); + params.add("filter", filter); + } + } + + public static ListPricePlanBuilder list() { + return list(null); + } + + /** + * Returns a list of price plans by IDs + * + * @param filter Filter request + */ + public static ListPricePlanBuilder list(PricePlanFilter filter) { + return new ListPricePlanBuilder(filter); + } + + public static class UpdatePricePlanBuilder extends RequestBuilder { + + public UpdatePricePlanBuilder(long id, PricePlan pricePlan) { + super(PricePlan.class, "priceplan", "update"); + params.add("id", id); + params.add("pricePlan", pricePlan); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Updates a price plan + * + * @param id Price plan ID + * @param pricePlan Price plan to update + */ + public static UpdatePricePlanBuilder update(long id, PricePlan pricePlan) { + return new UpdatePricePlanBuilder(id, pricePlan); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/ProductPriceService.java b/KalturaClient/src/main/java/com/kaltura/client/services/ProductPriceService.java new file mode 100644 index 000000000..3e733be91 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/ProductPriceService.java @@ -0,0 +1,61 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.ProductPrice; +import com.kaltura.client.types.ProductPriceFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class ProductPriceService { + + public static class ListProductPriceBuilder extends ListResponseRequestBuilder { + + public ListProductPriceBuilder(ProductPriceFilter filter) { + super(ProductPrice.class, "productprice", "list"); + params.add("filter", filter); + } + } + + /** + * Returns a price and a purchase status for each subscription or/and media file, + for a given user (if passed) and with the consideration of a coupon code (if + passed). + * + * @param filter Request filter + */ + public static ListProductPriceBuilder list(ProductPriceFilter filter) { + return new ListProductPriceBuilder(filter); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/ProgramAssetGroupOfferService.java b/KalturaClient/src/main/java/com/kaltura/client/services/ProgramAssetGroupOfferService.java new file mode 100644 index 000000000..d19527ca6 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/ProgramAssetGroupOfferService.java @@ -0,0 +1,132 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.FilterPager; +import com.kaltura.client.types.ProgramAssetGroupOffer; +import com.kaltura.client.types.ProgramAssetGroupOfferFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class ProgramAssetGroupOfferService { + + public static class AddProgramAssetGroupOfferBuilder extends RequestBuilder { + + public AddProgramAssetGroupOfferBuilder(ProgramAssetGroupOffer programAssetGroupOffer) { + super(ProgramAssetGroupOffer.class, "programassetgroupoffer", "add"); + params.add("programAssetGroupOffer", programAssetGroupOffer); + } + } + + /** + * Insert new ProgramAssetGroupOffer for partner + * + * @param programAssetGroupOffer programAssetGroupOffer object + */ + public static AddProgramAssetGroupOfferBuilder add(ProgramAssetGroupOffer programAssetGroupOffer) { + return new AddProgramAssetGroupOfferBuilder(programAssetGroupOffer); + } + + public static class DeleteProgramAssetGroupOfferBuilder extends RequestBuilder { + + public DeleteProgramAssetGroupOfferBuilder(long id) { + super(Boolean.class, "programassetgroupoffer", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Delete programAssetGroupOffer + * + * @param id ProgramAssetGroupOffer id + */ + public static DeleteProgramAssetGroupOfferBuilder delete(long id) { + return new DeleteProgramAssetGroupOfferBuilder(id); + } + + public static class ListProgramAssetGroupOfferBuilder extends ListResponseRequestBuilder { + + public ListProgramAssetGroupOfferBuilder(ProgramAssetGroupOfferFilter filter, FilterPager pager) { + super(ProgramAssetGroupOffer.class, "programassetgroupoffer", "list"); + params.add("filter", filter); + params.add("pager", pager); + } + } + + public static ListProgramAssetGroupOfferBuilder list() { + return list(null); + } + + public static ListProgramAssetGroupOfferBuilder list(ProgramAssetGroupOfferFilter filter) { + return list(filter, null); + } + + /** + * Gets all Program asset group offer + * + * @param filter Filter + * @param pager Pager + */ + public static ListProgramAssetGroupOfferBuilder list(ProgramAssetGroupOfferFilter filter, FilterPager pager) { + return new ListProgramAssetGroupOfferBuilder(filter, pager); + } + + public static class UpdateProgramAssetGroupOfferBuilder extends RequestBuilder { + + public UpdateProgramAssetGroupOfferBuilder(long id, ProgramAssetGroupOffer programAssetGroupOffer) { + super(ProgramAssetGroupOffer.class, "programassetgroupoffer", "update"); + params.add("id", id); + params.add("programAssetGroupOffer", programAssetGroupOffer); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Update ProgramAssetGroupOffer + * + * @param id ProgramAssetGroupOffer id + * @param programAssetGroupOffer ProgramAssetGroupOffer + */ + public static UpdateProgramAssetGroupOfferBuilder update(long id, ProgramAssetGroupOffer programAssetGroupOffer) { + return new UpdateProgramAssetGroupOfferBuilder(id, programAssetGroupOffer); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/PurchaseSettingsService.java b/KalturaClient/src/main/java/com/kaltura/client/services/PurchaseSettingsService.java new file mode 100644 index 000000000..57301270f --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/PurchaseSettingsService.java @@ -0,0 +1,87 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.enums.EntityReferenceBy; +import com.kaltura.client.types.PurchaseSettings; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class PurchaseSettingsService { + + public static class GetPurchaseSettingsBuilder extends RequestBuilder { + + public GetPurchaseSettingsBuilder(EntityReferenceBy by) { + super(PurchaseSettings.class, "purchasesettings", "get"); + params.add("by", by); + } + + public void by(String multirequestToken) { + params.add("by", multirequestToken); + } + } + + /** + * Retrieve the purchase settings. Includes specification of where + these settings were defined – account, household or user + * + * @param by Reference type to filter by + */ + public static GetPurchaseSettingsBuilder get(EntityReferenceBy by) { + return new GetPurchaseSettingsBuilder(by); + } + + public static class UpdatePurchaseSettingsBuilder extends RequestBuilder { + + public UpdatePurchaseSettingsBuilder(EntityReferenceBy entityReference, PurchaseSettings settings) { + super(PurchaseSettings.class, "purchasesettings", "update"); + params.add("entityReference", entityReference); + params.add("settings", settings); + } + + public void entityReference(String multirequestToken) { + params.add("entityReference", multirequestToken); + } + } + + /** + * Set a purchase PIN for the household or user + * + * @param entityReference Reference type to filter by + * @param settings New settings to apply + */ + public static UpdatePurchaseSettingsBuilder update(EntityReferenceBy entityReference, PurchaseSettings settings) { + return new UpdatePurchaseSettingsBuilder(entityReference, settings); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/RatioService.java b/KalturaClient/src/main/java/com/kaltura/client/services/RatioService.java new file mode 100644 index 000000000..85c083ba3 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/RatioService.java @@ -0,0 +1,96 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.Ratio; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class RatioService { + + public static class AddRatioBuilder extends RequestBuilder { + + public AddRatioBuilder(Ratio ratio) { + super(Ratio.class, "ratio", "add"); + params.add("ratio", ratio); + } + } + + /** + * Add new group ratio + * + * @param ratio Ratio to add for the partner + */ + public static AddRatioBuilder add(Ratio ratio) { + return new AddRatioBuilder(ratio); + } + + public static class ListRatioBuilder extends ListResponseRequestBuilder { + + public ListRatioBuilder() { + super(Ratio.class, "ratio", "list"); + } + } + + /** + * Get the list of available ratios + */ + public static ListRatioBuilder list() { + return new ListRatioBuilder(); + } + + public static class UpdateRatioBuilder extends RequestBuilder { + + public UpdateRatioBuilder(long id, Ratio ratio) { + super(Ratio.class, "ratio", "update"); + params.add("id", id); + params.add("ratio", ratio); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Update group ratio&#39;s PrecisionPrecentage + * + * @param id The ratio ID + * @param ratio Ratio to update for the partner + */ + public static UpdateRatioBuilder update(long id, Ratio ratio) { + return new UpdateRatioBuilder(id, ratio); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/RecommendationProfileService.java b/KalturaClient/src/main/java/com/kaltura/client/services/RecommendationProfileService.java new file mode 100644 index 000000000..eb0f7e999 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/RecommendationProfileService.java @@ -0,0 +1,138 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.RecommendationProfile; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class RecommendationProfileService { + + public static class AddRecommendationProfileBuilder extends RequestBuilder { + + public AddRecommendationProfileBuilder(RecommendationProfile recommendationEngine) { + super(RecommendationProfile.class, "recommendationprofile", "add"); + params.add("recommendationEngine", recommendationEngine); + } + } + + /** + * Insert new recommendation engine for partner + * + * @param recommendationEngine recommendation engine Object + */ + public static AddRecommendationProfileBuilder add(RecommendationProfile recommendationEngine) { + return new AddRecommendationProfileBuilder(recommendationEngine); + } + + public static class DeleteRecommendationProfileBuilder extends RequestBuilder { + + public DeleteRecommendationProfileBuilder(int id) { + super(Boolean.class, "recommendationprofile", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Delete recommendation engine by recommendation engine id + * + * @param id recommendation engine Identifier + */ + public static DeleteRecommendationProfileBuilder delete(int id) { + return new DeleteRecommendationProfileBuilder(id); + } + + public static class GenerateSharedSecretRecommendationProfileBuilder extends RequestBuilder { + + public GenerateSharedSecretRecommendationProfileBuilder(int recommendationEngineId) { + super(RecommendationProfile.class, "recommendationprofile", "generateSharedSecret"); + params.add("recommendationEngineId", recommendationEngineId); + } + + public void recommendationEngineId(String multirequestToken) { + params.add("recommendationEngineId", multirequestToken); + } + } + + /** + * Generate recommendation engine shared secret + * + * @param recommendationEngineId recommendation engine Identifier + */ + public static GenerateSharedSecretRecommendationProfileBuilder generateSharedSecret(int recommendationEngineId) { + return new GenerateSharedSecretRecommendationProfileBuilder(recommendationEngineId); + } + + public static class ListRecommendationProfileBuilder extends ListResponseRequestBuilder { + + public ListRecommendationProfileBuilder() { + super(RecommendationProfile.class, "recommendationprofile", "list"); + } + } + + /** + * Returns all recommendation engines for partner + */ + public static ListRecommendationProfileBuilder list() { + return new ListRecommendationProfileBuilder(); + } + + public static class UpdateRecommendationProfileBuilder extends RequestBuilder { + + public UpdateRecommendationProfileBuilder(int recommendationEngineId, RecommendationProfile recommendationEngine) { + super(RecommendationProfile.class, "recommendationprofile", "update"); + params.add("recommendationEngineId", recommendationEngineId); + params.add("recommendationEngine", recommendationEngine); + } + + public void recommendationEngineId(String multirequestToken) { + params.add("recommendationEngineId", multirequestToken); + } + } + + /** + * Update recommendation engine details + * + * @param recommendationEngineId recommendation engine identifier + * @param recommendationEngine recommendation engine Object + */ + public static UpdateRecommendationProfileBuilder update(int recommendationEngineId, RecommendationProfile recommendationEngine) { + return new UpdateRecommendationProfileBuilder(recommendationEngineId, recommendationEngine); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/RecordingService.java b/KalturaClient/src/main/java/com/kaltura/client/services/RecordingService.java new file mode 100644 index 000000000..8cc4f796d --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/RecordingService.java @@ -0,0 +1,284 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.ActionResult; +import com.kaltura.client.types.FilterPager; +import com.kaltura.client.types.ImmediateRecording; +import com.kaltura.client.types.Recording; +import com.kaltura.client.types.RecordingFilter; +import com.kaltura.client.utils.request.ArrayRequestBuilder; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class RecordingService { + + public static class AddRecordingBuilder extends RequestBuilder { + + public AddRecordingBuilder(Recording recording) { + super(Recording.class, "recording", "add"); + params.add("recording", recording); + } + } + + /** + * Issue a record request for a program + * + * @param recording Recording Object + */ + public static AddRecordingBuilder add(Recording recording) { + return new AddRecordingBuilder(recording); + } + + public static class BulkdeleteRecordingBuilder extends ArrayRequestBuilder { + + public BulkdeleteRecordingBuilder(String recordingIds) { + super(ActionResult.class, "recording", "bulkdelete"); + params.add("recordingIds", recordingIds); + } + + public void recordingIds(String multirequestToken) { + params.add("recordingIds", multirequestToken); + } + } + + /** + * Delete list of user&#39;s recordings. Recording can be deleted only in + status Recorded. Possible error codes for each recording: + RecordingNotFound = 3039, RecordingStatusNotValid = 3043, Error = 1 + * + * @param recordingIds Recording identifiers. Up to 40 private copies and up to 100 shared copies can + * be deleted withing a call. + */ + public static BulkdeleteRecordingBuilder bulkdelete(String recordingIds) { + return new BulkdeleteRecordingBuilder(recordingIds); + } + + public static class CancelRecordingBuilder extends RequestBuilder { + + public CancelRecordingBuilder(long id) { + super(Recording.class, "recording", "cancel"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Cancel a previously requested recording. Cancel recording can be called for + recording in status Scheduled or Recording Only + * + * @param id Recording identifier + */ + public static CancelRecordingBuilder cancel(long id) { + return new CancelRecordingBuilder(id); + } + + public static class DeleteRecordingBuilder extends RequestBuilder { + + public DeleteRecordingBuilder(long id) { + super(Recording.class, "recording", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Delete one or more user recording(s). Delete recording can be called only for + recordings in status Recorded + * + * @param id Recording identifier + */ + public static DeleteRecordingBuilder delete(long id) { + return new DeleteRecordingBuilder(id); + } + + public static class GetRecordingBuilder extends RequestBuilder { + + public GetRecordingBuilder(long id) { + super(Recording.class, "recording", "get"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Returns recording object by internal identifier + * + * @param id Recording identifier + */ + public static GetRecordingBuilder get(long id) { + return new GetRecordingBuilder(id); + } + + public static class ImmediateRecordRecordingBuilder extends RequestBuilder { + + public ImmediateRecordRecordingBuilder(long assetId, int endPadding) { + super(ImmediateRecording.class, "recording", "immediateRecord"); + params.add("assetId", assetId); + params.add("endPadding", endPadding); + } + + public void assetId(String multirequestToken) { + params.add("assetId", multirequestToken); + } + + public void endPadding(String multirequestToken) { + params.add("endPadding", multirequestToken); + } + } + + public static ImmediateRecordRecordingBuilder immediateRecord(long assetId) { + return immediateRecord(assetId, Integer.MIN_VALUE); + } + + /** + * Immediate Record + * + * @param assetId asset identifier + * @param endPadding end padding offset + */ + public static ImmediateRecordRecordingBuilder immediateRecord(long assetId, int endPadding) { + return new ImmediateRecordRecordingBuilder(assetId, endPadding); + } + + public static class ListRecordingBuilder extends ListResponseRequestBuilder { + + public ListRecordingBuilder(RecordingFilter filter, FilterPager pager) { + super(Recording.class, "recording", "list"); + params.add("filter", filter); + params.add("pager", pager); + } + } + + public static ListRecordingBuilder list() { + return list(null); + } + + public static ListRecordingBuilder list(RecordingFilter filter) { + return list(filter, null); + } + + /** + * Return a list of recordings for the household with optional filter by status and + KSQL. + * + * @param filter Filter parameters for filtering out the result + * @param pager Page size and index + */ + public static ListRecordingBuilder list(RecordingFilter filter, FilterPager pager) { + return new ListRecordingBuilder(filter, pager); + } + + public static class ProtectRecordingBuilder extends RequestBuilder { + + public ProtectRecordingBuilder(long id) { + super(Recording.class, "recording", "protect"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Deprecated, please use recording.update instead Protects an + existing recording from the cleanup process for the defined protection period + * + * @param id Recording identifier + */ + public static ProtectRecordingBuilder protect(long id) { + return new ProtectRecordingBuilder(id); + } + + public static class StopRecordingBuilder extends RequestBuilder { + + public StopRecordingBuilder(long assetId, long id) { + super(Recording.class, "recording", "stop"); + params.add("assetId", assetId); + params.add("id", id); + } + + public void assetId(String multirequestToken) { + params.add("assetId", multirequestToken); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Stop ongoing household recording + * + * @param assetId asset identifier + * @param id household recording identifier + */ + public static StopRecordingBuilder stop(long assetId, long id) { + return new StopRecordingBuilder(assetId, id); + } + + public static class UpdateRecordingBuilder extends RequestBuilder { + + public UpdateRecordingBuilder(long id, Recording recording) { + super(Recording.class, "recording", "update"); + params.add("id", id); + params.add("recording", recording); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Update an existing recording with is protected field + * + * @param id recording identifier + * @param recording recording to update + */ + public static UpdateRecordingBuilder update(long id, Recording recording) { + return new UpdateRecordingBuilder(id, recording); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/RegionService.java b/KalturaClient/src/main/java/com/kaltura/client/services/RegionService.java new file mode 100644 index 000000000..91a7924ed --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/RegionService.java @@ -0,0 +1,181 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.BaseRegionFilter; +import com.kaltura.client.types.FilterPager; +import com.kaltura.client.types.Region; +import com.kaltura.client.types.RegionChannelNumber; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.NullRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.List; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class RegionService { + + public static class AddRegionBuilder extends RequestBuilder { + + public AddRegionBuilder(Region region) { + super(Region.class, "region", "add"); + params.add("region", region); + } + } + + /** + * Adds a new region for partner + * + * @param region Region to add + */ + public static AddRegionBuilder add(Region region) { + return new AddRegionBuilder(region); + } + + public static class LinearchannelbulkaddRegionBuilder extends RequestBuilder { + + public LinearchannelbulkaddRegionBuilder(long linearChannelId, List regionChannelNumbers) { + super(Boolean.class, "region", "linearchannelbulkadd"); + params.add("linearChannelId", linearChannelId); + params.add("regionChannelNumbers", regionChannelNumbers); + } + + public void linearChannelId(String multirequestToken) { + params.add("linearChannelId", multirequestToken); + } + } + + /** + * Adds a linear channel to the list of regions. + * + * @param linearChannelId The identifier of the linear channel + * @param regionChannelNumbers List of regions and number of linear channel in it. + */ + public static LinearchannelbulkaddRegionBuilder linearchannelbulkadd(long linearChannelId, List regionChannelNumbers) { + return new LinearchannelbulkaddRegionBuilder(linearChannelId, regionChannelNumbers); + } + + public static class LinearchannelbulkdeleteRegionBuilder extends RequestBuilder { + + public LinearchannelbulkdeleteRegionBuilder(long linearChannelId, String regionIds) { + super(Boolean.class, "region", "linearchannelbulkdelete"); + params.add("linearChannelId", linearChannelId); + params.add("regionIds", regionIds); + } + + public void linearChannelId(String multirequestToken) { + params.add("linearChannelId", multirequestToken); + } + + public void regionIds(String multirequestToken) { + params.add("regionIds", multirequestToken); + } + } + + /** + * Deletes a linear channel from the list of regions. + * + * @param linearChannelId The identifier of the linear channel + * @param regionIds List of identifiers of regions. + */ + public static LinearchannelbulkdeleteRegionBuilder linearchannelbulkdelete(long linearChannelId, String regionIds) { + return new LinearchannelbulkdeleteRegionBuilder(linearChannelId, regionIds); + } + + public static class DeleteRegionBuilder extends NullRequestBuilder { + + public DeleteRegionBuilder(int id) { + super("region", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Delete an existing region + * + * @param id Region ID to delete + */ + public static DeleteRegionBuilder delete(int id) { + return new DeleteRegionBuilder(id); + } + + public static class ListRegionBuilder extends ListResponseRequestBuilder { + + public ListRegionBuilder(BaseRegionFilter filter, FilterPager pager) { + super(Region.class, "region", "list"); + params.add("filter", filter); + params.add("pager", pager); + } + } + + public static ListRegionBuilder list(BaseRegionFilter filter) { + return list(filter, null); + } + + /** + * Returns all regions for the partner + * + * @param filter Regions filter + * @param pager Paging the request + */ + public static ListRegionBuilder list(BaseRegionFilter filter, FilterPager pager) { + return new ListRegionBuilder(filter, pager); + } + + public static class UpdateRegionBuilder extends RequestBuilder { + + public UpdateRegionBuilder(int id, Region region) { + super(Region.class, "region", "update"); + params.add("id", id); + params.add("region", region); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Update an existing region + * + * @param id Region ID to update + * @param region Region to update + */ + public static UpdateRegionBuilder update(int id, Region region) { + return new UpdateRegionBuilder(id, region); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/RegistrySettingsService.java b/KalturaClient/src/main/java/com/kaltura/client/services/RegistrySettingsService.java new file mode 100644 index 000000000..b45a36dde --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/RegistrySettingsService.java @@ -0,0 +1,55 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.RegistrySettings; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class RegistrySettingsService { + + public static class ListRegistrySettingsBuilder extends ListResponseRequestBuilder { + + public ListRegistrySettingsBuilder() { + super(RegistrySettings.class, "registrysettings", "list"); + } + } + + /** + * Retrieve the registry settings. + */ + public static ListRegistrySettingsBuilder list() { + return new ListRegistrySettingsBuilder(); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/ReminderService.java b/KalturaClient/src/main/java/com/kaltura/client/services/ReminderService.java new file mode 100644 index 000000000..c4be8aeb9 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/ReminderService.java @@ -0,0 +1,152 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.enums.ReminderType; +import com.kaltura.client.types.FilterPager; +import com.kaltura.client.types.Reminder; +import com.kaltura.client.types.ReminderFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.NullRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class ReminderService { + + public static class AddReminderBuilder extends RequestBuilder { + + public AddReminderBuilder(Reminder reminder) { + super(Reminder.class, "reminder", "add"); + params.add("reminder", reminder); + } + } + + /** + * Add a new future reminder + * + * @param reminder The reminder to be added. + */ + public static AddReminderBuilder add(Reminder reminder) { + return new AddReminderBuilder(reminder); + } + + public static class DeleteReminderBuilder extends RequestBuilder { + + public DeleteReminderBuilder(long id, ReminderType type) { + super(Boolean.class, "reminder", "delete"); + params.add("id", id); + params.add("type", type); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + + public void type(String multirequestToken) { + params.add("type", multirequestToken); + } + } + + /** + * Delete a reminder. Reminder cannot be delete while being sent. + * + * @param id Id of the reminder. + * @param type Reminder type. + */ + public static DeleteReminderBuilder delete(long id, ReminderType type) { + return new DeleteReminderBuilder(id, type); + } + + public static class DeleteWithTokenReminderBuilder extends NullRequestBuilder { + + public DeleteWithTokenReminderBuilder(long id, ReminderType type, String token, int partnerId) { + super("reminder", "deleteWithToken"); + params.add("id", id); + params.add("type", type); + params.add("token", token); + params.add("partnerId", partnerId); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + + public void type(String multirequestToken) { + params.add("type", multirequestToken); + } + + public void token(String multirequestToken) { + params.add("token", multirequestToken); + } + + public void partnerId(String multirequestToken) { + params.add("partnerId", multirequestToken); + } + } + + /** + * Delete a reminder. Reminder cannot be delete while being sent. + * + * @param id Id of the reminder. + * @param type Reminder type. + * @param token User's token identifier + * @param partnerId Partner identifier + */ + public static DeleteWithTokenReminderBuilder deleteWithToken(long id, ReminderType type, String token, int partnerId) { + return new DeleteWithTokenReminderBuilder(id, type, token, partnerId); + } + + public static class ListReminderBuilder extends ListResponseRequestBuilder { + + public ListReminderBuilder(ReminderFilter filter, FilterPager pager) { + super(Reminder.class, "reminder", "list"); + params.add("filter", filter); + params.add("pager", pager); + } + } + + public static ListReminderBuilder list(ReminderFilter filter) { + return list(filter, null); + } + + /** + * Return a list of reminders with optional filter by KSQL. + * + * @param filter Filter object + * @param pager Paging the request + */ + public static ListReminderBuilder list(ReminderFilter filter, FilterPager pager) { + return new ListReminderBuilder(filter, pager); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/ReportService.java b/KalturaClient/src/main/java/com/kaltura/client/services/ReportService.java new file mode 100644 index 000000000..1f48abfb3 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/ReportService.java @@ -0,0 +1,89 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.FilterPager; +import com.kaltura.client.types.Report; +import com.kaltura.client.types.ReportFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class ReportService { + + public static class GetReportBuilder extends RequestBuilder { + + public GetReportBuilder(String udid) { + super(Report.class, "report", "get"); + params.add("udid", udid); + } + + public void udid(String multirequestToken) { + params.add("udid", multirequestToken); + } + } + + /** + * Return a device configuration retrieval log request for a specific device. + * + * @param udid Device UDID + */ + public static GetReportBuilder get(String udid) { + return new GetReportBuilder(udid); + } + + public static class ListReportBuilder extends ListResponseRequestBuilder { + + public ListReportBuilder(ReportFilter filter, FilterPager pager) { + super(Report.class, "report", "list"); + params.add("filter", filter); + params.add("pager", pager); + } + } + + public static ListReportBuilder list(ReportFilter filter) { + return list(filter, null); + } + + /** + * Return device configurations retrieval log. Supports paging and can be filtered + with the parameter &quot;FromData&quot;. + * + * @param filter Filter option for from date (sec) + * @param pager Page size and index + */ + public static ListReportBuilder list(ReportFilter filter, FilterPager pager) { + return new ListReportBuilder(filter, pager); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/SearchHistoryService.java b/KalturaClient/src/main/java/com/kaltura/client/services/SearchHistoryService.java new file mode 100644 index 000000000..2192747e0 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/SearchHistoryService.java @@ -0,0 +1,116 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.FilterPager; +import com.kaltura.client.types.SearchHistory; +import com.kaltura.client.types.SearchHistoryFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class SearchHistoryService { + + public static class CleanSearchHistoryBuilder extends RequestBuilder { + + public CleanSearchHistoryBuilder(SearchHistoryFilter filter) { + super(Boolean.class, "searchhistory", "clean"); + params.add("filter", filter); + } + } + + public static CleanSearchHistoryBuilder clean() { + return clean(null); + } + + /** + * Clean the user’s search history + * + * @param filter Filter of search history + */ + public static CleanSearchHistoryBuilder clean(SearchHistoryFilter filter) { + return new CleanSearchHistoryBuilder(filter); + } + + public static class DeleteSearchHistoryBuilder extends RequestBuilder { + + public DeleteSearchHistoryBuilder(String id) { + super(Boolean.class, "searchhistory", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Delete a specific search history. Possible error code: 2032 - + ItemNotFound + * + * @param id ID of the search history reference as shown in the list action + */ + public static DeleteSearchHistoryBuilder delete(String id) { + return new DeleteSearchHistoryBuilder(id); + } + + public static class ListSearchHistoryBuilder extends ListResponseRequestBuilder { + + public ListSearchHistoryBuilder(SearchHistoryFilter filter, FilterPager pager) { + super(SearchHistory.class, "searchhistory", "list"); + params.add("filter", filter); + params.add("pager", pager); + } + } + + public static ListSearchHistoryBuilder list() { + return list(null); + } + + public static ListSearchHistoryBuilder list(SearchHistoryFilter filter) { + return list(filter, null); + } + + /** + * Get user&#39;s last search requests + * + * @param filter Filter parameters for filtering out the result + * @param pager Page size and index. Number of assets to return per page. Possible range 5 ≤ + * size ≥ 50. If omitted - will be set to 25. If a value > 50 provided – + * will set to 50> + */ + public static ListSearchHistoryBuilder list(SearchHistoryFilter filter, FilterPager pager) { + return new ListSearchHistoryBuilder(filter, pager); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/SearchPriorityGroupOrderedIdsSetService.java b/KalturaClient/src/main/java/com/kaltura/client/services/SearchPriorityGroupOrderedIdsSetService.java new file mode 100644 index 000000000..c66b2b3ed --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/SearchPriorityGroupOrderedIdsSetService.java @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.SearchPriorityGroupOrderedIdsSet; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class SearchPriorityGroupOrderedIdsSetService { + + public static class GetSearchPriorityGroupOrderedIdsSetBuilder extends RequestBuilder { + + public GetSearchPriorityGroupOrderedIdsSetBuilder() { + super(SearchPriorityGroupOrderedIdsSet.class, "searchprioritygrouporderedidsset", "get"); + } + } + + /** + * Return the current ordering of priority groups for the partner. + */ + public static GetSearchPriorityGroupOrderedIdsSetBuilder get() { + return new GetSearchPriorityGroupOrderedIdsSetBuilder(); + } + + public static class SetSearchPriorityGroupOrderedIdsSetBuilder extends RequestBuilder { + + public SetSearchPriorityGroupOrderedIdsSetBuilder(SearchPriorityGroupOrderedIdsSet orderedList) { + super(SearchPriorityGroupOrderedIdsSet.class, "searchprioritygrouporderedidsset", "set"); + params.add("orderedList", orderedList); + } + } + + /** + * Set the ordering of priority groups for the partner. + * + * @param orderedList List with ordered search priority groups. + */ + public static SetSearchPriorityGroupOrderedIdsSetBuilder set(SearchPriorityGroupOrderedIdsSet orderedList) { + return new SetSearchPriorityGroupOrderedIdsSetBuilder(orderedList); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/SearchPriorityGroupService.java b/KalturaClient/src/main/java/com/kaltura/client/services/SearchPriorityGroupService.java new file mode 100644 index 000000000..79648b4e4 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/SearchPriorityGroupService.java @@ -0,0 +1,128 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.FilterPager; +import com.kaltura.client.types.SearchPriorityGroup; +import com.kaltura.client.types.SearchPriorityGroupFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class SearchPriorityGroupService { + + public static class AddSearchPriorityGroupBuilder extends RequestBuilder { + + public AddSearchPriorityGroupBuilder(SearchPriorityGroup searchPriorityGroup) { + super(SearchPriorityGroup.class, "searchprioritygroup", "add"); + params.add("searchPriorityGroup", searchPriorityGroup); + } + } + + /** + * Add a new priority group. + * + * @param searchPriorityGroup Search priority group. + */ + public static AddSearchPriorityGroupBuilder add(SearchPriorityGroup searchPriorityGroup) { + return new AddSearchPriorityGroupBuilder(searchPriorityGroup); + } + + public static class DeleteSearchPriorityGroupBuilder extends RequestBuilder { + + public DeleteSearchPriorityGroupBuilder(int id) { + super(Boolean.class, "searchprioritygroup", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Delete the existing priority group by its identifier. + * + * @param id The identifier of a search priority group. + */ + public static DeleteSearchPriorityGroupBuilder delete(int id) { + return new DeleteSearchPriorityGroupBuilder(id); + } + + public static class ListSearchPriorityGroupBuilder extends ListResponseRequestBuilder { + + public ListSearchPriorityGroupBuilder(SearchPriorityGroupFilter filter, FilterPager pager) { + super(SearchPriorityGroup.class, "searchprioritygroup", "list"); + params.add("filter", filter); + params.add("pager", pager); + } + } + + public static ListSearchPriorityGroupBuilder list(SearchPriorityGroupFilter filter) { + return list(filter, null); + } + + /** + * Gets list of search priority groups which meet the filter criteria. + * + * @param filter Filter. + * @param pager Page size and index. + */ + public static ListSearchPriorityGroupBuilder list(SearchPriorityGroupFilter filter, FilterPager pager) { + return new ListSearchPriorityGroupBuilder(filter, pager); + } + + public static class UpdateSearchPriorityGroupBuilder extends RequestBuilder { + + public UpdateSearchPriorityGroupBuilder(long id, SearchPriorityGroup searchPriorityGroup) { + super(SearchPriorityGroup.class, "searchprioritygroup", "update"); + params.add("id", id); + params.add("searchPriorityGroup", searchPriorityGroup); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Update an existing priority group. + * + * @param id Identifier of search priority group. + * @param searchPriorityGroup Search priority group. + */ + public static UpdateSearchPriorityGroupBuilder update(long id, SearchPriorityGroup searchPriorityGroup) { + return new UpdateSearchPriorityGroupBuilder(id, searchPriorityGroup); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/SegmentationTypeService.java b/KalturaClient/src/main/java/com/kaltura/client/services/SegmentationTypeService.java new file mode 100644 index 000000000..e2e7623e5 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/SegmentationTypeService.java @@ -0,0 +1,170 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.BaseSegmentationTypeFilter; +import com.kaltura.client.types.FilterPager; +import com.kaltura.client.types.SegmentationPartnerConfiguration; +import com.kaltura.client.types.SegmentationType; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class SegmentationTypeService { + + public static class AddSegmentationTypeBuilder extends RequestBuilder { + + public AddSegmentationTypeBuilder(SegmentationType segmentationType) { + super(SegmentationType.class, "segmentationtype", "add"); + params.add("segmentationType", segmentationType); + } + } + + /** + * Adds a new segmentation type to the system + * + * @param segmentationType The segmentation type to be added + */ + public static AddSegmentationTypeBuilder add(SegmentationType segmentationType) { + return new AddSegmentationTypeBuilder(segmentationType); + } + + public static class DeleteSegmentationTypeBuilder extends RequestBuilder { + + public DeleteSegmentationTypeBuilder(long id) { + super(Boolean.class, "segmentationtype", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Delete a segmentation type from the system + * + * @param id Segmentation type id + */ + public static DeleteSegmentationTypeBuilder delete(long id) { + return new DeleteSegmentationTypeBuilder(id); + } + + public static class GetPartnerConfigurationSegmentationTypeBuilder extends RequestBuilder { + + public GetPartnerConfigurationSegmentationTypeBuilder() { + super(SegmentationPartnerConfiguration.class, "segmentationtype", "getPartnerConfiguration"); + } + } + + /** + * Gets existing partner segmentation configuration + */ + public static GetPartnerConfigurationSegmentationTypeBuilder getPartnerConfiguration() { + return new GetPartnerConfigurationSegmentationTypeBuilder(); + } + + public static class ListSegmentationTypeBuilder extends ListResponseRequestBuilder { + + public ListSegmentationTypeBuilder(BaseSegmentationTypeFilter filter, FilterPager pager) { + super(SegmentationType.class, "segmentationtype", "list"); + params.add("filter", filter); + params.add("pager", pager); + } + } + + public static ListSegmentationTypeBuilder list() { + return list(null); + } + + public static ListSegmentationTypeBuilder list(BaseSegmentationTypeFilter filter) { + return list(filter, null); + } + + /** + * Lists all segmentation types in group + * + * @param filter Segmentation type filter - basically empty + * @param pager Simple pager + */ + public static ListSegmentationTypeBuilder list(BaseSegmentationTypeFilter filter, FilterPager pager) { + return new ListSegmentationTypeBuilder(filter, pager); + } + + public static class UpdateSegmentationTypeBuilder extends RequestBuilder { + + public UpdateSegmentationTypeBuilder(long segmentationTypeId, SegmentationType segmentationType) { + super(SegmentationType.class, "segmentationtype", "update"); + params.add("segmentationTypeId", segmentationTypeId); + params.add("segmentationType", segmentationType); + } + + public void segmentationTypeId(String multirequestToken) { + params.add("segmentationTypeId", multirequestToken); + } + } + + /** + * Updates an existing segmentation type + * + * @param segmentationTypeId The ID of the object that will be updated + * @param segmentationType The segmentation type to be updated + */ + public static UpdateSegmentationTypeBuilder update(long segmentationTypeId, SegmentationType segmentationType) { + return new UpdateSegmentationTypeBuilder(segmentationTypeId, segmentationType); + } + + public static class UpdatePartnerConfigurationSegmentationTypeBuilder extends RequestBuilder { + + public UpdatePartnerConfigurationSegmentationTypeBuilder(SegmentationPartnerConfiguration configuration) { + super(Boolean.class, "segmentationtype", "updatePartnerConfiguration"); + params.add("configuration", configuration); + } + } + + /** + * Sets partner configuration for segments configuration + * + * @param configuration 1. maxDynamicSegments - how many dynamic segments (segments with conditions) the + * operator is allowed to have. + * Displayed in the OPC as *'Maximum Number of Dynamic Segments' + * *maxCalculatedPeriod - + * the maximum number of past days to be calculated for dynamic + * segments. e.g. the last 60 days, the last 90 days etc. + * Displayed in OPC as *'Maximum of Dynamic Segments period'* + */ + public static UpdatePartnerConfigurationSegmentationTypeBuilder updatePartnerConfiguration(SegmentationPartnerConfiguration configuration) { + return new UpdatePartnerConfigurationSegmentationTypeBuilder(configuration); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/SeriesRecordingService.java b/KalturaClient/src/main/java/com/kaltura/client/services/SeriesRecordingService.java new file mode 100644 index 000000000..7619dcb59 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/SeriesRecordingService.java @@ -0,0 +1,229 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.SeriesRecording; +import com.kaltura.client.types.SeriesRecordingFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class SeriesRecordingService { + + public static class AddSeriesRecordingBuilder extends RequestBuilder { + + public AddSeriesRecordingBuilder(SeriesRecording recording) { + super(SeriesRecording.class, "seriesrecording", "add"); + params.add("recording", recording); + } + } + + /** + * Issue a record request for a complete season or series + * + * @param recording SeriesRecording Object + */ + public static AddSeriesRecordingBuilder add(SeriesRecording recording) { + return new AddSeriesRecordingBuilder(recording); + } + + public static class CancelSeriesRecordingBuilder extends RequestBuilder { + + public CancelSeriesRecordingBuilder(long id) { + super(SeriesRecording.class, "seriesrecording", "cancel"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Cancel a previously requested series recording. Cancel series recording can be + called for recording in status Scheduled or Recording Only + * + * @param id Series Recording identifier + */ + public static CancelSeriesRecordingBuilder cancel(long id) { + return new CancelSeriesRecordingBuilder(id); + } + + public static class CancelByEpgIdSeriesRecordingBuilder extends RequestBuilder { + + public CancelByEpgIdSeriesRecordingBuilder(long id, long epgId) { + super(SeriesRecording.class, "seriesrecording", "cancelByEpgId"); + params.add("id", id); + params.add("epgId", epgId); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + + public void epgId(String multirequestToken) { + params.add("epgId", multirequestToken); + } + } + + /** + * Cancel EPG recording that was recorded as part of series + * + * @param id Series Recording identifier + * @param epgId epg program identifier + */ + public static CancelByEpgIdSeriesRecordingBuilder cancelByEpgId(long id, long epgId) { + return new CancelByEpgIdSeriesRecordingBuilder(id, epgId); + } + + public static class CancelBySeasonNumberSeriesRecordingBuilder extends RequestBuilder { + + public CancelBySeasonNumberSeriesRecordingBuilder(long id, long seasonNumber) { + super(SeriesRecording.class, "seriesrecording", "cancelBySeasonNumber"); + params.add("id", id); + params.add("seasonNumber", seasonNumber); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + + public void seasonNumber(String multirequestToken) { + params.add("seasonNumber", multirequestToken); + } + } + + /** + * Cancel Season recording epgs that was recorded as part of series + * + * @param id Series Recording identifier + * @param seasonNumber Season Number + */ + public static CancelBySeasonNumberSeriesRecordingBuilder cancelBySeasonNumber(long id, long seasonNumber) { + return new CancelBySeasonNumberSeriesRecordingBuilder(id, seasonNumber); + } + + public static class DeleteSeriesRecordingBuilder extends RequestBuilder { + + public DeleteSeriesRecordingBuilder(long id) { + super(SeriesRecording.class, "seriesrecording", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Delete series recording(s). Delete series recording can be called recordings in + any status + * + * @param id Series Recording identifier + */ + public static DeleteSeriesRecordingBuilder delete(long id) { + return new DeleteSeriesRecordingBuilder(id); + } + + public static class DeleteBySeasonNumberSeriesRecordingBuilder extends RequestBuilder { + + public DeleteBySeasonNumberSeriesRecordingBuilder(long id, int seasonNumber) { + super(SeriesRecording.class, "seriesrecording", "deleteBySeasonNumber"); + params.add("id", id); + params.add("seasonNumber", seasonNumber); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + + public void seasonNumber(String multirequestToken) { + params.add("seasonNumber", multirequestToken); + } + } + + /** + * Delete Season recording epgs that was recorded as part of series + * + * @param id Series Recording identifier + * @param seasonNumber Season Number + */ + public static DeleteBySeasonNumberSeriesRecordingBuilder deleteBySeasonNumber(long id, int seasonNumber) { + return new DeleteBySeasonNumberSeriesRecordingBuilder(id, seasonNumber); + } + + public static class ListSeriesRecordingBuilder extends ListResponseRequestBuilder { + + public ListSeriesRecordingBuilder(SeriesRecordingFilter filter) { + super(SeriesRecording.class, "seriesrecording", "list"); + params.add("filter", filter); + } + } + + public static ListSeriesRecordingBuilder list() { + return list(null); + } + + /** + * Return a list of series recordings for the household with optional filter by + status and KSQL. + * + * @param filter Filter parameters for filtering out the result - support order by only - + * START_DATE_ASC, START_DATE_DESC, ID_ASC,ID_DESC,SERIES_ID_ASC, SERIES_ID_DESC + */ + public static ListSeriesRecordingBuilder list(SeriesRecordingFilter filter) { + return new ListSeriesRecordingBuilder(filter); + } + + public static class RebookCanceledByEpgIdSeriesRecordingBuilder extends RequestBuilder { + + public RebookCanceledByEpgIdSeriesRecordingBuilder(long epgId) { + super(SeriesRecording.class, "seriesrecording", "rebookCanceledByEpgId"); + params.add("epgId", epgId); + } + + public void epgId(String multirequestToken) { + params.add("epgId", multirequestToken); + } + } + + /** + * Enable EPG recording that was canceled as part of series + * + * @param epgId EPG program identifies + */ + public static RebookCanceledByEpgIdSeriesRecordingBuilder rebookCanceledByEpgId(long epgId) { + return new RebookCanceledByEpgIdSeriesRecordingBuilder(epgId); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/SessionService.java b/KalturaClient/src/main/java/com/kaltura/client/services/SessionService.java new file mode 100644 index 000000000..e5db7b211 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/SessionService.java @@ -0,0 +1,103 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.LoginSession; +import com.kaltura.client.types.Session; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class SessionService { + + public static class GetSessionBuilder extends RequestBuilder { + + public GetSessionBuilder(String session) { + super(Session.class, "session", "get"); + params.add("session", session); + } + + public void session(String multirequestToken) { + params.add("session", multirequestToken); + } + } + + public static GetSessionBuilder get() { + return get(null); + } + + /** + * Parses KS + * + * @param session Additional KS to parse, if not passed the user's KS will be parsed + */ + public static GetSessionBuilder get(String session) { + return new GetSessionBuilder(session); + } + + public static class RevokeSessionBuilder extends RequestBuilder { + + public RevokeSessionBuilder() { + super(Boolean.class, "session", "revoke"); + } + } + + /** + * Revokes all the sessions (KS) of a given user + */ + public static RevokeSessionBuilder revoke() { + return new RevokeSessionBuilder(); + } + + public static class SwitchUserSessionBuilder extends RequestBuilder { + + public SwitchUserSessionBuilder(String userIdToSwitch) { + super(LoginSession.class, "session", "switchUser"); + params.add("userIdToSwitch", userIdToSwitch); + } + + public void userIdToSwitch(String multirequestToken) { + params.add("userIdToSwitch", multirequestToken); + } + } + + /** + * Switching the user in the session by generating a new session for a new user + within the same household + * + * @param userIdToSwitch The identifier of the user to change + */ + public static SwitchUserSessionBuilder switchUser(String userIdToSwitch) { + return new SwitchUserSessionBuilder(userIdToSwitch); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/SmsAdapterProfileService.java b/KalturaClient/src/main/java/com/kaltura/client/services/SmsAdapterProfileService.java new file mode 100644 index 000000000..bcafb032c --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/SmsAdapterProfileService.java @@ -0,0 +1,168 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.SmsAdapterProfile; +import com.kaltura.client.types.SmsAdapterProfileFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.NullRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class SmsAdapterProfileService { + + public static class AddSmsAdapterProfileBuilder extends RequestBuilder { + + public AddSmsAdapterProfileBuilder(SmsAdapterProfile objectToAdd) { + super(SmsAdapterProfile.class, "smsadapterprofile", "add"); + params.add("objectToAdd", objectToAdd); + } + } + + /** + * SmsAdapterProfile add + * + * @param objectToAdd SmsAdapterProfile details + */ + public static AddSmsAdapterProfileBuilder add(SmsAdapterProfile objectToAdd) { + return new AddSmsAdapterProfileBuilder(objectToAdd); + } + + public static class DeleteSmsAdapterProfileBuilder extends NullRequestBuilder { + + public DeleteSmsAdapterProfileBuilder(long id) { + super("smsadapterprofile", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Remove SmsAdapterProfile + * + * @param id SmsAdapterProfile identifier + */ + public static DeleteSmsAdapterProfileBuilder delete(long id) { + return new DeleteSmsAdapterProfileBuilder(id); + } + + public static class GenerateSharedSecretSmsAdapterProfileBuilder extends RequestBuilder { + + public GenerateSharedSecretSmsAdapterProfileBuilder(int smsAdapterId) { + super(SmsAdapterProfile.class, "smsadapterprofile", "generateSharedSecret"); + params.add("smsAdapterId", smsAdapterId); + } + + public void smsAdapterId(String multirequestToken) { + params.add("smsAdapterId", multirequestToken); + } + } + + /** + * Generate Sms Adapter shared secret + * + * @param smsAdapterId Sms Adapter identifier + */ + public static GenerateSharedSecretSmsAdapterProfileBuilder generateSharedSecret(int smsAdapterId) { + return new GenerateSharedSecretSmsAdapterProfileBuilder(smsAdapterId); + } + + public static class GetSmsAdapterProfileBuilder extends RequestBuilder { + + public GetSmsAdapterProfileBuilder(long id) { + super(SmsAdapterProfile.class, "smsadapterprofile", "get"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Get SmsAdapterProfile + * + * @param id SmsAdapterProfile identifier + */ + public static GetSmsAdapterProfileBuilder get(long id) { + return new GetSmsAdapterProfileBuilder(id); + } + + public static class ListSmsAdapterProfileBuilder extends ListResponseRequestBuilder { + + public ListSmsAdapterProfileBuilder(SmsAdapterProfileFilter filter) { + super(SmsAdapterProfile.class, "smsadapterprofile", "list"); + params.add("filter", filter); + } + } + + public static ListSmsAdapterProfileBuilder list() { + return list(null); + } + + /** + * Gets all SmsAdapterProfile items + * + * @param filter Filter + */ + public static ListSmsAdapterProfileBuilder list(SmsAdapterProfileFilter filter) { + return new ListSmsAdapterProfileBuilder(filter); + } + + public static class UpdateSmsAdapterProfileBuilder extends RequestBuilder { + + public UpdateSmsAdapterProfileBuilder(long id, SmsAdapterProfile objectToUpdate) { + super(SmsAdapterProfile.class, "smsadapterprofile", "update"); + params.add("id", id); + params.add("objectToUpdate", objectToUpdate); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * SmsAdapterProfile update + * + * @param id SmsAdapterProfile identifier + * @param objectToUpdate SmsAdapterProfile details + */ + public static UpdateSmsAdapterProfileBuilder update(long id, SmsAdapterProfile objectToUpdate) { + return new UpdateSmsAdapterProfileBuilder(id, objectToUpdate); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/SocialActionService.java b/KalturaClient/src/main/java/com/kaltura/client/services/SocialActionService.java new file mode 100644 index 000000000..f7831f5d3 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/SocialActionService.java @@ -0,0 +1,108 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.FilterPager; +import com.kaltura.client.types.NetworkActionStatus; +import com.kaltura.client.types.SocialAction; +import com.kaltura.client.types.SocialActionFilter; +import com.kaltura.client.types.UserSocialActionResponse; +import com.kaltura.client.utils.request.ArrayRequestBuilder; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class SocialActionService { + + public static class AddSocialActionBuilder extends RequestBuilder { + + public AddSocialActionBuilder(SocialAction socialAction) { + super(UserSocialActionResponse.class, "socialaction", "add"); + params.add("socialAction", socialAction); + } + } + + /** + * Insert new user social action + * + * @param socialAction social Action Object + */ + public static AddSocialActionBuilder add(SocialAction socialAction) { + return new AddSocialActionBuilder(socialAction); + } + + public static class DeleteSocialActionBuilder extends ArrayRequestBuilder { + + public DeleteSocialActionBuilder(String id) { + super(NetworkActionStatus.class, "socialaction", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * delete user social action + * + * @param id social Action Id + */ + public static DeleteSocialActionBuilder delete(String id) { + return new DeleteSocialActionBuilder(id); + } + + public static class ListSocialActionBuilder extends ListResponseRequestBuilder { + + public ListSocialActionBuilder(SocialActionFilter filter, FilterPager pager) { + super(SocialAction.class, "socialaction", "list"); + params.add("filter", filter); + params.add("pager", pager); + } + } + + public static ListSocialActionBuilder list(SocialActionFilter filter) { + return list(filter, null); + } + + /** + * Get list of user social actions + * + * @param filter social action filter + * @param pager pager + */ + public static ListSocialActionBuilder list(SocialActionFilter filter, FilterPager pager) { + return new ListSocialActionBuilder(filter, pager); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/SocialCommentService.java b/KalturaClient/src/main/java/com/kaltura/client/services/SocialCommentService.java new file mode 100644 index 000000000..a290c581f --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/SocialCommentService.java @@ -0,0 +1,66 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.FilterPager; +import com.kaltura.client.types.SocialComment; +import com.kaltura.client.types.SocialCommentFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class SocialCommentService { + + public static class ListSocialCommentBuilder extends ListResponseRequestBuilder { + + public ListSocialCommentBuilder(SocialCommentFilter filter, FilterPager pager) { + super(SocialComment.class, "socialcomment", "list"); + params.add("filter", filter); + params.add("pager", pager); + } + } + + public static ListSocialCommentBuilder list(SocialCommentFilter filter) { + return list(filter, null); + } + + /** + * Get a list of all social comments filtered by asset ID and social platform + * + * @param filter Country filter + * @param pager Pager + */ + public static ListSocialCommentBuilder list(SocialCommentFilter filter, FilterPager pager) { + return new ListSocialCommentBuilder(filter, pager); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/SocialFriendActivityService.java b/KalturaClient/src/main/java/com/kaltura/client/services/SocialFriendActivityService.java new file mode 100644 index 000000000..c920b3d14 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/SocialFriendActivityService.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.FilterPager; +import com.kaltura.client.types.SocialFriendActivity; +import com.kaltura.client.types.SocialFriendActivityFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class SocialFriendActivityService { + + public static class ListSocialFriendActivityBuilder extends ListResponseRequestBuilder { + + public ListSocialFriendActivityBuilder(SocialFriendActivityFilter filter, FilterPager pager) { + super(SocialFriendActivity.class, "socialfriendactivity", "list"); + params.add("filter", filter); + params.add("pager", pager); + } + } + + public static ListSocialFriendActivityBuilder list() { + return list(null); + } + + public static ListSocialFriendActivityBuilder list(SocialFriendActivityFilter filter) { + return list(filter, null); + } + + /** + * Get a list of the social friends activity for a user + * + * @param filter Social friend activity filter + * @param pager Pager + */ + public static ListSocialFriendActivityBuilder list(SocialFriendActivityFilter filter, FilterPager pager) { + return new ListSocialFriendActivityBuilder(filter, pager); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/SocialService.java b/KalturaClient/src/main/java/com/kaltura/client/services/SocialService.java new file mode 100644 index 000000000..5ccab1b26 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/SocialService.java @@ -0,0 +1,281 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.enums.SocialNetwork; +import com.kaltura.client.types.LoginResponse; +import com.kaltura.client.types.Social; +import com.kaltura.client.types.SocialConfig; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class SocialService { + + public static class GetSocialBuilder extends RequestBuilder { + + public GetSocialBuilder(SocialNetwork type) { + super(Social.class, "social", "get"); + params.add("type", type); + } + + public void type(String multirequestToken) { + params.add("type", multirequestToken); + } + } + + /** + * List social accounts + * + * @param type Social network type + */ + public static GetSocialBuilder get(SocialNetwork type) { + return new GetSocialBuilder(type); + } + + public static class GetByTokenSocialBuilder extends RequestBuilder { + + public GetByTokenSocialBuilder(int partnerId, String token, SocialNetwork type) { + super(Social.class, "social", "getByToken"); + params.add("partnerId", partnerId); + params.add("token", token); + params.add("type", type); + } + + public void partnerId(String multirequestToken) { + params.add("partnerId", multirequestToken); + } + + public void token(String multirequestToken) { + params.add("token", multirequestToken); + } + + public void type(String multirequestToken) { + params.add("type", multirequestToken); + } + } + + /** + * Return the user object with social information according to a provided external + social token + * + * @param partnerId Partner identifier + * @param token Social token + * @param type Social network type + */ + public static GetByTokenSocialBuilder getByToken(int partnerId, String token, SocialNetwork type) { + return new GetByTokenSocialBuilder(partnerId, token, type); + } + + public static class GetConfigurationSocialBuilder extends RequestBuilder { + + public GetConfigurationSocialBuilder(SocialNetwork type, int partnerId) { + super(SocialConfig.class, "social", "getConfiguration"); + params.add("type", type); + params.add("partnerId", partnerId); + } + + public void type(String multirequestToken) { + params.add("type", multirequestToken); + } + + public void partnerId(String multirequestToken) { + params.add("partnerId", multirequestToken); + } + } + + public static GetConfigurationSocialBuilder getConfiguration(SocialNetwork type) { + return getConfiguration(type, Integer.MIN_VALUE); + } + + /** + * Retrieve the social network’s configuration information + * + * @param type Social network type + * @param partnerId Partner identifier + */ + public static GetConfigurationSocialBuilder getConfiguration(SocialNetwork type, int partnerId) { + return new GetConfigurationSocialBuilder(type, partnerId); + } + + public static class LoginSocialBuilder extends RequestBuilder { + + public LoginSocialBuilder(int partnerId, String token, SocialNetwork type, String udid) { + super(LoginResponse.class, "social", "login"); + params.add("partnerId", partnerId); + params.add("token", token); + params.add("type", type); + params.add("udid", udid); + } + + public void partnerId(String multirequestToken) { + params.add("partnerId", multirequestToken); + } + + public void token(String multirequestToken) { + params.add("token", multirequestToken); + } + + public void type(String multirequestToken) { + params.add("type", multirequestToken); + } + + public void udid(String multirequestToken) { + params.add("udid", multirequestToken); + } + } + + public static LoginSocialBuilder login(int partnerId, String token, SocialNetwork type) { + return login(partnerId, token, type, null); + } + + /** + * Login using social token + * + * @param partnerId Partner identifier + * @param token Social token + * @param type Social network + * @param udid Device UDID + */ + public static LoginSocialBuilder login(int partnerId, String token, SocialNetwork type, String udid) { + return new LoginSocialBuilder(partnerId, token, type, udid); + } + + public static class MergeSocialBuilder extends RequestBuilder { + + public MergeSocialBuilder(String token, SocialNetwork type) { + super(Social.class, "social", "merge"); + params.add("token", token); + params.add("type", type); + } + + public void token(String multirequestToken) { + params.add("token", multirequestToken); + } + + public void type(String multirequestToken) { + params.add("type", multirequestToken); + } + } + + /** + * Connect an existing user in the system to an external social network user + * + * @param token social token + * @param type Social network type + */ + public static MergeSocialBuilder merge(String token, SocialNetwork type) { + return new MergeSocialBuilder(token, type); + } + + public static class RegisterSocialBuilder extends RequestBuilder { + + public RegisterSocialBuilder(int partnerId, String token, SocialNetwork type, String email) { + super(Social.class, "social", "register"); + params.add("partnerId", partnerId); + params.add("token", token); + params.add("type", type); + params.add("email", email); + } + + public void partnerId(String multirequestToken) { + params.add("partnerId", multirequestToken); + } + + public void token(String multirequestToken) { + params.add("token", multirequestToken); + } + + public void type(String multirequestToken) { + params.add("type", multirequestToken); + } + + public void email(String multirequestToken) { + params.add("email", multirequestToken); + } + } + + public static RegisterSocialBuilder register(int partnerId, String token, SocialNetwork type) { + return register(partnerId, token, type, null); + } + + /** + * Create a new user in the system using a provided external social token + * + * @param partnerId Partner identifier + * @param token social token + * @param type Social network type + * @param email User email + */ + public static RegisterSocialBuilder register(int partnerId, String token, SocialNetwork type, String email) { + return new RegisterSocialBuilder(partnerId, token, type, email); + } + + public static class UnmergeSocialBuilder extends RequestBuilder { + + public UnmergeSocialBuilder(SocialNetwork type) { + super(Social.class, "social", "unmerge"); + params.add("type", type); + } + + public void type(String multirequestToken) { + params.add("type", multirequestToken); + } + } + + /** + * Disconnect an existing user in the system from its external social network user + * + * @param type Social network type + */ + public static UnmergeSocialBuilder unmerge(SocialNetwork type) { + return new UnmergeSocialBuilder(type); + } + + public static class UpdateConfigurationSocialBuilder extends RequestBuilder { + + public UpdateConfigurationSocialBuilder(SocialConfig configuration) { + super(SocialConfig.class, "social", "UpdateConfiguration"); + params.add("configuration", configuration); + } + } + + /** + * Set the user social network’s configuration information + * + * @param configuration The social action settings + */ + public static UpdateConfigurationSocialBuilder UpdateConfiguration(SocialConfig configuration) { + return new UpdateConfigurationSocialBuilder(configuration); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/SsoAdapterProfileService.java b/KalturaClient/src/main/java/com/kaltura/client/services/SsoAdapterProfileService.java new file mode 100644 index 000000000..2ec27f507 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/SsoAdapterProfileService.java @@ -0,0 +1,164 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.KeyValue; +import com.kaltura.client.types.SSOAdapterProfile; +import com.kaltura.client.types.SSOAdapterProfileInvoke; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.List; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class SsoAdapterProfileService { + + public static class AddSsoAdapterProfileBuilder extends RequestBuilder { + + public AddSsoAdapterProfileBuilder(SSOAdapterProfile ssoAdapter) { + super(SSOAdapterProfile.class, "ssoadapterprofile", "add"); + params.add("ssoAdapter", ssoAdapter); + } + } + + /** + * Insert new sso adapter for partner + * + * @param ssoAdapter SSO Adapter Object to be added + */ + public static AddSsoAdapterProfileBuilder add(SSOAdapterProfile ssoAdapter) { + return new AddSsoAdapterProfileBuilder(ssoAdapter); + } + + public static class DeleteSsoAdapterProfileBuilder extends RequestBuilder { + + public DeleteSsoAdapterProfileBuilder(int ssoAdapterId) { + super(Boolean.class, "ssoadapterprofile", "delete"); + params.add("ssoAdapterId", ssoAdapterId); + } + + public void ssoAdapterId(String multirequestToken) { + params.add("ssoAdapterId", multirequestToken); + } + } + + /** + * Delete sso adapters by sso adapters id + * + * @param ssoAdapterId SSO Adapter Identifier + */ + public static DeleteSsoAdapterProfileBuilder delete(int ssoAdapterId) { + return new DeleteSsoAdapterProfileBuilder(ssoAdapterId); + } + + public static class GenerateSharedSecretSsoAdapterProfileBuilder extends RequestBuilder { + + public GenerateSharedSecretSsoAdapterProfileBuilder(int ssoAdapterId) { + super(SSOAdapterProfile.class, "ssoadapterprofile", "generateSharedSecret"); + params.add("ssoAdapterId", ssoAdapterId); + } + + public void ssoAdapterId(String multirequestToken) { + params.add("ssoAdapterId", multirequestToken); + } + } + + /** + * Generate SSO Adapter shared secret + * + * @param ssoAdapterId SSO Adapter identifier + */ + public static GenerateSharedSecretSsoAdapterProfileBuilder generateSharedSecret(int ssoAdapterId) { + return new GenerateSharedSecretSsoAdapterProfileBuilder(ssoAdapterId); + } + + public static class InvokeSsoAdapterProfileBuilder extends RequestBuilder { + + public InvokeSsoAdapterProfileBuilder(String intent, List adapterData) { + super(SSOAdapterProfileInvoke.class, "ssoadapterprofile", "invoke"); + params.add("intent", intent); + params.add("adapterData", adapterData); + } + + public void intent(String multirequestToken) { + params.add("intent", multirequestToken); + } + } + + /** + * Request validation against 3rd party + * + * @param intent intent + * @param adapterData adapter Data + */ + public static InvokeSsoAdapterProfileBuilder invoke(String intent, List adapterData) { + return new InvokeSsoAdapterProfileBuilder(intent, adapterData); + } + + public static class ListSsoAdapterProfileBuilder extends ListResponseRequestBuilder { + + public ListSsoAdapterProfileBuilder() { + super(SSOAdapterProfile.class, "ssoadapterprofile", "list"); + } + } + + /** + * Returns all sso adapters for partner : id + name + */ + public static ListSsoAdapterProfileBuilder list() { + return new ListSsoAdapterProfileBuilder(); + } + + public static class UpdateSsoAdapterProfileBuilder extends RequestBuilder { + + public UpdateSsoAdapterProfileBuilder(int ssoAdapterId, SSOAdapterProfile ssoAdapter) { + super(SSOAdapterProfile.class, "ssoadapterprofile", "update"); + params.add("ssoAdapterId", ssoAdapterId); + params.add("ssoAdapter", ssoAdapter); + } + + public void ssoAdapterId(String multirequestToken) { + params.add("ssoAdapterId", multirequestToken); + } + } + + /** + * Update sso adapter details + * + * @param ssoAdapterId SSO Adapter Identifier + * @param ssoAdapter SSO Adapter Object + */ + public static UpdateSsoAdapterProfileBuilder update(int ssoAdapterId, SSOAdapterProfile ssoAdapter) { + return new UpdateSsoAdapterProfileBuilder(ssoAdapterId, ssoAdapter); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/StreamingDeviceService.java b/KalturaClient/src/main/java/com/kaltura/client/services/StreamingDeviceService.java new file mode 100644 index 000000000..1e6f72327 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/StreamingDeviceService.java @@ -0,0 +1,99 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.enums.AssetType; +import com.kaltura.client.types.StreamingDevice; +import com.kaltura.client.types.StreamingDeviceFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class StreamingDeviceService { + + public static class BookPlaybackSessionStreamingDeviceBuilder extends RequestBuilder { + + public BookPlaybackSessionStreamingDeviceBuilder(String fileId, String assetId, AssetType assetType) { + super(Boolean.class, "streamingdevice", "bookPlaybackSession"); + params.add("fileId", fileId); + params.add("assetId", assetId); + params.add("assetType", assetType); + } + + public void fileId(String multirequestToken) { + params.add("fileId", multirequestToken); + } + + public void assetId(String multirequestToken) { + params.add("assetId", multirequestToken); + } + + public void assetType(String multirequestToken) { + params.add("assetType", multirequestToken); + } + } + + /** + * Reserves a concurrency slot for the given asset-device combination + * + * @param fileId KalturaMediaFile.id media file belonging to the asset for which a concurrency + * slot is being reserved + * @param assetId KalturaAsset.id - asset for which a concurrency slot is being reserved + * @param assetType Identifies the type of asset for which the concurrency slot is being reserved + */ + public static BookPlaybackSessionStreamingDeviceBuilder bookPlaybackSession(String fileId, String assetId, AssetType assetType) { + return new BookPlaybackSessionStreamingDeviceBuilder(fileId, assetId, assetType); + } + + public static class ListStreamingDeviceBuilder extends ListResponseRequestBuilder { + + public ListStreamingDeviceBuilder(StreamingDeviceFilter filter) { + super(StreamingDevice.class, "streamingdevice", "list"); + params.add("filter", filter); + } + } + + public static ListStreamingDeviceBuilder list() { + return list(null); + } + + /** + * Lists of devices that are streaming at that moment + * + * @param filter Segmentation type filter - basically empty + */ + public static ListStreamingDeviceBuilder list(StreamingDeviceFilter filter) { + return new ListStreamingDeviceBuilder(filter); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/SubscriptionService.java b/KalturaClient/src/main/java/com/kaltura/client/services/SubscriptionService.java new file mode 100644 index 000000000..59ea26671 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/SubscriptionService.java @@ -0,0 +1,160 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.Coupon; +import com.kaltura.client.types.FilterPager; +import com.kaltura.client.types.Subscription; +import com.kaltura.client.types.SubscriptionFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class SubscriptionService { + + public static class AddSubscriptionBuilder extends RequestBuilder { + + public AddSubscriptionBuilder(Subscription subscription) { + super(Subscription.class, "subscription", "add"); + params.add("subscription", subscription); + } + } + + /** + * Insert new subscription for partner + * + * @param subscription subscription object + */ + public static AddSubscriptionBuilder add(Subscription subscription) { + return new AddSubscriptionBuilder(subscription); + } + + public static class DeleteSubscriptionBuilder extends RequestBuilder { + + public DeleteSubscriptionBuilder(long id) { + super(Boolean.class, "subscription", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Delete subscription + * + * @param id Subscription id + */ + public static DeleteSubscriptionBuilder delete(long id) { + return new DeleteSubscriptionBuilder(id); + } + + public static class ListSubscriptionBuilder extends ListResponseRequestBuilder { + + public ListSubscriptionBuilder(SubscriptionFilter filter, FilterPager pager) { + super(Subscription.class, "subscription", "list"); + params.add("filter", filter); + params.add("pager", pager); + } + } + + public static ListSubscriptionBuilder list() { + return list(null); + } + + public static ListSubscriptionBuilder list(SubscriptionFilter filter) { + return list(filter, null); + } + + /** + * Returns a list of subscriptions requested by Subscription ID or file ID + * + * @param filter Filter request + * @param pager Page size and index + */ + public static ListSubscriptionBuilder list(SubscriptionFilter filter, FilterPager pager) { + return new ListSubscriptionBuilder(filter, pager); + } + + public static class UpdateSubscriptionBuilder extends RequestBuilder { + + public UpdateSubscriptionBuilder(long id, Subscription subscription) { + super(Subscription.class, "subscription", "update"); + params.add("id", id); + params.add("subscription", subscription); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Update Subscription + * + * @param id Subscription id + * @param subscription Subscription + */ + public static UpdateSubscriptionBuilder update(long id, Subscription subscription) { + return new UpdateSubscriptionBuilder(id, subscription); + } + + public static class ValidateCouponSubscriptionBuilder extends RequestBuilder { + + public ValidateCouponSubscriptionBuilder(int id, String code) { + super(Coupon.class, "subscription", "validateCoupon"); + params.add("id", id); + params.add("code", code); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + + public void code(String multirequestToken) { + params.add("code", multirequestToken); + } + } + + /** + * Returns information about a coupon for subscription + * + * @param id subscription id + * @param code coupon code + */ + public static ValidateCouponSubscriptionBuilder validateCoupon(int id, String code) { + return new ValidateCouponSubscriptionBuilder(id, code); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/SubscriptionSetService.java b/KalturaClient/src/main/java/com/kaltura/client/services/SubscriptionSetService.java new file mode 100644 index 000000000..c766a3c3a --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/SubscriptionSetService.java @@ -0,0 +1,146 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.SubscriptionSet; +import com.kaltura.client.types.SubscriptionSetFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class SubscriptionSetService { + + public static class AddSubscriptionSetBuilder extends RequestBuilder { + + public AddSubscriptionSetBuilder(SubscriptionSet subscriptionSet) { + super(SubscriptionSet.class, "subscriptionset", "add"); + params.add("subscriptionSet", subscriptionSet); + } + } + + /** + * Add a new subscriptionSet + * + * @param subscriptionSet SubscriptionSet Object + */ + public static AddSubscriptionSetBuilder add(SubscriptionSet subscriptionSet) { + return new AddSubscriptionSetBuilder(subscriptionSet); + } + + public static class DeleteSubscriptionSetBuilder extends RequestBuilder { + + public DeleteSubscriptionSetBuilder(long id) { + super(Boolean.class, "subscriptionset", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Delete a subscriptionSet + * + * @param id SubscriptionSet Identifier + */ + public static DeleteSubscriptionSetBuilder delete(long id) { + return new DeleteSubscriptionSetBuilder(id); + } + + public static class GetSubscriptionSetBuilder extends RequestBuilder { + + public GetSubscriptionSetBuilder(long id) { + super(SubscriptionSet.class, "subscriptionset", "get"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Get the subscriptionSet according to the Identifier + * + * @param id SubscriptionSet Identifier + */ + public static GetSubscriptionSetBuilder get(long id) { + return new GetSubscriptionSetBuilder(id); + } + + public static class ListSubscriptionSetBuilder extends ListResponseRequestBuilder { + + public ListSubscriptionSetBuilder(SubscriptionSetFilter filter) { + super(SubscriptionSet.class, "subscriptionset", "list"); + params.add("filter", filter); + } + } + + public static ListSubscriptionSetBuilder list() { + return list(null); + } + + /** + * Returns a list of subscriptionSets requested by ids or subscription ids + * + * @param filter SubscriptionSet filter + */ + public static ListSubscriptionSetBuilder list(SubscriptionSetFilter filter) { + return new ListSubscriptionSetBuilder(filter); + } + + public static class UpdateSubscriptionSetBuilder extends RequestBuilder { + + public UpdateSubscriptionSetBuilder(long id, SubscriptionSet subscriptionSet) { + super(SubscriptionSet.class, "subscriptionset", "update"); + params.add("id", id); + params.add("subscriptionSet", subscriptionSet); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Update the subscriptionSet + * + * @param id SubscriptionSet Identifier + * @param subscriptionSet SubscriptionSet Object + */ + public static UpdateSubscriptionSetBuilder update(long id, SubscriptionSet subscriptionSet) { + return new UpdateSubscriptionSetBuilder(id, subscriptionSet); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/SystemService.java b/KalturaClient/src/main/java/com/kaltura/client/services/SystemService.java new file mode 100644 index 000000000..b71940416 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/SystemService.java @@ -0,0 +1,236 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.LongValue; +import com.kaltura.client.types.StringValue; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class SystemService { + + public static class ClearLocalServerCacheSystemBuilder extends RequestBuilder { + + public ClearLocalServerCacheSystemBuilder(String clearCacheAction, String key) { + super(Boolean.class, "system", "clearLocalServerCache"); + params.add("clearCacheAction", clearCacheAction); + params.add("key", key); + } + + public void clearCacheAction(String multirequestToken) { + params.add("clearCacheAction", multirequestToken); + } + + public void key(String multirequestToken) { + params.add("key", multirequestToken); + } + } + + public static ClearLocalServerCacheSystemBuilder clearLocalServerCache() { + return clearLocalServerCache(null); + } + + public static ClearLocalServerCacheSystemBuilder clearLocalServerCache(String clearCacheAction) { + return clearLocalServerCache(clearCacheAction, null); + } + + /** + * Clear local server cache + * + * @param clearCacheAction clear cache action to perform, possible values: clear_all / keys / getKey + * @param key key to get in case you send action getKey + */ + public static ClearLocalServerCacheSystemBuilder clearLocalServerCache(String clearCacheAction, String key) { + return new ClearLocalServerCacheSystemBuilder(clearCacheAction, key); + } + + public static class GetInvalidationKeyValueSystemBuilder extends RequestBuilder { + + public GetInvalidationKeyValueSystemBuilder(String invalidationKey, String layeredCacheConfigName, int groupId) { + super(LongValue.class, "system", "getInvalidationKeyValue"); + params.add("invalidationKey", invalidationKey); + params.add("layeredCacheConfigName", layeredCacheConfigName); + params.add("groupId", groupId); + } + + public void invalidationKey(String multirequestToken) { + params.add("invalidationKey", multirequestToken); + } + + public void layeredCacheConfigName(String multirequestToken) { + params.add("layeredCacheConfigName", multirequestToken); + } + + public void groupId(String multirequestToken) { + params.add("groupId", multirequestToken); + } + } + + public static GetInvalidationKeyValueSystemBuilder getInvalidationKeyValue(String invalidationKey) { + return getInvalidationKeyValue(invalidationKey, null); + } + + public static GetInvalidationKeyValueSystemBuilder getInvalidationKeyValue(String invalidationKey, String layeredCacheConfigName) { + return getInvalidationKeyValue(invalidationKey, layeredCacheConfigName, 0); + } + + /** + * Returns the epoch value of an invalidation key if it was found + * + * @param invalidationKey the invalidation key to fetch it's value + * @param layeredCacheConfigName the layered cache config name of the invalidation key + * @param groupId groupId + */ + public static GetInvalidationKeyValueSystemBuilder getInvalidationKeyValue(String invalidationKey, String layeredCacheConfigName, int groupId) { + return new GetInvalidationKeyValueSystemBuilder(invalidationKey, layeredCacheConfigName, groupId); + } + + public static class GetLayeredCacheGroupConfigSystemBuilder extends RequestBuilder { + + public GetLayeredCacheGroupConfigSystemBuilder(int groupId) { + super(StringValue.class, "system", "getLayeredCacheGroupConfig"); + params.add("groupId", groupId); + } + + public void groupId(String multirequestToken) { + params.add("groupId", multirequestToken); + } + } + + public static GetLayeredCacheGroupConfigSystemBuilder getLayeredCacheGroupConfig() { + return getLayeredCacheGroupConfig(0); + } + + /** + * Returns the current layered cache group config of the sent groupId. You need to + send groupId only if you wish to get it for a specific groupId and not the one + the KS belongs to. + * + * @param groupId groupId + */ + public static GetLayeredCacheGroupConfigSystemBuilder getLayeredCacheGroupConfig(int groupId) { + return new GetLayeredCacheGroupConfigSystemBuilder(groupId); + } + + public static class GetTimeSystemBuilder extends RequestBuilder { + + public GetTimeSystemBuilder() { + super(Long.class, "system", "getTime"); + } + } + + /** + * Returns current server timestamp + */ + public static GetTimeSystemBuilder getTime() { + return new GetTimeSystemBuilder(); + } + + public static class GetVersionSystemBuilder extends RequestBuilder { + + public GetVersionSystemBuilder() { + super(String.class, "system", "getVersion"); + } + } + + /** + * Returns current server version + */ + public static GetVersionSystemBuilder getVersion() { + return new GetVersionSystemBuilder(); + } + + public static class IncrementLayeredCacheGroupConfigVersionSystemBuilder extends RequestBuilder { + + public IncrementLayeredCacheGroupConfigVersionSystemBuilder(int groupId) { + super(Boolean.class, "system", "incrementLayeredCacheGroupConfigVersion"); + params.add("groupId", groupId); + } + + public void groupId(String multirequestToken) { + params.add("groupId", multirequestToken); + } + } + + public static IncrementLayeredCacheGroupConfigVersionSystemBuilder incrementLayeredCacheGroupConfigVersion() { + return incrementLayeredCacheGroupConfigVersion(0); + } + + /** + * Returns true if version has been incremented successfully or false otherwise. + You need to send groupId only if you wish to increment for a specific groupId + and not the one the KS belongs to. + * + * @param groupId groupId + */ + public static IncrementLayeredCacheGroupConfigVersionSystemBuilder incrementLayeredCacheGroupConfigVersion(int groupId) { + return new IncrementLayeredCacheGroupConfigVersionSystemBuilder(groupId); + } + + public static class InvalidateLayeredCacheInvalidationKeySystemBuilder extends RequestBuilder { + + public InvalidateLayeredCacheInvalidationKeySystemBuilder(String key) { + super(Boolean.class, "system", "invalidateLayeredCacheInvalidationKey"); + params.add("key", key); + } + + public void key(String multirequestToken) { + params.add("key", multirequestToken); + } + } + + /** + * Returns true if the invalidation key was invalidated successfully or false + otherwise. + * + * @param key the invalidation key to invalidate + */ + public static InvalidateLayeredCacheInvalidationKeySystemBuilder invalidateLayeredCacheInvalidationKey(String key) { + return new InvalidateLayeredCacheInvalidationKeySystemBuilder(key); + } + + public static class PingSystemBuilder extends RequestBuilder { + + public PingSystemBuilder() { + super(Boolean.class, "system", "ping"); + } + } + + /** + * Returns true + */ + public static PingSystemBuilder ping() { + return new PingSystemBuilder(); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/TagService.java b/KalturaClient/src/main/java/com/kaltura/client/services/TagService.java new file mode 100644 index 000000000..73a0bd44e --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/TagService.java @@ -0,0 +1,132 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.FilterPager; +import com.kaltura.client.types.Tag; +import com.kaltura.client.types.TagFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class TagService { + + public static class AddTagBuilder extends RequestBuilder { + + public AddTagBuilder(Tag tag) { + super(Tag.class, "tag", "add"); + params.add("tag", tag); + } + } + + /** + * Add a new tag + * + * @param tag Tag Object + */ + public static AddTagBuilder add(Tag tag) { + return new AddTagBuilder(tag); + } + + public static class DeleteTagBuilder extends RequestBuilder { + + public DeleteTagBuilder(long id) { + super(Boolean.class, "tag", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Delete an existing tag + * + * @param id Tag Identifier + */ + public static DeleteTagBuilder delete(long id) { + return new DeleteTagBuilder(id); + } + + public static class ListTagBuilder extends ListResponseRequestBuilder { + + public ListTagBuilder(TagFilter filter, FilterPager pager) { + super(Tag.class, "tag", "list"); + params.add("filter", filter); + params.add("pager", pager); + } + } + + public static ListTagBuilder list() { + return list(null); + } + + public static ListTagBuilder list(TagFilter filter) { + return list(filter, null); + } + + /** + * Get the list of tags for the partner + * + * @param filter Filter + * @param pager Page size and index + */ + public static ListTagBuilder list(TagFilter filter, FilterPager pager) { + return new ListTagBuilder(filter, pager); + } + + public static class UpdateTagBuilder extends RequestBuilder { + + public UpdateTagBuilder(long id, Tag tag) { + super(Tag.class, "tag", "update"); + params.add("id", id); + params.add("tag", tag); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Update an existing tag + * + * @param id Tag Identifier + * @param tag Tag Object + */ + public static UpdateTagBuilder update(long id, Tag tag) { + return new UpdateTagBuilder(id, tag); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/TimeShiftedTvPartnerSettingsService.java b/KalturaClient/src/main/java/com/kaltura/client/services/TimeShiftedTvPartnerSettingsService.java new file mode 100644 index 000000000..92a276aa1 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/TimeShiftedTvPartnerSettingsService.java @@ -0,0 +1,74 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.TimeShiftedTvPartnerSettings; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class TimeShiftedTvPartnerSettingsService { + + public static class GetTimeShiftedTvPartnerSettingsBuilder extends RequestBuilder { + + public GetTimeShiftedTvPartnerSettingsBuilder() { + super(TimeShiftedTvPartnerSettings.class, "timeshiftedtvpartnersettings", "get"); + } + } + + /** + * Retrieve the account’s time-shifted TV settings (catch-up and C-DVR, + Trick-play, Start-over) + */ + public static GetTimeShiftedTvPartnerSettingsBuilder get() { + return new GetTimeShiftedTvPartnerSettingsBuilder(); + } + + public static class UpdateTimeShiftedTvPartnerSettingsBuilder extends RequestBuilder { + + public UpdateTimeShiftedTvPartnerSettingsBuilder(TimeShiftedTvPartnerSettings settings) { + super(Boolean.class, "timeshiftedtvpartnersettings", "update"); + params.add("settings", settings); + } + } + + /** + * Configure the account’s time-shifted TV settings (catch-up and C-DVR, + Trick-play, Start-over) + * + * @param settings Time shifted TV settings + */ + public static UpdateTimeShiftedTvPartnerSettingsBuilder update(TimeShiftedTvPartnerSettings settings) { + return new UpdateTimeShiftedTvPartnerSettingsBuilder(settings); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/TopicNotificationMessageService.java b/KalturaClient/src/main/java/com/kaltura/client/services/TopicNotificationMessageService.java new file mode 100644 index 000000000..0a87174f5 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/TopicNotificationMessageService.java @@ -0,0 +1,133 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.FilterPager; +import com.kaltura.client.types.TopicNotificationMessage; +import com.kaltura.client.types.TopicNotificationMessageFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.NullRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class TopicNotificationMessageService { + + public static class AddTopicNotificationMessageBuilder extends RequestBuilder { + + public AddTopicNotificationMessageBuilder(TopicNotificationMessage topicNotificationMessage) { + super(TopicNotificationMessage.class, "topicnotificationmessage", "add"); + params.add("topicNotificationMessage", topicNotificationMessage); + } + } + + /** + * Add a new topic notification message + * + * @param topicNotificationMessage The topic notification message to add + */ + public static AddTopicNotificationMessageBuilder add(TopicNotificationMessage topicNotificationMessage) { + return new AddTopicNotificationMessageBuilder(topicNotificationMessage); + } + + public static class DeleteTopicNotificationMessageBuilder extends NullRequestBuilder { + + public DeleteTopicNotificationMessageBuilder(long id) { + super("topicnotificationmessage", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Delete an existing topic notification message + * + * @param id ID of topic notification message to delete + */ + public static DeleteTopicNotificationMessageBuilder delete(long id) { + return new DeleteTopicNotificationMessageBuilder(id); + } + + public static class ListTopicNotificationMessageBuilder extends ListResponseRequestBuilder { + + public ListTopicNotificationMessageBuilder(TopicNotificationMessageFilter filter, FilterPager pager) { + super(TopicNotificationMessage.class, "topicnotificationmessage", "list"); + params.add("filter", filter); + params.add("pager", pager); + } + } + + public static ListTopicNotificationMessageBuilder list() { + return list(null); + } + + public static ListTopicNotificationMessageBuilder list(TopicNotificationMessageFilter filter) { + return list(filter, null); + } + + /** + * Lists all topic notifications in the system. + * + * @param filter Filter options + * @param pager Paging the request + */ + public static ListTopicNotificationMessageBuilder list(TopicNotificationMessageFilter filter, FilterPager pager) { + return new ListTopicNotificationMessageBuilder(filter, pager); + } + + public static class UpdateTopicNotificationMessageBuilder extends RequestBuilder { + + public UpdateTopicNotificationMessageBuilder(int id, TopicNotificationMessage topicNotificationMessage) { + super(TopicNotificationMessage.class, "topicnotificationmessage", "update"); + params.add("id", id); + params.add("topicNotificationMessage", topicNotificationMessage); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Update an existing topic notification message + * + * @param id The topic notification message ID to update + * @param topicNotificationMessage The topic notification message to update + */ + public static UpdateTopicNotificationMessageBuilder update(int id, TopicNotificationMessage topicNotificationMessage) { + return new UpdateTopicNotificationMessageBuilder(id, topicNotificationMessage); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/TopicNotificationService.java b/KalturaClient/src/main/java/com/kaltura/client/services/TopicNotificationService.java new file mode 100644 index 000000000..a9548da6d --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/TopicNotificationService.java @@ -0,0 +1,164 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.TopicNotification; +import com.kaltura.client.types.TopicNotificationFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.NullRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class TopicNotificationService { + + public static class AddTopicNotificationBuilder extends RequestBuilder { + + public AddTopicNotificationBuilder(TopicNotification topicNotification) { + super(TopicNotification.class, "topicnotification", "add"); + params.add("topicNotification", topicNotification); + } + } + + /** + * Add a new topic notification + * + * @param topicNotification The topic notification to add + */ + public static AddTopicNotificationBuilder add(TopicNotification topicNotification) { + return new AddTopicNotificationBuilder(topicNotification); + } + + public static class DeleteTopicNotificationBuilder extends NullRequestBuilder { + + public DeleteTopicNotificationBuilder(long id) { + super("topicnotification", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Delete an existing topic notification + * + * @param id ID of topic notification to delete + */ + public static DeleteTopicNotificationBuilder delete(long id) { + return new DeleteTopicNotificationBuilder(id); + } + + public static class ListTopicNotificationBuilder extends ListResponseRequestBuilder { + + public ListTopicNotificationBuilder(TopicNotificationFilter filter) { + super(TopicNotification.class, "topicnotification", "list"); + params.add("filter", filter); + } + } + + /** + * Lists all topic notifications in the system. + * + * @param filter Filter options + */ + public static ListTopicNotificationBuilder list(TopicNotificationFilter filter) { + return new ListTopicNotificationBuilder(filter); + } + + public static class SubscribeTopicNotificationBuilder extends NullRequestBuilder { + + public SubscribeTopicNotificationBuilder(long topicNotificationId) { + super("topicnotification", "subscribe"); + params.add("topicNotificationId", topicNotificationId); + } + + public void topicNotificationId(String multirequestToken) { + params.add("topicNotificationId", multirequestToken); + } + } + + /** + * Subscribe a user to a topic notification + * + * @param topicNotificationId ID of topic notification to subscribe to. + */ + public static SubscribeTopicNotificationBuilder subscribe(long topicNotificationId) { + return new SubscribeTopicNotificationBuilder(topicNotificationId); + } + + public static class UnsubscribeTopicNotificationBuilder extends NullRequestBuilder { + + public UnsubscribeTopicNotificationBuilder(long topicNotificationId) { + super("topicnotification", "unsubscribe"); + params.add("topicNotificationId", topicNotificationId); + } + + public void topicNotificationId(String multirequestToken) { + params.add("topicNotificationId", multirequestToken); + } + } + + /** + * Unubscribe a user from a topic notification + * + * @param topicNotificationId ID of topic notification to unsubscribe from. + */ + public static UnsubscribeTopicNotificationBuilder unsubscribe(long topicNotificationId) { + return new UnsubscribeTopicNotificationBuilder(topicNotificationId); + } + + public static class UpdateTopicNotificationBuilder extends RequestBuilder { + + public UpdateTopicNotificationBuilder(int id, TopicNotification topicNotification) { + super(TopicNotification.class, "topicnotification", "update"); + params.add("id", id); + params.add("topicNotification", topicNotification); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Update an existing topic notification + * + * @param id The topic notification ID to update + * @param topicNotification The topic notification to update + */ + public static UpdateTopicNotificationBuilder update(int id, TopicNotification topicNotification) { + return new UpdateTopicNotificationBuilder(id, topicNotification); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/TopicService.java b/KalturaClient/src/main/java/com/kaltura/client/services/TopicService.java new file mode 100644 index 000000000..344ec4475 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/TopicService.java @@ -0,0 +1,146 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.enums.TopicAutomaticIssueNotification; +import com.kaltura.client.types.FilterPager; +import com.kaltura.client.types.Topic; +import com.kaltura.client.types.TopicFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class TopicService { + + public static class DeleteTopicBuilder extends RequestBuilder { + + public DeleteTopicBuilder(int id) { + super(Boolean.class, "topic", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Deleted a topic + * + * @param id Topic identifier + */ + public static DeleteTopicBuilder delete(int id) { + return new DeleteTopicBuilder(id); + } + + public static class GetTopicBuilder extends RequestBuilder { + + public GetTopicBuilder(int id) { + super(Topic.class, "topic", "get"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Gets a topic + * + * @param id Topic identifier + */ + public static GetTopicBuilder get(int id) { + return new GetTopicBuilder(id); + } + + public static class ListTopicBuilder extends ListResponseRequestBuilder { + + public ListTopicBuilder(TopicFilter filter, FilterPager pager) { + super(Topic.class, "topic", "list"); + params.add("filter", filter); + params.add("pager", pager); + } + } + + public static ListTopicBuilder list() { + return list(null); + } + + public static ListTopicBuilder list(TopicFilter filter) { + return list(filter, null); + } + + /** + * Get list of topics + * + * @param filter Topics filter + * @param pager Page size and index + */ + public static ListTopicBuilder list(TopicFilter filter, FilterPager pager) { + return new ListTopicBuilder(filter, pager); + } + + public static class UpdateStatusTopicBuilder extends RequestBuilder { + + public UpdateStatusTopicBuilder(int id, TopicAutomaticIssueNotification automaticIssueNotification) { + super(Boolean.class, "topic", "updateStatus"); + params.add("id", id); + params.add("automaticIssueNotification", automaticIssueNotification); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + + public void automaticIssueNotification(String multirequestToken) { + params.add("automaticIssueNotification", multirequestToken); + } + } + + /** + * Updates a topic &quot;automatic issue notification&quot; behavior. + * + * @param id Topic identifier + * @param automaticIssueNotification Behavior options: + * Inherit = 0: Take value from partner notification settings + * Yes = 1: Issue a notification massage when a new episode is + * available on the catalog + * No = 2: Do send a notification message when a new episode is + * available on the catalog + */ + public static UpdateStatusTopicBuilder updateStatus(int id, TopicAutomaticIssueNotification automaticIssueNotification) { + return new UpdateStatusTopicBuilder(id, automaticIssueNotification); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/TransactionHistoryService.java b/KalturaClient/src/main/java/com/kaltura/client/services/TransactionHistoryService.java new file mode 100644 index 000000000..f2fc4b293 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/TransactionHistoryService.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.BillingTransaction; +import com.kaltura.client.types.FilterPager; +import com.kaltura.client.types.TransactionHistoryFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class TransactionHistoryService { + + public static class ListTransactionHistoryBuilder extends ListResponseRequestBuilder { + + public ListTransactionHistoryBuilder(TransactionHistoryFilter filter, FilterPager pager) { + super(BillingTransaction.class, "transactionhistory", "list"); + params.add("filter", filter); + params.add("pager", pager); + } + } + + public static ListTransactionHistoryBuilder list() { + return list(null); + } + + public static ListTransactionHistoryBuilder list(TransactionHistoryFilter filter) { + return list(filter, null); + } + + /** + * Gets user or household transaction history. + * + * @param filter Filter by household or user + * @param pager Page size and index + */ + public static ListTransactionHistoryBuilder list(TransactionHistoryFilter filter, FilterPager pager) { + return new ListTransactionHistoryBuilder(filter, pager); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/TransactionService.java b/KalturaClient/src/main/java/com/kaltura/client/services/TransactionService.java new file mode 100644 index 000000000..140fa7cc0 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/TransactionService.java @@ -0,0 +1,201 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.enums.TransactionType; +import com.kaltura.client.types.ExternalReceipt; +import com.kaltura.client.types.Purchase; +import com.kaltura.client.types.PurchaseSession; +import com.kaltura.client.types.Transaction; +import com.kaltura.client.types.TransactionStatus; +import com.kaltura.client.utils.request.NullRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class TransactionService { + + public static class DowngradeTransactionBuilder extends NullRequestBuilder { + + public DowngradeTransactionBuilder(Purchase purchase) { + super("transaction", "downgrade"); + params.add("purchase", purchase); + } + } + + /** + * downgrade specific subscription for a household. entitlements will be updated on + the existing subscription end date. + * + * @param purchase Purchase properties + */ + public static DowngradeTransactionBuilder downgrade(Purchase purchase) { + return new DowngradeTransactionBuilder(purchase); + } + + public static class GetPurchaseSessionIdTransactionBuilder extends RequestBuilder { + + public GetPurchaseSessionIdTransactionBuilder(PurchaseSession purchaseSession) { + super(Long.class, "transaction", "getPurchaseSessionId"); + params.add("purchaseSession", purchaseSession); + } + } + + /** + * Retrieve the purchase session identifier + * + * @param purchaseSession Purchase properties + */ + public static GetPurchaseSessionIdTransactionBuilder getPurchaseSessionId(PurchaseSession purchaseSession) { + return new GetPurchaseSessionIdTransactionBuilder(purchaseSession); + } + + public static class PurchaseTransactionBuilder extends RequestBuilder { + + public PurchaseTransactionBuilder(Purchase purchase) { + super(Transaction.class, "transaction", "purchase"); + params.add("purchase", purchase); + } + } + + /** + * Purchase specific product, subscription or Program asset group offer (PAGO) for + a household. Upon successful charge entitlements to use the requested product or + subscription are granted. + * + * @param purchase Purchase properties + */ + public static PurchaseTransactionBuilder purchase(Purchase purchase) { + return new PurchaseTransactionBuilder(purchase); + } + + public static class SetWaiverTransactionBuilder extends RequestBuilder { + + public SetWaiverTransactionBuilder(int assetId, TransactionType transactionType) { + super(Boolean.class, "transaction", "setWaiver"); + params.add("assetId", assetId); + params.add("transactionType", transactionType); + } + + public void assetId(String multirequestToken) { + params.add("assetId", multirequestToken); + } + + public void transactionType(String multirequestToken) { + params.add("transactionType", multirequestToken); + } + } + + /** + * This method shall set the waiver flag on the user entitlement table and the + waiver date field to the current date. + * + * @param assetId Asset identifier + * @param transactionType The transaction type + */ + public static SetWaiverTransactionBuilder setWaiver(int assetId, TransactionType transactionType) { + return new SetWaiverTransactionBuilder(assetId, transactionType); + } + + public static class UpdateStatusTransactionBuilder extends NullRequestBuilder { + + public UpdateStatusTransactionBuilder(String paymentGatewayId, String externalTransactionId, String signature, TransactionStatus status) { + super("transaction", "updateStatus"); + params.add("paymentGatewayId", paymentGatewayId); + params.add("externalTransactionId", externalTransactionId); + params.add("signature", signature); + params.add("status", status); + } + + public void paymentGatewayId(String multirequestToken) { + params.add("paymentGatewayId", multirequestToken); + } + + public void externalTransactionId(String multirequestToken) { + params.add("externalTransactionId", multirequestToken); + } + + public void signature(String multirequestToken) { + params.add("signature", multirequestToken); + } + } + + /** + * Updates a pending purchase transaction state. + * + * @param paymentGatewayId Payment gateway identifier + * @param externalTransactionId external transaction identifier + * @param signature Security signature to validate the caller is a payment gateway adapter + * application + * @param status Status properties + */ + public static UpdateStatusTransactionBuilder updateStatus(String paymentGatewayId, String externalTransactionId, String signature, TransactionStatus status) { + return new UpdateStatusTransactionBuilder(paymentGatewayId, externalTransactionId, signature, status); + } + + public static class UpgradeTransactionBuilder extends RequestBuilder { + + public UpgradeTransactionBuilder(Purchase purchase) { + super(Transaction.class, "transaction", "upgrade"); + params.add("purchase", purchase); + } + } + + /** + * upgrade specific subscription for a household. Upon successful charge + entitlements to use the requested product or subscription are granted. + * + * @param purchase Purchase properties + */ + public static UpgradeTransactionBuilder upgrade(Purchase purchase) { + return new UpgradeTransactionBuilder(purchase); + } + + public static class ValidateReceiptTransactionBuilder extends RequestBuilder { + + public ValidateReceiptTransactionBuilder(ExternalReceipt externalReceipt) { + super(Transaction.class, "transaction", "validateReceipt"); + params.add("externalReceipt", externalReceipt); + } + } + + /** + * Verifies PPV/Subscription/Collection client purchase (such as InApp) and + entitles the user. + * + * @param externalReceipt Receipt properties + */ + public static ValidateReceiptTransactionBuilder validateReceipt(ExternalReceipt externalReceipt) { + return new ValidateReceiptTransactionBuilder(externalReceipt); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/TvmRuleService.java b/KalturaClient/src/main/java/com/kaltura/client/services/TvmRuleService.java new file mode 100644 index 000000000..77f6e0432 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/TvmRuleService.java @@ -0,0 +1,63 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.TvmRule; +import com.kaltura.client.types.TvmRuleFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class TvmRuleService { + + public static class ListTvmRuleBuilder extends ListResponseRequestBuilder { + + public ListTvmRuleBuilder(TvmRuleFilter filter) { + super(TvmRule.class, "tvmrule", "list"); + params.add("filter", filter); + } + } + + public static ListTvmRuleBuilder list() { + return list(null); + } + + /** + * Get the list of tvm rules for the partner + * + * @param filter TvmRuleFilter Filter + */ + public static ListTvmRuleBuilder list(TvmRuleFilter filter) { + return new ListTvmRuleBuilder(filter); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/UnifiedPaymentService.java b/KalturaClient/src/main/java/com/kaltura/client/services/UnifiedPaymentService.java new file mode 100644 index 000000000..c8e2b6161 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/UnifiedPaymentService.java @@ -0,0 +1,62 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.UnifiedPaymentRenewal; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class UnifiedPaymentService { + + public static class GetNextRenewalUnifiedPaymentBuilder extends RequestBuilder { + + public GetNextRenewalUnifiedPaymentBuilder(int id) { + super(UnifiedPaymentRenewal.class, "unifiedpayment", "getNextRenewal"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Returns the data about the next renewal + * + * @param id Unified payment ID + */ + public static GetNextRenewalUnifiedPaymentBuilder getNextRenewal(int id) { + return new GetNextRenewalUnifiedPaymentBuilder(id); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/UploadTokenService.java b/KalturaClient/src/main/java/com/kaltura/client/services/UploadTokenService.java new file mode 100644 index 000000000..cb3c6d9ba --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/UploadTokenService.java @@ -0,0 +1,103 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.FileHolder; +import com.kaltura.client.Files; +import com.kaltura.client.types.UploadToken; +import com.kaltura.client.utils.request.RequestBuilder; +import java.io.File; +import java.io.FileInputStream; +import java.io.InputStream; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class UploadTokenService { + + public static class AddUploadTokenBuilder extends RequestBuilder { + + public AddUploadTokenBuilder(UploadToken uploadToken) { + super(UploadToken.class, "uploadtoken", "add"); + params.add("uploadToken", uploadToken); + } + } + + public static AddUploadTokenBuilder add() { + return add(null); + } + + /** + * Adds new upload token to upload a file + * + * @param uploadToken Upload token details + */ + public static AddUploadTokenBuilder add(UploadToken uploadToken) { + return new AddUploadTokenBuilder(uploadToken); + } + + public static class UploadUploadTokenBuilder extends RequestBuilder { + + public UploadUploadTokenBuilder(String uploadTokenId, FileHolder fileData) { + super(UploadToken.class, "uploadtoken", "upload"); + params.add("uploadTokenId", uploadTokenId); + files = new Files(); + files.add("fileData", fileData); + } + + public void uploadTokenId(String multirequestToken) { + params.add("uploadTokenId", multirequestToken); + } + } + + public static UploadUploadTokenBuilder upload(String uploadTokenId, File fileData) { + return upload(uploadTokenId, new FileHolder(fileData)); + } + + public static UploadUploadTokenBuilder upload(String uploadTokenId, InputStream fileData, String fileDataMimeType, String fileDataName, long fileDataSize) { + return upload(uploadTokenId, new FileHolder(fileData, fileDataMimeType, fileDataName, fileDataSize)); + } + + public static UploadUploadTokenBuilder upload(String uploadTokenId, FileInputStream fileData, String fileDataMimeType, String fileDataName) { + return upload(uploadTokenId, new FileHolder(fileData, fileDataMimeType, fileDataName)); + } + + /** + * Upload a file using the upload token id + * + * @param uploadTokenId Identifier of existing upload-token + * @param fileData File to upload + */ + public static UploadUploadTokenBuilder upload(String uploadTokenId, FileHolder fileData) { + return new UploadUploadTokenBuilder(uploadTokenId, fileData); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/UsageModuleService.java b/KalturaClient/src/main/java/com/kaltura/client/services/UsageModuleService.java new file mode 100644 index 000000000..398d09fc5 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/UsageModuleService.java @@ -0,0 +1,125 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.UsageModule; +import com.kaltura.client.types.UsageModuleFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class UsageModuleService { + + public static class AddUsageModuleBuilder extends RequestBuilder { + + public AddUsageModuleBuilder(UsageModule usageModule) { + super(UsageModule.class, "usagemodule", "add"); + params.add("usageModule", usageModule); + } + } + + /** + * Insert new UsageModule + * + * @param usageModule usage module Object + */ + public static AddUsageModuleBuilder add(UsageModule usageModule) { + return new AddUsageModuleBuilder(usageModule); + } + + public static class DeleteUsageModuleBuilder extends RequestBuilder { + + public DeleteUsageModuleBuilder(long id) { + super(Boolean.class, "usagemodule", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Delete UsageModule + * + * @param id UsageModule id + */ + public static DeleteUsageModuleBuilder delete(long id) { + return new DeleteUsageModuleBuilder(id); + } + + public static class ListUsageModuleBuilder extends ListResponseRequestBuilder { + + public ListUsageModuleBuilder(UsageModuleFilter filter) { + super(UsageModule.class, "usagemodule", "list"); + params.add("filter", filter); + } + } + + public static ListUsageModuleBuilder list() { + return list(null); + } + + /** + * Returns the list of available usage module + * + * @param filter Filter request + */ + public static ListUsageModuleBuilder list(UsageModuleFilter filter) { + return new ListUsageModuleBuilder(filter); + } + + public static class UpdateUsageModuleBuilder extends RequestBuilder { + + public UpdateUsageModuleBuilder(int id, UsageModule usageModule) { + super(UsageModule.class, "usagemodule", "update"); + params.add("id", id); + params.add("usageModule", usageModule); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Update usage module + * + * @param id usage module id + * @param usageModule usage module Object + */ + public static UpdateUsageModuleBuilder update(int id, UsageModule usageModule) { + return new UpdateUsageModuleBuilder(id, usageModule); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/UserAssetRuleService.java b/KalturaClient/src/main/java/com/kaltura/client/services/UserAssetRuleService.java new file mode 100644 index 000000000..050af5813 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/UserAssetRuleService.java @@ -0,0 +1,60 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.UserAssetRule; +import com.kaltura.client.types.UserAssetRuleFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class UserAssetRuleService { + + public static class ListUserAssetRuleBuilder extends ListResponseRequestBuilder { + + public ListUserAssetRuleBuilder(UserAssetRuleFilter filter) { + super(UserAssetRule.class, "userassetrule", "list"); + params.add("filter", filter); + } + } + + /** + * Retrieve all the rules (parental, geo, device or user-type) that applies for + this user and asset. + * + * @param filter Filter + */ + public static ListUserAssetRuleBuilder list(UserAssetRuleFilter filter) { + return new ListUserAssetRuleBuilder(filter); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/UserAssetsListItemService.java b/KalturaClient/src/main/java/com/kaltura/client/services/UserAssetsListItemService.java new file mode 100644 index 000000000..d503f0600 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/UserAssetsListItemService.java @@ -0,0 +1,120 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.enums.UserAssetsListItemType; +import com.kaltura.client.enums.UserAssetsListType; +import com.kaltura.client.types.UserAssetsListItem; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class UserAssetsListItemService { + + public static class AddUserAssetsListItemBuilder extends RequestBuilder { + + public AddUserAssetsListItemBuilder(UserAssetsListItem userAssetsListItem) { + super(UserAssetsListItem.class, "userassetslistitem", "add"); + params.add("userAssetsListItem", userAssetsListItem); + } + } + + /** + * Adds a new item to user’s private asset list + * + * @param userAssetsListItem A list item to add + */ + public static AddUserAssetsListItemBuilder add(UserAssetsListItem userAssetsListItem) { + return new AddUserAssetsListItemBuilder(userAssetsListItem); + } + + public static class DeleteUserAssetsListItemBuilder extends RequestBuilder { + + public DeleteUserAssetsListItemBuilder(String assetId, UserAssetsListType listType) { + super(Boolean.class, "userassetslistitem", "delete"); + params.add("assetId", assetId); + params.add("listType", listType); + } + + public void assetId(String multirequestToken) { + params.add("assetId", multirequestToken); + } + + public void listType(String multirequestToken) { + params.add("listType", multirequestToken); + } + } + + /** + * Deletes an item from user’s private asset list + * + * @param assetId Asset id to delete + * @param listType Asset list type to delete from + */ + public static DeleteUserAssetsListItemBuilder delete(String assetId, UserAssetsListType listType) { + return new DeleteUserAssetsListItemBuilder(assetId, listType); + } + + public static class GetUserAssetsListItemBuilder extends RequestBuilder { + + public GetUserAssetsListItemBuilder(String assetId, UserAssetsListType listType, UserAssetsListItemType itemType) { + super(UserAssetsListItem.class, "userassetslistitem", "get"); + params.add("assetId", assetId); + params.add("listType", listType); + params.add("itemType", itemType); + } + + public void assetId(String multirequestToken) { + params.add("assetId", multirequestToken); + } + + public void listType(String multirequestToken) { + params.add("listType", multirequestToken); + } + + public void itemType(String multirequestToken) { + params.add("itemType", multirequestToken); + } + } + + /** + * Get an item from user’s private asset list + * + * @param assetId Asset id to get + * @param listType Asset list type to get from + * @param itemType item type to get + */ + public static GetUserAssetsListItemBuilder get(String assetId, UserAssetsListType listType, UserAssetsListItemType itemType) { + return new GetUserAssetsListItemBuilder(assetId, listType, itemType); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/UserInterestService.java b/KalturaClient/src/main/java/com/kaltura/client/services/UserInterestService.java new file mode 100644 index 000000000..4a228a33a --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/UserInterestService.java @@ -0,0 +1,128 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.UserInterest; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.NullRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class UserInterestService { + + public static class AddUserInterestBuilder extends RequestBuilder { + + public AddUserInterestBuilder(UserInterest userInterest) { + super(UserInterest.class, "userinterest", "add"); + params.add("userInterest", userInterest); + } + } + + /** + * Insert new user interest for partner user + * + * @param userInterest User interest Object + */ + public static AddUserInterestBuilder add(UserInterest userInterest) { + return new AddUserInterestBuilder(userInterest); + } + + public static class DeleteUserInterestBuilder extends RequestBuilder { + + public DeleteUserInterestBuilder(String id) { + super(Boolean.class, "userinterest", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Delete new user interest for partner user + * + * @param id User interest identifier + */ + public static DeleteUserInterestBuilder delete(String id) { + return new DeleteUserInterestBuilder(id); + } + + public static class DeleteWithTokenUserInterestBuilder extends NullRequestBuilder { + + public DeleteWithTokenUserInterestBuilder(String id, String token, int partnerId) { + super("userinterest", "deleteWithToken"); + params.add("id", id); + params.add("token", token); + params.add("partnerId", partnerId); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + + public void token(String multirequestToken) { + params.add("token", multirequestToken); + } + + public void partnerId(String multirequestToken) { + params.add("partnerId", multirequestToken); + } + } + + /** + * Delete new user interest for partner user + * + * @param id User interest identifier + * @param token User's token identifier + * @param partnerId Partner identifier + */ + public static DeleteWithTokenUserInterestBuilder deleteWithToken(String id, String token, int partnerId) { + return new DeleteWithTokenUserInterestBuilder(id, token, partnerId); + } + + public static class ListUserInterestBuilder extends ListResponseRequestBuilder { + + public ListUserInterestBuilder() { + super(UserInterest.class, "userinterest", "list"); + } + } + + /** + * Returns all Engagement for partner + */ + public static ListUserInterestBuilder list() { + return new ListUserInterestBuilder(); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/UserLoginPinService.java b/KalturaClient/src/main/java/com/kaltura/client/services/UserLoginPinService.java new file mode 100644 index 000000000..5913c33df --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/UserLoginPinService.java @@ -0,0 +1,176 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.UserLoginPin; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class UserLoginPinService { + + public static class AddUserLoginPinBuilder extends RequestBuilder { + + public AddUserLoginPinBuilder(String secret, int pinUsages, int pinDuration) { + super(UserLoginPin.class, "userloginpin", "add"); + params.add("secret", secret); + params.add("pinUsages", pinUsages); + params.add("pinDuration", pinDuration); + } + + public void secret(String multirequestToken) { + params.add("secret", multirequestToken); + } + + public void pinUsages(String multirequestToken) { + params.add("pinUsages", multirequestToken); + } + + public void pinDuration(String multirequestToken) { + params.add("pinDuration", multirequestToken); + } + } + + public static AddUserLoginPinBuilder add() { + return add(null); + } + + public static AddUserLoginPinBuilder add(String secret) { + return add(secret, Integer.MIN_VALUE); + } + + public static AddUserLoginPinBuilder add(String secret, int pinUsages) { + return add(secret, pinUsages, Integer.MIN_VALUE); + } + + /** + * Generate a time and usage expiry login-PIN that can allow a single/multiple + login/s per PIN. If an active login-PIN already exists. Calling + this API again for same user will add another login-PIN + * + * @param secret Additional security parameter for optional enhanced security + * @param pinUsages Optional number of pin usages + * @param pinDuration Optional duration in minutes of the pin + */ + public static AddUserLoginPinBuilder add(String secret, int pinUsages, int pinDuration) { + return new AddUserLoginPinBuilder(secret, pinUsages, pinDuration); + } + + public static class DeleteUserLoginPinBuilder extends RequestBuilder { + + public DeleteUserLoginPinBuilder(String pinCode) { + super(Boolean.class, "userloginpin", "delete"); + params.add("pinCode", pinCode); + } + + public void pinCode(String multirequestToken) { + params.add("pinCode", multirequestToken); + } + } + + /** + * Immediately deletes a given pre set login pin code for the user. + * + * @param pinCode Login pin code to expire + */ + public static DeleteUserLoginPinBuilder delete(String pinCode) { + return new DeleteUserLoginPinBuilder(pinCode); + } + + public static class DeleteAllUserLoginPinBuilder extends RequestBuilder { + + public DeleteAllUserLoginPinBuilder() { + super(Boolean.class, "userloginpin", "deleteAll"); + } + } + + /** + * Immediately expire all active login-PINs for a user + */ + public static DeleteAllUserLoginPinBuilder deleteAll() { + return new DeleteAllUserLoginPinBuilder(); + } + + public static class UpdateUserLoginPinBuilder extends RequestBuilder { + + public UpdateUserLoginPinBuilder(String pinCode, String secret, int pinUsages, int pinDuration) { + super(UserLoginPin.class, "userloginpin", "update"); + params.add("pinCode", pinCode); + params.add("secret", secret); + params.add("pinUsages", pinUsages); + params.add("pinDuration", pinDuration); + } + + public void pinCode(String multirequestToken) { + params.add("pinCode", multirequestToken); + } + + public void secret(String multirequestToken) { + params.add("secret", multirequestToken); + } + + public void pinUsages(String multirequestToken) { + params.add("pinUsages", multirequestToken); + } + + public void pinDuration(String multirequestToken) { + params.add("pinDuration", multirequestToken); + } + } + + public static UpdateUserLoginPinBuilder update(String pinCode) { + return update(pinCode, null); + } + + public static UpdateUserLoginPinBuilder update(String pinCode, String secret) { + return update(pinCode, secret, Integer.MIN_VALUE); + } + + public static UpdateUserLoginPinBuilder update(String pinCode, String secret, int pinUsages) { + return update(pinCode, secret, pinUsages, Integer.MIN_VALUE); + } + + /** + * Set a time and usage expiry login-PIN that can allow a single login per PIN. If + an active login-PIN already exists. Calling this API again for same user will + add another login-PIN + * + * @param pinCode Device Identifier + * @param secret Additional security parameter to validate the login + * @param pinUsages Optional number of pin usages + * @param pinDuration Optional duration in seconds of the pin + */ + public static UpdateUserLoginPinBuilder update(String pinCode, String secret, int pinUsages, int pinDuration) { + return new UpdateUserLoginPinBuilder(pinCode, secret, pinUsages, pinDuration); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/UserRoleService.java b/KalturaClient/src/main/java/com/kaltura/client/services/UserRoleService.java new file mode 100644 index 000000000..2cd726507 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/UserRoleService.java @@ -0,0 +1,126 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.UserRole; +import com.kaltura.client.types.UserRoleFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class UserRoleService { + + public static class AddUserRoleBuilder extends RequestBuilder { + + public AddUserRoleBuilder(UserRole role) { + super(UserRole.class, "userrole", "add"); + params.add("role", role); + } + } + + /** + * Creates a new role + * + * @param role Role to add + */ + public static AddUserRoleBuilder add(UserRole role) { + return new AddUserRoleBuilder(role); + } + + public static class DeleteUserRoleBuilder extends RequestBuilder { + + public DeleteUserRoleBuilder(long id) { + super(Boolean.class, "userrole", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Delete role + * + * @param id Role id to delete + */ + public static DeleteUserRoleBuilder delete(long id) { + return new DeleteUserRoleBuilder(id); + } + + public static class ListUserRoleBuilder extends ListResponseRequestBuilder { + + public ListUserRoleBuilder(UserRoleFilter filter) { + super(UserRole.class, "userrole", "list"); + params.add("filter", filter); + } + } + + public static ListUserRoleBuilder list() { + return list(null); + } + + /** + * Retrieving user roles by identifiers, if filter is empty, returns all partner + roles + * + * @param filter User roles filter + */ + public static ListUserRoleBuilder list(UserRoleFilter filter) { + return new ListUserRoleBuilder(filter); + } + + public static class UpdateUserRoleBuilder extends RequestBuilder { + + public UpdateUserRoleBuilder(long id, UserRole role) { + super(UserRole.class, "userrole", "update"); + params.add("id", id); + params.add("role", role); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Update role + * + * @param id Role Id + * @param role Role to Update + */ + public static UpdateUserRoleBuilder update(long id, UserRole role) { + return new UpdateUserRoleBuilder(id, role); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/UserSegmentService.java b/KalturaClient/src/main/java/com/kaltura/client/services/UserSegmentService.java new file mode 100644 index 000000000..dbb20a1c5 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/UserSegmentService.java @@ -0,0 +1,111 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.FilterPager; +import com.kaltura.client.types.UserSegment; +import com.kaltura.client.types.UserSegmentFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class UserSegmentService { + + public static class AddUserSegmentBuilder extends RequestBuilder { + + public AddUserSegmentBuilder(UserSegment userSegment) { + super(UserSegment.class, "usersegment", "add"); + params.add("userSegment", userSegment); + } + } + + /** + * Adds a segment to a user + * + * @param userSegment User segment + */ + public static AddUserSegmentBuilder add(UserSegment userSegment) { + return new AddUserSegmentBuilder(userSegment); + } + + public static class DeleteUserSegmentBuilder extends RequestBuilder { + + public DeleteUserSegmentBuilder(String userId, long segmentId) { + super(Boolean.class, "usersegment", "delete"); + params.add("userId", userId); + params.add("segmentId", segmentId); + } + + public void userId(String multirequestToken) { + params.add("userId", multirequestToken); + } + + public void segmentId(String multirequestToken) { + params.add("segmentId", multirequestToken); + } + } + + /** + * Deletes a segment from a user + * + * @param userId User id + * @param segmentId Segment id + */ + public static DeleteUserSegmentBuilder delete(String userId, long segmentId) { + return new DeleteUserSegmentBuilder(userId, segmentId); + } + + public static class ListUserSegmentBuilder extends ListResponseRequestBuilder { + + public ListUserSegmentBuilder(UserSegmentFilter filter, FilterPager pager) { + super(UserSegment.class, "usersegment", "list"); + params.add("filter", filter); + params.add("pager", pager); + } + } + + public static ListUserSegmentBuilder list(UserSegmentFilter filter) { + return list(filter, null); + } + + /** + * Retrieve all the segments that apply for given user + * + * @param filter Filter + * @param pager Pager + */ + public static ListUserSegmentBuilder list(UserSegmentFilter filter, FilterPager pager) { + return new ListUserSegmentBuilder(filter, pager); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/UserSessionProfileService.java b/KalturaClient/src/main/java/com/kaltura/client/services/UserSessionProfileService.java new file mode 100644 index 000000000..1600c5e3b --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/services/UserSessionProfileService.java @@ -0,0 +1,133 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.services; + +import com.kaltura.client.types.FilterPager; +import com.kaltura.client.types.UserSessionProfile; +import com.kaltura.client.types.UserSessionProfileFilter; +import com.kaltura.client.utils.request.ListResponseRequestBuilder; +import com.kaltura.client.utils.request.NullRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class UserSessionProfileService { + + public static class AddUserSessionProfileBuilder extends RequestBuilder { + + public AddUserSessionProfileBuilder(UserSessionProfile userSessionProfile) { + super(UserSessionProfile.class, "usersessionprofile", "add"); + params.add("userSessionProfile", userSessionProfile); + } + } + + /** + * Add new UserSessionProfile + * + * @param userSessionProfile userSessionProfile Object to add + */ + public static AddUserSessionProfileBuilder add(UserSessionProfile userSessionProfile) { + return new AddUserSessionProfileBuilder(userSessionProfile); + } + + public static class DeleteUserSessionProfileBuilder extends NullRequestBuilder { + + public DeleteUserSessionProfileBuilder(long id) { + super("usersessionprofile", "delete"); + params.add("id", id); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Delete existing UserSessionProfile + * + * @param id UserSessionProfile identifier + */ + public static DeleteUserSessionProfileBuilder delete(long id) { + return new DeleteUserSessionProfileBuilder(id); + } + + public static class ListUserSessionProfileBuilder extends ListResponseRequestBuilder { + + public ListUserSessionProfileBuilder(UserSessionProfileFilter filter, FilterPager pager) { + super(UserSessionProfile.class, "usersessionprofile", "list"); + params.add("filter", filter); + params.add("pager", pager); + } + } + + public static ListUserSessionProfileBuilder list() { + return list(null); + } + + public static ListUserSessionProfileBuilder list(UserSessionProfileFilter filter) { + return list(filter, null); + } + + /** + * Returns the list of available UserSessionProfiles + * + * @param filter Filter + * @param pager Pager + */ + public static ListUserSessionProfileBuilder list(UserSessionProfileFilter filter, FilterPager pager) { + return new ListUserSessionProfileBuilder(filter, pager); + } + + public static class UpdateUserSessionProfileBuilder extends RequestBuilder { + + public UpdateUserSessionProfileBuilder(long id, UserSessionProfile userSessionProfile) { + super(UserSessionProfile.class, "usersessionprofile", "update"); + params.add("id", id); + params.add("userSessionProfile", userSessionProfile); + } + + public void id(String multirequestToken) { + params.add("id", multirequestToken); + } + } + + /** + * Update existing UserSessionProfile + * + * @param id id of userSessionProfile to update + * @param userSessionProfile userSessionProfile Object to update + */ + public static UpdateUserSessionProfileBuilder update(long id, UserSessionProfile userSessionProfile) { + return new UpdateUserSessionProfileBuilder(id, userSessionProfile); + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/APIException.java b/KalturaClient/src/main/java/com/kaltura/client/types/APIException.java new file mode 100644 index 000000000..b2b6248e3 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/APIException.java @@ -0,0 +1,111 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import com.kaltura.client.utils.response.ResponseType; + +public class APIException extends Exception implements ResponseType { + + private static final long serialVersionUID = 6710104690443289367L; + + public static final String DefaultResponseError = "Failed getting response"; + + public enum FailureStep { + OnRequest("001"), + OnConfigure("002"), + OnPass("003"), + OnResponse("004"); + + public String code = "0"; + + FailureStep(String code){ + this.code = code; + } + + }; + + + private String code = null; + private String message = null; + private FailureStep failedOn; + + public APIException() { + super(); + } + + public APIException(String message) { + super(message); + this.message = message; + } + + public APIException(FailureStep step, String message) { + super(message); + this.code = step.code; + this.failedOn = step; + } + + public APIException(FailureStep step, String message, String excCode) { + super(message); + failedOn = step; + code = excCode; + } + + public APIException(Throwable exp) { + super(exp); + } + + public APIException(FailureStep step, Throwable exp) { + super(exp); + failedOn = step; + this.code = step.code; + } + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public FailureStep getFailedOn() { + return failedOn; + } + + public void setFailedOn(FailureStep failedOn) { + this.failedOn = failedOn; + } +} diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AccessControlBlockAction.java b/KalturaClient/src/main/java/com/kaltura/client/types/AccessControlBlockAction.java new file mode 100644 index 000000000..b4f40d9ca --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AccessControlBlockAction.java @@ -0,0 +1,82 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AccessControlBlockAction.Tokenizer.class) +public class AccessControlBlockAction extends AssetRuleAction { + + public interface Tokenizer extends AssetRuleAction.Tokenizer { + } + + + + public AccessControlBlockAction() { + super(); + } + + public AccessControlBlockAction(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAccessControlBlockAction"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public AccessControlBlockAction createFromParcel(Parcel source) { + return new AccessControlBlockAction(source); + } + + @Override + public AccessControlBlockAction[] newArray(int size) { + return new AccessControlBlockAction[size]; + } + }; + + public AccessControlBlockAction(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AccessControlMessage.java b/KalturaClient/src/main/java/com/kaltura/client/types/AccessControlMessage.java new file mode 100644 index 000000000..95fe58871 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AccessControlMessage.java @@ -0,0 +1,136 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AccessControlMessage.Tokenizer.class) +public class AccessControlMessage extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String message(); + String code(); + } + + /** + * Message + */ + private String message; + /** + * Code + */ + private String code; + + // message: + public String getMessage(){ + return this.message; + } + public void setMessage(String message){ + this.message = message; + } + + public void message(String multirequestToken){ + setToken("message", multirequestToken); + } + + // code: + public String getCode(){ + return this.code; + } + public void setCode(String code){ + this.code = code; + } + + public void code(String multirequestToken){ + setToken("code", multirequestToken); + } + + + public AccessControlMessage() { + super(); + } + + public AccessControlMessage(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + message = GsonParser.parseString(jsonObject.get("message")); + code = GsonParser.parseString(jsonObject.get("code")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAccessControlMessage"); + kparams.add("message", this.message); + kparams.add("code", this.code); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public AccessControlMessage createFromParcel(Parcel source) { + return new AccessControlMessage(source); + } + + @Override + public AccessControlMessage[] newArray(int size) { + return new AccessControlMessage[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.message); + dest.writeString(this.code); + } + + public AccessControlMessage(Parcel in) { + super(in); + this.message = in.readString(); + this.code = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ActionPermissionItem.java b/KalturaClient/src/main/java/com/kaltura/client/types/ActionPermissionItem.java new file mode 100644 index 000000000..18e52cc1f --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ActionPermissionItem.java @@ -0,0 +1,184 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.SocialActionPrivacy; +import com.kaltura.client.enums.SocialNetwork; +import com.kaltura.client.enums.SocialPrivacy; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ActionPermissionItem.Tokenizer.class) +public class ActionPermissionItem extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String network(); + String actionPrivacy(); + String privacy(); + String action(); + } + + /** + * Social network + */ + private SocialNetwork network; + /** + * Action privacy + */ + private SocialActionPrivacy actionPrivacy; + /** + * Social privacy + */ + private SocialPrivacy privacy; + /** + * Action - separated with comma + */ + private String action; + + // network: + public SocialNetwork getNetwork(){ + return this.network; + } + public void setNetwork(SocialNetwork network){ + this.network = network; + } + + public void network(String multirequestToken){ + setToken("network", multirequestToken); + } + + // actionPrivacy: + public SocialActionPrivacy getActionPrivacy(){ + return this.actionPrivacy; + } + public void setActionPrivacy(SocialActionPrivacy actionPrivacy){ + this.actionPrivacy = actionPrivacy; + } + + public void actionPrivacy(String multirequestToken){ + setToken("actionPrivacy", multirequestToken); + } + + // privacy: + public SocialPrivacy getPrivacy(){ + return this.privacy; + } + public void setPrivacy(SocialPrivacy privacy){ + this.privacy = privacy; + } + + public void privacy(String multirequestToken){ + setToken("privacy", multirequestToken); + } + + // action: + public String getAction(){ + return this.action; + } + public void setAction(String action){ + this.action = action; + } + + public void action(String multirequestToken){ + setToken("action", multirequestToken); + } + + + public ActionPermissionItem() { + super(); + } + + public ActionPermissionItem(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + network = SocialNetwork.get(GsonParser.parseString(jsonObject.get("network"))); + actionPrivacy = SocialActionPrivacy.get(GsonParser.parseString(jsonObject.get("actionPrivacy"))); + privacy = SocialPrivacy.get(GsonParser.parseString(jsonObject.get("privacy"))); + action = GsonParser.parseString(jsonObject.get("action")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaActionPermissionItem"); + kparams.add("network", this.network); + kparams.add("actionPrivacy", this.actionPrivacy); + kparams.add("privacy", this.privacy); + kparams.add("action", this.action); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public ActionPermissionItem createFromParcel(Parcel source) { + return new ActionPermissionItem(source); + } + + @Override + public ActionPermissionItem[] newArray(int size) { + return new ActionPermissionItem[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeInt(this.network == null ? -1 : this.network.ordinal()); + dest.writeInt(this.actionPrivacy == null ? -1 : this.actionPrivacy.ordinal()); + dest.writeInt(this.privacy == null ? -1 : this.privacy.ordinal()); + dest.writeString(this.action); + } + + public ActionPermissionItem(Parcel in) { + super(in); + int tmpNetwork = in.readInt(); + this.network = tmpNetwork == -1 ? null : SocialNetwork.values()[tmpNetwork]; + int tmpActionPrivacy = in.readInt(); + this.actionPrivacy = tmpActionPrivacy == -1 ? null : SocialActionPrivacy.values()[tmpActionPrivacy]; + int tmpPrivacy = in.readInt(); + this.privacy = tmpPrivacy == -1 ? null : SocialPrivacy.values()[tmpPrivacy]; + this.action = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ActionResult.java b/KalturaClient/src/main/java/com/kaltura/client/types/ActionResult.java new file mode 100644 index 000000000..08bcccefd --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ActionResult.java @@ -0,0 +1,122 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.Message; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Result of action performed on entity with Id + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ActionResult.Tokenizer.class) +public class ActionResult extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String id(); + Message.Tokenizer result(); + } + + /** + * Identifier of entity + */ + private Long id; + /** + * Identifier of entity + */ + private Message result; + + // id: + public Long getId(){ + return this.id; + } + // result: + public Message getResult(){ + return this.result; + } + + public ActionResult() { + super(); + } + + public ActionResult(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + id = GsonParser.parseLong(jsonObject.get("id")); + result = GsonParser.parseObject(jsonObject.getAsJsonObject("result"), Message.class); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaActionResult"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public ActionResult createFromParcel(Parcel source) { + return new ActionResult(source); + } + + @Override + public ActionResult[] newArray(int size) { + return new ActionResult[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.id); + dest.writeParcelable(this.result, flags); + } + + public ActionResult(Parcel in) { + super(in); + this.id = (Long)in.readValue(Long.class.getClassLoader()); + this.result = in.readParcelable(Message.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AddDefaultIfEmptyResponseProfile.java b/KalturaClient/src/main/java/com/kaltura/client/types/AddDefaultIfEmptyResponseProfile.java new file mode 100644 index 000000000..a2ce0d910 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AddDefaultIfEmptyResponseProfile.java @@ -0,0 +1,85 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Kaltura add default if empty ResponseProfile Filter + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AddDefaultIfEmptyResponseProfile.Tokenizer.class) +public class AddDefaultIfEmptyResponseProfile extends RelatedObjectFilter { + + public interface Tokenizer extends RelatedObjectFilter.Tokenizer { + } + + + + public AddDefaultIfEmptyResponseProfile() { + super(); + } + + public AddDefaultIfEmptyResponseProfile(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAddDefaultIfEmptyResponseProfile"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public AddDefaultIfEmptyResponseProfile createFromParcel(Parcel source) { + return new AddDefaultIfEmptyResponseProfile(source); + } + + @Override + public AddDefaultIfEmptyResponseProfile[] newArray(int size) { + return new AddDefaultIfEmptyResponseProfile[size]; + } + }; + + public AddDefaultIfEmptyResponseProfile(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AdsContext.java b/KalturaClient/src/main/java/com/kaltura/client/types/AdsContext.java new file mode 100644 index 000000000..4458b8cf9 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AdsContext.java @@ -0,0 +1,123 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.ArrayList; +import java.util.List; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AdsContext.Tokenizer.class) +public class AdsContext extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + RequestBuilder.ListTokenizer sources(); + } + + /** + * Sources + */ + private List sources; + + // sources: + public List getSources(){ + return this.sources; + } + public void setSources(List sources){ + this.sources = sources; + } + + + public AdsContext() { + super(); + } + + public AdsContext(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + sources = GsonParser.parseArray(jsonObject.getAsJsonArray("sources"), AdsSource.class); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAdsContext"); + kparams.add("sources", this.sources); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public AdsContext createFromParcel(Parcel source) { + return new AdsContext(source); + } + + @Override + public AdsContext[] newArray(int size) { + return new AdsContext[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + if(this.sources != null) { + dest.writeInt(this.sources.size()); + dest.writeList(this.sources); + } else { + dest.writeInt(-1); + } + } + + public AdsContext(Parcel in) { + super(in); + int sourcesSize = in.readInt(); + if( sourcesSize > -1) { + this.sources = new ArrayList<>(); + in.readList(this.sources, AdsSource.class.getClassLoader()); + } + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AdsSource.java b/KalturaClient/src/main/java/com/kaltura/client/types/AdsSource.java new file mode 100644 index 000000000..5de2463a7 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AdsSource.java @@ -0,0 +1,171 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.AdsPolicy; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AdsSource.Tokenizer.class) +public class AdsSource extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String id(); + String type(); + String adsPolicy(); + String adsParam(); + } + + /** + * File unique identifier + */ + private Integer id; + /** + * Device types as defined in the system + */ + private String type; + /** + * Ads policy + */ + private AdsPolicy adsPolicy; + /** + * The parameters to pass to the ads server + */ + private String adsParam; + + // id: + public Integer getId(){ + return this.id; + } + // type: + public String getType(){ + return this.type; + } + public void setType(String type){ + this.type = type; + } + + public void type(String multirequestToken){ + setToken("type", multirequestToken); + } + + // adsPolicy: + public AdsPolicy getAdsPolicy(){ + return this.adsPolicy; + } + public void setAdsPolicy(AdsPolicy adsPolicy){ + this.adsPolicy = adsPolicy; + } + + public void adsPolicy(String multirequestToken){ + setToken("adsPolicy", multirequestToken); + } + + // adsParam: + public String getAdsParam(){ + return this.adsParam; + } + public void setAdsParam(String adsParam){ + this.adsParam = adsParam; + } + + public void adsParam(String multirequestToken){ + setToken("adsParam", multirequestToken); + } + + + public AdsSource() { + super(); + } + + public AdsSource(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + id = GsonParser.parseInt(jsonObject.get("id")); + type = GsonParser.parseString(jsonObject.get("type")); + adsPolicy = AdsPolicy.get(GsonParser.parseString(jsonObject.get("adsPolicy"))); + adsParam = GsonParser.parseString(jsonObject.get("adsParam")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAdsSource"); + kparams.add("type", this.type); + kparams.add("adsPolicy", this.adsPolicy); + kparams.add("adsParam", this.adsParam); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public AdsSource createFromParcel(Parcel source) { + return new AdsSource(source); + } + + @Override + public AdsSource[] newArray(int size) { + return new AdsSource[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.id); + dest.writeString(this.type); + dest.writeInt(this.adsPolicy == null ? -1 : this.adsPolicy.ordinal()); + dest.writeString(this.adsParam); + } + + public AdsSource(Parcel in) { + super(in); + this.id = (Integer)in.readValue(Integer.class.getClassLoader()); + this.type = in.readString(); + int tmpAdsPolicy = in.readInt(); + this.adsPolicy = tmpAdsPolicy == -1 ? null : AdsPolicy.values()[tmpAdsPolicy]; + this.adsParam = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AggregatedIngestInfo.java b/KalturaClient/src/main/java/com/kaltura/client/types/AggregatedIngestInfo.java new file mode 100644 index 000000000..db1f94a24 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AggregatedIngestInfo.java @@ -0,0 +1,179 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AggregatedIngestInfo.Tokenizer.class) +public class AggregatedIngestInfo extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String resultsCount(); + String totalFailureCount(); + String partialFailureCount(); + String warningsCount(); + } + + /** + * Number of results + */ + private Long resultsCount; + /** + * Number of results that include at least one error of severity TotalFailure + */ + private Long totalFailureCount; + /** + * Number of results that include no error with severity TotalFailure but at at + least one error of severity PartialFailure + */ + private Long partialFailureCount; + /** + * Number of results that include at least one warning + */ + private Long warningsCount; + + // resultsCount: + public Long getResultsCount(){ + return this.resultsCount; + } + public void setResultsCount(Long resultsCount){ + this.resultsCount = resultsCount; + } + + public void resultsCount(String multirequestToken){ + setToken("resultsCount", multirequestToken); + } + + // totalFailureCount: + public Long getTotalFailureCount(){ + return this.totalFailureCount; + } + public void setTotalFailureCount(Long totalFailureCount){ + this.totalFailureCount = totalFailureCount; + } + + public void totalFailureCount(String multirequestToken){ + setToken("totalFailureCount", multirequestToken); + } + + // partialFailureCount: + public Long getPartialFailureCount(){ + return this.partialFailureCount; + } + public void setPartialFailureCount(Long partialFailureCount){ + this.partialFailureCount = partialFailureCount; + } + + public void partialFailureCount(String multirequestToken){ + setToken("partialFailureCount", multirequestToken); + } + + // warningsCount: + public Long getWarningsCount(){ + return this.warningsCount; + } + public void setWarningsCount(Long warningsCount){ + this.warningsCount = warningsCount; + } + + public void warningsCount(String multirequestToken){ + setToken("warningsCount", multirequestToken); + } + + + public AggregatedIngestInfo() { + super(); + } + + public AggregatedIngestInfo(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + resultsCount = GsonParser.parseLong(jsonObject.get("resultsCount")); + totalFailureCount = GsonParser.parseLong(jsonObject.get("totalFailureCount")); + partialFailureCount = GsonParser.parseLong(jsonObject.get("partialFailureCount")); + warningsCount = GsonParser.parseLong(jsonObject.get("warningsCount")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAggregatedIngestInfo"); + kparams.add("resultsCount", this.resultsCount); + kparams.add("totalFailureCount", this.totalFailureCount); + kparams.add("partialFailureCount", this.partialFailureCount); + kparams.add("warningsCount", this.warningsCount); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public AggregatedIngestInfo createFromParcel(Parcel source) { + return new AggregatedIngestInfo(source); + } + + @Override + public AggregatedIngestInfo[] newArray(int size) { + return new AggregatedIngestInfo[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.resultsCount); + dest.writeValue(this.totalFailureCount); + dest.writeValue(this.partialFailureCount); + dest.writeValue(this.warningsCount); + } + + public AggregatedIngestInfo(Parcel in) { + super(in); + this.resultsCount = (Long)in.readValue(Long.class.getClassLoader()); + this.totalFailureCount = (Long)in.readValue(Long.class.getClassLoader()); + this.partialFailureCount = (Long)in.readValue(Long.class.getClassLoader()); + this.warningsCount = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AggregatedPropertySkipCondition.java b/KalturaClient/src/main/java/com/kaltura/client/types/AggregatedPropertySkipCondition.java new file mode 100644 index 000000000..a7aeead26 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AggregatedPropertySkipCondition.java @@ -0,0 +1,119 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.AggregationType; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Skips current request according to aggregation condition on given property + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AggregatedPropertySkipCondition.Tokenizer.class) +public class AggregatedPropertySkipCondition extends PropertySkipCondition { + + public interface Tokenizer extends PropertySkipCondition.Tokenizer { + String aggregationType(); + } + + /** + * The aggregation type on which the condition is based on + */ + private AggregationType aggregationType; + + // aggregationType: + public AggregationType getAggregationType(){ + return this.aggregationType; + } + public void setAggregationType(AggregationType aggregationType){ + this.aggregationType = aggregationType; + } + + public void aggregationType(String multirequestToken){ + setToken("aggregationType", multirequestToken); + } + + + public AggregatedPropertySkipCondition() { + super(); + } + + public AggregatedPropertySkipCondition(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + aggregationType = AggregationType.get(GsonParser.parseString(jsonObject.get("aggregationType"))); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAggregatedPropertySkipCondition"); + kparams.add("aggregationType", this.aggregationType); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public AggregatedPropertySkipCondition createFromParcel(Parcel source) { + return new AggregatedPropertySkipCondition(source); + } + + @Override + public AggregatedPropertySkipCondition[] newArray(int size) { + return new AggregatedPropertySkipCondition[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeInt(this.aggregationType == null ? -1 : this.aggregationType.ordinal()); + } + + public AggregatedPropertySkipCondition(Parcel in) { + super(in); + int tmpAggregationType = in.readInt(); + this.aggregationType = tmpAggregationType == -1 ? null : AggregationType.values()[tmpAggregationType]; + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AggregationCountFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/AggregationCountFilter.java new file mode 100644 index 000000000..b0efece52 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AggregationCountFilter.java @@ -0,0 +1,85 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Kaltura Aggregation CountFilter + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AggregationCountFilter.Tokenizer.class) +public class AggregationCountFilter extends RelatedObjectFilter { + + public interface Tokenizer extends RelatedObjectFilter.Tokenizer { + } + + + + public AggregationCountFilter() { + super(); + } + + public AggregationCountFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAggregationCountFilter"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public AggregationCountFilter createFromParcel(Parcel source) { + return new AggregationCountFilter(source); + } + + @Override + public AggregationCountFilter[] newArray(int size) { + return new AggregationCountFilter[size]; + } + }; + + public AggregationCountFilter(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AllowPlaybackAction.java b/KalturaClient/src/main/java/com/kaltura/client/types/AllowPlaybackAction.java new file mode 100644 index 000000000..59f33a966 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AllowPlaybackAction.java @@ -0,0 +1,82 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AllowPlaybackAction.Tokenizer.class) +public class AllowPlaybackAction extends AssetRuleAction { + + public interface Tokenizer extends AssetRuleAction.Tokenizer { + } + + + + public AllowPlaybackAction() { + super(); + } + + public AllowPlaybackAction(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAllowPlaybackAction"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public AllowPlaybackAction createFromParcel(Parcel source) { + return new AllowPlaybackAction(source); + } + + @Override + public AllowPlaybackAction[] newArray(int size) { + return new AllowPlaybackAction[size]; + } + }; + + public AllowPlaybackAction(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/Announcement.java b/KalturaClient/src/main/java/com/kaltura/client/types/Announcement.java new file mode 100644 index 000000000..f9c39b19c --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/Announcement.java @@ -0,0 +1,395 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.AnnouncementRecipientsType; +import com.kaltura.client.enums.AnnouncementStatus; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(Announcement.Tokenizer.class) +public class Announcement extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String name(); + String message(); + String enabled(); + String startTime(); + String timezone(); + String status(); + String recipients(); + String id(); + String imageUrl(); + String includeMail(); + String mailTemplate(); + String mailSubject(); + String includeSms(); + String includeIot(); + String includeUserInbox(); + } + + /** + * Announcement name + */ + private String name; + /** + * Announcement message + */ + private String message; + /** + * Announcement enabled + */ + private Boolean enabled; + /** + * Announcement start time + */ + private Long startTime; + /** + * Announcement time zone + */ + private String timezone; + /** + * Announcement status: NotSent=0/Sending=1/Sent=2/Aborted=3 + */ + private AnnouncementStatus status; + /** + * Announcement recipients: All=0/LoggedIn=1/Guests=2/Other=3 + */ + private AnnouncementRecipientsType recipients; + /** + * Announcement id + */ + private Integer id; + /** + * Announcement image URL, relevant for system announcements + */ + private String imageUrl; + /** + * Include Mail + */ + private Boolean includeMail; + /** + * Mail Template + */ + private String mailTemplate; + /** + * Mail Subject + */ + private String mailSubject; + /** + * Include SMS + */ + private Boolean includeSms; + /** + * Include IOT + */ + private Boolean includeIot; + /** + * Should add to user inbox + */ + private Boolean includeUserInbox; + + // name: + public String getName(){ + return this.name; + } + public void setName(String name){ + this.name = name; + } + + public void name(String multirequestToken){ + setToken("name", multirequestToken); + } + + // message: + public String getMessage(){ + return this.message; + } + public void setMessage(String message){ + this.message = message; + } + + public void message(String multirequestToken){ + setToken("message", multirequestToken); + } + + // enabled: + public Boolean getEnabled(){ + return this.enabled; + } + public void setEnabled(Boolean enabled){ + this.enabled = enabled; + } + + public void enabled(String multirequestToken){ + setToken("enabled", multirequestToken); + } + + // startTime: + public Long getStartTime(){ + return this.startTime; + } + public void setStartTime(Long startTime){ + this.startTime = startTime; + } + + public void startTime(String multirequestToken){ + setToken("startTime", multirequestToken); + } + + // timezone: + public String getTimezone(){ + return this.timezone; + } + public void setTimezone(String timezone){ + this.timezone = timezone; + } + + public void timezone(String multirequestToken){ + setToken("timezone", multirequestToken); + } + + // status: + public AnnouncementStatus getStatus(){ + return this.status; + } + // recipients: + public AnnouncementRecipientsType getRecipients(){ + return this.recipients; + } + public void setRecipients(AnnouncementRecipientsType recipients){ + this.recipients = recipients; + } + + public void recipients(String multirequestToken){ + setToken("recipients", multirequestToken); + } + + // id: + public Integer getId(){ + return this.id; + } + // imageUrl: + public String getImageUrl(){ + return this.imageUrl; + } + public void setImageUrl(String imageUrl){ + this.imageUrl = imageUrl; + } + + public void imageUrl(String multirequestToken){ + setToken("imageUrl", multirequestToken); + } + + // includeMail: + public Boolean getIncludeMail(){ + return this.includeMail; + } + public void setIncludeMail(Boolean includeMail){ + this.includeMail = includeMail; + } + + public void includeMail(String multirequestToken){ + setToken("includeMail", multirequestToken); + } + + // mailTemplate: + public String getMailTemplate(){ + return this.mailTemplate; + } + public void setMailTemplate(String mailTemplate){ + this.mailTemplate = mailTemplate; + } + + public void mailTemplate(String multirequestToken){ + setToken("mailTemplate", multirequestToken); + } + + // mailSubject: + public String getMailSubject(){ + return this.mailSubject; + } + public void setMailSubject(String mailSubject){ + this.mailSubject = mailSubject; + } + + public void mailSubject(String multirequestToken){ + setToken("mailSubject", multirequestToken); + } + + // includeSms: + public Boolean getIncludeSms(){ + return this.includeSms; + } + public void setIncludeSms(Boolean includeSms){ + this.includeSms = includeSms; + } + + public void includeSms(String multirequestToken){ + setToken("includeSms", multirequestToken); + } + + // includeIot: + public Boolean getIncludeIot(){ + return this.includeIot; + } + public void setIncludeIot(Boolean includeIot){ + this.includeIot = includeIot; + } + + public void includeIot(String multirequestToken){ + setToken("includeIot", multirequestToken); + } + + // includeUserInbox: + public Boolean getIncludeUserInbox(){ + return this.includeUserInbox; + } + public void setIncludeUserInbox(Boolean includeUserInbox){ + this.includeUserInbox = includeUserInbox; + } + + public void includeUserInbox(String multirequestToken){ + setToken("includeUserInbox", multirequestToken); + } + + + public Announcement() { + super(); + } + + public Announcement(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + name = GsonParser.parseString(jsonObject.get("name")); + message = GsonParser.parseString(jsonObject.get("message")); + enabled = GsonParser.parseBoolean(jsonObject.get("enabled")); + startTime = GsonParser.parseLong(jsonObject.get("startTime")); + timezone = GsonParser.parseString(jsonObject.get("timezone")); + status = AnnouncementStatus.get(GsonParser.parseString(jsonObject.get("status"))); + recipients = AnnouncementRecipientsType.get(GsonParser.parseString(jsonObject.get("recipients"))); + id = GsonParser.parseInt(jsonObject.get("id")); + imageUrl = GsonParser.parseString(jsonObject.get("imageUrl")); + includeMail = GsonParser.parseBoolean(jsonObject.get("includeMail")); + mailTemplate = GsonParser.parseString(jsonObject.get("mailTemplate")); + mailSubject = GsonParser.parseString(jsonObject.get("mailSubject")); + includeSms = GsonParser.parseBoolean(jsonObject.get("includeSms")); + includeIot = GsonParser.parseBoolean(jsonObject.get("includeIot")); + includeUserInbox = GsonParser.parseBoolean(jsonObject.get("includeUserInbox")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAnnouncement"); + kparams.add("name", this.name); + kparams.add("message", this.message); + kparams.add("enabled", this.enabled); + kparams.add("startTime", this.startTime); + kparams.add("timezone", this.timezone); + kparams.add("recipients", this.recipients); + kparams.add("imageUrl", this.imageUrl); + kparams.add("includeMail", this.includeMail); + kparams.add("mailTemplate", this.mailTemplate); + kparams.add("mailSubject", this.mailSubject); + kparams.add("includeSms", this.includeSms); + kparams.add("includeIot", this.includeIot); + kparams.add("includeUserInbox", this.includeUserInbox); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public Announcement createFromParcel(Parcel source) { + return new Announcement(source); + } + + @Override + public Announcement[] newArray(int size) { + return new Announcement[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.name); + dest.writeString(this.message); + dest.writeValue(this.enabled); + dest.writeValue(this.startTime); + dest.writeString(this.timezone); + dest.writeInt(this.status == null ? -1 : this.status.ordinal()); + dest.writeInt(this.recipients == null ? -1 : this.recipients.ordinal()); + dest.writeValue(this.id); + dest.writeString(this.imageUrl); + dest.writeValue(this.includeMail); + dest.writeString(this.mailTemplate); + dest.writeString(this.mailSubject); + dest.writeValue(this.includeSms); + dest.writeValue(this.includeIot); + dest.writeValue(this.includeUserInbox); + } + + public Announcement(Parcel in) { + super(in); + this.name = in.readString(); + this.message = in.readString(); + this.enabled = (Boolean)in.readValue(Boolean.class.getClassLoader()); + this.startTime = (Long)in.readValue(Long.class.getClassLoader()); + this.timezone = in.readString(); + int tmpStatus = in.readInt(); + this.status = tmpStatus == -1 ? null : AnnouncementStatus.values()[tmpStatus]; + int tmpRecipients = in.readInt(); + this.recipients = tmpRecipients == -1 ? null : AnnouncementRecipientsType.values()[tmpRecipients]; + this.id = (Integer)in.readValue(Integer.class.getClassLoader()); + this.imageUrl = in.readString(); + this.includeMail = (Boolean)in.readValue(Boolean.class.getClassLoader()); + this.mailTemplate = in.readString(); + this.mailSubject = in.readString(); + this.includeSms = (Boolean)in.readValue(Boolean.class.getClassLoader()); + this.includeIot = (Boolean)in.readValue(Boolean.class.getClassLoader()); + this.includeUserInbox = (Boolean)in.readValue(Boolean.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AnnouncementFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/AnnouncementFilter.java new file mode 100644 index 000000000..431a5eccf --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AnnouncementFilter.java @@ -0,0 +1,117 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * order announcements + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AnnouncementFilter.Tokenizer.class) +public class AnnouncementFilter extends Filter { + + public interface Tokenizer extends Filter.Tokenizer { + String idIn(); + } + + /** + * A list of comma separated announcement ids. + */ + private String idIn; + + // idIn: + public String getIdIn(){ + return this.idIn; + } + public void setIdIn(String idIn){ + this.idIn = idIn; + } + + public void idIn(String multirequestToken){ + setToken("idIn", multirequestToken); + } + + + public AnnouncementFilter() { + super(); + } + + public AnnouncementFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + idIn = GsonParser.parseString(jsonObject.get("idIn")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAnnouncementFilter"); + kparams.add("idIn", this.idIn); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public AnnouncementFilter createFromParcel(Parcel source) { + return new AnnouncementFilter(source); + } + + @Override + public AnnouncementFilter[] newArray(int size) { + return new AnnouncementFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.idIn); + } + + public AnnouncementFilter(Parcel in) { + super(in); + this.idIn = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ApiActionPermissionItem.java b/KalturaClient/src/main/java/com/kaltura/client/types/ApiActionPermissionItem.java new file mode 100644 index 000000000..72ed23bc9 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ApiActionPermissionItem.java @@ -0,0 +1,135 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ApiActionPermissionItem.Tokenizer.class) +public class ApiActionPermissionItem extends PermissionItem { + + public interface Tokenizer extends PermissionItem.Tokenizer { + String service(); + String action(); + } + + /** + * API service name + */ + private String service; + /** + * API action name + */ + private String action; + + // service: + public String getService(){ + return this.service; + } + public void setService(String service){ + this.service = service; + } + + public void service(String multirequestToken){ + setToken("service", multirequestToken); + } + + // action: + public String getAction(){ + return this.action; + } + public void setAction(String action){ + this.action = action; + } + + public void action(String multirequestToken){ + setToken("action", multirequestToken); + } + + + public ApiActionPermissionItem() { + super(); + } + + public ApiActionPermissionItem(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + service = GsonParser.parseString(jsonObject.get("service")); + action = GsonParser.parseString(jsonObject.get("action")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaApiActionPermissionItem"); + kparams.add("service", this.service); + kparams.add("action", this.action); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public ApiActionPermissionItem createFromParcel(Parcel source) { + return new ApiActionPermissionItem(source); + } + + @Override + public ApiActionPermissionItem[] newArray(int size) { + return new ApiActionPermissionItem[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.service); + dest.writeString(this.action); + } + + public ApiActionPermissionItem(Parcel in) { + super(in); + this.service = in.readString(); + this.action = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ApiArgumentPermissionItem.java b/KalturaClient/src/main/java/com/kaltura/client/types/ApiArgumentPermissionItem.java new file mode 100644 index 000000000..50130a84d --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ApiArgumentPermissionItem.java @@ -0,0 +1,156 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ApiArgumentPermissionItem.Tokenizer.class) +public class ApiArgumentPermissionItem extends PermissionItem { + + public interface Tokenizer extends PermissionItem.Tokenizer { + String service(); + String action(); + String parameter(); + } + + /** + * API service name + */ + private String service; + /** + * API action name + */ + private String action; + /** + * API parameter name + */ + private String parameter; + + // service: + public String getService(){ + return this.service; + } + public void setService(String service){ + this.service = service; + } + + public void service(String multirequestToken){ + setToken("service", multirequestToken); + } + + // action: + public String getAction(){ + return this.action; + } + public void setAction(String action){ + this.action = action; + } + + public void action(String multirequestToken){ + setToken("action", multirequestToken); + } + + // parameter: + public String getParameter(){ + return this.parameter; + } + public void setParameter(String parameter){ + this.parameter = parameter; + } + + public void parameter(String multirequestToken){ + setToken("parameter", multirequestToken); + } + + + public ApiArgumentPermissionItem() { + super(); + } + + public ApiArgumentPermissionItem(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + service = GsonParser.parseString(jsonObject.get("service")); + action = GsonParser.parseString(jsonObject.get("action")); + parameter = GsonParser.parseString(jsonObject.get("parameter")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaApiArgumentPermissionItem"); + kparams.add("service", this.service); + kparams.add("action", this.action); + kparams.add("parameter", this.parameter); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public ApiArgumentPermissionItem createFromParcel(Parcel source) { + return new ApiArgumentPermissionItem(source); + } + + @Override + public ApiArgumentPermissionItem[] newArray(int size) { + return new ApiArgumentPermissionItem[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.service); + dest.writeString(this.action); + dest.writeString(this.parameter); + } + + public ApiArgumentPermissionItem(Parcel in) { + super(in); + this.service = in.readString(); + this.action = in.readString(); + this.parameter = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ApiExceptionArg.java b/KalturaClient/src/main/java/com/kaltura/client/types/ApiExceptionArg.java new file mode 100644 index 000000000..7bd117ca0 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ApiExceptionArg.java @@ -0,0 +1,136 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ApiExceptionArg.Tokenizer.class) +public class ApiExceptionArg extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String name(); + String value(); + } + + /** + * Argument name + */ + private String name; + /** + * Argument value + */ + private String value; + + // name: + public String getName(){ + return this.name; + } + public void setName(String name){ + this.name = name; + } + + public void name(String multirequestToken){ + setToken("name", multirequestToken); + } + + // value: + public String getValue(){ + return this.value; + } + public void setValue(String value){ + this.value = value; + } + + public void value(String multirequestToken){ + setToken("value", multirequestToken); + } + + + public ApiExceptionArg() { + super(); + } + + public ApiExceptionArg(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + name = GsonParser.parseString(jsonObject.get("name")); + value = GsonParser.parseString(jsonObject.get("value")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaApiExceptionArg"); + kparams.add("name", this.name); + kparams.add("value", this.value); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public ApiExceptionArg createFromParcel(Parcel source) { + return new ApiExceptionArg(source); + } + + @Override + public ApiExceptionArg[] newArray(int size) { + return new ApiExceptionArg[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.name); + dest.writeString(this.value); + } + + public ApiExceptionArg(Parcel in) { + super(in); + this.name = in.readString(); + this.value = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ApiParameterPermissionItem.java b/KalturaClient/src/main/java/com/kaltura/client/types/ApiParameterPermissionItem.java new file mode 100644 index 000000000..41928b33e --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ApiParameterPermissionItem.java @@ -0,0 +1,158 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.ApiParameterPermissionItemAction; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ApiParameterPermissionItem.Tokenizer.class) +public class ApiParameterPermissionItem extends PermissionItem { + + public interface Tokenizer extends PermissionItem.Tokenizer { + String object(); + String parameter(); + String action(); + } + + /** + * API object name + */ + private String object; + /** + * API parameter name + */ + private String parameter; + /** + * API action type + */ + private ApiParameterPermissionItemAction action; + + // object: + public String getObject(){ + return this.object; + } + public void setObject(String object){ + this.object = object; + } + + public void object(String multirequestToken){ + setToken("object", multirequestToken); + } + + // parameter: + public String getParameter(){ + return this.parameter; + } + public void setParameter(String parameter){ + this.parameter = parameter; + } + + public void parameter(String multirequestToken){ + setToken("parameter", multirequestToken); + } + + // action: + public ApiParameterPermissionItemAction getAction(){ + return this.action; + } + public void setAction(ApiParameterPermissionItemAction action){ + this.action = action; + } + + public void action(String multirequestToken){ + setToken("action", multirequestToken); + } + + + public ApiParameterPermissionItem() { + super(); + } + + public ApiParameterPermissionItem(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + object = GsonParser.parseString(jsonObject.get("object")); + parameter = GsonParser.parseString(jsonObject.get("parameter")); + action = ApiParameterPermissionItemAction.get(GsonParser.parseString(jsonObject.get("action"))); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaApiParameterPermissionItem"); + kparams.add("object", this.object); + kparams.add("parameter", this.parameter); + kparams.add("action", this.action); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public ApiParameterPermissionItem createFromParcel(Parcel source) { + return new ApiParameterPermissionItem(source); + } + + @Override + public ApiParameterPermissionItem[] newArray(int size) { + return new ApiParameterPermissionItem[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.object); + dest.writeString(this.parameter); + dest.writeInt(this.action == null ? -1 : this.action.ordinal()); + } + + public ApiParameterPermissionItem(Parcel in) { + super(in); + this.object = in.readString(); + this.parameter = in.readString(); + int tmpAction = in.readInt(); + this.action = tmpAction == -1 ? null : ApiParameterPermissionItemAction.values()[tmpAction]; + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ApiPriviligesPermissionItem.java b/KalturaClient/src/main/java/com/kaltura/client/types/ApiPriviligesPermissionItem.java new file mode 100644 index 000000000..919d525ce --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ApiPriviligesPermissionItem.java @@ -0,0 +1,135 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ApiPriviligesPermissionItem.Tokenizer.class) +public class ApiPriviligesPermissionItem extends PermissionItem { + + public interface Tokenizer extends PermissionItem.Tokenizer { + String object(); + String parameter(); + } + + /** + * API object name + */ + private String object; + /** + * API parameter name + */ + private String parameter; + + // object: + public String getObject(){ + return this.object; + } + public void setObject(String object){ + this.object = object; + } + + public void object(String multirequestToken){ + setToken("object", multirequestToken); + } + + // parameter: + public String getParameter(){ + return this.parameter; + } + public void setParameter(String parameter){ + this.parameter = parameter; + } + + public void parameter(String multirequestToken){ + setToken("parameter", multirequestToken); + } + + + public ApiPriviligesPermissionItem() { + super(); + } + + public ApiPriviligesPermissionItem(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + object = GsonParser.parseString(jsonObject.get("object")); + parameter = GsonParser.parseString(jsonObject.get("parameter")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaApiPriviligesPermissionItem"); + kparams.add("object", this.object); + kparams.add("parameter", this.parameter); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public ApiPriviligesPermissionItem createFromParcel(Parcel source) { + return new ApiPriviligesPermissionItem(source); + } + + @Override + public ApiPriviligesPermissionItem[] newArray(int size) { + return new ApiPriviligesPermissionItem[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.object); + dest.writeString(this.parameter); + } + + public ApiPriviligesPermissionItem(Parcel in) { + super(in); + this.object = in.readString(); + this.parameter = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AppToken.java b/KalturaClient/src/main/java/com/kaltura/client/types/AppToken.java new file mode 100644 index 000000000..cc1a9f6c1 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AppToken.java @@ -0,0 +1,266 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.AppTokenHashType; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Application token + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AppToken.Tokenizer.class) +public class AppToken extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String id(); + String expiry(); + String partnerId(); + String sessionDuration(); + String hashType(); + String sessionPrivileges(); + String token(); + String sessionUserId(); + String createDate(); + String updateDate(); + } + + /** + * The id of the application token + */ + private String id; + /** + * Expiry time of current token (unix timestamp in seconds) + */ + private Integer expiry; + /** + * Partner identifier + */ + private Integer partnerId; + /** + * Expiry duration of KS (Kaltura Session) that created using the current token (in + seconds) + */ + private Integer sessionDuration; + /** + * The hash type of the token + */ + private AppTokenHashType hashType; + /** + * Comma separated privileges to be applied on KS (Kaltura Session) that created + using the current token + */ + private String sessionPrivileges; + /** + * The application token + */ + private String token; + /** + * User id of KS (Kaltura Session) that created using the current token + */ + private String sessionUserId; + /** + * Create date + */ + private Long createDate; + /** + * Update date + */ + private Long updateDate; + + // id: + public String getId(){ + return this.id; + } + // expiry: + public Integer getExpiry(){ + return this.expiry; + } + public void setExpiry(Integer expiry){ + this.expiry = expiry; + } + + public void expiry(String multirequestToken){ + setToken("expiry", multirequestToken); + } + + // partnerId: + public Integer getPartnerId(){ + return this.partnerId; + } + // sessionDuration: + public Integer getSessionDuration(){ + return this.sessionDuration; + } + public void setSessionDuration(Integer sessionDuration){ + this.sessionDuration = sessionDuration; + } + + public void sessionDuration(String multirequestToken){ + setToken("sessionDuration", multirequestToken); + } + + // hashType: + public AppTokenHashType getHashType(){ + return this.hashType; + } + public void setHashType(AppTokenHashType hashType){ + this.hashType = hashType; + } + + public void hashType(String multirequestToken){ + setToken("hashType", multirequestToken); + } + + // sessionPrivileges: + public String getSessionPrivileges(){ + return this.sessionPrivileges; + } + public void setSessionPrivileges(String sessionPrivileges){ + this.sessionPrivileges = sessionPrivileges; + } + + public void sessionPrivileges(String multirequestToken){ + setToken("sessionPrivileges", multirequestToken); + } + + // token: + public String getToken(){ + return this.token; + } + // sessionUserId: + public String getSessionUserId(){ + return this.sessionUserId; + } + public void setSessionUserId(String sessionUserId){ + this.sessionUserId = sessionUserId; + } + + public void sessionUserId(String multirequestToken){ + setToken("sessionUserId", multirequestToken); + } + + // createDate: + public Long getCreateDate(){ + return this.createDate; + } + // updateDate: + public Long getUpdateDate(){ + return this.updateDate; + } + + public AppToken() { + super(); + } + + public AppToken(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + id = GsonParser.parseString(jsonObject.get("id")); + expiry = GsonParser.parseInt(jsonObject.get("expiry")); + partnerId = GsonParser.parseInt(jsonObject.get("partnerId")); + sessionDuration = GsonParser.parseInt(jsonObject.get("sessionDuration")); + hashType = AppTokenHashType.get(GsonParser.parseString(jsonObject.get("hashType"))); + sessionPrivileges = GsonParser.parseString(jsonObject.get("sessionPrivileges")); + token = GsonParser.parseString(jsonObject.get("token")); + sessionUserId = GsonParser.parseString(jsonObject.get("sessionUserId")); + createDate = GsonParser.parseLong(jsonObject.get("createDate")); + updateDate = GsonParser.parseLong(jsonObject.get("updateDate")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAppToken"); + kparams.add("expiry", this.expiry); + kparams.add("sessionDuration", this.sessionDuration); + kparams.add("hashType", this.hashType); + kparams.add("sessionPrivileges", this.sessionPrivileges); + kparams.add("sessionUserId", this.sessionUserId); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public AppToken createFromParcel(Parcel source) { + return new AppToken(source); + } + + @Override + public AppToken[] newArray(int size) { + return new AppToken[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.id); + dest.writeValue(this.expiry); + dest.writeValue(this.partnerId); + dest.writeValue(this.sessionDuration); + dest.writeInt(this.hashType == null ? -1 : this.hashType.ordinal()); + dest.writeString(this.sessionPrivileges); + dest.writeString(this.token); + dest.writeString(this.sessionUserId); + dest.writeValue(this.createDate); + dest.writeValue(this.updateDate); + } + + public AppToken(Parcel in) { + super(in); + this.id = in.readString(); + this.expiry = (Integer)in.readValue(Integer.class.getClassLoader()); + this.partnerId = (Integer)in.readValue(Integer.class.getClassLoader()); + this.sessionDuration = (Integer)in.readValue(Integer.class.getClassLoader()); + int tmpHashType = in.readInt(); + this.hashType = tmpHashType == -1 ? null : AppTokenHashType.values()[tmpHashType]; + this.sessionPrivileges = in.readString(); + this.token = in.readString(); + this.sessionUserId = in.readString(); + this.createDate = (Long)in.readValue(Long.class.getClassLoader()); + this.updateDate = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ApplyDiscountModuleAction.java b/KalturaClient/src/main/java/com/kaltura/client/types/ApplyDiscountModuleAction.java new file mode 100644 index 000000000..820015a55 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ApplyDiscountModuleAction.java @@ -0,0 +1,114 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ApplyDiscountModuleAction.Tokenizer.class) +public class ApplyDiscountModuleAction extends BusinessModuleRuleAction { + + public interface Tokenizer extends BusinessModuleRuleAction.Tokenizer { + String discountModuleId(); + } + + /** + * Discount module ID + */ + private Long discountModuleId; + + // discountModuleId: + public Long getDiscountModuleId(){ + return this.discountModuleId; + } + public void setDiscountModuleId(Long discountModuleId){ + this.discountModuleId = discountModuleId; + } + + public void discountModuleId(String multirequestToken){ + setToken("discountModuleId", multirequestToken); + } + + + public ApplyDiscountModuleAction() { + super(); + } + + public ApplyDiscountModuleAction(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + discountModuleId = GsonParser.parseLong(jsonObject.get("discountModuleId")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaApplyDiscountModuleAction"); + kparams.add("discountModuleId", this.discountModuleId); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public ApplyDiscountModuleAction createFromParcel(Parcel source) { + return new ApplyDiscountModuleAction(source); + } + + @Override + public ApplyDiscountModuleAction[] newArray(int size) { + return new ApplyDiscountModuleAction[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.discountModuleId); + } + + public ApplyDiscountModuleAction(Parcel in) { + super(in); + this.discountModuleId = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ApplyFreePlaybackAction.java b/KalturaClient/src/main/java/com/kaltura/client/types/ApplyFreePlaybackAction.java new file mode 100644 index 000000000..9b95cde1c --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ApplyFreePlaybackAction.java @@ -0,0 +1,82 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ApplyFreePlaybackAction.Tokenizer.class) +public class ApplyFreePlaybackAction extends BusinessModuleRuleAction { + + public interface Tokenizer extends BusinessModuleRuleAction.Tokenizer { + } + + + + public ApplyFreePlaybackAction() { + super(); + } + + public ApplyFreePlaybackAction(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaApplyFreePlaybackAction"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public ApplyFreePlaybackAction createFromParcel(Parcel source) { + return new ApplyFreePlaybackAction(source); + } + + @Override + public ApplyFreePlaybackAction[] newArray(int size) { + return new ApplyFreePlaybackAction[size]; + } + }; + + public ApplyFreePlaybackAction(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ApplyPlaybackAdapterAction.java b/KalturaClient/src/main/java/com/kaltura/client/types/ApplyPlaybackAdapterAction.java new file mode 100644 index 000000000..9b7fb33e6 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ApplyPlaybackAdapterAction.java @@ -0,0 +1,114 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ApplyPlaybackAdapterAction.Tokenizer.class) +public class ApplyPlaybackAdapterAction extends AssetRuleAction { + + public interface Tokenizer extends AssetRuleAction.Tokenizer { + String adapterId(); + } + + /** + * Playback Adapter Identifier + */ + private Integer adapterId; + + // adapterId: + public Integer getAdapterId(){ + return this.adapterId; + } + public void setAdapterId(Integer adapterId){ + this.adapterId = adapterId; + } + + public void adapterId(String multirequestToken){ + setToken("adapterId", multirequestToken); + } + + + public ApplyPlaybackAdapterAction() { + super(); + } + + public ApplyPlaybackAdapterAction(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + adapterId = GsonParser.parseInt(jsonObject.get("adapterId")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaApplyPlaybackAdapterAction"); + kparams.add("adapterId", this.adapterId); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public ApplyPlaybackAdapterAction createFromParcel(Parcel source) { + return new ApplyPlaybackAdapterAction(source); + } + + @Override + public ApplyPlaybackAdapterAction[] newArray(int size) { + return new ApplyPlaybackAdapterAction[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.adapterId); + } + + public ApplyPlaybackAdapterAction(Parcel in) { + super(in); + this.adapterId = (Integer)in.readValue(Integer.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/Asset.java b/KalturaClient/src/main/java/com/kaltura/client/types/Asset.java new file mode 100644 index 000000000..2c7c81c9b --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/Asset.java @@ -0,0 +1,449 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.AssetIndexStatus; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Asset info + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(Asset.Tokenizer.class) +public abstract class Asset extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String id(); + String type(); + String name(); + RequestBuilder.ListTokenizer multilingualName(); + String description(); + RequestBuilder.ListTokenizer multilingualDescription(); + RequestBuilder.ListTokenizer images(); + RequestBuilder.ListTokenizer mediaFiles(); + RequestBuilder.MapTokenizer metas(); + RequestBuilder.MapTokenizer tags(); + RequestBuilder.MapTokenizer relatedEntities(); + String startDate(); + String endDate(); + String createDate(); + String updateDate(); + String externalId(); + String indexStatus(); + } + + /** + * Unique identifier for the asset + */ + private Long id; + /** + * Identifies the asset type (EPG, Recording, Movie, TV Series, etc). + Possible values: 0 – EPG linear programs, 1 - Recording; or any asset type ID + according to the asset types IDs defined in the system. + */ + private Integer type; + /** + * Asset name + */ + private String name; + /** + * Asset name + */ + private List multilingualName; + /** + * Asset description + */ + private String description; + /** + * Asset description + */ + private List multilingualDescription; + /** + * Collection of images details that can be used to represent this asset + */ + private List images; + /** + * Files + */ + private List mediaFiles; + /** + * Dynamic collection of key-value pairs according to the String Meta defined in + the system + */ + private Map metas; + /** + * Dynamic collection of key-value pairs according to the Tag Types defined in the + system + */ + private Map tags; + /** + * Dynamic collection of key-value pairs according to the related entity defined in + the system + */ + private Map relatedEntities; + /** + * Date and time represented as epoch. For VOD – since when the asset is + available in the catalog. For EPG/Linear – when the program is aired (can be + in the future). + */ + private Long startDate; + /** + * Date and time represented as epoch. For VOD – till when the asset be available + in the catalog. For EPG/Linear – program end time and date + */ + private Long endDate; + /** + * Specifies when was the Asset was created. Date and time represented as epoch. + */ + private Long createDate; + /** + * Specifies when was the Asset last updated. Date and time represented as epoch. + */ + private Long updateDate; + /** + * External identifier for the asset + */ + private String externalId; + /** + * The media asset index status + */ + private AssetIndexStatus indexStatus; + + // id: + public Long getId(){ + return this.id; + } + // type: + public Integer getType(){ + return this.type; + } + public void setType(Integer type){ + this.type = type; + } + + public void type(String multirequestToken){ + setToken("type", multirequestToken); + } + + // name: + public String getName(){ + return this.name; + } + // multilingualName: + public List getMultilingualName(){ + return this.multilingualName; + } + public void setMultilingualName(List multilingualName){ + this.multilingualName = multilingualName; + } + + // description: + public String getDescription(){ + return this.description; + } + // multilingualDescription: + public List getMultilingualDescription(){ + return this.multilingualDescription; + } + public void setMultilingualDescription(List multilingualDescription){ + this.multilingualDescription = multilingualDescription; + } + + // images: + public List getImages(){ + return this.images; + } + // mediaFiles: + public List getMediaFiles(){ + return this.mediaFiles; + } + // metas: + public Map getMetas(){ + return this.metas; + } + public void setMetas(Map metas){ + this.metas = metas; + } + + // tags: + public Map getTags(){ + return this.tags; + } + public void setTags(Map tags){ + this.tags = tags; + } + + // relatedEntities: + public Map getRelatedEntities(){ + return this.relatedEntities; + } + public void setRelatedEntities(Map relatedEntities){ + this.relatedEntities = relatedEntities; + } + + // startDate: + public Long getStartDate(){ + return this.startDate; + } + public void setStartDate(Long startDate){ + this.startDate = startDate; + } + + public void startDate(String multirequestToken){ + setToken("startDate", multirequestToken); + } + + // endDate: + public Long getEndDate(){ + return this.endDate; + } + public void setEndDate(Long endDate){ + this.endDate = endDate; + } + + public void endDate(String multirequestToken){ + setToken("endDate", multirequestToken); + } + + // createDate: + public Long getCreateDate(){ + return this.createDate; + } + // updateDate: + public Long getUpdateDate(){ + return this.updateDate; + } + // externalId: + public String getExternalId(){ + return this.externalId; + } + public void setExternalId(String externalId){ + this.externalId = externalId; + } + + public void externalId(String multirequestToken){ + setToken("externalId", multirequestToken); + } + + // indexStatus: + public AssetIndexStatus getIndexStatus(){ + return this.indexStatus; + } + + public Asset() { + super(); + } + + public Asset(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + id = GsonParser.parseLong(jsonObject.get("id")); + type = GsonParser.parseInt(jsonObject.get("type")); + name = GsonParser.parseString(jsonObject.get("name")); + multilingualName = GsonParser.parseArray(jsonObject.getAsJsonArray("multilingualName"), TranslationToken.class); + description = GsonParser.parseString(jsonObject.get("description")); + multilingualDescription = GsonParser.parseArray(jsonObject.getAsJsonArray("multilingualDescription"), TranslationToken.class); + images = GsonParser.parseArray(jsonObject.getAsJsonArray("images"), MediaImage.class); + mediaFiles = GsonParser.parseArray(jsonObject.getAsJsonArray("mediaFiles"), MediaFile.class); + metas = GsonParser.parseMap(jsonObject.getAsJsonObject("metas"), Value.class); + tags = GsonParser.parseMap(jsonObject.getAsJsonObject("tags"), MultilingualStringValueArray.class); + relatedEntities = GsonParser.parseMap(jsonObject.getAsJsonObject("relatedEntities"), RelatedEntityArray.class); + startDate = GsonParser.parseLong(jsonObject.get("startDate")); + endDate = GsonParser.parseLong(jsonObject.get("endDate")); + createDate = GsonParser.parseLong(jsonObject.get("createDate")); + updateDate = GsonParser.parseLong(jsonObject.get("updateDate")); + externalId = GsonParser.parseString(jsonObject.get("externalId")); + indexStatus = AssetIndexStatus.get(GsonParser.parseString(jsonObject.get("indexStatus"))); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAsset"); + kparams.add("type", this.type); + kparams.add("multilingualName", this.multilingualName); + kparams.add("multilingualDescription", this.multilingualDescription); + kparams.add("metas", this.metas); + kparams.add("tags", this.tags); + kparams.add("relatedEntities", this.relatedEntities); + kparams.add("startDate", this.startDate); + kparams.add("endDate", this.endDate); + kparams.add("externalId", this.externalId); + return kparams; + } + + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.id); + dest.writeValue(this.type); + dest.writeString(this.name); + if(this.multilingualName != null) { + dest.writeInt(this.multilingualName.size()); + dest.writeList(this.multilingualName); + } else { + dest.writeInt(-1); + } + dest.writeString(this.description); + if(this.multilingualDescription != null) { + dest.writeInt(this.multilingualDescription.size()); + dest.writeList(this.multilingualDescription); + } else { + dest.writeInt(-1); + } + if(this.images != null) { + dest.writeInt(this.images.size()); + dest.writeList(this.images); + } else { + dest.writeInt(-1); + } + if(this.mediaFiles != null) { + dest.writeInt(this.mediaFiles.size()); + dest.writeList(this.mediaFiles); + } else { + dest.writeInt(-1); + } + if(this.metas != null) { + dest.writeInt(this.metas.size()); + for (Map.Entry entry : this.metas.entrySet()) { + dest.writeString(entry.getKey()); + dest.writeParcelable(entry.getValue(), flags); + } + } else { + dest.writeInt(-1); + } + if(this.tags != null) { + dest.writeInt(this.tags.size()); + for (Map.Entry entry : this.tags.entrySet()) { + dest.writeString(entry.getKey()); + dest.writeParcelable(entry.getValue(), flags); + } + } else { + dest.writeInt(-1); + } + if(this.relatedEntities != null) { + dest.writeInt(this.relatedEntities.size()); + for (Map.Entry entry : this.relatedEntities.entrySet()) { + dest.writeString(entry.getKey()); + dest.writeParcelable(entry.getValue(), flags); + } + } else { + dest.writeInt(-1); + } + dest.writeValue(this.startDate); + dest.writeValue(this.endDate); + dest.writeValue(this.createDate); + dest.writeValue(this.updateDate); + dest.writeString(this.externalId); + dest.writeInt(this.indexStatus == null ? -1 : this.indexStatus.ordinal()); + } + + public Asset(Parcel in) { + super(in); + this.id = (Long)in.readValue(Long.class.getClassLoader()); + this.type = (Integer)in.readValue(Integer.class.getClassLoader()); + this.name = in.readString(); + int multilingualNameSize = in.readInt(); + if( multilingualNameSize > -1) { + this.multilingualName = new ArrayList<>(); + in.readList(this.multilingualName, TranslationToken.class.getClassLoader()); + } + this.description = in.readString(); + int multilingualDescriptionSize = in.readInt(); + if( multilingualDescriptionSize > -1) { + this.multilingualDescription = new ArrayList<>(); + in.readList(this.multilingualDescription, TranslationToken.class.getClassLoader()); + } + int imagesSize = in.readInt(); + if( imagesSize > -1) { + this.images = new ArrayList<>(); + in.readList(this.images, MediaImage.class.getClassLoader()); + } + int mediaFilesSize = in.readInt(); + if( mediaFilesSize > -1) { + this.mediaFiles = new ArrayList<>(); + in.readList(this.mediaFiles, MediaFile.class.getClassLoader()); + } + int metasSize = in.readInt(); + if( metasSize > -1) { + this.metas = new HashMap<>(); + for (int i = 0; i < metasSize; i++) { + String key = in.readString(); + Value value = in.readParcelable(Value.class.getClassLoader()); + this.metas.put(key, value); + } + } + int tagsSize = in.readInt(); + if( tagsSize > -1) { + this.tags = new HashMap<>(); + for (int i = 0; i < tagsSize; i++) { + String key = in.readString(); + MultilingualStringValueArray value = in.readParcelable(MultilingualStringValueArray.class.getClassLoader()); + this.tags.put(key, value); + } + } + int relatedEntitiesSize = in.readInt(); + if( relatedEntitiesSize > -1) { + this.relatedEntities = new HashMap<>(); + for (int i = 0; i < relatedEntitiesSize; i++) { + String key = in.readString(); + RelatedEntityArray value = in.readParcelable(RelatedEntityArray.class.getClassLoader()); + this.relatedEntities.put(key, value); + } + } + this.startDate = (Long)in.readValue(Long.class.getClassLoader()); + this.endDate = (Long)in.readValue(Long.class.getClassLoader()); + this.createDate = (Long)in.readValue(Long.class.getClassLoader()); + this.updateDate = (Long)in.readValue(Long.class.getClassLoader()); + this.externalId = in.readString(); + int tmpIndexStatus = in.readInt(); + this.indexStatus = tmpIndexStatus == -1 ? null : AssetIndexStatus.values()[tmpIndexStatus]; + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AssetComment.java b/KalturaClient/src/main/java/com/kaltura/client/types/AssetComment.java new file mode 100644 index 000000000..101d6bc1c --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AssetComment.java @@ -0,0 +1,182 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.AssetType; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Asset Comment + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AssetComment.Tokenizer.class) +public class AssetComment extends SocialComment { + + public interface Tokenizer extends SocialComment.Tokenizer { + String id(); + String assetId(); + String assetType(); + String subHeader(); + } + + /** + * Comment ID + */ + private Integer id; + /** + * Asset identifier + */ + private Integer assetId; + /** + * Asset Type + */ + private AssetType assetType; + /** + * Sub Header + */ + private String subHeader; + + // id: + public Integer getId(){ + return this.id; + } + public void setId(Integer id){ + this.id = id; + } + + public void id(String multirequestToken){ + setToken("id", multirequestToken); + } + + // assetId: + public Integer getAssetId(){ + return this.assetId; + } + public void setAssetId(Integer assetId){ + this.assetId = assetId; + } + + public void assetId(String multirequestToken){ + setToken("assetId", multirequestToken); + } + + // assetType: + public AssetType getAssetType(){ + return this.assetType; + } + public void setAssetType(AssetType assetType){ + this.assetType = assetType; + } + + public void assetType(String multirequestToken){ + setToken("assetType", multirequestToken); + } + + // subHeader: + public String getSubHeader(){ + return this.subHeader; + } + public void setSubHeader(String subHeader){ + this.subHeader = subHeader; + } + + public void subHeader(String multirequestToken){ + setToken("subHeader", multirequestToken); + } + + + public AssetComment() { + super(); + } + + public AssetComment(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + id = GsonParser.parseInt(jsonObject.get("id")); + assetId = GsonParser.parseInt(jsonObject.get("assetId")); + assetType = AssetType.get(GsonParser.parseString(jsonObject.get("assetType"))); + subHeader = GsonParser.parseString(jsonObject.get("subHeader")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAssetComment"); + kparams.add("id", this.id); + kparams.add("assetId", this.assetId); + kparams.add("assetType", this.assetType); + kparams.add("subHeader", this.subHeader); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public AssetComment createFromParcel(Parcel source) { + return new AssetComment(source); + } + + @Override + public AssetComment[] newArray(int size) { + return new AssetComment[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.id); + dest.writeValue(this.assetId); + dest.writeInt(this.assetType == null ? -1 : this.assetType.ordinal()); + dest.writeString(this.subHeader); + } + + public AssetComment(Parcel in) { + super(in); + this.id = (Integer)in.readValue(Integer.class.getClassLoader()); + this.assetId = (Integer)in.readValue(Integer.class.getClassLoader()); + int tmpAssetType = in.readInt(); + this.assetType = tmpAssetType == -1 ? null : AssetType.values()[tmpAssetType]; + this.subHeader = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AssetCommentFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/AssetCommentFilter.java new file mode 100644 index 000000000..f0d88b1d4 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AssetCommentFilter.java @@ -0,0 +1,137 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.AssetType; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AssetCommentFilter.Tokenizer.class) +public class AssetCommentFilter extends Filter { + + public interface Tokenizer extends Filter.Tokenizer { + String assetIdEqual(); + String assetTypeEqual(); + } + + /** + * Asset Id + */ + private Integer assetIdEqual; + /** + * Asset Type + */ + private AssetType assetTypeEqual; + + // assetIdEqual: + public Integer getAssetIdEqual(){ + return this.assetIdEqual; + } + public void setAssetIdEqual(Integer assetIdEqual){ + this.assetIdEqual = assetIdEqual; + } + + public void assetIdEqual(String multirequestToken){ + setToken("assetIdEqual", multirequestToken); + } + + // assetTypeEqual: + public AssetType getAssetTypeEqual(){ + return this.assetTypeEqual; + } + public void setAssetTypeEqual(AssetType assetTypeEqual){ + this.assetTypeEqual = assetTypeEqual; + } + + public void assetTypeEqual(String multirequestToken){ + setToken("assetTypeEqual", multirequestToken); + } + + + public AssetCommentFilter() { + super(); + } + + public AssetCommentFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + assetIdEqual = GsonParser.parseInt(jsonObject.get("assetIdEqual")); + assetTypeEqual = AssetType.get(GsonParser.parseString(jsonObject.get("assetTypeEqual"))); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAssetCommentFilter"); + kparams.add("assetIdEqual", this.assetIdEqual); + kparams.add("assetTypeEqual", this.assetTypeEqual); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public AssetCommentFilter createFromParcel(Parcel source) { + return new AssetCommentFilter(source); + } + + @Override + public AssetCommentFilter[] newArray(int size) { + return new AssetCommentFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.assetIdEqual); + dest.writeInt(this.assetTypeEqual == null ? -1 : this.assetTypeEqual.ordinal()); + } + + public AssetCommentFilter(Parcel in) { + super(in); + this.assetIdEqual = (Integer)in.readValue(Integer.class.getClassLoader()); + int tmpAssetTypeEqual = in.readInt(); + this.assetTypeEqual = tmpAssetTypeEqual == -1 ? null : AssetType.values()[tmpAssetTypeEqual]; + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AssetCondition.java b/KalturaClient/src/main/java/com/kaltura/client/types/AssetCondition.java new file mode 100644 index 000000000..ec03df85b --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AssetCondition.java @@ -0,0 +1,117 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Asset Condition + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AssetCondition.Tokenizer.class) +public class AssetCondition extends AssetConditionBase { + + public interface Tokenizer extends AssetConditionBase.Tokenizer { + String ksql(); + } + + /** + * KSQL + */ + private String ksql; + + // ksql: + public String getKsql(){ + return this.ksql; + } + public void setKsql(String ksql){ + this.ksql = ksql; + } + + public void ksql(String multirequestToken){ + setToken("ksql", multirequestToken); + } + + + public AssetCondition() { + super(); + } + + public AssetCondition(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + ksql = GsonParser.parseString(jsonObject.get("ksql")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAssetCondition"); + kparams.add("ksql", this.ksql); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public AssetCondition createFromParcel(Parcel source) { + return new AssetCondition(source); + } + + @Override + public AssetCondition[] newArray(int size) { + return new AssetCondition[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.ksql); + } + + public AssetCondition(Parcel in) { + super(in); + this.ksql = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AssetConditionBase.java b/KalturaClient/src/main/java/com/kaltura/client/types/AssetConditionBase.java new file mode 100644 index 000000000..d17593e1a --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AssetConditionBase.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AssetConditionBase.Tokenizer.class) +public abstract class AssetConditionBase extends Condition { + + public interface Tokenizer extends Condition.Tokenizer { + } + + + + public AssetConditionBase() { + super(); + } + + public AssetConditionBase(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAssetConditionBase"); + return kparams; + } + + + public AssetConditionBase(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AssetCount.java b/KalturaClient/src/main/java/com/kaltura/client/types/AssetCount.java new file mode 100644 index 000000000..25baa4072 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AssetCount.java @@ -0,0 +1,169 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.ArrayList; +import java.util.List; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Asset count - represents a specific value of the field, its count and its sub + groups. + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AssetCount.Tokenizer.class) +public class AssetCount extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String value(); + String count(); + RequestBuilder.ListTokenizer subs(); + } + + /** + * Value + */ + private String value; + /** + * Count + */ + private Integer count; + /** + * Sub groups + */ + private List subs; + + // value: + public String getValue(){ + return this.value; + } + public void setValue(String value){ + this.value = value; + } + + public void value(String multirequestToken){ + setToken("value", multirequestToken); + } + + // count: + public Integer getCount(){ + return this.count; + } + public void setCount(Integer count){ + this.count = count; + } + + public void count(String multirequestToken){ + setToken("count", multirequestToken); + } + + // subs: + public List getSubs(){ + return this.subs; + } + public void setSubs(List subs){ + this.subs = subs; + } + + + public AssetCount() { + super(); + } + + public AssetCount(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + value = GsonParser.parseString(jsonObject.get("value")); + count = GsonParser.parseInt(jsonObject.get("count")); + subs = GsonParser.parseArray(jsonObject.getAsJsonArray("subs"), AssetsCount.class); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAssetCount"); + kparams.add("value", this.value); + kparams.add("count", this.count); + kparams.add("subs", this.subs); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public AssetCount createFromParcel(Parcel source) { + return new AssetCount(source); + } + + @Override + public AssetCount[] newArray(int size) { + return new AssetCount[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.value); + dest.writeValue(this.count); + if(this.subs != null) { + dest.writeInt(this.subs.size()); + dest.writeList(this.subs); + } else { + dest.writeInt(-1); + } + } + + public AssetCount(Parcel in) { + super(in); + this.value = in.readString(); + this.count = (Integer)in.readValue(Integer.class.getClassLoader()); + int subsSize = in.readInt(); + if( subsSize > -1) { + this.subs = new ArrayList<>(); + in.readList(this.subs, AssetsCount.class.getClassLoader()); + } + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AssetDynamicOrder.java b/KalturaClient/src/main/java/com/kaltura/client/types/AssetDynamicOrder.java new file mode 100644 index 000000000..db1871485 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AssetDynamicOrder.java @@ -0,0 +1,137 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.MetaTagOrderBy; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AssetDynamicOrder.Tokenizer.class) +public class AssetDynamicOrder extends BaseAssetOrder { + + public interface Tokenizer extends BaseAssetOrder.Tokenizer { + String name(); + String orderBy(); + } + + /** + * order by name + */ + private String name; + /** + * order by meta asc/desc + */ + private MetaTagOrderBy orderBy; + + // name: + public String getName(){ + return this.name; + } + public void setName(String name){ + this.name = name; + } + + public void name(String multirequestToken){ + setToken("name", multirequestToken); + } + + // orderBy: + public MetaTagOrderBy getOrderBy(){ + return this.orderBy; + } + public void setOrderBy(MetaTagOrderBy orderBy){ + this.orderBy = orderBy; + } + + public void orderBy(String multirequestToken){ + setToken("orderBy", multirequestToken); + } + + + public AssetDynamicOrder() { + super(); + } + + public AssetDynamicOrder(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + name = GsonParser.parseString(jsonObject.get("name")); + orderBy = MetaTagOrderBy.get(GsonParser.parseString(jsonObject.get("orderBy"))); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAssetDynamicOrder"); + kparams.add("name", this.name); + kparams.add("orderBy", this.orderBy); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public AssetDynamicOrder createFromParcel(Parcel source) { + return new AssetDynamicOrder(source); + } + + @Override + public AssetDynamicOrder[] newArray(int size) { + return new AssetDynamicOrder[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.name); + dest.writeInt(this.orderBy == null ? -1 : this.orderBy.ordinal()); + } + + public AssetDynamicOrder(Parcel in) { + super(in); + this.name = in.readString(); + int tmpOrderBy = in.readInt(); + this.orderBy = tmpOrderBy == -1 ? null : MetaTagOrderBy.values()[tmpOrderBy]; + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AssetEvent.java b/KalturaClient/src/main/java/com/kaltura/client/types/AssetEvent.java new file mode 100644 index 000000000..0b25dbf28 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AssetEvent.java @@ -0,0 +1,143 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AssetEvent.Tokenizer.class) +public class AssetEvent extends EventObject { + + public interface Tokenizer extends EventObject.Tokenizer { + String userId(); + String assetId(); + String type(); + String externalId(); + } + + /** + * User Id + */ + private Long userId; + /** + * Asset Id + */ + private Long assetId; + /** + * Identifies the asset type (EPG, Recording, Movie, TV Series, etc). + Possible values: 0 – EPG linear programs, 1 - Recording; or any asset type ID + according to the asset types IDs defined in the system. + */ + private Integer type; + /** + * External identifier for the asset + */ + private String externalId; + + // userId: + public Long getUserId(){ + return this.userId; + } + // assetId: + public Long getAssetId(){ + return this.assetId; + } + // type: + public Integer getType(){ + return this.type; + } + // externalId: + public String getExternalId(){ + return this.externalId; + } + + public AssetEvent() { + super(); + } + + public AssetEvent(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + userId = GsonParser.parseLong(jsonObject.get("userId")); + assetId = GsonParser.parseLong(jsonObject.get("assetId")); + type = GsonParser.parseInt(jsonObject.get("type")); + externalId = GsonParser.parseString(jsonObject.get("externalId")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAssetEvent"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public AssetEvent createFromParcel(Parcel source) { + return new AssetEvent(source); + } + + @Override + public AssetEvent[] newArray(int size) { + return new AssetEvent[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.userId); + dest.writeValue(this.assetId); + dest.writeValue(this.type); + dest.writeString(this.externalId); + } + + public AssetEvent(Parcel in) { + super(in); + this.userId = (Long)in.readValue(Long.class.getClassLoader()); + this.assetId = (Long)in.readValue(Long.class.getClassLoader()); + this.type = (Integer)in.readValue(Integer.class.getClassLoader()); + this.externalId = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AssetFieldGroupBy.java b/KalturaClient/src/main/java/com/kaltura/client/types/AssetFieldGroupBy.java new file mode 100644 index 000000000..a85ec72b7 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AssetFieldGroupBy.java @@ -0,0 +1,119 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.GroupByField; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Group by a field that is defined in enum + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AssetFieldGroupBy.Tokenizer.class) +public class AssetFieldGroupBy extends AssetGroupBy { + + public interface Tokenizer extends AssetGroupBy.Tokenizer { + String value(); + } + + /** + * Group by a specific field that is defined in enum + */ + private GroupByField value; + + // value: + public GroupByField getValue(){ + return this.value; + } + public void setValue(GroupByField value){ + this.value = value; + } + + public void value(String multirequestToken){ + setToken("value", multirequestToken); + } + + + public AssetFieldGroupBy() { + super(); + } + + public AssetFieldGroupBy(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + value = GroupByField.get(GsonParser.parseString(jsonObject.get("value"))); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAssetFieldGroupBy"); + kparams.add("value", this.value); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public AssetFieldGroupBy createFromParcel(Parcel source) { + return new AssetFieldGroupBy(source); + } + + @Override + public AssetFieldGroupBy[] newArray(int size) { + return new AssetFieldGroupBy[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeInt(this.value == null ? -1 : this.value.ordinal()); + } + + public AssetFieldGroupBy(Parcel in) { + super(in); + int tmpValue = in.readInt(); + this.value = tmpValue == -1 ? null : GroupByField.values()[tmpValue]; + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AssetFile.java b/KalturaClient/src/main/java/com/kaltura/client/types/AssetFile.java new file mode 100644 index 000000000..2a0d5e890 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AssetFile.java @@ -0,0 +1,118 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Asset file details + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AssetFile.Tokenizer.class) +public class AssetFile extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String url(); + } + + /** + * URL of the media file to be played + */ + private String url; + + // url: + public String getUrl(){ + return this.url; + } + public void setUrl(String url){ + this.url = url; + } + + public void url(String multirequestToken){ + setToken("url", multirequestToken); + } + + + public AssetFile() { + super(); + } + + public AssetFile(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + url = GsonParser.parseString(jsonObject.get("url")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAssetFile"); + kparams.add("url", this.url); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public AssetFile createFromParcel(Parcel source) { + return new AssetFile(source); + } + + @Override + public AssetFile[] newArray(int size) { + return new AssetFile[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.url); + } + + public AssetFile(Parcel in) { + super(in); + this.url = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AssetFileContext.java b/KalturaClient/src/main/java/com/kaltura/client/types/AssetFileContext.java new file mode 100644 index 000000000..b1debd493 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AssetFileContext.java @@ -0,0 +1,142 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AssetFileContext.Tokenizer.class) +public class AssetFileContext extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String viewLifeCycle(); + String fullLifeCycle(); + String isOfflinePlayBack(); + String isLivePlayBack(); + } + + /** + * viewLifeCycle + */ + private String viewLifeCycle; + /** + * fullLifeCycle + */ + private String fullLifeCycle; + /** + * isOfflinePlayBack + */ + private Boolean isOfflinePlayBack; + /** + * Is Live PlayBack + */ + private Boolean isLivePlayBack; + + // viewLifeCycle: + public String getViewLifeCycle(){ + return this.viewLifeCycle; + } + // fullLifeCycle: + public String getFullLifeCycle(){ + return this.fullLifeCycle; + } + // isOfflinePlayBack: + public Boolean getIsOfflinePlayBack(){ + return this.isOfflinePlayBack; + } + // isLivePlayBack: + public Boolean getIsLivePlayBack(){ + return this.isLivePlayBack; + } + + public AssetFileContext() { + super(); + } + + public AssetFileContext(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + viewLifeCycle = GsonParser.parseString(jsonObject.get("viewLifeCycle")); + fullLifeCycle = GsonParser.parseString(jsonObject.get("fullLifeCycle")); + isOfflinePlayBack = GsonParser.parseBoolean(jsonObject.get("isOfflinePlayBack")); + isLivePlayBack = GsonParser.parseBoolean(jsonObject.get("isLivePlayBack")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAssetFileContext"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public AssetFileContext createFromParcel(Parcel source) { + return new AssetFileContext(source); + } + + @Override + public AssetFileContext[] newArray(int size) { + return new AssetFileContext[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.viewLifeCycle); + dest.writeString(this.fullLifeCycle); + dest.writeValue(this.isOfflinePlayBack); + dest.writeValue(this.isLivePlayBack); + } + + public AssetFileContext(Parcel in) { + super(in); + this.viewLifeCycle = in.readString(); + this.fullLifeCycle = in.readString(); + this.isOfflinePlayBack = (Boolean)in.readValue(Boolean.class.getClassLoader()); + this.isLivePlayBack = (Boolean)in.readValue(Boolean.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AssetFilePpv.java b/KalturaClient/src/main/java/com/kaltura/client/types/AssetFilePpv.java new file mode 100644 index 000000000..386b630d3 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AssetFilePpv.java @@ -0,0 +1,180 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Asset file ppv + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AssetFilePpv.Tokenizer.class) +public class AssetFilePpv extends OTTObjectSupportNullable { + + public interface Tokenizer extends OTTObjectSupportNullable.Tokenizer { + String assetFileId(); + String ppvModuleId(); + String startDate(); + String endDate(); + } + + /** + * Asset file identifier + */ + private Long assetFileId; + /** + * Ppv module identifier + */ + private Long ppvModuleId; + /** + * Start date and time represented as epoch. + */ + private Long startDate; + /** + * End date and time represented as epoch. + */ + private Long endDate; + + // assetFileId: + public Long getAssetFileId(){ + return this.assetFileId; + } + public void setAssetFileId(Long assetFileId){ + this.assetFileId = assetFileId; + } + + public void assetFileId(String multirequestToken){ + setToken("assetFileId", multirequestToken); + } + + // ppvModuleId: + public Long getPpvModuleId(){ + return this.ppvModuleId; + } + public void setPpvModuleId(Long ppvModuleId){ + this.ppvModuleId = ppvModuleId; + } + + public void ppvModuleId(String multirequestToken){ + setToken("ppvModuleId", multirequestToken); + } + + // startDate: + public Long getStartDate(){ + return this.startDate; + } + public void setStartDate(Long startDate){ + this.startDate = startDate; + } + + public void startDate(String multirequestToken){ + setToken("startDate", multirequestToken); + } + + // endDate: + public Long getEndDate(){ + return this.endDate; + } + public void setEndDate(Long endDate){ + this.endDate = endDate; + } + + public void endDate(String multirequestToken){ + setToken("endDate", multirequestToken); + } + + + public AssetFilePpv() { + super(); + } + + public AssetFilePpv(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + assetFileId = GsonParser.parseLong(jsonObject.get("assetFileId")); + ppvModuleId = GsonParser.parseLong(jsonObject.get("ppvModuleId")); + startDate = GsonParser.parseLong(jsonObject.get("startDate")); + endDate = GsonParser.parseLong(jsonObject.get("endDate")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAssetFilePpv"); + kparams.add("assetFileId", this.assetFileId); + kparams.add("ppvModuleId", this.ppvModuleId); + kparams.add("startDate", this.startDate); + kparams.add("endDate", this.endDate); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public AssetFilePpv createFromParcel(Parcel source) { + return new AssetFilePpv(source); + } + + @Override + public AssetFilePpv[] newArray(int size) { + return new AssetFilePpv[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.assetFileId); + dest.writeValue(this.ppvModuleId); + dest.writeValue(this.startDate); + dest.writeValue(this.endDate); + } + + public AssetFilePpv(Parcel in) { + super(in); + this.assetFileId = (Long)in.readValue(Long.class.getClassLoader()); + this.ppvModuleId = (Long)in.readValue(Long.class.getClassLoader()); + this.startDate = (Long)in.readValue(Long.class.getClassLoader()); + this.endDate = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AssetFilePpvFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/AssetFilePpvFilter.java new file mode 100644 index 000000000..03e8c1906 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AssetFilePpvFilter.java @@ -0,0 +1,138 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Filtering Asset Struct Metas + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AssetFilePpvFilter.Tokenizer.class) +public class AssetFilePpvFilter extends Filter { + + public interface Tokenizer extends Filter.Tokenizer { + String assetIdEqual(); + String assetFileIdEqual(); + } + + /** + * Filter Asset file ppvs that contain a specific asset id + */ + private Long assetIdEqual; + /** + * Filter Asset file ppvs that contain a specific asset file id + */ + private Long assetFileIdEqual; + + // assetIdEqual: + public Long getAssetIdEqual(){ + return this.assetIdEqual; + } + public void setAssetIdEqual(Long assetIdEqual){ + this.assetIdEqual = assetIdEqual; + } + + public void assetIdEqual(String multirequestToken){ + setToken("assetIdEqual", multirequestToken); + } + + // assetFileIdEqual: + public Long getAssetFileIdEqual(){ + return this.assetFileIdEqual; + } + public void setAssetFileIdEqual(Long assetFileIdEqual){ + this.assetFileIdEqual = assetFileIdEqual; + } + + public void assetFileIdEqual(String multirequestToken){ + setToken("assetFileIdEqual", multirequestToken); + } + + + public AssetFilePpvFilter() { + super(); + } + + public AssetFilePpvFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + assetIdEqual = GsonParser.parseLong(jsonObject.get("assetIdEqual")); + assetFileIdEqual = GsonParser.parseLong(jsonObject.get("assetFileIdEqual")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAssetFilePpvFilter"); + kparams.add("assetIdEqual", this.assetIdEqual); + kparams.add("assetFileIdEqual", this.assetFileIdEqual); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public AssetFilePpvFilter createFromParcel(Parcel source) { + return new AssetFilePpvFilter(source); + } + + @Override + public AssetFilePpvFilter[] newArray(int size) { + return new AssetFilePpvFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.assetIdEqual); + dest.writeValue(this.assetFileIdEqual); + } + + public AssetFilePpvFilter(Parcel in) { + super(in); + this.assetIdEqual = (Long)in.readValue(Long.class.getClassLoader()); + this.assetFileIdEqual = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AssetFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/AssetFilter.java new file mode 100644 index 000000000..e7751d120 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AssetFilter.java @@ -0,0 +1,182 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.DynamicOrderBy; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.ArrayList; +import java.util.List; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AssetFilter.Tokenizer.class) +public class AssetFilter extends PersistedFilter { + + public interface Tokenizer extends PersistedFilter.Tokenizer { + DynamicOrderBy.Tokenizer dynamicOrderBy(); + RequestBuilder.ListTokenizer orderingParameters(); + String trendingDaysEqual(); + String shouldApplyPriorityGroupsEqual(); + } + + /** + * dynamicOrderBy - order by Meta + */ + private DynamicOrderBy dynamicOrderBy; + /** + * Parameters for asset list sorting. + */ + private List orderingParameters; + /** + * Trending Days Equal + */ + private Integer trendingDaysEqual; + /** + * Should apply priority groups filter or not. + */ + private Boolean shouldApplyPriorityGroupsEqual; + + // dynamicOrderBy: + public DynamicOrderBy getDynamicOrderBy(){ + return this.dynamicOrderBy; + } + public void setDynamicOrderBy(DynamicOrderBy dynamicOrderBy){ + this.dynamicOrderBy = dynamicOrderBy; + } + + // orderingParameters: + public List getOrderingParameters(){ + return this.orderingParameters; + } + public void setOrderingParameters(List orderingParameters){ + this.orderingParameters = orderingParameters; + } + + // trendingDaysEqual: + public Integer getTrendingDaysEqual(){ + return this.trendingDaysEqual; + } + public void setTrendingDaysEqual(Integer trendingDaysEqual){ + this.trendingDaysEqual = trendingDaysEqual; + } + + public void trendingDaysEqual(String multirequestToken){ + setToken("trendingDaysEqual", multirequestToken); + } + + // shouldApplyPriorityGroupsEqual: + public Boolean getShouldApplyPriorityGroupsEqual(){ + return this.shouldApplyPriorityGroupsEqual; + } + public void setShouldApplyPriorityGroupsEqual(Boolean shouldApplyPriorityGroupsEqual){ + this.shouldApplyPriorityGroupsEqual = shouldApplyPriorityGroupsEqual; + } + + public void shouldApplyPriorityGroupsEqual(String multirequestToken){ + setToken("shouldApplyPriorityGroupsEqual", multirequestToken); + } + + + public AssetFilter() { + super(); + } + + public AssetFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + dynamicOrderBy = GsonParser.parseObject(jsonObject.getAsJsonObject("dynamicOrderBy"), DynamicOrderBy.class); + orderingParameters = GsonParser.parseArray(jsonObject.getAsJsonArray("orderingParameters"), BaseAssetOrder.class); + trendingDaysEqual = GsonParser.parseInt(jsonObject.get("trendingDaysEqual")); + shouldApplyPriorityGroupsEqual = GsonParser.parseBoolean(jsonObject.get("shouldApplyPriorityGroupsEqual")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAssetFilter"); + kparams.add("dynamicOrderBy", this.dynamicOrderBy); + kparams.add("orderingParameters", this.orderingParameters); + kparams.add("trendingDaysEqual", this.trendingDaysEqual); + kparams.add("shouldApplyPriorityGroupsEqual", this.shouldApplyPriorityGroupsEqual); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public AssetFilter createFromParcel(Parcel source) { + return new AssetFilter(source); + } + + @Override + public AssetFilter[] newArray(int size) { + return new AssetFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeParcelable(this.dynamicOrderBy, flags); + if(this.orderingParameters != null) { + dest.writeInt(this.orderingParameters.size()); + dest.writeList(this.orderingParameters); + } else { + dest.writeInt(-1); + } + dest.writeValue(this.trendingDaysEqual); + dest.writeValue(this.shouldApplyPriorityGroupsEqual); + } + + public AssetFilter(Parcel in) { + super(in); + this.dynamicOrderBy = in.readParcelable(DynamicOrderBy.class.getClassLoader()); + int orderingParametersSize = in.readInt(); + if( orderingParametersSize > -1) { + this.orderingParameters = new ArrayList<>(); + in.readList(this.orderingParameters, BaseAssetOrder.class.getClassLoader()); + } + this.trendingDaysEqual = (Integer)in.readValue(Integer.class.getClassLoader()); + this.shouldApplyPriorityGroupsEqual = (Boolean)in.readValue(Boolean.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AssetGroupBy.java b/KalturaClient/src/main/java/com/kaltura/client/types/AssetGroupBy.java new file mode 100644 index 000000000..ccd340d52 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AssetGroupBy.java @@ -0,0 +1,74 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Abstarct class - represents an asset parameter that can be used for grouping + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AssetGroupBy.Tokenizer.class) +public abstract class AssetGroupBy extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + } + + + + public AssetGroupBy() { + super(); + } + + public AssetGroupBy(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAssetGroupBy"); + return kparams; + } + + + public AssetGroupBy(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AssetHistory.java b/KalturaClient/src/main/java/com/kaltura/client/types/AssetHistory.java new file mode 100644 index 000000000..e2f445c39 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AssetHistory.java @@ -0,0 +1,171 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.AssetType; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Watch history asset info + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AssetHistory.Tokenizer.class) +public class AssetHistory extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String assetId(); + String assetType(); + String position(); + String duration(); + String watchedDate(); + String finishedWatching(); + } + + /** + * Asset identifier + */ + private Long assetId; + /** + * Asset identifier + */ + private AssetType assetType; + /** + * Position in seconds of the relevant asset + */ + private Integer position; + /** + * Duration in seconds of the relevant asset + */ + private Integer duration; + /** + * The date when the media was last watched + */ + private Long watchedDate; + /** + * Boolean which specifies whether the user finished watching the movie or not + */ + private Boolean finishedWatching; + + // assetId: + public Long getAssetId(){ + return this.assetId; + } + // assetType: + public AssetType getAssetType(){ + return this.assetType; + } + // position: + public Integer getPosition(){ + return this.position; + } + // duration: + public Integer getDuration(){ + return this.duration; + } + // watchedDate: + public Long getWatchedDate(){ + return this.watchedDate; + } + // finishedWatching: + public Boolean getFinishedWatching(){ + return this.finishedWatching; + } + + public AssetHistory() { + super(); + } + + public AssetHistory(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + assetId = GsonParser.parseLong(jsonObject.get("assetId")); + assetType = AssetType.get(GsonParser.parseString(jsonObject.get("assetType"))); + position = GsonParser.parseInt(jsonObject.get("position")); + duration = GsonParser.parseInt(jsonObject.get("duration")); + watchedDate = GsonParser.parseLong(jsonObject.get("watchedDate")); + finishedWatching = GsonParser.parseBoolean(jsonObject.get("finishedWatching")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAssetHistory"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public AssetHistory createFromParcel(Parcel source) { + return new AssetHistory(source); + } + + @Override + public AssetHistory[] newArray(int size) { + return new AssetHistory[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.assetId); + dest.writeInt(this.assetType == null ? -1 : this.assetType.ordinal()); + dest.writeValue(this.position); + dest.writeValue(this.duration); + dest.writeValue(this.watchedDate); + dest.writeValue(this.finishedWatching); + } + + public AssetHistory(Parcel in) { + super(in); + this.assetId = (Long)in.readValue(Long.class.getClassLoader()); + int tmpAssetType = in.readInt(); + this.assetType = tmpAssetType == -1 ? null : AssetType.values()[tmpAssetType]; + this.position = (Integer)in.readValue(Integer.class.getClassLoader()); + this.duration = (Integer)in.readValue(Integer.class.getClassLoader()); + this.watchedDate = (Long)in.readValue(Long.class.getClassLoader()); + this.finishedWatching = (Boolean)in.readValue(Boolean.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AssetHistoryFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/AssetHistoryFilter.java new file mode 100644 index 000000000..8329417e1 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AssetHistoryFilter.java @@ -0,0 +1,207 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.WatchStatus; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AssetHistoryFilter.Tokenizer.class) +public class AssetHistoryFilter extends Filter { + + public interface Tokenizer extends Filter.Tokenizer { + String typeIn(); + String assetIdIn(); + String statusEqual(); + String daysLessThanOrEqual(); + String kSql(); + } + + /** + * Comma separated list of asset types to search within. Possible + values: 0 – EPG linear programs entries, any media type ID (according to media + type IDs defined dynamically in the system). If omitted – all + types should be included. + */ + private String typeIn; + /** + * Comma separated list of asset identifiers. + */ + private String assetIdIn; + /** + * Which type of recently watched media to include in the result – those that + finished watching, those that are in progress or both. If omitted + or specified filter = all – return all types. Allowed values: + progress – return medias that are in-progress, done – return medias that + finished watching. + */ + private WatchStatus statusEqual; + /** + * How many days back to return the watched media. If omitted, default to 7 days + */ + private Integer daysLessThanOrEqual; + /** + * KSQL expression + */ + private String kSql; + + // typeIn: + public String getTypeIn(){ + return this.typeIn; + } + public void setTypeIn(String typeIn){ + this.typeIn = typeIn; + } + + public void typeIn(String multirequestToken){ + setToken("typeIn", multirequestToken); + } + + // assetIdIn: + public String getAssetIdIn(){ + return this.assetIdIn; + } + public void setAssetIdIn(String assetIdIn){ + this.assetIdIn = assetIdIn; + } + + public void assetIdIn(String multirequestToken){ + setToken("assetIdIn", multirequestToken); + } + + // statusEqual: + public WatchStatus getStatusEqual(){ + return this.statusEqual; + } + public void setStatusEqual(WatchStatus statusEqual){ + this.statusEqual = statusEqual; + } + + public void statusEqual(String multirequestToken){ + setToken("statusEqual", multirequestToken); + } + + // daysLessThanOrEqual: + public Integer getDaysLessThanOrEqual(){ + return this.daysLessThanOrEqual; + } + public void setDaysLessThanOrEqual(Integer daysLessThanOrEqual){ + this.daysLessThanOrEqual = daysLessThanOrEqual; + } + + public void daysLessThanOrEqual(String multirequestToken){ + setToken("daysLessThanOrEqual", multirequestToken); + } + + // kSql: + public String getKSql(){ + return this.kSql; + } + public void setKSql(String kSql){ + this.kSql = kSql; + } + + public void kSql(String multirequestToken){ + setToken("kSql", multirequestToken); + } + + + public AssetHistoryFilter() { + super(); + } + + public AssetHistoryFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + typeIn = GsonParser.parseString(jsonObject.get("typeIn")); + assetIdIn = GsonParser.parseString(jsonObject.get("assetIdIn")); + statusEqual = WatchStatus.get(GsonParser.parseString(jsonObject.get("statusEqual"))); + daysLessThanOrEqual = GsonParser.parseInt(jsonObject.get("daysLessThanOrEqual")); + kSql = GsonParser.parseString(jsonObject.get("kSql")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAssetHistoryFilter"); + kparams.add("typeIn", this.typeIn); + kparams.add("assetIdIn", this.assetIdIn); + kparams.add("statusEqual", this.statusEqual); + kparams.add("daysLessThanOrEqual", this.daysLessThanOrEqual); + kparams.add("kSql", this.kSql); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public AssetHistoryFilter createFromParcel(Parcel source) { + return new AssetHistoryFilter(source); + } + + @Override + public AssetHistoryFilter[] newArray(int size) { + return new AssetHistoryFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.typeIn); + dest.writeString(this.assetIdIn); + dest.writeInt(this.statusEqual == null ? -1 : this.statusEqual.ordinal()); + dest.writeValue(this.daysLessThanOrEqual); + dest.writeString(this.kSql); + } + + public AssetHistoryFilter(Parcel in) { + super(in); + this.typeIn = in.readString(); + this.assetIdIn = in.readString(); + int tmpStatusEqual = in.readInt(); + this.statusEqual = tmpStatusEqual == -1 ? null : WatchStatus.values()[tmpStatusEqual]; + this.daysLessThanOrEqual = (Integer)in.readValue(Integer.class.getClassLoader()); + this.kSql = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AssetHistorySuppressFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/AssetHistorySuppressFilter.java new file mode 100644 index 000000000..2ea0f27b2 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AssetHistorySuppressFilter.java @@ -0,0 +1,85 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Kaltura asset image per ratio filter + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AssetHistorySuppressFilter.Tokenizer.class) +public class AssetHistorySuppressFilter extends RelatedObjectFilter { + + public interface Tokenizer extends RelatedObjectFilter.Tokenizer { + } + + + + public AssetHistorySuppressFilter() { + super(); + } + + public AssetHistorySuppressFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAssetHistorySuppressFilter"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public AssetHistorySuppressFilter createFromParcel(Parcel source) { + return new AssetHistorySuppressFilter(source); + } + + @Override + public AssetHistorySuppressFilter[] newArray(int size) { + return new AssetHistorySuppressFilter[size]; + } + }; + + public AssetHistorySuppressFilter(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AssetImagePerRatioFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/AssetImagePerRatioFilter.java new file mode 100644 index 000000000..7d4756873 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AssetImagePerRatioFilter.java @@ -0,0 +1,85 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Kaltura asset image per ratio filter + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AssetImagePerRatioFilter.Tokenizer.class) +public class AssetImagePerRatioFilter extends RelatedObjectFilter { + + public interface Tokenizer extends RelatedObjectFilter.Tokenizer { + } + + + + public AssetImagePerRatioFilter() { + super(); + } + + public AssetImagePerRatioFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAssetImagePerRatioFilter"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public AssetImagePerRatioFilter createFromParcel(Parcel source) { + return new AssetImagePerRatioFilter(source); + } + + @Override + public AssetImagePerRatioFilter[] newArray(int size) { + return new AssetImagePerRatioFilter[size]; + } + }; + + public AssetImagePerRatioFilter(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AssetLifeCycleBuisnessModuleTransitionAction.java b/KalturaClient/src/main/java/com/kaltura/client/types/AssetLifeCycleBuisnessModuleTransitionAction.java new file mode 100644 index 000000000..9aed1719f --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AssetLifeCycleBuisnessModuleTransitionAction.java @@ -0,0 +1,135 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AssetLifeCycleBuisnessModuleTransitionAction.Tokenizer.class) +public class AssetLifeCycleBuisnessModuleTransitionAction extends AssetLifeCycleTransitionAction { + + public interface Tokenizer extends AssetLifeCycleTransitionAction.Tokenizer { + String fileTypeIds(); + String ppvIds(); + } + + /** + * Comma separated list of fileType Ids. + */ + private String fileTypeIds; + /** + * Comma separated list of ppv Ids. + */ + private String ppvIds; + + // fileTypeIds: + public String getFileTypeIds(){ + return this.fileTypeIds; + } + public void setFileTypeIds(String fileTypeIds){ + this.fileTypeIds = fileTypeIds; + } + + public void fileTypeIds(String multirequestToken){ + setToken("fileTypeIds", multirequestToken); + } + + // ppvIds: + public String getPpvIds(){ + return this.ppvIds; + } + public void setPpvIds(String ppvIds){ + this.ppvIds = ppvIds; + } + + public void ppvIds(String multirequestToken){ + setToken("ppvIds", multirequestToken); + } + + + public AssetLifeCycleBuisnessModuleTransitionAction() { + super(); + } + + public AssetLifeCycleBuisnessModuleTransitionAction(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + fileTypeIds = GsonParser.parseString(jsonObject.get("fileTypeIds")); + ppvIds = GsonParser.parseString(jsonObject.get("ppvIds")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAssetLifeCycleBuisnessModuleTransitionAction"); + kparams.add("fileTypeIds", this.fileTypeIds); + kparams.add("ppvIds", this.ppvIds); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public AssetLifeCycleBuisnessModuleTransitionAction createFromParcel(Parcel source) { + return new AssetLifeCycleBuisnessModuleTransitionAction(source); + } + + @Override + public AssetLifeCycleBuisnessModuleTransitionAction[] newArray(int size) { + return new AssetLifeCycleBuisnessModuleTransitionAction[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.fileTypeIds); + dest.writeString(this.ppvIds); + } + + public AssetLifeCycleBuisnessModuleTransitionAction(Parcel in) { + super(in); + this.fileTypeIds = in.readString(); + this.ppvIds = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AssetLifeCycleTagTransitionAction.java b/KalturaClient/src/main/java/com/kaltura/client/types/AssetLifeCycleTagTransitionAction.java new file mode 100644 index 000000000..3e4cb4e67 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AssetLifeCycleTagTransitionAction.java @@ -0,0 +1,114 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AssetLifeCycleTagTransitionAction.Tokenizer.class) +public class AssetLifeCycleTagTransitionAction extends AssetLifeCycleTransitionAction { + + public interface Tokenizer extends AssetLifeCycleTransitionAction.Tokenizer { + String tagIds(); + } + + /** + * Comma separated list of tag Ids. + */ + private String tagIds; + + // tagIds: + public String getTagIds(){ + return this.tagIds; + } + public void setTagIds(String tagIds){ + this.tagIds = tagIds; + } + + public void tagIds(String multirequestToken){ + setToken("tagIds", multirequestToken); + } + + + public AssetLifeCycleTagTransitionAction() { + super(); + } + + public AssetLifeCycleTagTransitionAction(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + tagIds = GsonParser.parseString(jsonObject.get("tagIds")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAssetLifeCycleTagTransitionAction"); + kparams.add("tagIds", this.tagIds); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public AssetLifeCycleTagTransitionAction createFromParcel(Parcel source) { + return new AssetLifeCycleTagTransitionAction(source); + } + + @Override + public AssetLifeCycleTagTransitionAction[] newArray(int size) { + return new AssetLifeCycleTagTransitionAction[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.tagIds); + } + + public AssetLifeCycleTagTransitionAction(Parcel in) { + super(in); + this.tagIds = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AssetLifeCycleTransitionAction.java b/KalturaClient/src/main/java/com/kaltura/client/types/AssetLifeCycleTransitionAction.java new file mode 100644 index 000000000..da9cb6ff5 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AssetLifeCycleTransitionAction.java @@ -0,0 +1,118 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.AssetLifeCycleRuleActionType; +import com.kaltura.client.enums.AssetLifeCycleRuleTransitionType; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AssetLifeCycleTransitionAction.Tokenizer.class) +public abstract class AssetLifeCycleTransitionAction extends AssetRuleAction { + + public interface Tokenizer extends AssetRuleAction.Tokenizer { + String assetLifeCycleRuleActionType(); + String assetLifeCycleRuleTransitionType(); + } + + /** + * Asset LifeCycle Rule Action Type + */ + private AssetLifeCycleRuleActionType assetLifeCycleRuleActionType; + /** + * Asset LifeCycle Rule Transition Type + */ + private AssetLifeCycleRuleTransitionType assetLifeCycleRuleTransitionType; + + // assetLifeCycleRuleActionType: + public AssetLifeCycleRuleActionType getAssetLifeCycleRuleActionType(){ + return this.assetLifeCycleRuleActionType; + } + public void setAssetLifeCycleRuleActionType(AssetLifeCycleRuleActionType assetLifeCycleRuleActionType){ + this.assetLifeCycleRuleActionType = assetLifeCycleRuleActionType; + } + + public void assetLifeCycleRuleActionType(String multirequestToken){ + setToken("assetLifeCycleRuleActionType", multirequestToken); + } + + // assetLifeCycleRuleTransitionType: + public AssetLifeCycleRuleTransitionType getAssetLifeCycleRuleTransitionType(){ + return this.assetLifeCycleRuleTransitionType; + } + + public AssetLifeCycleTransitionAction() { + super(); + } + + public AssetLifeCycleTransitionAction(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + assetLifeCycleRuleActionType = AssetLifeCycleRuleActionType.get(GsonParser.parseString(jsonObject.get("assetLifeCycleRuleActionType"))); + assetLifeCycleRuleTransitionType = AssetLifeCycleRuleTransitionType.get(GsonParser.parseString(jsonObject.get("assetLifeCycleRuleTransitionType"))); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAssetLifeCycleTransitionAction"); + kparams.add("assetLifeCycleRuleActionType", this.assetLifeCycleRuleActionType); + return kparams; + } + + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeInt(this.assetLifeCycleRuleActionType == null ? -1 : this.assetLifeCycleRuleActionType.ordinal()); + dest.writeInt(this.assetLifeCycleRuleTransitionType == null ? -1 : this.assetLifeCycleRuleTransitionType.ordinal()); + } + + public AssetLifeCycleTransitionAction(Parcel in) { + super(in); + int tmpAssetLifeCycleRuleActionType = in.readInt(); + this.assetLifeCycleRuleActionType = tmpAssetLifeCycleRuleActionType == -1 ? null : AssetLifeCycleRuleActionType.values()[tmpAssetLifeCycleRuleActionType]; + int tmpAssetLifeCycleRuleTransitionType = in.readInt(); + this.assetLifeCycleRuleTransitionType = tmpAssetLifeCycleRuleTransitionType == -1 ? null : AssetLifeCycleRuleTransitionType.values()[tmpAssetLifeCycleRuleTransitionType]; + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AssetMetaOrTagGroupBy.java b/KalturaClient/src/main/java/com/kaltura/client/types/AssetMetaOrTagGroupBy.java new file mode 100644 index 000000000..db5991cce --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AssetMetaOrTagGroupBy.java @@ -0,0 +1,119 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Group by a tag or meta - according to the name that appears in the system + (similar to KSQL) + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AssetMetaOrTagGroupBy.Tokenizer.class) +public class AssetMetaOrTagGroupBy extends AssetGroupBy { + + public interface Tokenizer extends AssetGroupBy.Tokenizer { + String value(); + } + + /** + * Group by a tag or meta - according to the name that appears in the system + (similar to KSQL) + */ + private String value; + + // value: + public String getValue(){ + return this.value; + } + public void setValue(String value){ + this.value = value; + } + + public void value(String multirequestToken){ + setToken("value", multirequestToken); + } + + + public AssetMetaOrTagGroupBy() { + super(); + } + + public AssetMetaOrTagGroupBy(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + value = GsonParser.parseString(jsonObject.get("value")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAssetMetaOrTagGroupBy"); + kparams.add("value", this.value); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public AssetMetaOrTagGroupBy createFromParcel(Parcel source) { + return new AssetMetaOrTagGroupBy(source); + } + + @Override + public AssetMetaOrTagGroupBy[] newArray(int size) { + return new AssetMetaOrTagGroupBy[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.value); + } + + public AssetMetaOrTagGroupBy(Parcel in) { + super(in); + this.value = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AssetOrder.java b/KalturaClient/src/main/java/com/kaltura/client/types/AssetOrder.java new file mode 100644 index 000000000..c6f8e8155 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AssetOrder.java @@ -0,0 +1,116 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.AssetOrderByType; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AssetOrder.Tokenizer.class) +public class AssetOrder extends BaseAssetOrder { + + public interface Tokenizer extends BaseAssetOrder.Tokenizer { + String orderBy(); + } + + /** + * Order By + */ + private AssetOrderByType orderBy; + + // orderBy: + public AssetOrderByType getOrderBy(){ + return this.orderBy; + } + public void setOrderBy(AssetOrderByType orderBy){ + this.orderBy = orderBy; + } + + public void orderBy(String multirequestToken){ + setToken("orderBy", multirequestToken); + } + + + public AssetOrder() { + super(); + } + + public AssetOrder(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + orderBy = AssetOrderByType.get(GsonParser.parseString(jsonObject.get("orderBy"))); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAssetOrder"); + kparams.add("orderBy", this.orderBy); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public AssetOrder createFromParcel(Parcel source) { + return new AssetOrder(source); + } + + @Override + public AssetOrder[] newArray(int size) { + return new AssetOrder[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeInt(this.orderBy == null ? -1 : this.orderBy.ordinal()); + } + + public AssetOrder(Parcel in) { + super(in); + int tmpOrderBy = in.readInt(); + this.orderBy = tmpOrderBy == -1 ? null : AssetOrderByType.values()[tmpOrderBy]; + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AssetOrderSegmentAction.java b/KalturaClient/src/main/java/com/kaltura/client/types/AssetOrderSegmentAction.java new file mode 100644 index 000000000..31ae90d29 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AssetOrderSegmentAction.java @@ -0,0 +1,146 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.ArrayList; +import java.util.List; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Asset order segment action + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AssetOrderSegmentAction.Tokenizer.class) +public class AssetOrderSegmentAction extends BaseSegmentAction { + + public interface Tokenizer extends BaseSegmentAction.Tokenizer { + String name(); + RequestBuilder.ListTokenizer values(); + } + + /** + * Action name + */ + private String name; + /** + * Action values + */ + private List values; + + // name: + public String getName(){ + return this.name; + } + public void setName(String name){ + this.name = name; + } + + public void name(String multirequestToken){ + setToken("name", multirequestToken); + } + + // values: + public List getValues(){ + return this.values; + } + public void setValues(List values){ + this.values = values; + } + + + public AssetOrderSegmentAction() { + super(); + } + + public AssetOrderSegmentAction(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + name = GsonParser.parseString(jsonObject.get("name")); + values = GsonParser.parseArray(jsonObject.getAsJsonArray("values"), StringValue.class); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAssetOrderSegmentAction"); + kparams.add("name", this.name); + kparams.add("values", this.values); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public AssetOrderSegmentAction createFromParcel(Parcel source) { + return new AssetOrderSegmentAction(source); + } + + @Override + public AssetOrderSegmentAction[] newArray(int size) { + return new AssetOrderSegmentAction[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.name); + if(this.values != null) { + dest.writeInt(this.values.size()); + dest.writeList(this.values); + } else { + dest.writeInt(-1); + } + } + + public AssetOrderSegmentAction(Parcel in) { + super(in); + this.name = in.readString(); + int valuesSize = in.readInt(); + if( valuesSize > -1) { + this.values = new ArrayList<>(); + in.readList(this.values, StringValue.class.getClassLoader()); + } + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AssetPersonalMarkup.java b/KalturaClient/src/main/java/com/kaltura/client/types/AssetPersonalMarkup.java new file mode 100644 index 000000000..c2b6969a9 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AssetPersonalMarkup.java @@ -0,0 +1,152 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.AssetType; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.ArrayList; +import java.util.List; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Asset Personal Markup + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AssetPersonalMarkup.Tokenizer.class) +public class AssetPersonalMarkup extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String assetId(); + String assetType(); + RequestBuilder.ListTokenizer products(); + } + + /** + * Asset Id + */ + private Long assetId; + /** + * Asset Type + */ + private AssetType assetType; + /** + * all related asset&#39;s Product Markups + */ + private List products; + + // assetId: + public Long getAssetId(){ + return this.assetId; + } + // assetType: + public AssetType getAssetType(){ + return this.assetType; + } + // products: + public List getProducts(){ + return this.products; + } + public void setProducts(List products){ + this.products = products; + } + + + public AssetPersonalMarkup() { + super(); + } + + public AssetPersonalMarkup(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + assetId = GsonParser.parseLong(jsonObject.get("assetId")); + assetType = AssetType.get(GsonParser.parseString(jsonObject.get("assetType"))); + products = GsonParser.parseArray(jsonObject.getAsJsonArray("products"), ProductMarkup.class); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAssetPersonalMarkup"); + kparams.add("products", this.products); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public AssetPersonalMarkup createFromParcel(Parcel source) { + return new AssetPersonalMarkup(source); + } + + @Override + public AssetPersonalMarkup[] newArray(int size) { + return new AssetPersonalMarkup[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.assetId); + dest.writeInt(this.assetType == null ? -1 : this.assetType.ordinal()); + if(this.products != null) { + dest.writeInt(this.products.size()); + dest.writeList(this.products); + } else { + dest.writeInt(-1); + } + } + + public AssetPersonalMarkup(Parcel in) { + super(in); + this.assetId = (Long)in.readValue(Long.class.getClassLoader()); + int tmpAssetType = in.readInt(); + this.assetType = tmpAssetType == -1 ? null : AssetType.values()[tmpAssetType]; + int productsSize = in.readInt(); + if( productsSize > -1) { + this.products = new ArrayList<>(); + in.readList(this.products, ProductMarkup.class.getClassLoader()); + } + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AssetPersonalMarkupSearchFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/AssetPersonalMarkupSearchFilter.java new file mode 100644 index 000000000..dd106200c --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AssetPersonalMarkupSearchFilter.java @@ -0,0 +1,125 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.ArrayList; +import java.util.List; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Asset Personal Markup search filter + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AssetPersonalMarkupSearchFilter.Tokenizer.class) +public class AssetPersonalMarkupSearchFilter extends Filter { + + public interface Tokenizer extends Filter.Tokenizer { + RequestBuilder.ListTokenizer assetsIn(); + } + + /** + * all assets to search their personal markups + */ + private List assetsIn; + + // assetsIn: + public List getAssetsIn(){ + return this.assetsIn; + } + public void setAssetsIn(List assetsIn){ + this.assetsIn = assetsIn; + } + + + public AssetPersonalMarkupSearchFilter() { + super(); + } + + public AssetPersonalMarkupSearchFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + assetsIn = GsonParser.parseArray(jsonObject.getAsJsonArray("assetsIn"), SlimAsset.class); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAssetPersonalMarkupSearchFilter"); + kparams.add("assetsIn", this.assetsIn); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public AssetPersonalMarkupSearchFilter createFromParcel(Parcel source) { + return new AssetPersonalMarkupSearchFilter(source); + } + + @Override + public AssetPersonalMarkupSearchFilter[] newArray(int size) { + return new AssetPersonalMarkupSearchFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + if(this.assetsIn != null) { + dest.writeInt(this.assetsIn.size()); + dest.writeList(this.assetsIn); + } else { + dest.writeInt(-1); + } + } + + public AssetPersonalMarkupSearchFilter(Parcel in) { + super(in); + int assetsInSize = in.readInt(); + if( assetsInSize > -1) { + this.assetsIn = new ArrayList<>(); + in.readList(this.assetsIn, SlimAsset.class.getClassLoader()); + } + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AssetPersonalSelection.java b/KalturaClient/src/main/java/com/kaltura/client/types/AssetPersonalSelection.java new file mode 100644 index 000000000..906d03f24 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AssetPersonalSelection.java @@ -0,0 +1,135 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.AssetType; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Asset personal selection + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AssetPersonalSelection.Tokenizer.class) +public class AssetPersonalSelection extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String assetId(); + String assetType(); + String updateDate(); + } + + /** + * Asset Id + */ + private Long assetId; + /** + * Asset Type + */ + private AssetType assetType; + /** + * Update Date + */ + private Long updateDate; + + // assetId: + public Long getAssetId(){ + return this.assetId; + } + // assetType: + public AssetType getAssetType(){ + return this.assetType; + } + // updateDate: + public Long getUpdateDate(){ + return this.updateDate; + } + + public AssetPersonalSelection() { + super(); + } + + public AssetPersonalSelection(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + assetId = GsonParser.parseLong(jsonObject.get("assetId")); + assetType = AssetType.get(GsonParser.parseString(jsonObject.get("assetType"))); + updateDate = GsonParser.parseLong(jsonObject.get("updateDate")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAssetPersonalSelection"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public AssetPersonalSelection createFromParcel(Parcel source) { + return new AssetPersonalSelection(source); + } + + @Override + public AssetPersonalSelection[] newArray(int size) { + return new AssetPersonalSelection[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.assetId); + dest.writeInt(this.assetType == null ? -1 : this.assetType.ordinal()); + dest.writeValue(this.updateDate); + } + + public AssetPersonalSelection(Parcel in) { + super(in); + this.assetId = (Long)in.readValue(Long.class.getClassLoader()); + int tmpAssetType = in.readInt(); + this.assetType = tmpAssetType == -1 ? null : AssetType.values()[tmpAssetType]; + this.updateDate = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AssetReminder.java b/KalturaClient/src/main/java/com/kaltura/client/types/AssetReminder.java new file mode 100644 index 000000000..44141adc0 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AssetReminder.java @@ -0,0 +1,114 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AssetReminder.Tokenizer.class) +public class AssetReminder extends Reminder { + + public interface Tokenizer extends Reminder.Tokenizer { + String assetId(); + } + + /** + * Asset id + */ + private Long assetId; + + // assetId: + public Long getAssetId(){ + return this.assetId; + } + public void setAssetId(Long assetId){ + this.assetId = assetId; + } + + public void assetId(String multirequestToken){ + setToken("assetId", multirequestToken); + } + + + public AssetReminder() { + super(); + } + + public AssetReminder(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + assetId = GsonParser.parseLong(jsonObject.get("assetId")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAssetReminder"); + kparams.add("assetId", this.assetId); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public AssetReminder createFromParcel(Parcel source) { + return new AssetReminder(source); + } + + @Override + public AssetReminder[] newArray(int size) { + return new AssetReminder[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.assetId); + } + + public AssetReminder(Parcel in) { + super(in); + this.assetId = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AssetReminderFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/AssetReminderFilter.java new file mode 100644 index 000000000..87fc07ded --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AssetReminderFilter.java @@ -0,0 +1,82 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AssetReminderFilter.Tokenizer.class) +public class AssetReminderFilter extends ReminderFilter { + + public interface Tokenizer extends ReminderFilter.Tokenizer { + } + + + + public AssetReminderFilter() { + super(); + } + + public AssetReminderFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAssetReminderFilter"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public AssetReminderFilter createFromParcel(Parcel source) { + return new AssetReminderFilter(source); + } + + @Override + public AssetReminderFilter[] newArray(int size) { + return new AssetReminderFilter[size]; + } + }; + + public AssetReminderFilter(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AssetRule.java b/KalturaClient/src/main/java/com/kaltura/client/types/AssetRule.java new file mode 100644 index 000000000..7ea31707c --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AssetRule.java @@ -0,0 +1,165 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.AssetRuleStatus; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.ArrayList; +import java.util.List; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Asset rule + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AssetRule.Tokenizer.class) +public class AssetRule extends AssetRuleBase { + + public interface Tokenizer extends AssetRuleBase.Tokenizer { + RequestBuilder.ListTokenizer conditions(); + RequestBuilder.ListTokenizer actions(); + String status(); + } + + /** + * List of conditions for the rule + */ + private List conditions; + /** + * List of actions for the rule + */ + private List actions; + /** + * List of actions for the rule + */ + private AssetRuleStatus status; + + // conditions: + public List getConditions(){ + return this.conditions; + } + public void setConditions(List conditions){ + this.conditions = conditions; + } + + // actions: + public List getActions(){ + return this.actions; + } + public void setActions(List actions){ + this.actions = actions; + } + + // status: + public AssetRuleStatus getStatus(){ + return this.status; + } + + public AssetRule() { + super(); + } + + public AssetRule(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + conditions = GsonParser.parseArray(jsonObject.getAsJsonArray("conditions"), Condition.class); + actions = GsonParser.parseArray(jsonObject.getAsJsonArray("actions"), AssetRuleAction.class); + status = AssetRuleStatus.get(GsonParser.parseString(jsonObject.get("status"))); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAssetRule"); + kparams.add("conditions", this.conditions); + kparams.add("actions", this.actions); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public AssetRule createFromParcel(Parcel source) { + return new AssetRule(source); + } + + @Override + public AssetRule[] newArray(int size) { + return new AssetRule[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + if(this.conditions != null) { + dest.writeInt(this.conditions.size()); + dest.writeList(this.conditions); + } else { + dest.writeInt(-1); + } + if(this.actions != null) { + dest.writeInt(this.actions.size()); + dest.writeList(this.actions); + } else { + dest.writeInt(-1); + } + dest.writeInt(this.status == null ? -1 : this.status.ordinal()); + } + + public AssetRule(Parcel in) { + super(in); + int conditionsSize = in.readInt(); + if( conditionsSize > -1) { + this.conditions = new ArrayList<>(); + in.readList(this.conditions, Condition.class.getClassLoader()); + } + int actionsSize = in.readInt(); + if( actionsSize > -1) { + this.actions = new ArrayList<>(); + in.readList(this.actions, AssetRuleAction.class.getClassLoader()); + } + int tmpStatus = in.readInt(); + this.status = tmpStatus == -1 ? null : AssetRuleStatus.values()[tmpStatus]; + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AssetRuleAction.java b/KalturaClient/src/main/java/com/kaltura/client/types/AssetRuleAction.java new file mode 100644 index 000000000..353623964 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AssetRuleAction.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AssetRuleAction.Tokenizer.class) +public abstract class AssetRuleAction extends RuleAction { + + public interface Tokenizer extends RuleAction.Tokenizer { + } + + + + public AssetRuleAction() { + super(); + } + + public AssetRuleAction(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAssetRuleAction"); + return kparams; + } + + + public AssetRuleAction(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AssetRuleBase.java b/KalturaClient/src/main/java/com/kaltura/client/types/AssetRuleBase.java new file mode 100644 index 000000000..bcc1c6c34 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AssetRuleBase.java @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Asset rule base + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AssetRuleBase.Tokenizer.class) +public abstract class AssetRuleBase extends Rule { + + public interface Tokenizer extends Rule.Tokenizer { + } + + + + public AssetRuleBase() { + super(); + } + + public AssetRuleBase(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAssetRuleBase"); + return kparams; + } + + + public AssetRuleBase(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AssetRuleFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/AssetRuleFilter.java new file mode 100644 index 000000000..5ceb0f5e3 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AssetRuleFilter.java @@ -0,0 +1,203 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.RuleActionType; +import com.kaltura.client.enums.RuleConditionType; +import com.kaltura.client.types.SlimAsset; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Asset rule filter + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AssetRuleFilter.Tokenizer.class) +public class AssetRuleFilter extends Filter { + + public interface Tokenizer extends Filter.Tokenizer { + String conditionsContainType(); + SlimAsset.Tokenizer assetApplied(); + String actionsContainType(); + String assetRuleIdEqual(); + String nameContains(); + } + + /** + * Indicates which asset rule list to return by it KalturaRuleConditionType. + Default value: KalturaRuleConditionType.COUNTRY + */ + private RuleConditionType conditionsContainType; + /** + * Indicates if to return an asset rule list that related to specific asset + */ + private SlimAsset assetApplied; + /** + * Indicates which asset rule list to return by this KalturaRuleActionType. + */ + private RuleActionType actionsContainType; + /** + * Asset rule id + */ + private Long assetRuleIdEqual; + /** + * Name + */ + private String nameContains; + + // conditionsContainType: + public RuleConditionType getConditionsContainType(){ + return this.conditionsContainType; + } + public void setConditionsContainType(RuleConditionType conditionsContainType){ + this.conditionsContainType = conditionsContainType; + } + + public void conditionsContainType(String multirequestToken){ + setToken("conditionsContainType", multirequestToken); + } + + // assetApplied: + public SlimAsset getAssetApplied(){ + return this.assetApplied; + } + public void setAssetApplied(SlimAsset assetApplied){ + this.assetApplied = assetApplied; + } + + // actionsContainType: + public RuleActionType getActionsContainType(){ + return this.actionsContainType; + } + public void setActionsContainType(RuleActionType actionsContainType){ + this.actionsContainType = actionsContainType; + } + + public void actionsContainType(String multirequestToken){ + setToken("actionsContainType", multirequestToken); + } + + // assetRuleIdEqual: + public Long getAssetRuleIdEqual(){ + return this.assetRuleIdEqual; + } + public void setAssetRuleIdEqual(Long assetRuleIdEqual){ + this.assetRuleIdEqual = assetRuleIdEqual; + } + + public void assetRuleIdEqual(String multirequestToken){ + setToken("assetRuleIdEqual", multirequestToken); + } + + // nameContains: + public String getNameContains(){ + return this.nameContains; + } + public void setNameContains(String nameContains){ + this.nameContains = nameContains; + } + + public void nameContains(String multirequestToken){ + setToken("nameContains", multirequestToken); + } + + + public AssetRuleFilter() { + super(); + } + + public AssetRuleFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + conditionsContainType = RuleConditionType.get(GsonParser.parseString(jsonObject.get("conditionsContainType"))); + assetApplied = GsonParser.parseObject(jsonObject.getAsJsonObject("assetApplied"), SlimAsset.class); + actionsContainType = RuleActionType.get(GsonParser.parseString(jsonObject.get("actionsContainType"))); + assetRuleIdEqual = GsonParser.parseLong(jsonObject.get("assetRuleIdEqual")); + nameContains = GsonParser.parseString(jsonObject.get("nameContains")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAssetRuleFilter"); + kparams.add("conditionsContainType", this.conditionsContainType); + kparams.add("assetApplied", this.assetApplied); + kparams.add("actionsContainType", this.actionsContainType); + kparams.add("assetRuleIdEqual", this.assetRuleIdEqual); + kparams.add("nameContains", this.nameContains); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public AssetRuleFilter createFromParcel(Parcel source) { + return new AssetRuleFilter(source); + } + + @Override + public AssetRuleFilter[] newArray(int size) { + return new AssetRuleFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeInt(this.conditionsContainType == null ? -1 : this.conditionsContainType.ordinal()); + dest.writeParcelable(this.assetApplied, flags); + dest.writeInt(this.actionsContainType == null ? -1 : this.actionsContainType.ordinal()); + dest.writeValue(this.assetRuleIdEqual); + dest.writeString(this.nameContains); + } + + public AssetRuleFilter(Parcel in) { + super(in); + int tmpConditionsContainType = in.readInt(); + this.conditionsContainType = tmpConditionsContainType == -1 ? null : RuleConditionType.values()[tmpConditionsContainType]; + this.assetApplied = in.readParcelable(SlimAsset.class.getClassLoader()); + int tmpActionsContainType = in.readInt(); + this.actionsContainType = tmpActionsContainType == -1 ? null : RuleActionType.values()[tmpActionsContainType]; + this.assetRuleIdEqual = (Long)in.readValue(Long.class.getClassLoader()); + this.nameContains = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AssetShopCondition.java b/KalturaClient/src/main/java/com/kaltura/client/types/AssetShopCondition.java new file mode 100644 index 000000000..f427df2b8 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AssetShopCondition.java @@ -0,0 +1,132 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.StringValueArray; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AssetShopCondition.Tokenizer.class) +public class AssetShopCondition extends AssetConditionBase { + + public interface Tokenizer extends AssetConditionBase.Tokenizer { + String value(); + StringValueArray.Tokenizer values(); + } + + /** + * Shop marker&#39;s value + */ + private String value; + /** + * Shop marker&#39;s values + */ + private StringValueArray values; + + // value: + public String getValue(){ + return this.value; + } + public void setValue(String value){ + this.value = value; + } + + public void value(String multirequestToken){ + setToken("value", multirequestToken); + } + + // values: + public StringValueArray getValues(){ + return this.values; + } + public void setValues(StringValueArray values){ + this.values = values; + } + + + public AssetShopCondition() { + super(); + } + + public AssetShopCondition(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + value = GsonParser.parseString(jsonObject.get("value")); + values = GsonParser.parseObject(jsonObject.getAsJsonObject("values"), StringValueArray.class); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAssetShopCondition"); + kparams.add("value", this.value); + kparams.add("values", this.values); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public AssetShopCondition createFromParcel(Parcel source) { + return new AssetShopCondition(source); + } + + @Override + public AssetShopCondition[] newArray(int size) { + return new AssetShopCondition[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.value); + dest.writeParcelable(this.values, flags); + } + + public AssetShopCondition(Parcel in) { + super(in); + this.value = in.readString(); + this.values = in.readParcelable(StringValueArray.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AssetStatistics.java b/KalturaClient/src/main/java/com/kaltura/client/types/AssetStatistics.java new file mode 100644 index 000000000..0f16b5c36 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AssetStatistics.java @@ -0,0 +1,220 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.BuzzScore; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Asset statistics + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AssetStatistics.Tokenizer.class) +public class AssetStatistics extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String assetId(); + String likes(); + String views(); + String ratingCount(); + String rating(); + BuzzScore.Tokenizer buzzScore(); + } + + /** + * Unique identifier for the asset + */ + private Integer assetId; + /** + * Total number of likes for this asset + */ + private Integer likes; + /** + * Total number of views for this asset + */ + private Integer views; + /** + * Number of people that rated the asset + */ + private Integer ratingCount; + /** + * Average rating for the asset + */ + private Double rating; + /** + * Buzz score + */ + private BuzzScore buzzScore; + + // assetId: + public Integer getAssetId(){ + return this.assetId; + } + public void setAssetId(Integer assetId){ + this.assetId = assetId; + } + + public void assetId(String multirequestToken){ + setToken("assetId", multirequestToken); + } + + // likes: + public Integer getLikes(){ + return this.likes; + } + public void setLikes(Integer likes){ + this.likes = likes; + } + + public void likes(String multirequestToken){ + setToken("likes", multirequestToken); + } + + // views: + public Integer getViews(){ + return this.views; + } + public void setViews(Integer views){ + this.views = views; + } + + public void views(String multirequestToken){ + setToken("views", multirequestToken); + } + + // ratingCount: + public Integer getRatingCount(){ + return this.ratingCount; + } + public void setRatingCount(Integer ratingCount){ + this.ratingCount = ratingCount; + } + + public void ratingCount(String multirequestToken){ + setToken("ratingCount", multirequestToken); + } + + // rating: + public Double getRating(){ + return this.rating; + } + public void setRating(Double rating){ + this.rating = rating; + } + + public void rating(String multirequestToken){ + setToken("rating", multirequestToken); + } + + // buzzScore: + public BuzzScore getBuzzScore(){ + return this.buzzScore; + } + public void setBuzzScore(BuzzScore buzzScore){ + this.buzzScore = buzzScore; + } + + + public AssetStatistics() { + super(); + } + + public AssetStatistics(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + assetId = GsonParser.parseInt(jsonObject.get("assetId")); + likes = GsonParser.parseInt(jsonObject.get("likes")); + views = GsonParser.parseInt(jsonObject.get("views")); + ratingCount = GsonParser.parseInt(jsonObject.get("ratingCount")); + rating = GsonParser.parseDouble(jsonObject.get("rating")); + buzzScore = GsonParser.parseObject(jsonObject.getAsJsonObject("buzzScore"), BuzzScore.class); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAssetStatistics"); + kparams.add("assetId", this.assetId); + kparams.add("likes", this.likes); + kparams.add("views", this.views); + kparams.add("ratingCount", this.ratingCount); + kparams.add("rating", this.rating); + kparams.add("buzzScore", this.buzzScore); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public AssetStatistics createFromParcel(Parcel source) { + return new AssetStatistics(source); + } + + @Override + public AssetStatistics[] newArray(int size) { + return new AssetStatistics[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.assetId); + dest.writeValue(this.likes); + dest.writeValue(this.views); + dest.writeValue(this.ratingCount); + dest.writeValue(this.rating); + dest.writeParcelable(this.buzzScore, flags); + } + + public AssetStatistics(Parcel in) { + super(in); + this.assetId = (Integer)in.readValue(Integer.class.getClassLoader()); + this.likes = (Integer)in.readValue(Integer.class.getClassLoader()); + this.views = (Integer)in.readValue(Integer.class.getClassLoader()); + this.ratingCount = (Integer)in.readValue(Integer.class.getClassLoader()); + this.rating = (Double)in.readValue(Double.class.getClassLoader()); + this.buzzScore = in.readParcelable(BuzzScore.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AssetStatisticsOrder.java b/KalturaClient/src/main/java/com/kaltura/client/types/AssetStatisticsOrder.java new file mode 100644 index 000000000..1ed6059f5 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AssetStatisticsOrder.java @@ -0,0 +1,137 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.AssetOrderByStatistics; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AssetStatisticsOrder.Tokenizer.class) +public class AssetStatisticsOrder extends BaseAssetOrder { + + public interface Tokenizer extends BaseAssetOrder.Tokenizer { + String trendingDaysEqual(); + String orderBy(); + } + + /** + * Trending Days Equal + */ + private Integer trendingDaysEqual; + /** + * order by meta asc/desc + */ + private AssetOrderByStatistics orderBy; + + // trendingDaysEqual: + public Integer getTrendingDaysEqual(){ + return this.trendingDaysEqual; + } + public void setTrendingDaysEqual(Integer trendingDaysEqual){ + this.trendingDaysEqual = trendingDaysEqual; + } + + public void trendingDaysEqual(String multirequestToken){ + setToken("trendingDaysEqual", multirequestToken); + } + + // orderBy: + public AssetOrderByStatistics getOrderBy(){ + return this.orderBy; + } + public void setOrderBy(AssetOrderByStatistics orderBy){ + this.orderBy = orderBy; + } + + public void orderBy(String multirequestToken){ + setToken("orderBy", multirequestToken); + } + + + public AssetStatisticsOrder() { + super(); + } + + public AssetStatisticsOrder(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + trendingDaysEqual = GsonParser.parseInt(jsonObject.get("trendingDaysEqual")); + orderBy = AssetOrderByStatistics.get(GsonParser.parseString(jsonObject.get("orderBy"))); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAssetStatisticsOrder"); + kparams.add("trendingDaysEqual", this.trendingDaysEqual); + kparams.add("orderBy", this.orderBy); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public AssetStatisticsOrder createFromParcel(Parcel source) { + return new AssetStatisticsOrder(source); + } + + @Override + public AssetStatisticsOrder[] newArray(int size) { + return new AssetStatisticsOrder[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.trendingDaysEqual); + dest.writeInt(this.orderBy == null ? -1 : this.orderBy.ordinal()); + } + + public AssetStatisticsOrder(Parcel in) { + super(in); + this.trendingDaysEqual = (Integer)in.readValue(Integer.class.getClassLoader()); + int tmpOrderBy = in.readInt(); + this.orderBy = tmpOrderBy == -1 ? null : AssetOrderByStatistics.values()[tmpOrderBy]; + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AssetStatisticsQuery.java b/KalturaClient/src/main/java/com/kaltura/client/types/AssetStatisticsQuery.java new file mode 100644 index 000000000..b402299b7 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AssetStatisticsQuery.java @@ -0,0 +1,180 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.AssetType; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AssetStatisticsQuery.Tokenizer.class) +public class AssetStatisticsQuery extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String assetIdIn(); + String assetTypeEqual(); + String startDateGreaterThanOrEqual(); + String endDateGreaterThanOrEqual(); + } + + /** + * Comma separated list of asset identifiers. + */ + private String assetIdIn; + /** + * Asset type + */ + private AssetType assetTypeEqual; + /** + * The beginning of the time window to get the statistics for (in epoch). + */ + private Long startDateGreaterThanOrEqual; + /** + * /// The end of the time window to get the statistics for (in epoch). + */ + private Long endDateGreaterThanOrEqual; + + // assetIdIn: + public String getAssetIdIn(){ + return this.assetIdIn; + } + public void setAssetIdIn(String assetIdIn){ + this.assetIdIn = assetIdIn; + } + + public void assetIdIn(String multirequestToken){ + setToken("assetIdIn", multirequestToken); + } + + // assetTypeEqual: + public AssetType getAssetTypeEqual(){ + return this.assetTypeEqual; + } + public void setAssetTypeEqual(AssetType assetTypeEqual){ + this.assetTypeEqual = assetTypeEqual; + } + + public void assetTypeEqual(String multirequestToken){ + setToken("assetTypeEqual", multirequestToken); + } + + // startDateGreaterThanOrEqual: + public Long getStartDateGreaterThanOrEqual(){ + return this.startDateGreaterThanOrEqual; + } + public void setStartDateGreaterThanOrEqual(Long startDateGreaterThanOrEqual){ + this.startDateGreaterThanOrEqual = startDateGreaterThanOrEqual; + } + + public void startDateGreaterThanOrEqual(String multirequestToken){ + setToken("startDateGreaterThanOrEqual", multirequestToken); + } + + // endDateGreaterThanOrEqual: + public Long getEndDateGreaterThanOrEqual(){ + return this.endDateGreaterThanOrEqual; + } + public void setEndDateGreaterThanOrEqual(Long endDateGreaterThanOrEqual){ + this.endDateGreaterThanOrEqual = endDateGreaterThanOrEqual; + } + + public void endDateGreaterThanOrEqual(String multirequestToken){ + setToken("endDateGreaterThanOrEqual", multirequestToken); + } + + + public AssetStatisticsQuery() { + super(); + } + + public AssetStatisticsQuery(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + assetIdIn = GsonParser.parseString(jsonObject.get("assetIdIn")); + assetTypeEqual = AssetType.get(GsonParser.parseString(jsonObject.get("assetTypeEqual"))); + startDateGreaterThanOrEqual = GsonParser.parseLong(jsonObject.get("startDateGreaterThanOrEqual")); + endDateGreaterThanOrEqual = GsonParser.parseLong(jsonObject.get("endDateGreaterThanOrEqual")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAssetStatisticsQuery"); + kparams.add("assetIdIn", this.assetIdIn); + kparams.add("assetTypeEqual", this.assetTypeEqual); + kparams.add("startDateGreaterThanOrEqual", this.startDateGreaterThanOrEqual); + kparams.add("endDateGreaterThanOrEqual", this.endDateGreaterThanOrEqual); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public AssetStatisticsQuery createFromParcel(Parcel source) { + return new AssetStatisticsQuery(source); + } + + @Override + public AssetStatisticsQuery[] newArray(int size) { + return new AssetStatisticsQuery[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.assetIdIn); + dest.writeInt(this.assetTypeEqual == null ? -1 : this.assetTypeEqual.ordinal()); + dest.writeValue(this.startDateGreaterThanOrEqual); + dest.writeValue(this.endDateGreaterThanOrEqual); + } + + public AssetStatisticsQuery(Parcel in) { + super(in); + this.assetIdIn = in.readString(); + int tmpAssetTypeEqual = in.readInt(); + this.assetTypeEqual = tmpAssetTypeEqual == -1 ? null : AssetType.values()[tmpAssetTypeEqual]; + this.startDateGreaterThanOrEqual = (Long)in.readValue(Long.class.getClassLoader()); + this.endDateGreaterThanOrEqual = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AssetStruct.java b/KalturaClient/src/main/java/com/kaltura/client/types/AssetStruct.java new file mode 100644 index 000000000..4c17584ad --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AssetStruct.java @@ -0,0 +1,377 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AssetStruct.Tokenizer.class) +public class AssetStruct extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String id(); + String name(); + RequestBuilder.ListTokenizer multilingualName(); + String systemName(); + String isProtected(); + String metaIds(); + String createDate(); + String updateDate(); + String features(); + String pluralName(); + String parentId(); + String connectingMetaId(); + String connectedParentMetaId(); + RequestBuilder.MapTokenizer dynamicData(); + } + + /** + * Asset Struct id + */ + private Long id; + /** + * Asset struct name for the partner + */ + private String name; + /** + * Asset struct name for the partner + */ + private List multilingualName; + /** + * Asset Struct system name for the partner + */ + private String systemName; + /** + * Is the Asset Struct protected by the system + */ + private Boolean isProtected; + /** + * A list of comma separated meta ids associated with this asset struct, returned + according to the order. + */ + private String metaIds; + /** + * Specifies when was the Asset Struct was created. Date and time represented as + epoch. + */ + private Long createDate; + /** + * Specifies when was the Asset Struct last updated. Date and time represented as + epoch. + */ + private Long updateDate; + /** + * List of supported features + */ + private String features; + /** + * Plural Name + */ + private String pluralName; + /** + * AssetStruct parent Id + */ + private Long parentId; + /** + * connectingMetaId + */ + private Long connectingMetaId; + /** + * connectedParentMetaId + */ + private Long connectedParentMetaId; + /** + * Dynamic data + */ + private Map dynamicData; + + // id: + public Long getId(){ + return this.id; + } + // name: + public String getName(){ + return this.name; + } + // multilingualName: + public List getMultilingualName(){ + return this.multilingualName; + } + public void setMultilingualName(List multilingualName){ + this.multilingualName = multilingualName; + } + + // systemName: + public String getSystemName(){ + return this.systemName; + } + public void setSystemName(String systemName){ + this.systemName = systemName; + } + + public void systemName(String multirequestToken){ + setToken("systemName", multirequestToken); + } + + // isProtected: + public Boolean getIsProtected(){ + return this.isProtected; + } + public void setIsProtected(Boolean isProtected){ + this.isProtected = isProtected; + } + + public void isProtected(String multirequestToken){ + setToken("isProtected", multirequestToken); + } + + // metaIds: + public String getMetaIds(){ + return this.metaIds; + } + public void setMetaIds(String metaIds){ + this.metaIds = metaIds; + } + + public void metaIds(String multirequestToken){ + setToken("metaIds", multirequestToken); + } + + // createDate: + public Long getCreateDate(){ + return this.createDate; + } + // updateDate: + public Long getUpdateDate(){ + return this.updateDate; + } + // features: + public String getFeatures(){ + return this.features; + } + public void setFeatures(String features){ + this.features = features; + } + + public void features(String multirequestToken){ + setToken("features", multirequestToken); + } + + // pluralName: + public String getPluralName(){ + return this.pluralName; + } + public void setPluralName(String pluralName){ + this.pluralName = pluralName; + } + + public void pluralName(String multirequestToken){ + setToken("pluralName", multirequestToken); + } + + // parentId: + public Long getParentId(){ + return this.parentId; + } + public void setParentId(Long parentId){ + this.parentId = parentId; + } + + public void parentId(String multirequestToken){ + setToken("parentId", multirequestToken); + } + + // connectingMetaId: + public Long getConnectingMetaId(){ + return this.connectingMetaId; + } + public void setConnectingMetaId(Long connectingMetaId){ + this.connectingMetaId = connectingMetaId; + } + + public void connectingMetaId(String multirequestToken){ + setToken("connectingMetaId", multirequestToken); + } + + // connectedParentMetaId: + public Long getConnectedParentMetaId(){ + return this.connectedParentMetaId; + } + public void setConnectedParentMetaId(Long connectedParentMetaId){ + this.connectedParentMetaId = connectedParentMetaId; + } + + public void connectedParentMetaId(String multirequestToken){ + setToken("connectedParentMetaId", multirequestToken); + } + + // dynamicData: + public Map getDynamicData(){ + return this.dynamicData; + } + public void setDynamicData(Map dynamicData){ + this.dynamicData = dynamicData; + } + + + public AssetStruct() { + super(); + } + + public AssetStruct(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + id = GsonParser.parseLong(jsonObject.get("id")); + name = GsonParser.parseString(jsonObject.get("name")); + multilingualName = GsonParser.parseArray(jsonObject.getAsJsonArray("multilingualName"), TranslationToken.class); + systemName = GsonParser.parseString(jsonObject.get("systemName")); + isProtected = GsonParser.parseBoolean(jsonObject.get("isProtected")); + metaIds = GsonParser.parseString(jsonObject.get("metaIds")); + createDate = GsonParser.parseLong(jsonObject.get("createDate")); + updateDate = GsonParser.parseLong(jsonObject.get("updateDate")); + features = GsonParser.parseString(jsonObject.get("features")); + pluralName = GsonParser.parseString(jsonObject.get("pluralName")); + parentId = GsonParser.parseLong(jsonObject.get("parentId")); + connectingMetaId = GsonParser.parseLong(jsonObject.get("connectingMetaId")); + connectedParentMetaId = GsonParser.parseLong(jsonObject.get("connectedParentMetaId")); + dynamicData = GsonParser.parseMap(jsonObject.getAsJsonObject("dynamicData"), StringValue.class); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAssetStruct"); + kparams.add("multilingualName", this.multilingualName); + kparams.add("systemName", this.systemName); + kparams.add("isProtected", this.isProtected); + kparams.add("metaIds", this.metaIds); + kparams.add("features", this.features); + kparams.add("pluralName", this.pluralName); + kparams.add("parentId", this.parentId); + kparams.add("connectingMetaId", this.connectingMetaId); + kparams.add("connectedParentMetaId", this.connectedParentMetaId); + kparams.add("dynamicData", this.dynamicData); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public AssetStruct createFromParcel(Parcel source) { + return new AssetStruct(source); + } + + @Override + public AssetStruct[] newArray(int size) { + return new AssetStruct[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.id); + dest.writeString(this.name); + if(this.multilingualName != null) { + dest.writeInt(this.multilingualName.size()); + dest.writeList(this.multilingualName); + } else { + dest.writeInt(-1); + } + dest.writeString(this.systemName); + dest.writeValue(this.isProtected); + dest.writeString(this.metaIds); + dest.writeValue(this.createDate); + dest.writeValue(this.updateDate); + dest.writeString(this.features); + dest.writeString(this.pluralName); + dest.writeValue(this.parentId); + dest.writeValue(this.connectingMetaId); + dest.writeValue(this.connectedParentMetaId); + if(this.dynamicData != null) { + dest.writeInt(this.dynamicData.size()); + for (Map.Entry entry : this.dynamicData.entrySet()) { + dest.writeString(entry.getKey()); + dest.writeParcelable(entry.getValue(), flags); + } + } else { + dest.writeInt(-1); + } + } + + public AssetStruct(Parcel in) { + super(in); + this.id = (Long)in.readValue(Long.class.getClassLoader()); + this.name = in.readString(); + int multilingualNameSize = in.readInt(); + if( multilingualNameSize > -1) { + this.multilingualName = new ArrayList<>(); + in.readList(this.multilingualName, TranslationToken.class.getClassLoader()); + } + this.systemName = in.readString(); + this.isProtected = (Boolean)in.readValue(Boolean.class.getClassLoader()); + this.metaIds = in.readString(); + this.createDate = (Long)in.readValue(Long.class.getClassLoader()); + this.updateDate = (Long)in.readValue(Long.class.getClassLoader()); + this.features = in.readString(); + this.pluralName = in.readString(); + this.parentId = (Long)in.readValue(Long.class.getClassLoader()); + this.connectingMetaId = (Long)in.readValue(Long.class.getClassLoader()); + this.connectedParentMetaId = (Long)in.readValue(Long.class.getClassLoader()); + int dynamicDataSize = in.readInt(); + if( dynamicDataSize > -1) { + this.dynamicData = new HashMap<>(); + for (int i = 0; i < dynamicDataSize; i++) { + String key = in.readString(); + StringValue value = in.readParcelable(StringValue.class.getClassLoader()); + this.dynamicData.put(key, value); + } + } + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AssetStructFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/AssetStructFilter.java new file mode 100644 index 000000000..48aa4bce1 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AssetStructFilter.java @@ -0,0 +1,182 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.ObjectVirtualAssetInfoType; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Filtering Asset Structs + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AssetStructFilter.Tokenizer.class) +public class AssetStructFilter extends BaseAssetStructFilter { + + public interface Tokenizer extends BaseAssetStructFilter.Tokenizer { + String idIn(); + String metaIdEqual(); + String isProtectedEqual(); + String objectVirtualAssetInfoTypeEqual(); + } + + /** + * Comma separated identifiers, id = 0 is identified as program AssetStruct + */ + private String idIn; + /** + * Filter Asset Structs that contain a specific meta id + */ + private Long metaIdEqual; + /** + * Filter Asset Structs by isProtectedEqual value + */ + private Boolean isProtectedEqual; + /** + * Filter Asset Structs by object virtual asset info type value + */ + private ObjectVirtualAssetInfoType objectVirtualAssetInfoTypeEqual; + + // idIn: + public String getIdIn(){ + return this.idIn; + } + public void setIdIn(String idIn){ + this.idIn = idIn; + } + + public void idIn(String multirequestToken){ + setToken("idIn", multirequestToken); + } + + // metaIdEqual: + public Long getMetaIdEqual(){ + return this.metaIdEqual; + } + public void setMetaIdEqual(Long metaIdEqual){ + this.metaIdEqual = metaIdEqual; + } + + public void metaIdEqual(String multirequestToken){ + setToken("metaIdEqual", multirequestToken); + } + + // isProtectedEqual: + public Boolean getIsProtectedEqual(){ + return this.isProtectedEqual; + } + public void setIsProtectedEqual(Boolean isProtectedEqual){ + this.isProtectedEqual = isProtectedEqual; + } + + public void isProtectedEqual(String multirequestToken){ + setToken("isProtectedEqual", multirequestToken); + } + + // objectVirtualAssetInfoTypeEqual: + public ObjectVirtualAssetInfoType getObjectVirtualAssetInfoTypeEqual(){ + return this.objectVirtualAssetInfoTypeEqual; + } + public void setObjectVirtualAssetInfoTypeEqual(ObjectVirtualAssetInfoType objectVirtualAssetInfoTypeEqual){ + this.objectVirtualAssetInfoTypeEqual = objectVirtualAssetInfoTypeEqual; + } + + public void objectVirtualAssetInfoTypeEqual(String multirequestToken){ + setToken("objectVirtualAssetInfoTypeEqual", multirequestToken); + } + + + public AssetStructFilter() { + super(); + } + + public AssetStructFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + idIn = GsonParser.parseString(jsonObject.get("idIn")); + metaIdEqual = GsonParser.parseLong(jsonObject.get("metaIdEqual")); + isProtectedEqual = GsonParser.parseBoolean(jsonObject.get("isProtectedEqual")); + objectVirtualAssetInfoTypeEqual = ObjectVirtualAssetInfoType.get(GsonParser.parseString(jsonObject.get("objectVirtualAssetInfoTypeEqual"))); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAssetStructFilter"); + kparams.add("idIn", this.idIn); + kparams.add("metaIdEqual", this.metaIdEqual); + kparams.add("isProtectedEqual", this.isProtectedEqual); + kparams.add("objectVirtualAssetInfoTypeEqual", this.objectVirtualAssetInfoTypeEqual); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public AssetStructFilter createFromParcel(Parcel source) { + return new AssetStructFilter(source); + } + + @Override + public AssetStructFilter[] newArray(int size) { + return new AssetStructFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.idIn); + dest.writeValue(this.metaIdEqual); + dest.writeValue(this.isProtectedEqual); + dest.writeInt(this.objectVirtualAssetInfoTypeEqual == null ? -1 : this.objectVirtualAssetInfoTypeEqual.ordinal()); + } + + public AssetStructFilter(Parcel in) { + super(in); + this.idIn = in.readString(); + this.metaIdEqual = (Long)in.readValue(Long.class.getClassLoader()); + this.isProtectedEqual = (Boolean)in.readValue(Boolean.class.getClassLoader()); + int tmpObjectVirtualAssetInfoTypeEqual = in.readInt(); + this.objectVirtualAssetInfoTypeEqual = tmpObjectVirtualAssetInfoTypeEqual == -1 ? null : ObjectVirtualAssetInfoType.values()[tmpObjectVirtualAssetInfoTypeEqual]; + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AssetStructMeta.java b/KalturaClient/src/main/java/com/kaltura/client/types/AssetStructMeta.java new file mode 100644 index 000000000..8a52d043d --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AssetStructMeta.java @@ -0,0 +1,294 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Asset statistics + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AssetStructMeta.Tokenizer.class) +public class AssetStructMeta extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String assetStructId(); + String metaId(); + String ingestReferencePath(); + String protectFromIngest(); + String defaultIngestValue(); + String createDate(); + String updateDate(); + String isInherited(); + String isLocationTag(); + String suppressedOrder(); + String aliasName(); + } + + /** + * Asset Struct id (template_id) + */ + private Long assetStructId; + /** + * Meta id (topic_id) + */ + private Long metaId; + /** + * IngestReferencePath + */ + private String ingestReferencePath; + /** + * ProtectFromIngest + */ + private Boolean protectFromIngest; + /** + * DefaultIngestValue + */ + private String defaultIngestValue; + /** + * Specifies when was the Asset Struct Meta was created. Date and time represented + as epoch. + */ + private Long createDate; + /** + * Specifies when was the Asset Struct Meta last updated. Date and time represented + as epoch. + */ + private Long updateDate; + /** + * Is inherited + */ + private Boolean isInherited; + /** + * Is Location Tag + */ + private Boolean isLocationTag; + /** + * suppressed Order, ascending + */ + private Integer suppressedOrder; + /** + * Case sensitive alias value + */ + private String aliasName; + + // assetStructId: + public Long getAssetStructId(){ + return this.assetStructId; + } + // metaId: + public Long getMetaId(){ + return this.metaId; + } + // ingestReferencePath: + public String getIngestReferencePath(){ + return this.ingestReferencePath; + } + public void setIngestReferencePath(String ingestReferencePath){ + this.ingestReferencePath = ingestReferencePath; + } + + public void ingestReferencePath(String multirequestToken){ + setToken("ingestReferencePath", multirequestToken); + } + + // protectFromIngest: + public Boolean getProtectFromIngest(){ + return this.protectFromIngest; + } + public void setProtectFromIngest(Boolean protectFromIngest){ + this.protectFromIngest = protectFromIngest; + } + + public void protectFromIngest(String multirequestToken){ + setToken("protectFromIngest", multirequestToken); + } + + // defaultIngestValue: + public String getDefaultIngestValue(){ + return this.defaultIngestValue; + } + public void setDefaultIngestValue(String defaultIngestValue){ + this.defaultIngestValue = defaultIngestValue; + } + + public void defaultIngestValue(String multirequestToken){ + setToken("defaultIngestValue", multirequestToken); + } + + // createDate: + public Long getCreateDate(){ + return this.createDate; + } + // updateDate: + public Long getUpdateDate(){ + return this.updateDate; + } + // isInherited: + public Boolean getIsInherited(){ + return this.isInherited; + } + public void setIsInherited(Boolean isInherited){ + this.isInherited = isInherited; + } + + public void isInherited(String multirequestToken){ + setToken("isInherited", multirequestToken); + } + + // isLocationTag: + public Boolean getIsLocationTag(){ + return this.isLocationTag; + } + public void setIsLocationTag(Boolean isLocationTag){ + this.isLocationTag = isLocationTag; + } + + public void isLocationTag(String multirequestToken){ + setToken("isLocationTag", multirequestToken); + } + + // suppressedOrder: + public Integer getSuppressedOrder(){ + return this.suppressedOrder; + } + public void setSuppressedOrder(Integer suppressedOrder){ + this.suppressedOrder = suppressedOrder; + } + + public void suppressedOrder(String multirequestToken){ + setToken("suppressedOrder", multirequestToken); + } + + // aliasName: + public String getAliasName(){ + return this.aliasName; + } + public void setAliasName(String aliasName){ + this.aliasName = aliasName; + } + + public void aliasName(String multirequestToken){ + setToken("aliasName", multirequestToken); + } + + + public AssetStructMeta() { + super(); + } + + public AssetStructMeta(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + assetStructId = GsonParser.parseLong(jsonObject.get("assetStructId")); + metaId = GsonParser.parseLong(jsonObject.get("metaId")); + ingestReferencePath = GsonParser.parseString(jsonObject.get("ingestReferencePath")); + protectFromIngest = GsonParser.parseBoolean(jsonObject.get("protectFromIngest")); + defaultIngestValue = GsonParser.parseString(jsonObject.get("defaultIngestValue")); + createDate = GsonParser.parseLong(jsonObject.get("createDate")); + updateDate = GsonParser.parseLong(jsonObject.get("updateDate")); + isInherited = GsonParser.parseBoolean(jsonObject.get("isInherited")); + isLocationTag = GsonParser.parseBoolean(jsonObject.get("isLocationTag")); + suppressedOrder = GsonParser.parseInt(jsonObject.get("suppressedOrder")); + aliasName = GsonParser.parseString(jsonObject.get("aliasName")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAssetStructMeta"); + kparams.add("ingestReferencePath", this.ingestReferencePath); + kparams.add("protectFromIngest", this.protectFromIngest); + kparams.add("defaultIngestValue", this.defaultIngestValue); + kparams.add("isInherited", this.isInherited); + kparams.add("isLocationTag", this.isLocationTag); + kparams.add("suppressedOrder", this.suppressedOrder); + kparams.add("aliasName", this.aliasName); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public AssetStructMeta createFromParcel(Parcel source) { + return new AssetStructMeta(source); + } + + @Override + public AssetStructMeta[] newArray(int size) { + return new AssetStructMeta[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.assetStructId); + dest.writeValue(this.metaId); + dest.writeString(this.ingestReferencePath); + dest.writeValue(this.protectFromIngest); + dest.writeString(this.defaultIngestValue); + dest.writeValue(this.createDate); + dest.writeValue(this.updateDate); + dest.writeValue(this.isInherited); + dest.writeValue(this.isLocationTag); + dest.writeValue(this.suppressedOrder); + dest.writeString(this.aliasName); + } + + public AssetStructMeta(Parcel in) { + super(in); + this.assetStructId = (Long)in.readValue(Long.class.getClassLoader()); + this.metaId = (Long)in.readValue(Long.class.getClassLoader()); + this.ingestReferencePath = in.readString(); + this.protectFromIngest = (Boolean)in.readValue(Boolean.class.getClassLoader()); + this.defaultIngestValue = in.readString(); + this.createDate = (Long)in.readValue(Long.class.getClassLoader()); + this.updateDate = (Long)in.readValue(Long.class.getClassLoader()); + this.isInherited = (Boolean)in.readValue(Boolean.class.getClassLoader()); + this.isLocationTag = (Boolean)in.readValue(Boolean.class.getClassLoader()); + this.suppressedOrder = (Integer)in.readValue(Integer.class.getClassLoader()); + this.aliasName = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AssetStructMetaFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/AssetStructMetaFilter.java new file mode 100644 index 000000000..163be926a --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AssetStructMetaFilter.java @@ -0,0 +1,138 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Filtering Asset Struct Metas + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AssetStructMetaFilter.Tokenizer.class) +public class AssetStructMetaFilter extends Filter { + + public interface Tokenizer extends Filter.Tokenizer { + String assetStructIdEqual(); + String metaIdEqual(); + } + + /** + * Filter Asset Struct metas that contain a specific asset struct id + */ + private Long assetStructIdEqual; + /** + * Filter Asset Struct metas that contain a specific meta id + */ + private Long metaIdEqual; + + // assetStructIdEqual: + public Long getAssetStructIdEqual(){ + return this.assetStructIdEqual; + } + public void setAssetStructIdEqual(Long assetStructIdEqual){ + this.assetStructIdEqual = assetStructIdEqual; + } + + public void assetStructIdEqual(String multirequestToken){ + setToken("assetStructIdEqual", multirequestToken); + } + + // metaIdEqual: + public Long getMetaIdEqual(){ + return this.metaIdEqual; + } + public void setMetaIdEqual(Long metaIdEqual){ + this.metaIdEqual = metaIdEqual; + } + + public void metaIdEqual(String multirequestToken){ + setToken("metaIdEqual", multirequestToken); + } + + + public AssetStructMetaFilter() { + super(); + } + + public AssetStructMetaFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + assetStructIdEqual = GsonParser.parseLong(jsonObject.get("assetStructIdEqual")); + metaIdEqual = GsonParser.parseLong(jsonObject.get("metaIdEqual")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAssetStructMetaFilter"); + kparams.add("assetStructIdEqual", this.assetStructIdEqual); + kparams.add("metaIdEqual", this.metaIdEqual); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public AssetStructMetaFilter createFromParcel(Parcel source) { + return new AssetStructMetaFilter(source); + } + + @Override + public AssetStructMetaFilter[] newArray(int size) { + return new AssetStructMetaFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.assetStructIdEqual); + dest.writeValue(this.metaIdEqual); + } + + public AssetStructMetaFilter(Parcel in) { + super(in); + this.assetStructIdEqual = (Long)in.readValue(Long.class.getClassLoader()); + this.metaIdEqual = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AssetSubscriptionCondition.java b/KalturaClient/src/main/java/com/kaltura/client/types/AssetSubscriptionCondition.java new file mode 100644 index 000000000..14b07a35a --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AssetSubscriptionCondition.java @@ -0,0 +1,86 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * AssetSubscription Condition - indicates which assets this rule is applied on by + their subscriptions + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AssetSubscriptionCondition.Tokenizer.class) +public class AssetSubscriptionCondition extends SubscriptionCondition { + + public interface Tokenizer extends SubscriptionCondition.Tokenizer { + } + + + + public AssetSubscriptionCondition() { + super(); + } + + public AssetSubscriptionCondition(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAssetSubscriptionCondition"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public AssetSubscriptionCondition createFromParcel(Parcel source) { + return new AssetSubscriptionCondition(source); + } + + @Override + public AssetSubscriptionCondition[] newArray(int size) { + return new AssetSubscriptionCondition[size]; + } + }; + + public AssetSubscriptionCondition(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AssetUserRule.java b/KalturaClient/src/main/java/com/kaltura/client/types/AssetUserRule.java new file mode 100644 index 000000000..8f7aad48e --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AssetUserRule.java @@ -0,0 +1,151 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.ArrayList; +import java.util.List; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Asset user rule + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AssetUserRule.Tokenizer.class) +public class AssetUserRule extends AssetRuleBase { + + public interface Tokenizer extends AssetRuleBase.Tokenizer { + RequestBuilder.ListTokenizer conditions(); + RequestBuilder.ListTokenizer actions(); + } + + /** + * List of conditions for the user rule + */ + private List conditions; + /** + * List of actions for the user rule + */ + private List actions; + + // conditions: + public List getConditions(){ + return this.conditions; + } + public void setConditions(List conditions){ + this.conditions = conditions; + } + + // actions: + public List getActions(){ + return this.actions; + } + public void setActions(List actions){ + this.actions = actions; + } + + + public AssetUserRule() { + super(); + } + + public AssetUserRule(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + conditions = GsonParser.parseArray(jsonObject.getAsJsonArray("conditions"), AssetConditionBase.class); + actions = GsonParser.parseArray(jsonObject.getAsJsonArray("actions"), AssetUserRuleAction.class); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAssetUserRule"); + kparams.add("conditions", this.conditions); + kparams.add("actions", this.actions); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public AssetUserRule createFromParcel(Parcel source) { + return new AssetUserRule(source); + } + + @Override + public AssetUserRule[] newArray(int size) { + return new AssetUserRule[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + if(this.conditions != null) { + dest.writeInt(this.conditions.size()); + dest.writeList(this.conditions); + } else { + dest.writeInt(-1); + } + if(this.actions != null) { + dest.writeInt(this.actions.size()); + dest.writeList(this.actions); + } else { + dest.writeInt(-1); + } + } + + public AssetUserRule(Parcel in) { + super(in); + int conditionsSize = in.readInt(); + if( conditionsSize > -1) { + this.conditions = new ArrayList<>(); + in.readList(this.conditions, AssetConditionBase.class.getClassLoader()); + } + int actionsSize = in.readInt(); + if( actionsSize > -1) { + this.actions = new ArrayList<>(); + in.readList(this.actions, AssetUserRuleAction.class.getClassLoader()); + } + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AssetUserRuleAction.java b/KalturaClient/src/main/java/com/kaltura/client/types/AssetUserRuleAction.java new file mode 100644 index 000000000..e59697b14 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AssetUserRuleAction.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AssetUserRuleAction.Tokenizer.class) +public abstract class AssetUserRuleAction extends RuleAction { + + public interface Tokenizer extends RuleAction.Tokenizer { + } + + + + public AssetUserRuleAction() { + super(); + } + + public AssetUserRuleAction(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAssetUserRuleAction"); + return kparams; + } + + + public AssetUserRuleAction(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AssetUserRuleBlockAction.java b/KalturaClient/src/main/java/com/kaltura/client/types/AssetUserRuleBlockAction.java new file mode 100644 index 000000000..0a925fb78 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AssetUserRuleBlockAction.java @@ -0,0 +1,82 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AssetUserRuleBlockAction.Tokenizer.class) +public class AssetUserRuleBlockAction extends AssetUserRuleAction { + + public interface Tokenizer extends AssetUserRuleAction.Tokenizer { + } + + + + public AssetUserRuleBlockAction() { + super(); + } + + public AssetUserRuleBlockAction(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAssetUserRuleBlockAction"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public AssetUserRuleBlockAction createFromParcel(Parcel source) { + return new AssetUserRuleBlockAction(source); + } + + @Override + public AssetUserRuleBlockAction[] newArray(int size) { + return new AssetUserRuleBlockAction[size]; + } + }; + + public AssetUserRuleBlockAction(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AssetUserRuleFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/AssetUserRuleFilter.java new file mode 100644 index 000000000..eda06966e --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AssetUserRuleFilter.java @@ -0,0 +1,165 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.RuleActionType; +import com.kaltura.client.enums.RuleConditionType; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Asset user rule filter + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AssetUserRuleFilter.Tokenizer.class) +public class AssetUserRuleFilter extends Filter { + + public interface Tokenizer extends Filter.Tokenizer { + String attachedUserIdEqualCurrent(); + String actionsContainType(); + String conditionsContainType(); + } + + /** + * Indicates if to get the asset user rule list for the attached user or for the + entire group + */ + private Boolean attachedUserIdEqualCurrent; + /** + * Indicates which asset rule list to return by this KalturaRuleActionType. + */ + private RuleActionType actionsContainType; + /** + * Indicates that only asset rules are returned that have exactly one and not more + associated condition. + */ + private RuleConditionType conditionsContainType; + + // attachedUserIdEqualCurrent: + public Boolean getAttachedUserIdEqualCurrent(){ + return this.attachedUserIdEqualCurrent; + } + public void setAttachedUserIdEqualCurrent(Boolean attachedUserIdEqualCurrent){ + this.attachedUserIdEqualCurrent = attachedUserIdEqualCurrent; + } + + public void attachedUserIdEqualCurrent(String multirequestToken){ + setToken("attachedUserIdEqualCurrent", multirequestToken); + } + + // actionsContainType: + public RuleActionType getActionsContainType(){ + return this.actionsContainType; + } + public void setActionsContainType(RuleActionType actionsContainType){ + this.actionsContainType = actionsContainType; + } + + public void actionsContainType(String multirequestToken){ + setToken("actionsContainType", multirequestToken); + } + + // conditionsContainType: + public RuleConditionType getConditionsContainType(){ + return this.conditionsContainType; + } + public void setConditionsContainType(RuleConditionType conditionsContainType){ + this.conditionsContainType = conditionsContainType; + } + + public void conditionsContainType(String multirequestToken){ + setToken("conditionsContainType", multirequestToken); + } + + + public AssetUserRuleFilter() { + super(); + } + + public AssetUserRuleFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + attachedUserIdEqualCurrent = GsonParser.parseBoolean(jsonObject.get("attachedUserIdEqualCurrent")); + actionsContainType = RuleActionType.get(GsonParser.parseString(jsonObject.get("actionsContainType"))); + conditionsContainType = RuleConditionType.get(GsonParser.parseString(jsonObject.get("conditionsContainType"))); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAssetUserRuleFilter"); + kparams.add("attachedUserIdEqualCurrent", this.attachedUserIdEqualCurrent); + kparams.add("actionsContainType", this.actionsContainType); + kparams.add("conditionsContainType", this.conditionsContainType); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public AssetUserRuleFilter createFromParcel(Parcel source) { + return new AssetUserRuleFilter(source); + } + + @Override + public AssetUserRuleFilter[] newArray(int size) { + return new AssetUserRuleFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.attachedUserIdEqualCurrent); + dest.writeInt(this.actionsContainType == null ? -1 : this.actionsContainType.ordinal()); + dest.writeInt(this.conditionsContainType == null ? -1 : this.conditionsContainType.ordinal()); + } + + public AssetUserRuleFilter(Parcel in) { + super(in); + this.attachedUserIdEqualCurrent = (Boolean)in.readValue(Boolean.class.getClassLoader()); + int tmpActionsContainType = in.readInt(); + this.actionsContainType = tmpActionsContainType == -1 ? null : RuleActionType.values()[tmpActionsContainType]; + int tmpConditionsContainType = in.readInt(); + this.conditionsContainType = tmpConditionsContainType == -1 ? null : RuleConditionType.values()[tmpConditionsContainType]; + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AssetUserRuleFilterAction.java b/KalturaClient/src/main/java/com/kaltura/client/types/AssetUserRuleFilterAction.java new file mode 100644 index 000000000..1f2d4cd12 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AssetUserRuleFilterAction.java @@ -0,0 +1,114 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AssetUserRuleFilterAction.Tokenizer.class) +public class AssetUserRuleFilterAction extends AssetUserRuleAction { + + public interface Tokenizer extends AssetUserRuleAction.Tokenizer { + String applyOnChannel(); + } + + /** + * Indicates whether to apply on channel + */ + private Boolean applyOnChannel; + + // applyOnChannel: + public Boolean getApplyOnChannel(){ + return this.applyOnChannel; + } + public void setApplyOnChannel(Boolean applyOnChannel){ + this.applyOnChannel = applyOnChannel; + } + + public void applyOnChannel(String multirequestToken){ + setToken("applyOnChannel", multirequestToken); + } + + + public AssetUserRuleFilterAction() { + super(); + } + + public AssetUserRuleFilterAction(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + applyOnChannel = GsonParser.parseBoolean(jsonObject.get("applyOnChannel")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAssetUserRuleFilterAction"); + kparams.add("applyOnChannel", this.applyOnChannel); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public AssetUserRuleFilterAction createFromParcel(Parcel source) { + return new AssetUserRuleFilterAction(source); + } + + @Override + public AssetUserRuleFilterAction[] newArray(int size) { + return new AssetUserRuleFilterAction[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.applyOnChannel); + } + + public AssetUserRuleFilterAction(Parcel in) { + super(in); + this.applyOnChannel = (Boolean)in.readValue(Boolean.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/AssetsCount.java b/KalturaClient/src/main/java/com/kaltura/client/types/AssetsCount.java new file mode 100644 index 000000000..9484fc831 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/AssetsCount.java @@ -0,0 +1,147 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.ArrayList; +import java.util.List; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Single aggregation objects + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(AssetsCount.Tokenizer.class) +public class AssetsCount extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String field(); + RequestBuilder.ListTokenizer objects(); + } + + /** + * Field name + */ + private String field; + /** + * Values, their count and sub groups + */ + private List objects; + + // field: + public String getField(){ + return this.field; + } + public void setField(String field){ + this.field = field; + } + + public void field(String multirequestToken){ + setToken("field", multirequestToken); + } + + // objects: + public List getObjects(){ + return this.objects; + } + public void setObjects(List objects){ + this.objects = objects; + } + + + public AssetsCount() { + super(); + } + + public AssetsCount(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + field = GsonParser.parseString(jsonObject.get("field")); + objects = GsonParser.parseArray(jsonObject.getAsJsonArray("objects"), AssetCount.class); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaAssetsCount"); + kparams.add("field", this.field); + kparams.add("objects", this.objects); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public AssetsCount createFromParcel(Parcel source) { + return new AssetsCount(source); + } + + @Override + public AssetsCount[] newArray(int size) { + return new AssetsCount[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.field); + if(this.objects != null) { + dest.writeInt(this.objects.size()); + dest.writeList(this.objects); + } else { + dest.writeInt(-1); + } + } + + public AssetsCount(Parcel in) { + super(in); + this.field = in.readString(); + int objectsSize = in.readInt(); + if( objectsSize > -1) { + this.objects = new ArrayList<>(); + in.readList(this.objects, AssetCount.class.getClassLoader()); + } + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BaseAssetOrder.java b/KalturaClient/src/main/java/com/kaltura/client/types/BaseAssetOrder.java new file mode 100644 index 000000000..161e5937c --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BaseAssetOrder.java @@ -0,0 +1,71 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BaseAssetOrder.Tokenizer.class) +public abstract class BaseAssetOrder extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + } + + + + public BaseAssetOrder() { + super(); + } + + public BaseAssetOrder(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBaseAssetOrder"); + return kparams; + } + + + public BaseAssetOrder(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BaseAssetStructFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/BaseAssetStructFilter.java new file mode 100644 index 000000000..fa6fa777b --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BaseAssetStructFilter.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BaseAssetStructFilter.Tokenizer.class) +public abstract class BaseAssetStructFilter extends Filter { + + public interface Tokenizer extends Filter.Tokenizer { + } + + + + public BaseAssetStructFilter() { + super(); + } + + public BaseAssetStructFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBaseAssetStructFilter"); + return kparams; + } + + + public BaseAssetStructFilter(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BaseChannel.java b/KalturaClient/src/main/java/com/kaltura/client/types/BaseChannel.java new file mode 100644 index 000000000..6d32d84e1 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BaseChannel.java @@ -0,0 +1,117 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Slim channel + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BaseChannel.Tokenizer.class) +public class BaseChannel extends OTTObjectSupportNullable { + + public interface Tokenizer extends OTTObjectSupportNullable.Tokenizer { + String id(); + } + + /** + * Unique identifier for the channel + */ + private Long id; + + // id: + public Long getId(){ + return this.id; + } + public void setId(Long id){ + this.id = id; + } + + public void id(String multirequestToken){ + setToken("id", multirequestToken); + } + + + public BaseChannel() { + super(); + } + + public BaseChannel(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + id = GsonParser.parseLong(jsonObject.get("id")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBaseChannel"); + kparams.add("id", this.id); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public BaseChannel createFromParcel(Parcel source) { + return new BaseChannel(source); + } + + @Override + public BaseChannel[] newArray(int size) { + return new BaseChannel[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.id); + } + + public BaseChannel(Parcel in) { + super(in); + this.id = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BaseChannelOrder.java b/KalturaClient/src/main/java/com/kaltura/client/types/BaseChannelOrder.java new file mode 100644 index 000000000..047e4787f --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BaseChannelOrder.java @@ -0,0 +1,71 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BaseChannelOrder.Tokenizer.class) +public abstract class BaseChannelOrder extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + } + + + + public BaseChannelOrder() { + super(); + } + + public BaseChannelOrder(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBaseChannelOrder"); + return kparams; + } + + + public BaseChannelOrder(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BaseOTTUser.java b/KalturaClient/src/main/java/com/kaltura/client/types/BaseOTTUser.java new file mode 100644 index 000000000..86713c909 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BaseOTTUser.java @@ -0,0 +1,172 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Slim user data + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BaseOTTUser.Tokenizer.class) +public class BaseOTTUser extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String id(); + String username(); + String firstName(); + String lastName(); + } + + /** + * User identifier + */ + private String id; + /** + * Username + */ + private String username; + /** + * First name + */ + private String firstName; + /** + * Last name + */ + private String lastName; + + // id: + public String getId(){ + return this.id; + } + // username: + public String getUsername(){ + return this.username; + } + public void setUsername(String username){ + this.username = username; + } + + public void username(String multirequestToken){ + setToken("username", multirequestToken); + } + + // firstName: + public String getFirstName(){ + return this.firstName; + } + public void setFirstName(String firstName){ + this.firstName = firstName; + } + + public void firstName(String multirequestToken){ + setToken("firstName", multirequestToken); + } + + // lastName: + public String getLastName(){ + return this.lastName; + } + public void setLastName(String lastName){ + this.lastName = lastName; + } + + public void lastName(String multirequestToken){ + setToken("lastName", multirequestToken); + } + + + public BaseOTTUser() { + super(); + } + + public BaseOTTUser(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + id = GsonParser.parseString(jsonObject.get("id")); + username = GsonParser.parseString(jsonObject.get("username")); + firstName = GsonParser.parseString(jsonObject.get("firstName")); + lastName = GsonParser.parseString(jsonObject.get("lastName")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBaseOTTUser"); + kparams.add("username", this.username); + kparams.add("firstName", this.firstName); + kparams.add("lastName", this.lastName); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public BaseOTTUser createFromParcel(Parcel source) { + return new BaseOTTUser(source); + } + + @Override + public BaseOTTUser[] newArray(int size) { + return new BaseOTTUser[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.id); + dest.writeString(this.username); + dest.writeString(this.firstName); + dest.writeString(this.lastName); + } + + public BaseOTTUser(Parcel in) { + super(in); + this.id = in.readString(); + this.username = in.readString(); + this.firstName = in.readString(); + this.lastName = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BasePartnerConfiguration.java b/KalturaClient/src/main/java/com/kaltura/client/types/BasePartnerConfiguration.java new file mode 100644 index 000000000..6ce3df561 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BasePartnerConfiguration.java @@ -0,0 +1,283 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BasePartnerConfiguration.Tokenizer.class) +public class BasePartnerConfiguration extends PartnerConfiguration { + + public interface Tokenizer extends PartnerConfiguration.Tokenizer { + String ksExpirationSeconds(); + String appTokenSessionMaxDurationSeconds(); + String anonymousKSExpirationSeconds(); + String refreshExpirationForPinLoginSeconds(); + String appTokenMaxExpirySeconds(); + String autoRefreshAppToken(); + String uploadTokenExpirySeconds(); + String apptokenUserValidationDisabled(); + String epgFeatureVersion(); + } + + /** + * KSExpirationSeconds + */ + private Long ksExpirationSeconds; + /** + * AppTokenSessionMaxDurationSeconds + */ + private Integer appTokenSessionMaxDurationSeconds; + /** + * AnonymousKSExpirationSeconds + */ + private Long anonymousKSExpirationSeconds; + /** + * RefreshExpirationForPinLoginSeconds + */ + private Long refreshExpirationForPinLoginSeconds; + /** + * AppTokenMaxExpirySeconds + */ + private Integer appTokenMaxExpirySeconds; + /** + * AutoRefreshAppToken + */ + private Boolean autoRefreshAppToken; + /** + * uploadTokenExpirySeconds + */ + private Integer uploadTokenExpirySeconds; + /** + * apptokenUserValidationDisabled + */ + private Boolean apptokenUserValidationDisabled; + /** + * epgFeatureVersion defines the epg feature version from version 1 to + version 3 if not provided v2 will be used + */ + private Integer epgFeatureVersion; + + // ksExpirationSeconds: + public Long getKsExpirationSeconds(){ + return this.ksExpirationSeconds; + } + public void setKsExpirationSeconds(Long ksExpirationSeconds){ + this.ksExpirationSeconds = ksExpirationSeconds; + } + + public void ksExpirationSeconds(String multirequestToken){ + setToken("ksExpirationSeconds", multirequestToken); + } + + // appTokenSessionMaxDurationSeconds: + public Integer getAppTokenSessionMaxDurationSeconds(){ + return this.appTokenSessionMaxDurationSeconds; + } + public void setAppTokenSessionMaxDurationSeconds(Integer appTokenSessionMaxDurationSeconds){ + this.appTokenSessionMaxDurationSeconds = appTokenSessionMaxDurationSeconds; + } + + public void appTokenSessionMaxDurationSeconds(String multirequestToken){ + setToken("appTokenSessionMaxDurationSeconds", multirequestToken); + } + + // anonymousKSExpirationSeconds: + public Long getAnonymousKSExpirationSeconds(){ + return this.anonymousKSExpirationSeconds; + } + public void setAnonymousKSExpirationSeconds(Long anonymousKSExpirationSeconds){ + this.anonymousKSExpirationSeconds = anonymousKSExpirationSeconds; + } + + public void anonymousKSExpirationSeconds(String multirequestToken){ + setToken("anonymousKSExpirationSeconds", multirequestToken); + } + + // refreshExpirationForPinLoginSeconds: + public Long getRefreshExpirationForPinLoginSeconds(){ + return this.refreshExpirationForPinLoginSeconds; + } + public void setRefreshExpirationForPinLoginSeconds(Long refreshExpirationForPinLoginSeconds){ + this.refreshExpirationForPinLoginSeconds = refreshExpirationForPinLoginSeconds; + } + + public void refreshExpirationForPinLoginSeconds(String multirequestToken){ + setToken("refreshExpirationForPinLoginSeconds", multirequestToken); + } + + // appTokenMaxExpirySeconds: + public Integer getAppTokenMaxExpirySeconds(){ + return this.appTokenMaxExpirySeconds; + } + public void setAppTokenMaxExpirySeconds(Integer appTokenMaxExpirySeconds){ + this.appTokenMaxExpirySeconds = appTokenMaxExpirySeconds; + } + + public void appTokenMaxExpirySeconds(String multirequestToken){ + setToken("appTokenMaxExpirySeconds", multirequestToken); + } + + // autoRefreshAppToken: + public Boolean getAutoRefreshAppToken(){ + return this.autoRefreshAppToken; + } + public void setAutoRefreshAppToken(Boolean autoRefreshAppToken){ + this.autoRefreshAppToken = autoRefreshAppToken; + } + + public void autoRefreshAppToken(String multirequestToken){ + setToken("autoRefreshAppToken", multirequestToken); + } + + // uploadTokenExpirySeconds: + public Integer getUploadTokenExpirySeconds(){ + return this.uploadTokenExpirySeconds; + } + public void setUploadTokenExpirySeconds(Integer uploadTokenExpirySeconds){ + this.uploadTokenExpirySeconds = uploadTokenExpirySeconds; + } + + public void uploadTokenExpirySeconds(String multirequestToken){ + setToken("uploadTokenExpirySeconds", multirequestToken); + } + + // apptokenUserValidationDisabled: + public Boolean getApptokenUserValidationDisabled(){ + return this.apptokenUserValidationDisabled; + } + public void setApptokenUserValidationDisabled(Boolean apptokenUserValidationDisabled){ + this.apptokenUserValidationDisabled = apptokenUserValidationDisabled; + } + + public void apptokenUserValidationDisabled(String multirequestToken){ + setToken("apptokenUserValidationDisabled", multirequestToken); + } + + // epgFeatureVersion: + public Integer getEpgFeatureVersion(){ + return this.epgFeatureVersion; + } + public void setEpgFeatureVersion(Integer epgFeatureVersion){ + this.epgFeatureVersion = epgFeatureVersion; + } + + public void epgFeatureVersion(String multirequestToken){ + setToken("epgFeatureVersion", multirequestToken); + } + + + public BasePartnerConfiguration() { + super(); + } + + public BasePartnerConfiguration(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + ksExpirationSeconds = GsonParser.parseLong(jsonObject.get("ksExpirationSeconds")); + appTokenSessionMaxDurationSeconds = GsonParser.parseInt(jsonObject.get("appTokenSessionMaxDurationSeconds")); + anonymousKSExpirationSeconds = GsonParser.parseLong(jsonObject.get("anonymousKSExpirationSeconds")); + refreshExpirationForPinLoginSeconds = GsonParser.parseLong(jsonObject.get("refreshExpirationForPinLoginSeconds")); + appTokenMaxExpirySeconds = GsonParser.parseInt(jsonObject.get("appTokenMaxExpirySeconds")); + autoRefreshAppToken = GsonParser.parseBoolean(jsonObject.get("autoRefreshAppToken")); + uploadTokenExpirySeconds = GsonParser.parseInt(jsonObject.get("uploadTokenExpirySeconds")); + apptokenUserValidationDisabled = GsonParser.parseBoolean(jsonObject.get("apptokenUserValidationDisabled")); + epgFeatureVersion = GsonParser.parseInt(jsonObject.get("epgFeatureVersion")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBasePartnerConfiguration"); + kparams.add("ksExpirationSeconds", this.ksExpirationSeconds); + kparams.add("appTokenSessionMaxDurationSeconds", this.appTokenSessionMaxDurationSeconds); + kparams.add("anonymousKSExpirationSeconds", this.anonymousKSExpirationSeconds); + kparams.add("refreshExpirationForPinLoginSeconds", this.refreshExpirationForPinLoginSeconds); + kparams.add("appTokenMaxExpirySeconds", this.appTokenMaxExpirySeconds); + kparams.add("autoRefreshAppToken", this.autoRefreshAppToken); + kparams.add("uploadTokenExpirySeconds", this.uploadTokenExpirySeconds); + kparams.add("apptokenUserValidationDisabled", this.apptokenUserValidationDisabled); + kparams.add("epgFeatureVersion", this.epgFeatureVersion); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public BasePartnerConfiguration createFromParcel(Parcel source) { + return new BasePartnerConfiguration(source); + } + + @Override + public BasePartnerConfiguration[] newArray(int size) { + return new BasePartnerConfiguration[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.ksExpirationSeconds); + dest.writeValue(this.appTokenSessionMaxDurationSeconds); + dest.writeValue(this.anonymousKSExpirationSeconds); + dest.writeValue(this.refreshExpirationForPinLoginSeconds); + dest.writeValue(this.appTokenMaxExpirySeconds); + dest.writeValue(this.autoRefreshAppToken); + dest.writeValue(this.uploadTokenExpirySeconds); + dest.writeValue(this.apptokenUserValidationDisabled); + dest.writeValue(this.epgFeatureVersion); + } + + public BasePartnerConfiguration(Parcel in) { + super(in); + this.ksExpirationSeconds = (Long)in.readValue(Long.class.getClassLoader()); + this.appTokenSessionMaxDurationSeconds = (Integer)in.readValue(Integer.class.getClassLoader()); + this.anonymousKSExpirationSeconds = (Long)in.readValue(Long.class.getClassLoader()); + this.refreshExpirationForPinLoginSeconds = (Long)in.readValue(Long.class.getClassLoader()); + this.appTokenMaxExpirySeconds = (Integer)in.readValue(Integer.class.getClassLoader()); + this.autoRefreshAppToken = (Boolean)in.readValue(Boolean.class.getClassLoader()); + this.uploadTokenExpirySeconds = (Integer)in.readValue(Integer.class.getClassLoader()); + this.apptokenUserValidationDisabled = (Boolean)in.readValue(Boolean.class.getClassLoader()); + this.epgFeatureVersion = (Integer)in.readValue(Integer.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BasePermissionFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/BasePermissionFilter.java new file mode 100644 index 000000000..b9ad7957f --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BasePermissionFilter.java @@ -0,0 +1,82 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BasePermissionFilter.Tokenizer.class) +public class BasePermissionFilter extends Filter { + + public interface Tokenizer extends Filter.Tokenizer { + } + + + + public BasePermissionFilter() { + super(); + } + + public BasePermissionFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBasePermissionFilter"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public BasePermissionFilter createFromParcel(Parcel source) { + return new BasePermissionFilter(source); + } + + @Override + public BasePermissionFilter[] newArray(int size) { + return new BasePermissionFilter[size]; + } + }; + + public BasePermissionFilter(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BasePreActionCondition.java b/KalturaClient/src/main/java/com/kaltura/client/types/BasePreActionCondition.java new file mode 100644 index 000000000..09e68950b --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BasePreActionCondition.java @@ -0,0 +1,71 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BasePreActionCondition.Tokenizer.class) +public abstract class BasePreActionCondition extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + } + + + + public BasePreActionCondition() { + super(); + } + + public BasePreActionCondition(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBasePreActionCondition"); + return kparams; + } + + + public BasePreActionCondition(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BasePromotion.java b/KalturaClient/src/main/java/com/kaltura/client/types/BasePromotion.java new file mode 100644 index 000000000..24a824e60 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BasePromotion.java @@ -0,0 +1,114 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.ArrayList; +import java.util.List; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Base Promotion + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BasePromotion.Tokenizer.class) +public abstract class BasePromotion extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + RequestBuilder.ListTokenizer conditions(); + } + + /** + * These conditions define the Promotion that applies on + */ + private List conditions; + + // conditions: + public List getConditions(){ + return this.conditions; + } + public void setConditions(List conditions){ + this.conditions = conditions; + } + + + public BasePromotion() { + super(); + } + + public BasePromotion(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + conditions = GsonParser.parseArray(jsonObject.getAsJsonArray("conditions"), Condition.class); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBasePromotion"); + kparams.add("conditions", this.conditions); + return kparams; + } + + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + if(this.conditions != null) { + dest.writeInt(this.conditions.size()); + dest.writeList(this.conditions); + } else { + dest.writeInt(-1); + } + } + + public BasePromotion(Parcel in) { + super(in); + int conditionsSize = in.readInt(); + if( conditionsSize > -1) { + this.conditions = new ArrayList<>(); + in.readList(this.conditions, Condition.class.getClassLoader()); + } + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BaseRegionFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/BaseRegionFilter.java new file mode 100644 index 000000000..ba0b07c07 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BaseRegionFilter.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BaseRegionFilter.Tokenizer.class) +public abstract class BaseRegionFilter extends Filter { + + public interface Tokenizer extends Filter.Tokenizer { + } + + + + public BaseRegionFilter() { + super(); + } + + public BaseRegionFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBaseRegionFilter"); + return kparams; + } + + + public BaseRegionFilter(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BaseResponseProfile.java b/KalturaClient/src/main/java/com/kaltura/client/types/BaseResponseProfile.java new file mode 100644 index 000000000..c4386cae4 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BaseResponseProfile.java @@ -0,0 +1,74 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Define base profile response - optional configurations + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BaseResponseProfile.Tokenizer.class) +public abstract class BaseResponseProfile extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + } + + + + public BaseResponseProfile() { + super(); + } + + public BaseResponseProfile(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBaseResponseProfile"); + return kparams; + } + + + public BaseResponseProfile(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BaseSearchAssetFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/BaseSearchAssetFilter.java new file mode 100644 index 000000000..c25688560 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BaseSearchAssetFilter.java @@ -0,0 +1,200 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.GroupByOrder; +import com.kaltura.client.enums.GroupingOption; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.ArrayList; +import java.util.List; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BaseSearchAssetFilter.Tokenizer.class) +public abstract class BaseSearchAssetFilter extends AssetFilter { + + public interface Tokenizer extends AssetFilter.Tokenizer { + String kSql(); + RequestBuilder.ListTokenizer groupBy(); + String groupOrderBy(); + String groupingOptionEqual(); + } + + /** + * Search assets using dynamic criteria. Provided collection of nested expressions + with key, comparison operators, value, and logical conjunction. + Possible keys: any Tag or Meta defined in the system and the following reserved + keys: start_date, end_date. epg_id, media_id - for specific asset + IDs. geo_block - only valid value is &quot;true&quot;: When + enabled, only assets that are not restricted to the user by geo-block rules will + return. parental_rules - only valid value is + &quot;true&quot;: When enabled, only assets that the user + doesn&#39;t need to provide PIN code will return. + user_interests - only valid value is &quot;true&quot;. When enabled, + only assets that the user defined as his interests (by tags and metas) will + return. epg_channel_id – the channel identifier of the EPG + program. entitled_assets - valid values: &quot;free&quot;, + &quot;entitled&quot;, &quot;not_entitled&quot;, + &quot;both&quot;. free - gets only free to watch assets. entitled - only + those that the user is implicitly entitled to watch. asset_type - + valid values: &quot;media&quot;, &quot;epg&quot;, + &quot;recording&quot; or any number that represents media type in group. + Comparison operators: for numerical fields =, &gt;, &gt;=, + &lt;, &lt;=, : (in). For alpha-numerical fields =, != + (not), ~ (like), !~, ^ (any word starts with), ^= (phrase starts with), + + (exists), !+ (not exists). Logical conjunction: and, or. + Search values are limited to 20 characters each for the next operators: ~, + !~, ^, ^= (maximum length of entire filter is 4096 characters) + */ + private String kSql; + /** + * groupBy + */ + private List groupBy; + /** + * order by of grouping + */ + private GroupByOrder groupOrderBy; + /** + * Grouping Option, Omit if not specified otherwise + */ + private GroupingOption groupingOptionEqual; + + // kSql: + public String getKSql(){ + return this.kSql; + } + public void setKSql(String kSql){ + this.kSql = kSql; + } + + public void kSql(String multirequestToken){ + setToken("kSql", multirequestToken); + } + + // groupBy: + public List getGroupBy(){ + return this.groupBy; + } + public void setGroupBy(List groupBy){ + this.groupBy = groupBy; + } + + // groupOrderBy: + public GroupByOrder getGroupOrderBy(){ + return this.groupOrderBy; + } + public void setGroupOrderBy(GroupByOrder groupOrderBy){ + this.groupOrderBy = groupOrderBy; + } + + public void groupOrderBy(String multirequestToken){ + setToken("groupOrderBy", multirequestToken); + } + + // groupingOptionEqual: + public GroupingOption getGroupingOptionEqual(){ + return this.groupingOptionEqual; + } + public void setGroupingOptionEqual(GroupingOption groupingOptionEqual){ + this.groupingOptionEqual = groupingOptionEqual; + } + + public void groupingOptionEqual(String multirequestToken){ + setToken("groupingOptionEqual", multirequestToken); + } + + + public BaseSearchAssetFilter() { + super(); + } + + public BaseSearchAssetFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + kSql = GsonParser.parseString(jsonObject.get("kSql")); + groupBy = GsonParser.parseArray(jsonObject.getAsJsonArray("groupBy"), AssetGroupBy.class); + groupOrderBy = GroupByOrder.get(GsonParser.parseString(jsonObject.get("groupOrderBy"))); + groupingOptionEqual = GroupingOption.get(GsonParser.parseString(jsonObject.get("groupingOptionEqual"))); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBaseSearchAssetFilter"); + kparams.add("kSql", this.kSql); + kparams.add("groupBy", this.groupBy); + kparams.add("groupOrderBy", this.groupOrderBy); + kparams.add("groupingOptionEqual", this.groupingOptionEqual); + return kparams; + } + + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.kSql); + if(this.groupBy != null) { + dest.writeInt(this.groupBy.size()); + dest.writeList(this.groupBy); + } else { + dest.writeInt(-1); + } + dest.writeInt(this.groupOrderBy == null ? -1 : this.groupOrderBy.ordinal()); + dest.writeInt(this.groupingOptionEqual == null ? -1 : this.groupingOptionEqual.ordinal()); + } + + public BaseSearchAssetFilter(Parcel in) { + super(in); + this.kSql = in.readString(); + int groupBySize = in.readInt(); + if( groupBySize > -1) { + this.groupBy = new ArrayList<>(); + in.readList(this.groupBy, AssetGroupBy.class.getClassLoader()); + } + int tmpGroupOrderBy = in.readInt(); + this.groupOrderBy = tmpGroupOrderBy == -1 ? null : GroupByOrder.values()[tmpGroupOrderBy]; + int tmpGroupingOptionEqual = in.readInt(); + this.groupingOptionEqual = tmpGroupingOptionEqual == -1 ? null : GroupingOption.values()[tmpGroupingOptionEqual]; + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BaseSegmentAction.java b/KalturaClient/src/main/java/com/kaltura/client/types/BaseSegmentAction.java new file mode 100644 index 000000000..65341d8c9 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BaseSegmentAction.java @@ -0,0 +1,86 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Base class that defines segment action + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BaseSegmentAction.Tokenizer.class) +public class BaseSegmentAction extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + } + + + + public BaseSegmentAction() { + super(); + } + + public BaseSegmentAction(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBaseSegmentAction"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public BaseSegmentAction createFromParcel(Parcel source) { + return new BaseSegmentAction(source); + } + + @Override + public BaseSegmentAction[] newArray(int size) { + return new BaseSegmentAction[size]; + } + }; + + public BaseSegmentAction(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BaseSegmentCondition.java b/KalturaClient/src/main/java/com/kaltura/client/types/BaseSegmentCondition.java new file mode 100644 index 000000000..afe7fd01b --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BaseSegmentCondition.java @@ -0,0 +1,86 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Base class that defines segment condition + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BaseSegmentCondition.Tokenizer.class) +public class BaseSegmentCondition extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + } + + + + public BaseSegmentCondition() { + super(); + } + + public BaseSegmentCondition(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBaseSegmentCondition"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public BaseSegmentCondition createFromParcel(Parcel source) { + return new BaseSegmentCondition(source); + } + + @Override + public BaseSegmentCondition[] newArray(int size) { + return new BaseSegmentCondition[size]; + } + }; + + public BaseSegmentCondition(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BaseSegmentValue.java b/KalturaClient/src/main/java/com/kaltura/client/types/BaseSegmentValue.java new file mode 100644 index 000000000..2f702959d --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BaseSegmentValue.java @@ -0,0 +1,86 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Base class that defines segment value + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BaseSegmentValue.Tokenizer.class) +public class BaseSegmentValue extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + } + + + + public BaseSegmentValue() { + super(); + } + + public BaseSegmentValue(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBaseSegmentValue"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public BaseSegmentValue createFromParcel(Parcel source) { + return new BaseSegmentValue(source); + } + + @Override + public BaseSegmentValue[] newArray(int size) { + return new BaseSegmentValue[size]; + } + }; + + public BaseSegmentValue(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BaseSegmentationTypeFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/BaseSegmentationTypeFilter.java new file mode 100644 index 000000000..e24a427a8 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BaseSegmentationTypeFilter.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BaseSegmentationTypeFilter.Tokenizer.class) +public abstract class BaseSegmentationTypeFilter extends Filter { + + public interface Tokenizer extends Filter.Tokenizer { + } + + + + public BaseSegmentationTypeFilter() { + super(); + } + + public BaseSegmentationTypeFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBaseSegmentationTypeFilter"); + return kparams; + } + + + public BaseSegmentationTypeFilter(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BatchCampaign.java b/KalturaClient/src/main/java/com/kaltura/client/types/BatchCampaign.java new file mode 100644 index 000000000..bd44450f6 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BatchCampaign.java @@ -0,0 +1,125 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.ArrayList; +import java.util.List; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Campaign + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BatchCampaign.Tokenizer.class) +public class BatchCampaign extends Campaign { + + public interface Tokenizer extends Campaign.Tokenizer { + RequestBuilder.ListTokenizer populationConditions(); + } + + /** + * These conditions define the population that apply one the campaign + */ + private List populationConditions; + + // populationConditions: + public List getPopulationConditions(){ + return this.populationConditions; + } + public void setPopulationConditions(List populationConditions){ + this.populationConditions = populationConditions; + } + + + public BatchCampaign() { + super(); + } + + public BatchCampaign(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + populationConditions = GsonParser.parseArray(jsonObject.getAsJsonArray("populationConditions"), Condition.class); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBatchCampaign"); + kparams.add("populationConditions", this.populationConditions); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public BatchCampaign createFromParcel(Parcel source) { + return new BatchCampaign(source); + } + + @Override + public BatchCampaign[] newArray(int size) { + return new BatchCampaign[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + if(this.populationConditions != null) { + dest.writeInt(this.populationConditions.size()); + dest.writeList(this.populationConditions); + } else { + dest.writeInt(-1); + } + } + + public BatchCampaign(Parcel in) { + super(in); + int populationConditionsSize = in.readInt(); + if( populationConditionsSize > -1) { + this.populationConditions = new ArrayList<>(); + in.readList(this.populationConditions, Condition.class.getClassLoader()); + } + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BatchCampaignSearchFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/BatchCampaignSearchFilter.java new file mode 100644 index 000000000..9e701343f --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BatchCampaignSearchFilter.java @@ -0,0 +1,82 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BatchCampaignSearchFilter.Tokenizer.class) +public class BatchCampaignSearchFilter extends CampaignSearchFilter { + + public interface Tokenizer extends CampaignSearchFilter.Tokenizer { + } + + + + public BatchCampaignSearchFilter() { + super(); + } + + public BatchCampaignSearchFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBatchCampaignSearchFilter"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public BatchCampaignSearchFilter createFromParcel(Parcel source) { + return new BatchCampaignSearchFilter(source); + } + + @Override + public BatchCampaignSearchFilter[] newArray(int size) { + return new BatchCampaignSearchFilter[size]; + } + }; + + public BatchCampaignSearchFilter(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BillingPartnerConfig.java b/KalturaClient/src/main/java/com/kaltura/client/types/BillingPartnerConfig.java new file mode 100644 index 000000000..804480351 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BillingPartnerConfig.java @@ -0,0 +1,140 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.PartnerConfigurationType; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Partner billing configuration + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BillingPartnerConfig.Tokenizer.class) +public class BillingPartnerConfig extends PartnerConfiguration { + + public interface Tokenizer extends PartnerConfiguration.Tokenizer { + String value(); + String type(); + } + + /** + * configuration value + */ + private String value; + /** + * partner configuration type + */ + private PartnerConfigurationType type; + + // value: + public String getValue(){ + return this.value; + } + public void setValue(String value){ + this.value = value; + } + + public void value(String multirequestToken){ + setToken("value", multirequestToken); + } + + // type: + public PartnerConfigurationType getType(){ + return this.type; + } + public void setType(PartnerConfigurationType type){ + this.type = type; + } + + public void type(String multirequestToken){ + setToken("type", multirequestToken); + } + + + public BillingPartnerConfig() { + super(); + } + + public BillingPartnerConfig(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + value = GsonParser.parseString(jsonObject.get("value")); + type = PartnerConfigurationType.get(GsonParser.parseString(jsonObject.get("type"))); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBillingPartnerConfig"); + kparams.add("value", this.value); + kparams.add("type", this.type); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public BillingPartnerConfig createFromParcel(Parcel source) { + return new BillingPartnerConfig(source); + } + + @Override + public BillingPartnerConfig[] newArray(int size) { + return new BillingPartnerConfig[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.value); + dest.writeInt(this.type == null ? -1 : this.type.ordinal()); + } + + public BillingPartnerConfig(Parcel in) { + super(in); + this.value = in.readString(); + int tmpType = in.readInt(); + this.type = tmpType == -1 ? null : PartnerConfigurationType.values()[tmpType]; + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BillingTransaction.java b/KalturaClient/src/main/java/com/kaltura/client/types/BillingTransaction.java new file mode 100644 index 000000000..fc509c6aa --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BillingTransaction.java @@ -0,0 +1,310 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.BillingAction; +import com.kaltura.client.enums.BillingItemsType; +import com.kaltura.client.enums.BillingPriceType; +import com.kaltura.client.enums.PaymentMethodType; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.types.Price; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Billing Transaction + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BillingTransaction.Tokenizer.class) +public class BillingTransaction extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String recieptCode(); + String purchasedItemName(); + String purchasedItemCode(); + String itemType(); + String billingAction(); + Price.Tokenizer price(); + String actionDate(); + String startDate(); + String endDate(); + String paymentMethod(); + String paymentMethodExtraDetails(); + String isRecurring(); + String billingProviderRef(); + String purchaseId(); + String remarks(); + String billingPriceType(); + String externalTransactionId(); + } + + /** + * Reciept Code + */ + private String recieptCode; + /** + * Purchased Item Name + */ + private String purchasedItemName; + /** + * Purchased Item Code + */ + private String purchasedItemCode; + /** + * Item Type + */ + private BillingItemsType itemType; + /** + * Billing Action + */ + private BillingAction billingAction; + /** + * price + */ + private Price price; + /** + * Action Date + */ + private Long actionDate; + /** + * Start Date + */ + private Long startDate; + /** + * End Date + */ + private Long endDate; + /** + * Payment Method + */ + private PaymentMethodType paymentMethod; + /** + * Payment Method Extra Details + */ + private String paymentMethodExtraDetails; + /** + * Is Recurring + */ + private Boolean isRecurring; + /** + * Billing Provider Ref + */ + private Integer billingProviderRef; + /** + * Purchase ID + */ + private Integer purchaseId; + /** + * Remarks + */ + private String remarks; + /** + * Billing Price Info + */ + private BillingPriceType billingPriceType; + /** + * External Transaction Id + */ + private String externalTransactionId; + + // recieptCode: + public String getRecieptCode(){ + return this.recieptCode; + } + // purchasedItemName: + public String getPurchasedItemName(){ + return this.purchasedItemName; + } + // purchasedItemCode: + public String getPurchasedItemCode(){ + return this.purchasedItemCode; + } + // itemType: + public BillingItemsType getItemType(){ + return this.itemType; + } + // billingAction: + public BillingAction getBillingAction(){ + return this.billingAction; + } + // price: + public Price getPrice(){ + return this.price; + } + // actionDate: + public Long getActionDate(){ + return this.actionDate; + } + // startDate: + public Long getStartDate(){ + return this.startDate; + } + // endDate: + public Long getEndDate(){ + return this.endDate; + } + // paymentMethod: + public PaymentMethodType getPaymentMethod(){ + return this.paymentMethod; + } + // paymentMethodExtraDetails: + public String getPaymentMethodExtraDetails(){ + return this.paymentMethodExtraDetails; + } + // isRecurring: + public Boolean getIsRecurring(){ + return this.isRecurring; + } + // billingProviderRef: + public Integer getBillingProviderRef(){ + return this.billingProviderRef; + } + // purchaseId: + public Integer getPurchaseId(){ + return this.purchaseId; + } + // remarks: + public String getRemarks(){ + return this.remarks; + } + // billingPriceType: + public BillingPriceType getBillingPriceType(){ + return this.billingPriceType; + } + // externalTransactionId: + public String getExternalTransactionId(){ + return this.externalTransactionId; + } + + public BillingTransaction() { + super(); + } + + public BillingTransaction(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + recieptCode = GsonParser.parseString(jsonObject.get("recieptCode")); + purchasedItemName = GsonParser.parseString(jsonObject.get("purchasedItemName")); + purchasedItemCode = GsonParser.parseString(jsonObject.get("purchasedItemCode")); + itemType = BillingItemsType.get(GsonParser.parseString(jsonObject.get("itemType"))); + billingAction = BillingAction.get(GsonParser.parseString(jsonObject.get("billingAction"))); + price = GsonParser.parseObject(jsonObject.getAsJsonObject("price"), Price.class); + actionDate = GsonParser.parseLong(jsonObject.get("actionDate")); + startDate = GsonParser.parseLong(jsonObject.get("startDate")); + endDate = GsonParser.parseLong(jsonObject.get("endDate")); + paymentMethod = PaymentMethodType.get(GsonParser.parseString(jsonObject.get("paymentMethod"))); + paymentMethodExtraDetails = GsonParser.parseString(jsonObject.get("paymentMethodExtraDetails")); + isRecurring = GsonParser.parseBoolean(jsonObject.get("isRecurring")); + billingProviderRef = GsonParser.parseInt(jsonObject.get("billingProviderRef")); + purchaseId = GsonParser.parseInt(jsonObject.get("purchaseId")); + remarks = GsonParser.parseString(jsonObject.get("remarks")); + billingPriceType = BillingPriceType.get(GsonParser.parseString(jsonObject.get("billingPriceType"))); + externalTransactionId = GsonParser.parseString(jsonObject.get("externalTransactionId")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBillingTransaction"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public BillingTransaction createFromParcel(Parcel source) { + return new BillingTransaction(source); + } + + @Override + public BillingTransaction[] newArray(int size) { + return new BillingTransaction[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.recieptCode); + dest.writeString(this.purchasedItemName); + dest.writeString(this.purchasedItemCode); + dest.writeInt(this.itemType == null ? -1 : this.itemType.ordinal()); + dest.writeInt(this.billingAction == null ? -1 : this.billingAction.ordinal()); + dest.writeParcelable(this.price, flags); + dest.writeValue(this.actionDate); + dest.writeValue(this.startDate); + dest.writeValue(this.endDate); + dest.writeInt(this.paymentMethod == null ? -1 : this.paymentMethod.ordinal()); + dest.writeString(this.paymentMethodExtraDetails); + dest.writeValue(this.isRecurring); + dest.writeValue(this.billingProviderRef); + dest.writeValue(this.purchaseId); + dest.writeString(this.remarks); + dest.writeInt(this.billingPriceType == null ? -1 : this.billingPriceType.ordinal()); + dest.writeString(this.externalTransactionId); + } + + public BillingTransaction(Parcel in) { + super(in); + this.recieptCode = in.readString(); + this.purchasedItemName = in.readString(); + this.purchasedItemCode = in.readString(); + int tmpItemType = in.readInt(); + this.itemType = tmpItemType == -1 ? null : BillingItemsType.values()[tmpItemType]; + int tmpBillingAction = in.readInt(); + this.billingAction = tmpBillingAction == -1 ? null : BillingAction.values()[tmpBillingAction]; + this.price = in.readParcelable(Price.class.getClassLoader()); + this.actionDate = (Long)in.readValue(Long.class.getClassLoader()); + this.startDate = (Long)in.readValue(Long.class.getClassLoader()); + this.endDate = (Long)in.readValue(Long.class.getClassLoader()); + int tmpPaymentMethod = in.readInt(); + this.paymentMethod = tmpPaymentMethod == -1 ? null : PaymentMethodType.values()[tmpPaymentMethod]; + this.paymentMethodExtraDetails = in.readString(); + this.isRecurring = (Boolean)in.readValue(Boolean.class.getClassLoader()); + this.billingProviderRef = (Integer)in.readValue(Integer.class.getClassLoader()); + this.purchaseId = (Integer)in.readValue(Integer.class.getClassLoader()); + this.remarks = in.readString(); + int tmpBillingPriceType = in.readInt(); + this.billingPriceType = tmpBillingPriceType == -1 ? null : BillingPriceType.values()[tmpBillingPriceType]; + this.externalTransactionId = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BlockPlaybackAction.java b/KalturaClient/src/main/java/com/kaltura/client/types/BlockPlaybackAction.java new file mode 100644 index 000000000..b7d138c42 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BlockPlaybackAction.java @@ -0,0 +1,82 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BlockPlaybackAction.Tokenizer.class) +public class BlockPlaybackAction extends AssetRuleAction { + + public interface Tokenizer extends AssetRuleAction.Tokenizer { + } + + + + public BlockPlaybackAction() { + super(); + } + + public BlockPlaybackAction(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBlockPlaybackAction"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public BlockPlaybackAction createFromParcel(Parcel source) { + return new BlockPlaybackAction(source); + } + + @Override + public BlockPlaybackAction[] newArray(int size) { + return new BlockPlaybackAction[size]; + } + }; + + public BlockPlaybackAction(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BlockSubscriptionSegmentAction.java b/KalturaClient/src/main/java/com/kaltura/client/types/BlockSubscriptionSegmentAction.java new file mode 100644 index 000000000..60bd3b5a4 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BlockSubscriptionSegmentAction.java @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * segment block subscription action + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BlockSubscriptionSegmentAction.Tokenizer.class) +public abstract class BlockSubscriptionSegmentAction extends KsqlSegmentAction { + + public interface Tokenizer extends KsqlSegmentAction.Tokenizer { + } + + + + public BlockSubscriptionSegmentAction() { + super(); + } + + public BlockSubscriptionSegmentAction(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBlockSubscriptionSegmentAction"); + return kparams; + } + + + public BlockSubscriptionSegmentAction(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/Bookmark.java b/KalturaClient/src/main/java/com/kaltura/client/types/Bookmark.java new file mode 100644 index 000000000..850ed92ed --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/Bookmark.java @@ -0,0 +1,238 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.PlaybackContextType; +import com.kaltura.client.enums.PositionOwner; +import com.kaltura.client.types.BookmarkPlayerData; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(Bookmark.Tokenizer.class) +public class Bookmark extends SlimAsset { + + public interface Tokenizer extends SlimAsset.Tokenizer { + String userId(); + String position(); + String positionOwner(); + String finishedWatching(); + BookmarkPlayerData.Tokenizer playerData(); + String programId(); + String isReportingMode(); + String context(); + } + + /** + * User identifier + */ + private String userId; + /** + * The position of the user in the specific asset (in seconds) For + external recordings will always be &#39;0&#39; + */ + private Integer position; + /** + * Indicates who is the owner of this position + */ + private PositionOwner positionOwner; + /** + * Specifies whether the user&#39;s current position exceeded 95% of the + duration For external recordings will always be + &#39;True&#39; + */ + private Boolean finishedWatching; + /** + * Insert only player data + */ + private BookmarkPlayerData playerData; + /** + * Program Id + */ + private Long programId; + /** + * Indicates if the current request is in reporting mode (hit) + */ + private Boolean isReportingMode; + /** + * Playback context type + */ + private PlaybackContextType context; + + // userId: + public String getUserId(){ + return this.userId; + } + // position: + public Integer getPosition(){ + return this.position; + } + public void setPosition(Integer position){ + this.position = position; + } + + public void position(String multirequestToken){ + setToken("position", multirequestToken); + } + + // positionOwner: + public PositionOwner getPositionOwner(){ + return this.positionOwner; + } + // finishedWatching: + public Boolean getFinishedWatching(){ + return this.finishedWatching; + } + // playerData: + public BookmarkPlayerData getPlayerData(){ + return this.playerData; + } + public void setPlayerData(BookmarkPlayerData playerData){ + this.playerData = playerData; + } + + // programId: + public Long getProgramId(){ + return this.programId; + } + public void setProgramId(Long programId){ + this.programId = programId; + } + + public void programId(String multirequestToken){ + setToken("programId", multirequestToken); + } + + // isReportingMode: + public Boolean getIsReportingMode(){ + return this.isReportingMode; + } + public void setIsReportingMode(Boolean isReportingMode){ + this.isReportingMode = isReportingMode; + } + + public void isReportingMode(String multirequestToken){ + setToken("isReportingMode", multirequestToken); + } + + // context: + public PlaybackContextType getContext(){ + return this.context; + } + public void setContext(PlaybackContextType context){ + this.context = context; + } + + public void context(String multirequestToken){ + setToken("context", multirequestToken); + } + + + public Bookmark() { + super(); + } + + public Bookmark(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + userId = GsonParser.parseString(jsonObject.get("userId")); + position = GsonParser.parseInt(jsonObject.get("position")); + positionOwner = PositionOwner.get(GsonParser.parseString(jsonObject.get("positionOwner"))); + finishedWatching = GsonParser.parseBoolean(jsonObject.get("finishedWatching")); + playerData = GsonParser.parseObject(jsonObject.getAsJsonObject("playerData"), BookmarkPlayerData.class); + programId = GsonParser.parseLong(jsonObject.get("programId")); + isReportingMode = GsonParser.parseBoolean(jsonObject.get("isReportingMode")); + context = PlaybackContextType.get(GsonParser.parseString(jsonObject.get("context"))); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBookmark"); + kparams.add("position", this.position); + kparams.add("playerData", this.playerData); + kparams.add("programId", this.programId); + kparams.add("isReportingMode", this.isReportingMode); + kparams.add("context", this.context); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public Bookmark createFromParcel(Parcel source) { + return new Bookmark(source); + } + + @Override + public Bookmark[] newArray(int size) { + return new Bookmark[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.userId); + dest.writeValue(this.position); + dest.writeInt(this.positionOwner == null ? -1 : this.positionOwner.ordinal()); + dest.writeValue(this.finishedWatching); + dest.writeParcelable(this.playerData, flags); + dest.writeValue(this.programId); + dest.writeValue(this.isReportingMode); + dest.writeInt(this.context == null ? -1 : this.context.ordinal()); + } + + public Bookmark(Parcel in) { + super(in); + this.userId = in.readString(); + this.position = (Integer)in.readValue(Integer.class.getClassLoader()); + int tmpPositionOwner = in.readInt(); + this.positionOwner = tmpPositionOwner == -1 ? null : PositionOwner.values()[tmpPositionOwner]; + this.finishedWatching = (Boolean)in.readValue(Boolean.class.getClassLoader()); + this.playerData = in.readParcelable(BookmarkPlayerData.class.getClassLoader()); + this.programId = (Long)in.readValue(Long.class.getClassLoader()); + this.isReportingMode = (Boolean)in.readValue(Boolean.class.getClassLoader()); + int tmpContext = in.readInt(); + this.context = tmpContext == -1 ? null : PlaybackContextType.values()[tmpContext]; + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BookmarkEvent.java b/KalturaClient/src/main/java/com/kaltura/client/types/BookmarkEvent.java new file mode 100644 index 000000000..35b5e57f9 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BookmarkEvent.java @@ -0,0 +1,265 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.BookmarkActionType; +import com.kaltura.client.enums.TransactionType; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BookmarkEvent.Tokenizer.class) +public class BookmarkEvent extends EventObject { + + public interface Tokenizer extends EventObject.Tokenizer { + String userId(); + String householdId(); + String assetId(); + String fileId(); + String position(); + String action(); + String productType(); + String productId(); + } + + /** + * User Id + */ + private Long userId; + /** + * Household Id + */ + private Long householdId; + /** + * Asset Id + */ + private Long assetId; + /** + * File Id + */ + private Long fileId; + /** + * position + */ + private Integer position; + /** + * Bookmark Action Type + */ + private BookmarkActionType action; + /** + * Product Type + */ + private TransactionType productType; + /** + * Product Id + */ + private Integer productId; + + // userId: + public Long getUserId(){ + return this.userId; + } + public void setUserId(Long userId){ + this.userId = userId; + } + + public void userId(String multirequestToken){ + setToken("userId", multirequestToken); + } + + // householdId: + public Long getHouseholdId(){ + return this.householdId; + } + public void setHouseholdId(Long householdId){ + this.householdId = householdId; + } + + public void householdId(String multirequestToken){ + setToken("householdId", multirequestToken); + } + + // assetId: + public Long getAssetId(){ + return this.assetId; + } + public void setAssetId(Long assetId){ + this.assetId = assetId; + } + + public void assetId(String multirequestToken){ + setToken("assetId", multirequestToken); + } + + // fileId: + public Long getFileId(){ + return this.fileId; + } + public void setFileId(Long fileId){ + this.fileId = fileId; + } + + public void fileId(String multirequestToken){ + setToken("fileId", multirequestToken); + } + + // position: + public Integer getPosition(){ + return this.position; + } + public void setPosition(Integer position){ + this.position = position; + } + + public void position(String multirequestToken){ + setToken("position", multirequestToken); + } + + // action: + public BookmarkActionType getAction(){ + return this.action; + } + public void setAction(BookmarkActionType action){ + this.action = action; + } + + public void action(String multirequestToken){ + setToken("action", multirequestToken); + } + + // productType: + public TransactionType getProductType(){ + return this.productType; + } + public void setProductType(TransactionType productType){ + this.productType = productType; + } + + public void productType(String multirequestToken){ + setToken("productType", multirequestToken); + } + + // productId: + public Integer getProductId(){ + return this.productId; + } + public void setProductId(Integer productId){ + this.productId = productId; + } + + public void productId(String multirequestToken){ + setToken("productId", multirequestToken); + } + + + public BookmarkEvent() { + super(); + } + + public BookmarkEvent(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + userId = GsonParser.parseLong(jsonObject.get("userId")); + householdId = GsonParser.parseLong(jsonObject.get("householdId")); + assetId = GsonParser.parseLong(jsonObject.get("assetId")); + fileId = GsonParser.parseLong(jsonObject.get("fileId")); + position = GsonParser.parseInt(jsonObject.get("position")); + action = BookmarkActionType.get(GsonParser.parseString(jsonObject.get("action"))); + productType = TransactionType.get(GsonParser.parseString(jsonObject.get("productType"))); + productId = GsonParser.parseInt(jsonObject.get("productId")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBookmarkEvent"); + kparams.add("userId", this.userId); + kparams.add("householdId", this.householdId); + kparams.add("assetId", this.assetId); + kparams.add("fileId", this.fileId); + kparams.add("position", this.position); + kparams.add("action", this.action); + kparams.add("productType", this.productType); + kparams.add("productId", this.productId); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public BookmarkEvent createFromParcel(Parcel source) { + return new BookmarkEvent(source); + } + + @Override + public BookmarkEvent[] newArray(int size) { + return new BookmarkEvent[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.userId); + dest.writeValue(this.householdId); + dest.writeValue(this.assetId); + dest.writeValue(this.fileId); + dest.writeValue(this.position); + dest.writeInt(this.action == null ? -1 : this.action.ordinal()); + dest.writeInt(this.productType == null ? -1 : this.productType.ordinal()); + dest.writeValue(this.productId); + } + + public BookmarkEvent(Parcel in) { + super(in); + this.userId = (Long)in.readValue(Long.class.getClassLoader()); + this.householdId = (Long)in.readValue(Long.class.getClassLoader()); + this.assetId = (Long)in.readValue(Long.class.getClassLoader()); + this.fileId = (Long)in.readValue(Long.class.getClassLoader()); + this.position = (Integer)in.readValue(Integer.class.getClassLoader()); + int tmpAction = in.readInt(); + this.action = tmpAction == -1 ? null : BookmarkActionType.values()[tmpAction]; + int tmpProductType = in.readInt(); + this.productType = tmpProductType == -1 ? null : TransactionType.values()[tmpProductType]; + this.productId = (Integer)in.readValue(Integer.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BookmarkEventThreshold.java b/KalturaClient/src/main/java/com/kaltura/client/types/BookmarkEventThreshold.java new file mode 100644 index 000000000..e4391c3da --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BookmarkEventThreshold.java @@ -0,0 +1,138 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.TransactionType; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BookmarkEventThreshold.Tokenizer.class) +public class BookmarkEventThreshold extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String transactionType(); + String threshold(); + } + + /** + * bookmark transaction type + */ + private TransactionType transactionType; + /** + * event threshold in seconds + */ + private Integer threshold; + + // transactionType: + public TransactionType getTransactionType(){ + return this.transactionType; + } + public void setTransactionType(TransactionType transactionType){ + this.transactionType = transactionType; + } + + public void transactionType(String multirequestToken){ + setToken("transactionType", multirequestToken); + } + + // threshold: + public Integer getThreshold(){ + return this.threshold; + } + public void setThreshold(Integer threshold){ + this.threshold = threshold; + } + + public void threshold(String multirequestToken){ + setToken("threshold", multirequestToken); + } + + + public BookmarkEventThreshold() { + super(); + } + + public BookmarkEventThreshold(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + transactionType = TransactionType.get(GsonParser.parseString(jsonObject.get("transactionType"))); + threshold = GsonParser.parseInt(jsonObject.get("threshold")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBookmarkEventThreshold"); + kparams.add("transactionType", this.transactionType); + kparams.add("threshold", this.threshold); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public BookmarkEventThreshold createFromParcel(Parcel source) { + return new BookmarkEventThreshold(source); + } + + @Override + public BookmarkEventThreshold[] newArray(int size) { + return new BookmarkEventThreshold[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeInt(this.transactionType == null ? -1 : this.transactionType.ordinal()); + dest.writeValue(this.threshold); + } + + public BookmarkEventThreshold(Parcel in) { + super(in); + int tmpTransactionType = in.readInt(); + this.transactionType = tmpTransactionType == -1 ? null : TransactionType.values()[tmpTransactionType]; + this.threshold = (Integer)in.readValue(Integer.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BookmarkFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/BookmarkFilter.java new file mode 100644 index 000000000..a7b6b9e91 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BookmarkFilter.java @@ -0,0 +1,140 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.AssetType; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Filtering Assets requests + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BookmarkFilter.Tokenizer.class) +public class BookmarkFilter extends Filter { + + public interface Tokenizer extends Filter.Tokenizer { + String assetIdIn(); + String assetTypeEqual(); + } + + /** + * Comma separated list of assets identifiers + */ + private String assetIdIn; + /** + * Asset type + */ + private AssetType assetTypeEqual; + + // assetIdIn: + public String getAssetIdIn(){ + return this.assetIdIn; + } + public void setAssetIdIn(String assetIdIn){ + this.assetIdIn = assetIdIn; + } + + public void assetIdIn(String multirequestToken){ + setToken("assetIdIn", multirequestToken); + } + + // assetTypeEqual: + public AssetType getAssetTypeEqual(){ + return this.assetTypeEqual; + } + public void setAssetTypeEqual(AssetType assetTypeEqual){ + this.assetTypeEqual = assetTypeEqual; + } + + public void assetTypeEqual(String multirequestToken){ + setToken("assetTypeEqual", multirequestToken); + } + + + public BookmarkFilter() { + super(); + } + + public BookmarkFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + assetIdIn = GsonParser.parseString(jsonObject.get("assetIdIn")); + assetTypeEqual = AssetType.get(GsonParser.parseString(jsonObject.get("assetTypeEqual"))); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBookmarkFilter"); + kparams.add("assetIdIn", this.assetIdIn); + kparams.add("assetTypeEqual", this.assetTypeEqual); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public BookmarkFilter createFromParcel(Parcel source) { + return new BookmarkFilter(source); + } + + @Override + public BookmarkFilter[] newArray(int size) { + return new BookmarkFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.assetIdIn); + dest.writeInt(this.assetTypeEqual == null ? -1 : this.assetTypeEqual.ordinal()); + } + + public BookmarkFilter(Parcel in) { + super(in); + this.assetIdIn = in.readString(); + int tmpAssetTypeEqual = in.readInt(); + this.assetTypeEqual = tmpAssetTypeEqual == -1 ? null : AssetType.values()[tmpAssetTypeEqual]; + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BookmarkPlayerData.java b/KalturaClient/src/main/java/com/kaltura/client/types/BookmarkPlayerData.java new file mode 100644 index 000000000..7298e63c1 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BookmarkPlayerData.java @@ -0,0 +1,201 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.BookmarkActionType; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BookmarkPlayerData.Tokenizer.class) +public class BookmarkPlayerData extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String action(); + String averageBitrate(); + String totalBitrate(); + String currentBitrate(); + String fileId(); + } + + /** + * Action + */ + private BookmarkActionType action; + /** + * Average Bitrate + */ + private Integer averageBitrate; + /** + * Total Bitrate + */ + private Integer totalBitrate; + /** + * Current Bitrate + */ + private Integer currentBitrate; + /** + * Identifier of the file + */ + private Long fileId; + + // action: + public BookmarkActionType getAction(){ + return this.action; + } + public void setAction(BookmarkActionType action){ + this.action = action; + } + + public void action(String multirequestToken){ + setToken("action", multirequestToken); + } + + // averageBitrate: + public Integer getAverageBitrate(){ + return this.averageBitrate; + } + public void setAverageBitrate(Integer averageBitrate){ + this.averageBitrate = averageBitrate; + } + + public void averageBitrate(String multirequestToken){ + setToken("averageBitrate", multirequestToken); + } + + // totalBitrate: + public Integer getTotalBitrate(){ + return this.totalBitrate; + } + public void setTotalBitrate(Integer totalBitrate){ + this.totalBitrate = totalBitrate; + } + + public void totalBitrate(String multirequestToken){ + setToken("totalBitrate", multirequestToken); + } + + // currentBitrate: + public Integer getCurrentBitrate(){ + return this.currentBitrate; + } + public void setCurrentBitrate(Integer currentBitrate){ + this.currentBitrate = currentBitrate; + } + + public void currentBitrate(String multirequestToken){ + setToken("currentBitrate", multirequestToken); + } + + // fileId: + public Long getFileId(){ + return this.fileId; + } + public void setFileId(Long fileId){ + this.fileId = fileId; + } + + public void fileId(String multirequestToken){ + setToken("fileId", multirequestToken); + } + + + public BookmarkPlayerData() { + super(); + } + + public BookmarkPlayerData(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + action = BookmarkActionType.get(GsonParser.parseString(jsonObject.get("action"))); + averageBitrate = GsonParser.parseInt(jsonObject.get("averageBitrate")); + totalBitrate = GsonParser.parseInt(jsonObject.get("totalBitrate")); + currentBitrate = GsonParser.parseInt(jsonObject.get("currentBitrate")); + fileId = GsonParser.parseLong(jsonObject.get("fileId")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBookmarkPlayerData"); + kparams.add("action", this.action); + kparams.add("averageBitrate", this.averageBitrate); + kparams.add("totalBitrate", this.totalBitrate); + kparams.add("currentBitrate", this.currentBitrate); + kparams.add("fileId", this.fileId); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public BookmarkPlayerData createFromParcel(Parcel source) { + return new BookmarkPlayerData(source); + } + + @Override + public BookmarkPlayerData[] newArray(int size) { + return new BookmarkPlayerData[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeInt(this.action == null ? -1 : this.action.ordinal()); + dest.writeValue(this.averageBitrate); + dest.writeValue(this.totalBitrate); + dest.writeValue(this.currentBitrate); + dest.writeValue(this.fileId); + } + + public BookmarkPlayerData(Parcel in) { + super(in); + int tmpAction = in.readInt(); + this.action = tmpAction == -1 ? null : BookmarkActionType.values()[tmpAction]; + this.averageBitrate = (Integer)in.readValue(Integer.class.getClassLoader()); + this.totalBitrate = (Integer)in.readValue(Integer.class.getClassLoader()); + this.currentBitrate = (Integer)in.readValue(Integer.class.getClassLoader()); + this.fileId = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BooleanValue.java b/KalturaClient/src/main/java/com/kaltura/client/types/BooleanValue.java new file mode 100644 index 000000000..38d466443 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BooleanValue.java @@ -0,0 +1,117 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * A string representation to return an array of booleans + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BooleanValue.Tokenizer.class) +public class BooleanValue extends Value { + + public interface Tokenizer extends Value.Tokenizer { + String value(); + } + + /** + * Value + */ + private Boolean value; + + // value: + public Boolean getValue(){ + return this.value; + } + public void setValue(Boolean value){ + this.value = value; + } + + public void value(String multirequestToken){ + setToken("value", multirequestToken); + } + + + public BooleanValue() { + super(); + } + + public BooleanValue(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + value = GsonParser.parseBoolean(jsonObject.get("value")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBooleanValue"); + kparams.add("value", this.value); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public BooleanValue createFromParcel(Parcel source) { + return new BooleanValue(source); + } + + @Override + public BooleanValue[] newArray(int size) { + return new BooleanValue[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.value); + } + + public BooleanValue(Parcel in) { + super(in); + this.value = (Boolean)in.readValue(Boolean.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BulkUpload.java b/KalturaClient/src/main/java/com/kaltura/client/types/BulkUpload.java new file mode 100644 index 000000000..639c1e040 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BulkUpload.java @@ -0,0 +1,243 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.BulkUploadJobAction; +import com.kaltura.client.enums.BulkUploadJobStatus; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.ArrayList; +import java.util.List; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Bulk Upload + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BulkUpload.Tokenizer.class) +public class BulkUpload extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String id(); + String fileName(); + String status(); + String action(); + String numOfObjects(); + String createDate(); + String updateDate(); + String uploadedByUserId(); + RequestBuilder.ListTokenizer results(); + RequestBuilder.ListTokenizer errors(); + } + + /** + * Bulk identifier + */ + private Long id; + /** + * File Name + */ + private String fileName; + /** + * Status + */ + private BulkUploadJobStatus status; + /** + * Action + */ + private BulkUploadJobAction action; + /** + * Total number of objects in file + */ + private Integer numOfObjects; + /** + * Specifies when was the bulk action created. Date and time represented as epoch + */ + private Long createDate; + /** + * Specifies when was the bulk action last updated. Date and time represented as + epoch + */ + private Long updateDate; + /** + * The user who uploaded this bulk + */ + private Long uploadedByUserId; + /** + * A list of results + */ + private List results; + /** + * A list of errors + */ + private List errors; + + // id: + public Long getId(){ + return this.id; + } + // fileName: + public String getFileName(){ + return this.fileName; + } + // status: + public BulkUploadJobStatus getStatus(){ + return this.status; + } + // action: + public BulkUploadJobAction getAction(){ + return this.action; + } + // numOfObjects: + public Integer getNumOfObjects(){ + return this.numOfObjects; + } + // createDate: + public Long getCreateDate(){ + return this.createDate; + } + // updateDate: + public Long getUpdateDate(){ + return this.updateDate; + } + // uploadedByUserId: + public Long getUploadedByUserId(){ + return this.uploadedByUserId; + } + // results: + public List getResults(){ + return this.results; + } + // errors: + public List getErrors(){ + return this.errors; + } + + public BulkUpload() { + super(); + } + + public BulkUpload(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + id = GsonParser.parseLong(jsonObject.get("id")); + fileName = GsonParser.parseString(jsonObject.get("fileName")); + status = BulkUploadJobStatus.get(GsonParser.parseString(jsonObject.get("status"))); + action = BulkUploadJobAction.get(GsonParser.parseString(jsonObject.get("action"))); + numOfObjects = GsonParser.parseInt(jsonObject.get("numOfObjects")); + createDate = GsonParser.parseLong(jsonObject.get("createDate")); + updateDate = GsonParser.parseLong(jsonObject.get("updateDate")); + uploadedByUserId = GsonParser.parseLong(jsonObject.get("uploadedByUserId")); + results = GsonParser.parseArray(jsonObject.getAsJsonArray("results"), BulkUploadResult.class); + errors = GsonParser.parseArray(jsonObject.getAsJsonArray("errors"), Message.class); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBulkUpload"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public BulkUpload createFromParcel(Parcel source) { + return new BulkUpload(source); + } + + @Override + public BulkUpload[] newArray(int size) { + return new BulkUpload[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.id); + dest.writeString(this.fileName); + dest.writeInt(this.status == null ? -1 : this.status.ordinal()); + dest.writeInt(this.action == null ? -1 : this.action.ordinal()); + dest.writeValue(this.numOfObjects); + dest.writeValue(this.createDate); + dest.writeValue(this.updateDate); + dest.writeValue(this.uploadedByUserId); + if(this.results != null) { + dest.writeInt(this.results.size()); + dest.writeList(this.results); + } else { + dest.writeInt(-1); + } + if(this.errors != null) { + dest.writeInt(this.errors.size()); + dest.writeList(this.errors); + } else { + dest.writeInt(-1); + } + } + + public BulkUpload(Parcel in) { + super(in); + this.id = (Long)in.readValue(Long.class.getClassLoader()); + this.fileName = in.readString(); + int tmpStatus = in.readInt(); + this.status = tmpStatus == -1 ? null : BulkUploadJobStatus.values()[tmpStatus]; + int tmpAction = in.readInt(); + this.action = tmpAction == -1 ? null : BulkUploadJobAction.values()[tmpAction]; + this.numOfObjects = (Integer)in.readValue(Integer.class.getClassLoader()); + this.createDate = (Long)in.readValue(Long.class.getClassLoader()); + this.updateDate = (Long)in.readValue(Long.class.getClassLoader()); + this.uploadedByUserId = (Long)in.readValue(Long.class.getClassLoader()); + int resultsSize = in.readInt(); + if( resultsSize > -1) { + this.results = new ArrayList<>(); + in.readList(this.results, BulkUploadResult.class.getClassLoader()); + } + int errorsSize = in.readInt(); + if( errorsSize > -1) { + this.errors = new ArrayList<>(); + in.readList(this.errors, Message.class.getClassLoader()); + } + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadAssetData.java b/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadAssetData.java new file mode 100644 index 000000000..4e7d49824 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadAssetData.java @@ -0,0 +1,107 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * indicates the asset object type in the bulk file + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BulkUploadAssetData.Tokenizer.class) +public abstract class BulkUploadAssetData extends BulkUploadObjectData { + + public interface Tokenizer extends BulkUploadObjectData.Tokenizer { + String typeId(); + } + + /** + * Identifies the asset type (EPG, Recording, Movie, TV Series, etc). + Possible values: 0 – EPG linear programs, 1 - Recording; or any asset type ID + according to the asset types IDs defined in the system. + */ + private Long typeId; + + // typeId: + public Long getTypeId(){ + return this.typeId; + } + public void setTypeId(Long typeId){ + this.typeId = typeId; + } + + public void typeId(String multirequestToken){ + setToken("typeId", multirequestToken); + } + + + public BulkUploadAssetData() { + super(); + } + + public BulkUploadAssetData(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + typeId = GsonParser.parseLong(jsonObject.get("typeId")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBulkUploadAssetData"); + kparams.add("typeId", this.typeId); + return kparams; + } + + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.typeId); + } + + public BulkUploadAssetData(Parcel in) { + super(in); + this.typeId = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadAssetResult.java b/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadAssetResult.java new file mode 100644 index 000000000..1e03a8d18 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadAssetResult.java @@ -0,0 +1,107 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BulkUploadAssetResult.Tokenizer.class) +public abstract class BulkUploadAssetResult extends BulkUploadResult { + + public interface Tokenizer extends BulkUploadResult.Tokenizer { + String type(); + String externalId(); + } + + /** + * Identifies the asset type (EPG, Recording, Movie, TV Series, etc). + Possible values: 0 – EPG linear programs, 1 - Recording; or any asset type ID + according to the asset types IDs defined in the system. + */ + private Integer type; + /** + * External identifier for the asset + */ + private String externalId; + + // type: + public Integer getType(){ + return this.type; + } + // externalId: + public String getExternalId(){ + return this.externalId; + } + + public BulkUploadAssetResult() { + super(); + } + + public BulkUploadAssetResult(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + type = GsonParser.parseInt(jsonObject.get("type")); + externalId = GsonParser.parseString(jsonObject.get("externalId")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBulkUploadAssetResult"); + return kparams; + } + + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.type); + dest.writeString(this.externalId); + } + + public BulkUploadAssetResult(Parcel in) { + super(in); + this.type = (Integer)in.readValue(Integer.class.getClassLoader()); + this.externalId = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadDynamicListData.java b/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadDynamicListData.java new file mode 100644 index 000000000..f0d6a7a48 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadDynamicListData.java @@ -0,0 +1,105 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * indicates the DynamicList object type in the bulk file + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BulkUploadDynamicListData.Tokenizer.class) +public abstract class BulkUploadDynamicListData extends BulkUploadObjectData { + + public interface Tokenizer extends BulkUploadObjectData.Tokenizer { + String dynamicListId(); + } + + /** + * Identifies the dynamicList Id + */ + private Long dynamicListId; + + // dynamicListId: + public Long getDynamicListId(){ + return this.dynamicListId; + } + public void setDynamicListId(Long dynamicListId){ + this.dynamicListId = dynamicListId; + } + + public void dynamicListId(String multirequestToken){ + setToken("dynamicListId", multirequestToken); + } + + + public BulkUploadDynamicListData() { + super(); + } + + public BulkUploadDynamicListData(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + dynamicListId = GsonParser.parseLong(jsonObject.get("dynamicListId")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBulkUploadDynamicListData"); + kparams.add("dynamicListId", this.dynamicListId); + return kparams; + } + + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.dynamicListId); + } + + public BulkUploadDynamicListData(Parcel in) { + super(in); + this.dynamicListId = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadDynamicListResult.java b/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadDynamicListResult.java new file mode 100644 index 000000000..04a93bf59 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadDynamicListResult.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BulkUploadDynamicListResult.Tokenizer.class) +public abstract class BulkUploadDynamicListResult extends BulkUploadResult { + + public interface Tokenizer extends BulkUploadResult.Tokenizer { + } + + + + public BulkUploadDynamicListResult() { + super(); + } + + public BulkUploadDynamicListResult(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBulkUploadDynamicListResult"); + return kparams; + } + + + public BulkUploadDynamicListResult(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadExcelJobData.java b/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadExcelJobData.java new file mode 100644 index 000000000..7456e94b7 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadExcelJobData.java @@ -0,0 +1,85 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * instructions for upload data type with Excel + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BulkUploadExcelJobData.Tokenizer.class) +public class BulkUploadExcelJobData extends BulkUploadJobData { + + public interface Tokenizer extends BulkUploadJobData.Tokenizer { + } + + + + public BulkUploadExcelJobData() { + super(); + } + + public BulkUploadExcelJobData(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBulkUploadExcelJobData"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public BulkUploadExcelJobData createFromParcel(Parcel source) { + return new BulkUploadExcelJobData(source); + } + + @Override + public BulkUploadExcelJobData[] newArray(int size) { + return new BulkUploadExcelJobData[size]; + } + }; + + public BulkUploadExcelJobData(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadFilter.java new file mode 100644 index 000000000..a6e4f6ddc --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadFilter.java @@ -0,0 +1,181 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Bulk Upload Filter + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BulkUploadFilter.Tokenizer.class) +public class BulkUploadFilter extends Filter { + + public interface Tokenizer extends Filter.Tokenizer { + String bulkObjectTypeEqual(); + String createDateGreaterThanOrEqual(); + String uploadedByUserIdEqualCurrent(); + String statusIn(); + } + + /** + * bulk objects Type name (must be type of KalturaOTTObject) + */ + private String bulkObjectTypeEqual; + /** + * upload date to search within (search in the last 60 days) + */ + private Long createDateGreaterThanOrEqual; + /** + * Indicates if to get the BulkUpload list that created by current user or by the + entire group. + */ + private Boolean uploadedByUserIdEqualCurrent; + /** + * Comma separated list of BulkUpload Statuses to search\filter + */ + private String statusIn; + + // bulkObjectTypeEqual: + public String getBulkObjectTypeEqual(){ + return this.bulkObjectTypeEqual; + } + public void setBulkObjectTypeEqual(String bulkObjectTypeEqual){ + this.bulkObjectTypeEqual = bulkObjectTypeEqual; + } + + public void bulkObjectTypeEqual(String multirequestToken){ + setToken("bulkObjectTypeEqual", multirequestToken); + } + + // createDateGreaterThanOrEqual: + public Long getCreateDateGreaterThanOrEqual(){ + return this.createDateGreaterThanOrEqual; + } + public void setCreateDateGreaterThanOrEqual(Long createDateGreaterThanOrEqual){ + this.createDateGreaterThanOrEqual = createDateGreaterThanOrEqual; + } + + public void createDateGreaterThanOrEqual(String multirequestToken){ + setToken("createDateGreaterThanOrEqual", multirequestToken); + } + + // uploadedByUserIdEqualCurrent: + public Boolean getUploadedByUserIdEqualCurrent(){ + return this.uploadedByUserIdEqualCurrent; + } + public void setUploadedByUserIdEqualCurrent(Boolean uploadedByUserIdEqualCurrent){ + this.uploadedByUserIdEqualCurrent = uploadedByUserIdEqualCurrent; + } + + public void uploadedByUserIdEqualCurrent(String multirequestToken){ + setToken("uploadedByUserIdEqualCurrent", multirequestToken); + } + + // statusIn: + public String getStatusIn(){ + return this.statusIn; + } + public void setStatusIn(String statusIn){ + this.statusIn = statusIn; + } + + public void statusIn(String multirequestToken){ + setToken("statusIn", multirequestToken); + } + + + public BulkUploadFilter() { + super(); + } + + public BulkUploadFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + bulkObjectTypeEqual = GsonParser.parseString(jsonObject.get("bulkObjectTypeEqual")); + createDateGreaterThanOrEqual = GsonParser.parseLong(jsonObject.get("createDateGreaterThanOrEqual")); + uploadedByUserIdEqualCurrent = GsonParser.parseBoolean(jsonObject.get("uploadedByUserIdEqualCurrent")); + statusIn = GsonParser.parseString(jsonObject.get("statusIn")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBulkUploadFilter"); + kparams.add("bulkObjectTypeEqual", this.bulkObjectTypeEqual); + kparams.add("createDateGreaterThanOrEqual", this.createDateGreaterThanOrEqual); + kparams.add("uploadedByUserIdEqualCurrent", this.uploadedByUserIdEqualCurrent); + kparams.add("statusIn", this.statusIn); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public BulkUploadFilter createFromParcel(Parcel source) { + return new BulkUploadFilter(source); + } + + @Override + public BulkUploadFilter[] newArray(int size) { + return new BulkUploadFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.bulkObjectTypeEqual); + dest.writeValue(this.createDateGreaterThanOrEqual); + dest.writeValue(this.uploadedByUserIdEqualCurrent); + dest.writeString(this.statusIn); + } + + public BulkUploadFilter(Parcel in) { + super(in); + this.bulkObjectTypeEqual = in.readString(); + this.createDateGreaterThanOrEqual = (Long)in.readValue(Long.class.getClassLoader()); + this.uploadedByUserIdEqualCurrent = (Boolean)in.readValue(Boolean.class.getClassLoader()); + this.statusIn = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadIngestJobData.java b/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadIngestJobData.java new file mode 100644 index 000000000..c846c4697 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadIngestJobData.java @@ -0,0 +1,140 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * instructions for upload data type with xml + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BulkUploadIngestJobData.Tokenizer.class) +public class BulkUploadIngestJobData extends BulkUploadJobData { + + public interface Tokenizer extends BulkUploadJobData.Tokenizer { + String ingestProfileId(); + String disableEpgNotification(); + } + + /** + * Identifies the ingest profile that will handle the ingest of programs + Ingest profiles are created separately using the ingest profile service + */ + private Integer ingestProfileId; + /** + * By default, after the successful ingest, devices will be notified about changes + in epg channels. This parameter disables this notification. + */ + private Boolean disableEpgNotification; + + // ingestProfileId: + public Integer getIngestProfileId(){ + return this.ingestProfileId; + } + public void setIngestProfileId(Integer ingestProfileId){ + this.ingestProfileId = ingestProfileId; + } + + public void ingestProfileId(String multirequestToken){ + setToken("ingestProfileId", multirequestToken); + } + + // disableEpgNotification: + public Boolean getDisableEpgNotification(){ + return this.disableEpgNotification; + } + public void setDisableEpgNotification(Boolean disableEpgNotification){ + this.disableEpgNotification = disableEpgNotification; + } + + public void disableEpgNotification(String multirequestToken){ + setToken("disableEpgNotification", multirequestToken); + } + + + public BulkUploadIngestJobData() { + super(); + } + + public BulkUploadIngestJobData(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + ingestProfileId = GsonParser.parseInt(jsonObject.get("ingestProfileId")); + disableEpgNotification = GsonParser.parseBoolean(jsonObject.get("disableEpgNotification")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBulkUploadIngestJobData"); + kparams.add("ingestProfileId", this.ingestProfileId); + kparams.add("disableEpgNotification", this.disableEpgNotification); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public BulkUploadIngestJobData createFromParcel(Parcel source) { + return new BulkUploadIngestJobData(source); + } + + @Override + public BulkUploadIngestJobData[] newArray(int size) { + return new BulkUploadIngestJobData[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.ingestProfileId); + dest.writeValue(this.disableEpgNotification); + } + + public BulkUploadIngestJobData(Parcel in) { + super(in); + this.ingestProfileId = (Integer)in.readValue(Integer.class.getClassLoader()); + this.disableEpgNotification = (Boolean)in.readValue(Boolean.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadJobData.java b/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadJobData.java new file mode 100644 index 000000000..3694c3bf2 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadJobData.java @@ -0,0 +1,74 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * instructions for upload data (the data file type, how to read the file, etc) + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BulkUploadJobData.Tokenizer.class) +public abstract class BulkUploadJobData extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + } + + + + public BulkUploadJobData() { + super(); + } + + public BulkUploadJobData(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBulkUploadJobData"); + return kparams; + } + + + public BulkUploadJobData(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadLiveAssetData.java b/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadLiveAssetData.java new file mode 100644 index 000000000..5ca8f7c22 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadLiveAssetData.java @@ -0,0 +1,85 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * indicates the media asset object type in the bulk file + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BulkUploadLiveAssetData.Tokenizer.class) +public class BulkUploadLiveAssetData extends BulkUploadMediaAssetData { + + public interface Tokenizer extends BulkUploadMediaAssetData.Tokenizer { + } + + + + public BulkUploadLiveAssetData() { + super(); + } + + public BulkUploadLiveAssetData(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBulkUploadLiveAssetData"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public BulkUploadLiveAssetData createFromParcel(Parcel source) { + return new BulkUploadLiveAssetData(source); + } + + @Override + public BulkUploadLiveAssetData[] newArray(int size) { + return new BulkUploadLiveAssetData[size]; + } + }; + + public BulkUploadLiveAssetData(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadLiveAssetResult.java b/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadLiveAssetResult.java new file mode 100644 index 000000000..149c94262 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadLiveAssetResult.java @@ -0,0 +1,82 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BulkUploadLiveAssetResult.Tokenizer.class) +public class BulkUploadLiveAssetResult extends BulkUploadMediaAssetResult { + + public interface Tokenizer extends BulkUploadMediaAssetResult.Tokenizer { + } + + + + public BulkUploadLiveAssetResult() { + super(); + } + + public BulkUploadLiveAssetResult(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBulkUploadLiveAssetResult"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public BulkUploadLiveAssetResult createFromParcel(Parcel source) { + return new BulkUploadLiveAssetResult(source); + } + + @Override + public BulkUploadLiveAssetResult[] newArray(int size) { + return new BulkUploadLiveAssetResult[size]; + } + }; + + public BulkUploadLiveAssetResult(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadMediaAssetData.java b/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadMediaAssetData.java new file mode 100644 index 000000000..eb6d92725 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadMediaAssetData.java @@ -0,0 +1,85 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * indicates the media asset object type in the bulk file + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BulkUploadMediaAssetData.Tokenizer.class) +public class BulkUploadMediaAssetData extends BulkUploadAssetData { + + public interface Tokenizer extends BulkUploadAssetData.Tokenizer { + } + + + + public BulkUploadMediaAssetData() { + super(); + } + + public BulkUploadMediaAssetData(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBulkUploadMediaAssetData"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public BulkUploadMediaAssetData createFromParcel(Parcel source) { + return new BulkUploadMediaAssetData(source); + } + + @Override + public BulkUploadMediaAssetData[] newArray(int size) { + return new BulkUploadMediaAssetData[size]; + } + }; + + public BulkUploadMediaAssetData(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadMediaAssetResult.java b/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadMediaAssetResult.java new file mode 100644 index 000000000..66a1662c1 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadMediaAssetResult.java @@ -0,0 +1,82 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BulkUploadMediaAssetResult.Tokenizer.class) +public class BulkUploadMediaAssetResult extends BulkUploadAssetResult { + + public interface Tokenizer extends BulkUploadAssetResult.Tokenizer { + } + + + + public BulkUploadMediaAssetResult() { + super(); + } + + public BulkUploadMediaAssetResult(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBulkUploadMediaAssetResult"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public BulkUploadMediaAssetResult createFromParcel(Parcel source) { + return new BulkUploadMediaAssetResult(source); + } + + @Override + public BulkUploadMediaAssetResult[] newArray(int size) { + return new BulkUploadMediaAssetResult[size]; + } + }; + + public BulkUploadMediaAssetResult(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadObjectData.java b/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadObjectData.java new file mode 100644 index 000000000..fa6acf7cc --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadObjectData.java @@ -0,0 +1,74 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * indicates the object type in the bulk file + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BulkUploadObjectData.Tokenizer.class) +public abstract class BulkUploadObjectData extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + } + + + + public BulkUploadObjectData() { + super(); + } + + public BulkUploadObjectData(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBulkUploadObjectData"); + return kparams; + } + + + public BulkUploadObjectData(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadProgramAssetData.java b/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadProgramAssetData.java new file mode 100644 index 000000000..934171b9a --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadProgramAssetData.java @@ -0,0 +1,85 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * indicates the epg asset object type in the bulk file + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BulkUploadProgramAssetData.Tokenizer.class) +public class BulkUploadProgramAssetData extends BulkUploadAssetData { + + public interface Tokenizer extends BulkUploadAssetData.Tokenizer { + } + + + + public BulkUploadProgramAssetData() { + super(); + } + + public BulkUploadProgramAssetData(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBulkUploadProgramAssetData"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public BulkUploadProgramAssetData createFromParcel(Parcel source) { + return new BulkUploadProgramAssetData(source); + } + + @Override + public BulkUploadProgramAssetData[] newArray(int size) { + return new BulkUploadProgramAssetData[size]; + } + }; + + public BulkUploadProgramAssetData(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadProgramAssetResult.java b/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadProgramAssetResult.java new file mode 100644 index 000000000..e96929cc3 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadProgramAssetResult.java @@ -0,0 +1,130 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BulkUploadProgramAssetResult.Tokenizer.class) +public class BulkUploadProgramAssetResult extends BulkUploadResult { + + public interface Tokenizer extends BulkUploadResult.Tokenizer { + String programId(); + String programExternalId(); + String liveAssetId(); + } + + /** + * The programID that was created + */ + private Integer programId; + /** + * The external program Id as was sent in the bulk xml file + */ + private String programExternalId; + /** + * The live asset Id that was identified according liveAssetExternalId that was + sent in bulk xml file + */ + private Integer liveAssetId; + + // programId: + public Integer getProgramId(){ + return this.programId; + } + // programExternalId: + public String getProgramExternalId(){ + return this.programExternalId; + } + // liveAssetId: + public Integer getLiveAssetId(){ + return this.liveAssetId; + } + + public BulkUploadProgramAssetResult() { + super(); + } + + public BulkUploadProgramAssetResult(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + programId = GsonParser.parseInt(jsonObject.get("programId")); + programExternalId = GsonParser.parseString(jsonObject.get("programExternalId")); + liveAssetId = GsonParser.parseInt(jsonObject.get("liveAssetId")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBulkUploadProgramAssetResult"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public BulkUploadProgramAssetResult createFromParcel(Parcel source) { + return new BulkUploadProgramAssetResult(source); + } + + @Override + public BulkUploadProgramAssetResult[] newArray(int size) { + return new BulkUploadProgramAssetResult[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.programId); + dest.writeString(this.programExternalId); + dest.writeValue(this.liveAssetId); + } + + public BulkUploadProgramAssetResult(Parcel in) { + super(in); + this.programId = (Integer)in.readValue(Integer.class.getClassLoader()); + this.programExternalId = in.readString(); + this.liveAssetId = (Integer)in.readValue(Integer.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadResult.java b/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadResult.java new file mode 100644 index 000000000..aec1facda --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadResult.java @@ -0,0 +1,180 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.BulkUploadResultStatus; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.ArrayList; +import java.util.List; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Bulk Upload Result + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BulkUploadResult.Tokenizer.class) +public abstract class BulkUploadResult extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String objectId(); + String index(); + String bulkUploadId(); + String status(); + RequestBuilder.ListTokenizer errors(); + RequestBuilder.ListTokenizer warnings(); + } + + /** + * the result ObjectId (assetId, userId etc) + */ + private Long objectId; + /** + * result index + */ + private Integer index; + /** + * Bulk upload identifier + */ + private Long bulkUploadId; + /** + * status + */ + private BulkUploadResultStatus status; + /** + * A list of errors + */ + private List errors; + /** + * A list of warnings + */ + private List warnings; + + // objectId: + public Long getObjectId(){ + return this.objectId; + } + // index: + public Integer getIndex(){ + return this.index; + } + // bulkUploadId: + public Long getBulkUploadId(){ + return this.bulkUploadId; + } + // status: + public BulkUploadResultStatus getStatus(){ + return this.status; + } + // errors: + public List getErrors(){ + return this.errors; + } + // warnings: + public List getWarnings(){ + return this.warnings; + } + + public BulkUploadResult() { + super(); + } + + public BulkUploadResult(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + objectId = GsonParser.parseLong(jsonObject.get("objectId")); + index = GsonParser.parseInt(jsonObject.get("index")); + bulkUploadId = GsonParser.parseLong(jsonObject.get("bulkUploadId")); + status = BulkUploadResultStatus.get(GsonParser.parseString(jsonObject.get("status"))); + errors = GsonParser.parseArray(jsonObject.getAsJsonArray("errors"), Message.class); + warnings = GsonParser.parseArray(jsonObject.getAsJsonArray("warnings"), Message.class); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBulkUploadResult"); + return kparams; + } + + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.objectId); + dest.writeValue(this.index); + dest.writeValue(this.bulkUploadId); + dest.writeInt(this.status == null ? -1 : this.status.ordinal()); + if(this.errors != null) { + dest.writeInt(this.errors.size()); + dest.writeList(this.errors); + } else { + dest.writeInt(-1); + } + if(this.warnings != null) { + dest.writeInt(this.warnings.size()); + dest.writeList(this.warnings); + } else { + dest.writeInt(-1); + } + } + + public BulkUploadResult(Parcel in) { + super(in); + this.objectId = (Long)in.readValue(Long.class.getClassLoader()); + this.index = (Integer)in.readValue(Integer.class.getClassLoader()); + this.bulkUploadId = (Long)in.readValue(Long.class.getClassLoader()); + int tmpStatus = in.readInt(); + this.status = tmpStatus == -1 ? null : BulkUploadResultStatus.values()[tmpStatus]; + int errorsSize = in.readInt(); + if( errorsSize > -1) { + this.errors = new ArrayList<>(); + in.readList(this.errors, Message.class.getClassLoader()); + } + int warningsSize = in.readInt(); + if( warningsSize > -1) { + this.warnings = new ArrayList<>(); + in.readList(this.warnings, Message.class.getClassLoader()); + } + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadStatistics.java b/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadStatistics.java new file mode 100644 index 000000000..d6e1608bf --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadStatistics.java @@ -0,0 +1,307 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Bulk Upload Statistics + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BulkUploadStatistics.Tokenizer.class) +public class BulkUploadStatistics extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String pending(); + String uploaded(); + String queued(); + String parsing(); + String processing(); + String processed(); + String success(); + String partial(); + String failed(); + String fatal(); + } + + /** + * count of bulk upload in pending status + */ + private Long pending; + /** + * count of bulk Uploaded in uploaded status + */ + private Long uploaded; + /** + * count of bulk upload in queued status + */ + private Long queued; + /** + * count of bulk upload in parsing status + */ + private Long parsing; + /** + * count of bulk upload in processing status + */ + private Long processing; + /** + * count of bulk upload in processed status + */ + private Long processed; + /** + * count of bulk upload in success status + */ + private Long success; + /** + * count of bulk upload in partial status + */ + private Long partial; + /** + * count of bulk upload in failed status + */ + private Long failed; + /** + * count of bulk upload in fatal status + */ + private Long fatal; + + // pending: + public Long getPending(){ + return this.pending; + } + public void setPending(Long pending){ + this.pending = pending; + } + + public void pending(String multirequestToken){ + setToken("pending", multirequestToken); + } + + // uploaded: + public Long getUploaded(){ + return this.uploaded; + } + public void setUploaded(Long uploaded){ + this.uploaded = uploaded; + } + + public void uploaded(String multirequestToken){ + setToken("uploaded", multirequestToken); + } + + // queued: + public Long getQueued(){ + return this.queued; + } + public void setQueued(Long queued){ + this.queued = queued; + } + + public void queued(String multirequestToken){ + setToken("queued", multirequestToken); + } + + // parsing: + public Long getParsing(){ + return this.parsing; + } + public void setParsing(Long parsing){ + this.parsing = parsing; + } + + public void parsing(String multirequestToken){ + setToken("parsing", multirequestToken); + } + + // processing: + public Long getProcessing(){ + return this.processing; + } + public void setProcessing(Long processing){ + this.processing = processing; + } + + public void processing(String multirequestToken){ + setToken("processing", multirequestToken); + } + + // processed: + public Long getProcessed(){ + return this.processed; + } + public void setProcessed(Long processed){ + this.processed = processed; + } + + public void processed(String multirequestToken){ + setToken("processed", multirequestToken); + } + + // success: + public Long getSuccess(){ + return this.success; + } + public void setSuccess(Long success){ + this.success = success; + } + + public void success(String multirequestToken){ + setToken("success", multirequestToken); + } + + // partial: + public Long getPartial(){ + return this.partial; + } + public void setPartial(Long partial){ + this.partial = partial; + } + + public void partial(String multirequestToken){ + setToken("partial", multirequestToken); + } + + // failed: + public Long getFailed(){ + return this.failed; + } + public void setFailed(Long failed){ + this.failed = failed; + } + + public void failed(String multirequestToken){ + setToken("failed", multirequestToken); + } + + // fatal: + public Long getFatal(){ + return this.fatal; + } + public void setFatal(Long fatal){ + this.fatal = fatal; + } + + public void fatal(String multirequestToken){ + setToken("fatal", multirequestToken); + } + + + public BulkUploadStatistics() { + super(); + } + + public BulkUploadStatistics(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + pending = GsonParser.parseLong(jsonObject.get("pending")); + uploaded = GsonParser.parseLong(jsonObject.get("uploaded")); + queued = GsonParser.parseLong(jsonObject.get("queued")); + parsing = GsonParser.parseLong(jsonObject.get("parsing")); + processing = GsonParser.parseLong(jsonObject.get("processing")); + processed = GsonParser.parseLong(jsonObject.get("processed")); + success = GsonParser.parseLong(jsonObject.get("success")); + partial = GsonParser.parseLong(jsonObject.get("partial")); + failed = GsonParser.parseLong(jsonObject.get("failed")); + fatal = GsonParser.parseLong(jsonObject.get("fatal")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBulkUploadStatistics"); + kparams.add("pending", this.pending); + kparams.add("uploaded", this.uploaded); + kparams.add("queued", this.queued); + kparams.add("parsing", this.parsing); + kparams.add("processing", this.processing); + kparams.add("processed", this.processed); + kparams.add("success", this.success); + kparams.add("partial", this.partial); + kparams.add("failed", this.failed); + kparams.add("fatal", this.fatal); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public BulkUploadStatistics createFromParcel(Parcel source) { + return new BulkUploadStatistics(source); + } + + @Override + public BulkUploadStatistics[] newArray(int size) { + return new BulkUploadStatistics[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.pending); + dest.writeValue(this.uploaded); + dest.writeValue(this.queued); + dest.writeValue(this.parsing); + dest.writeValue(this.processing); + dest.writeValue(this.processed); + dest.writeValue(this.success); + dest.writeValue(this.partial); + dest.writeValue(this.failed); + dest.writeValue(this.fatal); + } + + public BulkUploadStatistics(Parcel in) { + super(in); + this.pending = (Long)in.readValue(Long.class.getClassLoader()); + this.uploaded = (Long)in.readValue(Long.class.getClassLoader()); + this.queued = (Long)in.readValue(Long.class.getClassLoader()); + this.parsing = (Long)in.readValue(Long.class.getClassLoader()); + this.processing = (Long)in.readValue(Long.class.getClassLoader()); + this.processed = (Long)in.readValue(Long.class.getClassLoader()); + this.success = (Long)in.readValue(Long.class.getClassLoader()); + this.partial = (Long)in.readValue(Long.class.getClassLoader()); + this.failed = (Long)in.readValue(Long.class.getClassLoader()); + this.fatal = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadUdidDynamicListData.java b/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadUdidDynamicListData.java new file mode 100644 index 000000000..9b8c40f83 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadUdidDynamicListData.java @@ -0,0 +1,85 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * indicates the UDID DynamicList object type in the bulk file + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BulkUploadUdidDynamicListData.Tokenizer.class) +public class BulkUploadUdidDynamicListData extends BulkUploadDynamicListData { + + public interface Tokenizer extends BulkUploadDynamicListData.Tokenizer { + } + + + + public BulkUploadUdidDynamicListData() { + super(); + } + + public BulkUploadUdidDynamicListData(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBulkUploadUdidDynamicListData"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public BulkUploadUdidDynamicListData createFromParcel(Parcel source) { + return new BulkUploadUdidDynamicListData(source); + } + + @Override + public BulkUploadUdidDynamicListData[] newArray(int size) { + return new BulkUploadUdidDynamicListData[size]; + } + }; + + public BulkUploadUdidDynamicListData(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadUdidDynamicListResult.java b/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadUdidDynamicListResult.java new file mode 100644 index 000000000..fc665a1ee --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BulkUploadUdidDynamicListResult.java @@ -0,0 +1,105 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BulkUploadUdidDynamicListResult.Tokenizer.class) +public class BulkUploadUdidDynamicListResult extends BulkUploadDynamicListResult { + + public interface Tokenizer extends BulkUploadDynamicListResult.Tokenizer { + String udid(); + } + + /** + * The udid from the excel to add to DynamicLis values + */ + private String udid; + + // udid: + public String getUdid(){ + return this.udid; + } + + public BulkUploadUdidDynamicListResult() { + super(); + } + + public BulkUploadUdidDynamicListResult(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + udid = GsonParser.parseString(jsonObject.get("udid")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBulkUploadUdidDynamicListResult"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public BulkUploadUdidDynamicListResult createFromParcel(Parcel source) { + return new BulkUploadUdidDynamicListResult(source); + } + + @Override + public BulkUploadUdidDynamicListResult[] newArray(int size) { + return new BulkUploadUdidDynamicListResult[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.udid); + } + + public BulkUploadUdidDynamicListResult(Parcel in) { + super(in); + this.udid = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BumpersPlaybackPluginData.java b/KalturaClient/src/main/java/com/kaltura/client/types/BumpersPlaybackPluginData.java new file mode 100644 index 000000000..ddde4bbda --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BumpersPlaybackPluginData.java @@ -0,0 +1,135 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BumpersPlaybackPluginData.Tokenizer.class) +public class BumpersPlaybackPluginData extends PlaybackPluginData { + + public interface Tokenizer extends PlaybackPluginData.Tokenizer { + String url(); + String streamertype(); + } + + /** + * url + */ + private String url; + /** + * Streamer type: hls, dash, progressive. + */ + private String streamertype; + + // url: + public String getUrl(){ + return this.url; + } + public void setUrl(String url){ + this.url = url; + } + + public void url(String multirequestToken){ + setToken("url", multirequestToken); + } + + // streamertype: + public String getStreamertype(){ + return this.streamertype; + } + public void setStreamertype(String streamertype){ + this.streamertype = streamertype; + } + + public void streamertype(String multirequestToken){ + setToken("streamertype", multirequestToken); + } + + + public BumpersPlaybackPluginData() { + super(); + } + + public BumpersPlaybackPluginData(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + url = GsonParser.parseString(jsonObject.get("url")); + streamertype = GsonParser.parseString(jsonObject.get("streamertype")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBumpersPlaybackPluginData"); + kparams.add("url", this.url); + kparams.add("streamertype", this.streamertype); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public BumpersPlaybackPluginData createFromParcel(Parcel source) { + return new BumpersPlaybackPluginData(source); + } + + @Override + public BumpersPlaybackPluginData[] newArray(int size) { + return new BumpersPlaybackPluginData[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.url); + dest.writeString(this.streamertype); + } + + public BumpersPlaybackPluginData(Parcel in) { + super(in); + this.url = in.readString(); + this.streamertype = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BundleFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/BundleFilter.java new file mode 100644 index 000000000..defa6f6c1 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BundleFilter.java @@ -0,0 +1,161 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.BundleType; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BundleFilter.Tokenizer.class) +public class BundleFilter extends AssetFilter { + + public interface Tokenizer extends AssetFilter.Tokenizer { + String idEqual(); + String typeIn(); + String bundleTypeEqual(); + } + + /** + * Bundle Id. + */ + private Integer idEqual; + /** + * Comma separated list of asset types to search within. Possible + values: 0 – EPG linear programs entries, any media type ID (according to media + type IDs defined dynamically in the system). If omitted – all + types should be included. + */ + private String typeIn; + /** + * bundleType - possible values: Subscription or Collection + */ + private BundleType bundleTypeEqual; + + // idEqual: + public Integer getIdEqual(){ + return this.idEqual; + } + public void setIdEqual(Integer idEqual){ + this.idEqual = idEqual; + } + + public void idEqual(String multirequestToken){ + setToken("idEqual", multirequestToken); + } + + // typeIn: + public String getTypeIn(){ + return this.typeIn; + } + public void setTypeIn(String typeIn){ + this.typeIn = typeIn; + } + + public void typeIn(String multirequestToken){ + setToken("typeIn", multirequestToken); + } + + // bundleTypeEqual: + public BundleType getBundleTypeEqual(){ + return this.bundleTypeEqual; + } + public void setBundleTypeEqual(BundleType bundleTypeEqual){ + this.bundleTypeEqual = bundleTypeEqual; + } + + public void bundleTypeEqual(String multirequestToken){ + setToken("bundleTypeEqual", multirequestToken); + } + + + public BundleFilter() { + super(); + } + + public BundleFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + idEqual = GsonParser.parseInt(jsonObject.get("idEqual")); + typeIn = GsonParser.parseString(jsonObject.get("typeIn")); + bundleTypeEqual = BundleType.get(GsonParser.parseString(jsonObject.get("bundleTypeEqual"))); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBundleFilter"); + kparams.add("idEqual", this.idEqual); + kparams.add("typeIn", this.typeIn); + kparams.add("bundleTypeEqual", this.bundleTypeEqual); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public BundleFilter createFromParcel(Parcel source) { + return new BundleFilter(source); + } + + @Override + public BundleFilter[] newArray(int size) { + return new BundleFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.idEqual); + dest.writeString(this.typeIn); + dest.writeInt(this.bundleTypeEqual == null ? -1 : this.bundleTypeEqual.ordinal()); + } + + public BundleFilter(Parcel in) { + super(in); + this.idEqual = (Integer)in.readValue(Integer.class.getClassLoader()); + this.typeIn = in.readString(); + int tmpBundleTypeEqual = in.readInt(); + this.bundleTypeEqual = tmpBundleTypeEqual == -1 ? null : BundleType.values()[tmpBundleTypeEqual]; + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BusinessModuleCondition.java b/KalturaClient/src/main/java/com/kaltura/client/types/BusinessModuleCondition.java new file mode 100644 index 000000000..04f5733d0 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BusinessModuleCondition.java @@ -0,0 +1,140 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.TransactionType; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Business module condition + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BusinessModuleCondition.Tokenizer.class) +public class BusinessModuleCondition extends Condition { + + public interface Tokenizer extends Condition.Tokenizer { + String businessModuleType(); + String businessModuleId(); + } + + /** + * Business module type + */ + private TransactionType businessModuleType; + /** + * Business module ID + */ + private Long businessModuleId; + + // businessModuleType: + public TransactionType getBusinessModuleType(){ + return this.businessModuleType; + } + public void setBusinessModuleType(TransactionType businessModuleType){ + this.businessModuleType = businessModuleType; + } + + public void businessModuleType(String multirequestToken){ + setToken("businessModuleType", multirequestToken); + } + + // businessModuleId: + public Long getBusinessModuleId(){ + return this.businessModuleId; + } + public void setBusinessModuleId(Long businessModuleId){ + this.businessModuleId = businessModuleId; + } + + public void businessModuleId(String multirequestToken){ + setToken("businessModuleId", multirequestToken); + } + + + public BusinessModuleCondition() { + super(); + } + + public BusinessModuleCondition(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + businessModuleType = TransactionType.get(GsonParser.parseString(jsonObject.get("businessModuleType"))); + businessModuleId = GsonParser.parseLong(jsonObject.get("businessModuleId")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBusinessModuleCondition"); + kparams.add("businessModuleType", this.businessModuleType); + kparams.add("businessModuleId", this.businessModuleId); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public BusinessModuleCondition createFromParcel(Parcel source) { + return new BusinessModuleCondition(source); + } + + @Override + public BusinessModuleCondition[] newArray(int size) { + return new BusinessModuleCondition[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeInt(this.businessModuleType == null ? -1 : this.businessModuleType.ordinal()); + dest.writeValue(this.businessModuleId); + } + + public BusinessModuleCondition(Parcel in) { + super(in); + int tmpBusinessModuleType = in.readInt(); + this.businessModuleType = tmpBusinessModuleType == -1 ? null : TransactionType.values()[tmpBusinessModuleType]; + this.businessModuleId = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BusinessModuleDetails.java b/KalturaClient/src/main/java/com/kaltura/client/types/BusinessModuleDetails.java new file mode 100644 index 000000000..e7100e970 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BusinessModuleDetails.java @@ -0,0 +1,138 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.TransactionType; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BusinessModuleDetails.Tokenizer.class) +public class BusinessModuleDetails extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String businessModuleId(); + String businessModuleType(); + } + + /** + * BusinessModuleId + */ + private Integer businessModuleId; + /** + * BusinessModuleType + */ + private TransactionType businessModuleType; + + // businessModuleId: + public Integer getBusinessModuleId(){ + return this.businessModuleId; + } + public void setBusinessModuleId(Integer businessModuleId){ + this.businessModuleId = businessModuleId; + } + + public void businessModuleId(String multirequestToken){ + setToken("businessModuleId", multirequestToken); + } + + // businessModuleType: + public TransactionType getBusinessModuleType(){ + return this.businessModuleType; + } + public void setBusinessModuleType(TransactionType businessModuleType){ + this.businessModuleType = businessModuleType; + } + + public void businessModuleType(String multirequestToken){ + setToken("businessModuleType", multirequestToken); + } + + + public BusinessModuleDetails() { + super(); + } + + public BusinessModuleDetails(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + businessModuleId = GsonParser.parseInt(jsonObject.get("businessModuleId")); + businessModuleType = TransactionType.get(GsonParser.parseString(jsonObject.get("businessModuleType"))); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBusinessModuleDetails"); + kparams.add("businessModuleId", this.businessModuleId); + kparams.add("businessModuleType", this.businessModuleType); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public BusinessModuleDetails createFromParcel(Parcel source) { + return new BusinessModuleDetails(source); + } + + @Override + public BusinessModuleDetails[] newArray(int size) { + return new BusinessModuleDetails[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.businessModuleId); + dest.writeInt(this.businessModuleType == null ? -1 : this.businessModuleType.ordinal()); + } + + public BusinessModuleDetails(Parcel in) { + super(in); + this.businessModuleId = (Integer)in.readValue(Integer.class.getClassLoader()); + int tmpBusinessModuleType = in.readInt(); + this.businessModuleType = tmpBusinessModuleType == -1 ? null : TransactionType.values()[tmpBusinessModuleType]; + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BusinessModuleRule.java b/KalturaClient/src/main/java/com/kaltura/client/types/BusinessModuleRule.java new file mode 100644 index 000000000..26edbd472 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BusinessModuleRule.java @@ -0,0 +1,175 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.ArrayList; +import java.util.List; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Business module rule + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BusinessModuleRule.Tokenizer.class) +public class BusinessModuleRule extends Rule { + + public interface Tokenizer extends Rule.Tokenizer { + RequestBuilder.ListTokenizer conditions(); + RequestBuilder.ListTokenizer actions(); + String createDate(); + String updateDate(); + } + + /** + * List of conditions for the rule + */ + private List conditions; + /** + * List of actions for the rule + */ + private List actions; + /** + * Create date of the rule + */ + private Long createDate; + /** + * Update date of the rule + */ + private Long updateDate; + + // conditions: + public List getConditions(){ + return this.conditions; + } + public void setConditions(List conditions){ + this.conditions = conditions; + } + + // actions: + public List getActions(){ + return this.actions; + } + public void setActions(List actions){ + this.actions = actions; + } + + // createDate: + public Long getCreateDate(){ + return this.createDate; + } + // updateDate: + public Long getUpdateDate(){ + return this.updateDate; + } + + public BusinessModuleRule() { + super(); + } + + public BusinessModuleRule(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + conditions = GsonParser.parseArray(jsonObject.getAsJsonArray("conditions"), Condition.class); + actions = GsonParser.parseArray(jsonObject.getAsJsonArray("actions"), BusinessModuleRuleAction.class); + createDate = GsonParser.parseLong(jsonObject.get("createDate")); + updateDate = GsonParser.parseLong(jsonObject.get("updateDate")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBusinessModuleRule"); + kparams.add("conditions", this.conditions); + kparams.add("actions", this.actions); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public BusinessModuleRule createFromParcel(Parcel source) { + return new BusinessModuleRule(source); + } + + @Override + public BusinessModuleRule[] newArray(int size) { + return new BusinessModuleRule[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + if(this.conditions != null) { + dest.writeInt(this.conditions.size()); + dest.writeList(this.conditions); + } else { + dest.writeInt(-1); + } + if(this.actions != null) { + dest.writeInt(this.actions.size()); + dest.writeList(this.actions); + } else { + dest.writeInt(-1); + } + dest.writeValue(this.createDate); + dest.writeValue(this.updateDate); + } + + public BusinessModuleRule(Parcel in) { + super(in); + int conditionsSize = in.readInt(); + if( conditionsSize > -1) { + this.conditions = new ArrayList<>(); + in.readList(this.conditions, Condition.class.getClassLoader()); + } + int actionsSize = in.readInt(); + if( actionsSize > -1) { + this.actions = new ArrayList<>(); + in.readList(this.actions, BusinessModuleRuleAction.class.getClassLoader()); + } + this.createDate = (Long)in.readValue(Long.class.getClassLoader()); + this.updateDate = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BusinessModuleRuleAction.java b/KalturaClient/src/main/java/com/kaltura/client/types/BusinessModuleRuleAction.java new file mode 100644 index 000000000..f0c40c5ac --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BusinessModuleRuleAction.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BusinessModuleRuleAction.Tokenizer.class) +public abstract class BusinessModuleRuleAction extends RuleAction { + + public interface Tokenizer extends RuleAction.Tokenizer { + } + + + + public BusinessModuleRuleAction() { + super(); + } + + public BusinessModuleRuleAction(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBusinessModuleRuleAction"); + return kparams; + } + + + public BusinessModuleRuleAction(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BusinessModuleRuleFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/BusinessModuleRuleFilter.java new file mode 100644 index 000000000..07d889c4f --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BusinessModuleRuleFilter.java @@ -0,0 +1,184 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.RuleActionType; +import com.kaltura.client.enums.TransactionType; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Business module rule filter + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BusinessModuleRuleFilter.Tokenizer.class) +public class BusinessModuleRuleFilter extends Filter { + + public interface Tokenizer extends Filter.Tokenizer { + String businessModuleTypeApplied(); + String businessModuleIdApplied(); + String segmentIdsApplied(); + String actionsContainType(); + } + + /** + * Business module type the rules applied on + */ + private TransactionType businessModuleTypeApplied; + /** + * Business module ID the rules applied on + */ + private Long businessModuleIdApplied; + /** + * Comma separated segment IDs the rules applied on + */ + private String segmentIdsApplied; + /** + * Indicates which business module rule list to return by their action. + */ + private RuleActionType actionsContainType; + + // businessModuleTypeApplied: + public TransactionType getBusinessModuleTypeApplied(){ + return this.businessModuleTypeApplied; + } + public void setBusinessModuleTypeApplied(TransactionType businessModuleTypeApplied){ + this.businessModuleTypeApplied = businessModuleTypeApplied; + } + + public void businessModuleTypeApplied(String multirequestToken){ + setToken("businessModuleTypeApplied", multirequestToken); + } + + // businessModuleIdApplied: + public Long getBusinessModuleIdApplied(){ + return this.businessModuleIdApplied; + } + public void setBusinessModuleIdApplied(Long businessModuleIdApplied){ + this.businessModuleIdApplied = businessModuleIdApplied; + } + + public void businessModuleIdApplied(String multirequestToken){ + setToken("businessModuleIdApplied", multirequestToken); + } + + // segmentIdsApplied: + public String getSegmentIdsApplied(){ + return this.segmentIdsApplied; + } + public void setSegmentIdsApplied(String segmentIdsApplied){ + this.segmentIdsApplied = segmentIdsApplied; + } + + public void segmentIdsApplied(String multirequestToken){ + setToken("segmentIdsApplied", multirequestToken); + } + + // actionsContainType: + public RuleActionType getActionsContainType(){ + return this.actionsContainType; + } + public void setActionsContainType(RuleActionType actionsContainType){ + this.actionsContainType = actionsContainType; + } + + public void actionsContainType(String multirequestToken){ + setToken("actionsContainType", multirequestToken); + } + + + public BusinessModuleRuleFilter() { + super(); + } + + public BusinessModuleRuleFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + businessModuleTypeApplied = TransactionType.get(GsonParser.parseString(jsonObject.get("businessModuleTypeApplied"))); + businessModuleIdApplied = GsonParser.parseLong(jsonObject.get("businessModuleIdApplied")); + segmentIdsApplied = GsonParser.parseString(jsonObject.get("segmentIdsApplied")); + actionsContainType = RuleActionType.get(GsonParser.parseString(jsonObject.get("actionsContainType"))); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBusinessModuleRuleFilter"); + kparams.add("businessModuleTypeApplied", this.businessModuleTypeApplied); + kparams.add("businessModuleIdApplied", this.businessModuleIdApplied); + kparams.add("segmentIdsApplied", this.segmentIdsApplied); + kparams.add("actionsContainType", this.actionsContainType); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public BusinessModuleRuleFilter createFromParcel(Parcel source) { + return new BusinessModuleRuleFilter(source); + } + + @Override + public BusinessModuleRuleFilter[] newArray(int size) { + return new BusinessModuleRuleFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeInt(this.businessModuleTypeApplied == null ? -1 : this.businessModuleTypeApplied.ordinal()); + dest.writeValue(this.businessModuleIdApplied); + dest.writeString(this.segmentIdsApplied); + dest.writeInt(this.actionsContainType == null ? -1 : this.actionsContainType.ordinal()); + } + + public BusinessModuleRuleFilter(Parcel in) { + super(in); + int tmpBusinessModuleTypeApplied = in.readInt(); + this.businessModuleTypeApplied = tmpBusinessModuleTypeApplied == -1 ? null : TransactionType.values()[tmpBusinessModuleTypeApplied]; + this.businessModuleIdApplied = (Long)in.readValue(Long.class.getClassLoader()); + this.segmentIdsApplied = in.readString(); + int tmpActionsContainType = in.readInt(); + this.actionsContainType = tmpActionsContainType == -1 ? null : RuleActionType.values()[tmpActionsContainType]; + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/BuzzScore.java b/KalturaClient/src/main/java/com/kaltura/client/types/BuzzScore.java new file mode 100644 index 000000000..5824511c3 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/BuzzScore.java @@ -0,0 +1,160 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Buzz score + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(BuzzScore.Tokenizer.class) +public class BuzzScore extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String normalizedAvgScore(); + String updateDate(); + String avgScore(); + } + + /** + * Normalized average score + */ + private Double normalizedAvgScore; + /** + * Update date + */ + private Long updateDate; + /** + * Average score + */ + private Double avgScore; + + // normalizedAvgScore: + public Double getNormalizedAvgScore(){ + return this.normalizedAvgScore; + } + public void setNormalizedAvgScore(Double normalizedAvgScore){ + this.normalizedAvgScore = normalizedAvgScore; + } + + public void normalizedAvgScore(String multirequestToken){ + setToken("normalizedAvgScore", multirequestToken); + } + + // updateDate: + public Long getUpdateDate(){ + return this.updateDate; + } + public void setUpdateDate(Long updateDate){ + this.updateDate = updateDate; + } + + public void updateDate(String multirequestToken){ + setToken("updateDate", multirequestToken); + } + + // avgScore: + public Double getAvgScore(){ + return this.avgScore; + } + public void setAvgScore(Double avgScore){ + this.avgScore = avgScore; + } + + public void avgScore(String multirequestToken){ + setToken("avgScore", multirequestToken); + } + + + public BuzzScore() { + super(); + } + + public BuzzScore(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + normalizedAvgScore = GsonParser.parseDouble(jsonObject.get("normalizedAvgScore")); + updateDate = GsonParser.parseLong(jsonObject.get("updateDate")); + avgScore = GsonParser.parseDouble(jsonObject.get("avgScore")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaBuzzScore"); + kparams.add("normalizedAvgScore", this.normalizedAvgScore); + kparams.add("updateDate", this.updateDate); + kparams.add("avgScore", this.avgScore); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public BuzzScore createFromParcel(Parcel source) { + return new BuzzScore(source); + } + + @Override + public BuzzScore[] newArray(int size) { + return new BuzzScore[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.normalizedAvgScore); + dest.writeValue(this.updateDate); + dest.writeValue(this.avgScore); + } + + public BuzzScore(Parcel in) { + super(in); + this.normalizedAvgScore = (Double)in.readValue(Double.class.getClassLoader()); + this.updateDate = (Long)in.readValue(Long.class.getClassLoader()); + this.avgScore = (Double)in.readValue(Double.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/CDNAdapterProfile.java b/KalturaClient/src/main/java/com/kaltura/client/types/CDNAdapterProfile.java new file mode 100644 index 000000000..bd192171d --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/CDNAdapterProfile.java @@ -0,0 +1,262 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.HashMap; +import java.util.Map; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * CDN Adapter + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(CDNAdapterProfile.Tokenizer.class) +public class CDNAdapterProfile extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String id(); + String name(); + String isActive(); + String adapterUrl(); + String baseUrl(); + RequestBuilder.MapTokenizer settings(); + String systemName(); + String sharedSecret(); + } + + /** + * CDN adapter identifier + */ + private Integer id; + /** + * CDNR adapter name + */ + private String name; + /** + * CDN adapter active status + */ + private Boolean isActive; + /** + * CDN adapter URL + */ + private String adapterUrl; + /** + * CDN adapter base URL + */ + private String baseUrl; + /** + * CDN adapter settings + */ + private Map settings; + /** + * CDN adapter alias + */ + private String systemName; + /** + * CDN shared secret + */ + private String sharedSecret; + + // id: + public Integer getId(){ + return this.id; + } + // name: + public String getName(){ + return this.name; + } + public void setName(String name){ + this.name = name; + } + + public void name(String multirequestToken){ + setToken("name", multirequestToken); + } + + // isActive: + public Boolean getIsActive(){ + return this.isActive; + } + public void setIsActive(Boolean isActive){ + this.isActive = isActive; + } + + public void isActive(String multirequestToken){ + setToken("isActive", multirequestToken); + } + + // adapterUrl: + public String getAdapterUrl(){ + return this.adapterUrl; + } + public void setAdapterUrl(String adapterUrl){ + this.adapterUrl = adapterUrl; + } + + public void adapterUrl(String multirequestToken){ + setToken("adapterUrl", multirequestToken); + } + + // baseUrl: + public String getBaseUrl(){ + return this.baseUrl; + } + public void setBaseUrl(String baseUrl){ + this.baseUrl = baseUrl; + } + + public void baseUrl(String multirequestToken){ + setToken("baseUrl", multirequestToken); + } + + // settings: + public Map getSettings(){ + return this.settings; + } + public void setSettings(Map settings){ + this.settings = settings; + } + + // systemName: + public String getSystemName(){ + return this.systemName; + } + public void setSystemName(String systemName){ + this.systemName = systemName; + } + + public void systemName(String multirequestToken){ + setToken("systemName", multirequestToken); + } + + // sharedSecret: + public String getSharedSecret(){ + return this.sharedSecret; + } + + public CDNAdapterProfile() { + super(); + } + + public CDNAdapterProfile(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + id = GsonParser.parseInt(jsonObject.get("id")); + name = GsonParser.parseString(jsonObject.get("name")); + isActive = GsonParser.parseBoolean(jsonObject.get("isActive")); + adapterUrl = GsonParser.parseString(jsonObject.get("adapterUrl")); + baseUrl = GsonParser.parseString(jsonObject.get("baseUrl")); + settings = GsonParser.parseMap(jsonObject.getAsJsonObject("settings"), StringValue.class); + systemName = GsonParser.parseString(jsonObject.get("systemName")); + sharedSecret = GsonParser.parseString(jsonObject.get("sharedSecret")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaCDNAdapterProfile"); + kparams.add("name", this.name); + kparams.add("isActive", this.isActive); + kparams.add("adapterUrl", this.adapterUrl); + kparams.add("baseUrl", this.baseUrl); + kparams.add("settings", this.settings); + kparams.add("systemName", this.systemName); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public CDNAdapterProfile createFromParcel(Parcel source) { + return new CDNAdapterProfile(source); + } + + @Override + public CDNAdapterProfile[] newArray(int size) { + return new CDNAdapterProfile[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.id); + dest.writeString(this.name); + dest.writeValue(this.isActive); + dest.writeString(this.adapterUrl); + dest.writeString(this.baseUrl); + if(this.settings != null) { + dest.writeInt(this.settings.size()); + for (Map.Entry entry : this.settings.entrySet()) { + dest.writeString(entry.getKey()); + dest.writeParcelable(entry.getValue(), flags); + } + } else { + dest.writeInt(-1); + } + dest.writeString(this.systemName); + dest.writeString(this.sharedSecret); + } + + public CDNAdapterProfile(Parcel in) { + super(in); + this.id = (Integer)in.readValue(Integer.class.getClassLoader()); + this.name = in.readString(); + this.isActive = (Boolean)in.readValue(Boolean.class.getClassLoader()); + this.adapterUrl = in.readString(); + this.baseUrl = in.readString(); + int settingsSize = in.readInt(); + if( settingsSize > -1) { + this.settings = new HashMap<>(); + for (int i = 0; i < settingsSize; i++) { + String key = in.readString(); + StringValue value = in.readParcelable(StringValue.class.getClassLoader()); + this.settings.put(key, value); + } + } + this.systemName = in.readString(); + this.sharedSecret = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/CDNPartnerSettings.java b/KalturaClient/src/main/java/com/kaltura/client/types/CDNPartnerSettings.java new file mode 100644 index 000000000..b9e1fea1d --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/CDNPartnerSettings.java @@ -0,0 +1,136 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(CDNPartnerSettings.Tokenizer.class) +public class CDNPartnerSettings extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String defaultAdapterId(); + String defaultRecordingAdapterId(); + } + + /** + * Default CDN adapter identifier + */ + private Integer defaultAdapterId; + /** + * Default recording CDN adapter identifier + */ + private Integer defaultRecordingAdapterId; + + // defaultAdapterId: + public Integer getDefaultAdapterId(){ + return this.defaultAdapterId; + } + public void setDefaultAdapterId(Integer defaultAdapterId){ + this.defaultAdapterId = defaultAdapterId; + } + + public void defaultAdapterId(String multirequestToken){ + setToken("defaultAdapterId", multirequestToken); + } + + // defaultRecordingAdapterId: + public Integer getDefaultRecordingAdapterId(){ + return this.defaultRecordingAdapterId; + } + public void setDefaultRecordingAdapterId(Integer defaultRecordingAdapterId){ + this.defaultRecordingAdapterId = defaultRecordingAdapterId; + } + + public void defaultRecordingAdapterId(String multirequestToken){ + setToken("defaultRecordingAdapterId", multirequestToken); + } + + + public CDNPartnerSettings() { + super(); + } + + public CDNPartnerSettings(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + defaultAdapterId = GsonParser.parseInt(jsonObject.get("defaultAdapterId")); + defaultRecordingAdapterId = GsonParser.parseInt(jsonObject.get("defaultRecordingAdapterId")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaCDNPartnerSettings"); + kparams.add("defaultAdapterId", this.defaultAdapterId); + kparams.add("defaultRecordingAdapterId", this.defaultRecordingAdapterId); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public CDNPartnerSettings createFromParcel(Parcel source) { + return new CDNPartnerSettings(source); + } + + @Override + public CDNPartnerSettings[] newArray(int size) { + return new CDNPartnerSettings[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.defaultAdapterId); + dest.writeValue(this.defaultRecordingAdapterId); + } + + public CDNPartnerSettings(Parcel in) { + super(in); + this.defaultAdapterId = (Integer)in.readValue(Integer.class.getClassLoader()); + this.defaultRecordingAdapterId = (Integer)in.readValue(Integer.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/CDVRAdapterProfile.java b/KalturaClient/src/main/java/com/kaltura/client/types/CDVRAdapterProfile.java new file mode 100644 index 000000000..920e6e46c --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/CDVRAdapterProfile.java @@ -0,0 +1,262 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.HashMap; +import java.util.Map; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * C-DVR Adapter + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(CDVRAdapterProfile.Tokenizer.class) +public class CDVRAdapterProfile extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String id(); + String name(); + String isActive(); + String adapterUrl(); + RequestBuilder.MapTokenizer settings(); + String externalIdentifier(); + String sharedSecret(); + String dynamicLinksSupport(); + } + + /** + * C-DVR adapter identifier + */ + private Integer id; + /** + * C-DVR adapter name + */ + private String name; + /** + * C-DVR adapter active status + */ + private Boolean isActive; + /** + * C-DVR adapter adapter URL + */ + private String adapterUrl; + /** + * C-DVR adapter extra parameters + */ + private Map settings; + /** + * C-DVR adapter external identifier + */ + private String externalIdentifier; + /** + * C-DVR shared secret + */ + private String sharedSecret; + /** + * Indicates whether the C-DVR adapter supports dynamic URLs + */ + private Boolean dynamicLinksSupport; + + // id: + public Integer getId(){ + return this.id; + } + // name: + public String getName(){ + return this.name; + } + public void setName(String name){ + this.name = name; + } + + public void name(String multirequestToken){ + setToken("name", multirequestToken); + } + + // isActive: + public Boolean getIsActive(){ + return this.isActive; + } + public void setIsActive(Boolean isActive){ + this.isActive = isActive; + } + + public void isActive(String multirequestToken){ + setToken("isActive", multirequestToken); + } + + // adapterUrl: + public String getAdapterUrl(){ + return this.adapterUrl; + } + public void setAdapterUrl(String adapterUrl){ + this.adapterUrl = adapterUrl; + } + + public void adapterUrl(String multirequestToken){ + setToken("adapterUrl", multirequestToken); + } + + // settings: + public Map getSettings(){ + return this.settings; + } + public void setSettings(Map settings){ + this.settings = settings; + } + + // externalIdentifier: + public String getExternalIdentifier(){ + return this.externalIdentifier; + } + public void setExternalIdentifier(String externalIdentifier){ + this.externalIdentifier = externalIdentifier; + } + + public void externalIdentifier(String multirequestToken){ + setToken("externalIdentifier", multirequestToken); + } + + // sharedSecret: + public String getSharedSecret(){ + return this.sharedSecret; + } + // dynamicLinksSupport: + public Boolean getDynamicLinksSupport(){ + return this.dynamicLinksSupport; + } + public void setDynamicLinksSupport(Boolean dynamicLinksSupport){ + this.dynamicLinksSupport = dynamicLinksSupport; + } + + public void dynamicLinksSupport(String multirequestToken){ + setToken("dynamicLinksSupport", multirequestToken); + } + + + public CDVRAdapterProfile() { + super(); + } + + public CDVRAdapterProfile(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + id = GsonParser.parseInt(jsonObject.get("id")); + name = GsonParser.parseString(jsonObject.get("name")); + isActive = GsonParser.parseBoolean(jsonObject.get("isActive")); + adapterUrl = GsonParser.parseString(jsonObject.get("adapterUrl")); + settings = GsonParser.parseMap(jsonObject.getAsJsonObject("settings"), StringValue.class); + externalIdentifier = GsonParser.parseString(jsonObject.get("externalIdentifier")); + sharedSecret = GsonParser.parseString(jsonObject.get("sharedSecret")); + dynamicLinksSupport = GsonParser.parseBoolean(jsonObject.get("dynamicLinksSupport")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaCDVRAdapterProfile"); + kparams.add("name", this.name); + kparams.add("isActive", this.isActive); + kparams.add("adapterUrl", this.adapterUrl); + kparams.add("settings", this.settings); + kparams.add("externalIdentifier", this.externalIdentifier); + kparams.add("dynamicLinksSupport", this.dynamicLinksSupport); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public CDVRAdapterProfile createFromParcel(Parcel source) { + return new CDVRAdapterProfile(source); + } + + @Override + public CDVRAdapterProfile[] newArray(int size) { + return new CDVRAdapterProfile[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.id); + dest.writeString(this.name); + dest.writeValue(this.isActive); + dest.writeString(this.adapterUrl); + if(this.settings != null) { + dest.writeInt(this.settings.size()); + for (Map.Entry entry : this.settings.entrySet()) { + dest.writeString(entry.getKey()); + dest.writeParcelable(entry.getValue(), flags); + } + } else { + dest.writeInt(-1); + } + dest.writeString(this.externalIdentifier); + dest.writeString(this.sharedSecret); + dest.writeValue(this.dynamicLinksSupport); + } + + public CDVRAdapterProfile(Parcel in) { + super(in); + this.id = (Integer)in.readValue(Integer.class.getClassLoader()); + this.name = in.readString(); + this.isActive = (Boolean)in.readValue(Boolean.class.getClassLoader()); + this.adapterUrl = in.readString(); + int settingsSize = in.readInt(); + if( settingsSize > -1) { + this.settings = new HashMap<>(); + for (int i = 0; i < settingsSize; i++) { + String key = in.readString(); + StringValue value = in.readParcelable(StringValue.class.getClassLoader()); + this.settings.put(key, value); + } + } + this.externalIdentifier = in.readString(); + this.sharedSecret = in.readString(); + this.dynamicLinksSupport = (Boolean)in.readValue(Boolean.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/Campaign.java b/KalturaClient/src/main/java/com/kaltura/client/types/Campaign.java new file mode 100644 index 000000000..21648695b --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/Campaign.java @@ -0,0 +1,332 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.ObjectState; +import com.kaltura.client.types.BasePromotion; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Campaign + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(Campaign.Tokenizer.class) +public class Campaign extends OTTObjectSupportNullable { + + public interface Tokenizer extends OTTObjectSupportNullable.Tokenizer { + String id(); + String createDate(); + String updateDate(); + String startDate(); + String endDate(); + String name(); + String systemName(); + String description(); + String state(); + BasePromotion.Tokenizer promotion(); + String message(); + String collectionIdIn(); + String assetUserRuleId(); + } + + /** + * ID + */ + private Long id; + /** + * Create date of the rule + */ + private Long createDate; + /** + * Update date of the rule + */ + private Long updateDate; + /** + * Start date of the rule + */ + private Long startDate; + /** + * End date of the rule + */ + private Long endDate; + /** + * Name + */ + private String name; + /** + * systemName + */ + private String systemName; + /** + * Description + */ + private String description; + /** + * state + */ + private ObjectState state; + /** + * The Promotion that is promoted to the user + */ + private BasePromotion promotion; + /** + * Free text message to the user that gives information about the campaign. + */ + private String message; + /** + * Comma separated collection IDs list + */ + private String collectionIdIn; + /** + * Asset user rule identifier + */ + private Long assetUserRuleId; + + // id: + public Long getId(){ + return this.id; + } + // createDate: + public Long getCreateDate(){ + return this.createDate; + } + // updateDate: + public Long getUpdateDate(){ + return this.updateDate; + } + // startDate: + public Long getStartDate(){ + return this.startDate; + } + public void setStartDate(Long startDate){ + this.startDate = startDate; + } + + public void startDate(String multirequestToken){ + setToken("startDate", multirequestToken); + } + + // endDate: + public Long getEndDate(){ + return this.endDate; + } + public void setEndDate(Long endDate){ + this.endDate = endDate; + } + + public void endDate(String multirequestToken){ + setToken("endDate", multirequestToken); + } + + // name: + public String getName(){ + return this.name; + } + public void setName(String name){ + this.name = name; + } + + public void name(String multirequestToken){ + setToken("name", multirequestToken); + } + + // systemName: + public String getSystemName(){ + return this.systemName; + } + public void setSystemName(String systemName){ + this.systemName = systemName; + } + + public void systemName(String multirequestToken){ + setToken("systemName", multirequestToken); + } + + // description: + public String getDescription(){ + return this.description; + } + public void setDescription(String description){ + this.description = description; + } + + public void description(String multirequestToken){ + setToken("description", multirequestToken); + } + + // state: + public ObjectState getState(){ + return this.state; + } + // promotion: + public BasePromotion getPromotion(){ + return this.promotion; + } + public void setPromotion(BasePromotion promotion){ + this.promotion = promotion; + } + + // message: + public String getMessage(){ + return this.message; + } + public void setMessage(String message){ + this.message = message; + } + + public void message(String multirequestToken){ + setToken("message", multirequestToken); + } + + // collectionIdIn: + public String getCollectionIdIn(){ + return this.collectionIdIn; + } + public void setCollectionIdIn(String collectionIdIn){ + this.collectionIdIn = collectionIdIn; + } + + public void collectionIdIn(String multirequestToken){ + setToken("collectionIdIn", multirequestToken); + } + + // assetUserRuleId: + public Long getAssetUserRuleId(){ + return this.assetUserRuleId; + } + public void setAssetUserRuleId(Long assetUserRuleId){ + this.assetUserRuleId = assetUserRuleId; + } + + public void assetUserRuleId(String multirequestToken){ + setToken("assetUserRuleId", multirequestToken); + } + + + public Campaign() { + super(); + } + + public Campaign(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + id = GsonParser.parseLong(jsonObject.get("id")); + createDate = GsonParser.parseLong(jsonObject.get("createDate")); + updateDate = GsonParser.parseLong(jsonObject.get("updateDate")); + startDate = GsonParser.parseLong(jsonObject.get("startDate")); + endDate = GsonParser.parseLong(jsonObject.get("endDate")); + name = GsonParser.parseString(jsonObject.get("name")); + systemName = GsonParser.parseString(jsonObject.get("systemName")); + description = GsonParser.parseString(jsonObject.get("description")); + state = ObjectState.get(GsonParser.parseString(jsonObject.get("state"))); + promotion = GsonParser.parseObject(jsonObject.getAsJsonObject("promotion"), BasePromotion.class); + message = GsonParser.parseString(jsonObject.get("message")); + collectionIdIn = GsonParser.parseString(jsonObject.get("collectionIdIn")); + assetUserRuleId = GsonParser.parseLong(jsonObject.get("assetUserRuleId")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaCampaign"); + kparams.add("startDate", this.startDate); + kparams.add("endDate", this.endDate); + kparams.add("name", this.name); + kparams.add("systemName", this.systemName); + kparams.add("description", this.description); + kparams.add("promotion", this.promotion); + kparams.add("message", this.message); + kparams.add("collectionIdIn", this.collectionIdIn); + kparams.add("assetUserRuleId", this.assetUserRuleId); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public Campaign createFromParcel(Parcel source) { + return new Campaign(source); + } + + @Override + public Campaign[] newArray(int size) { + return new Campaign[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.id); + dest.writeValue(this.createDate); + dest.writeValue(this.updateDate); + dest.writeValue(this.startDate); + dest.writeValue(this.endDate); + dest.writeString(this.name); + dest.writeString(this.systemName); + dest.writeString(this.description); + dest.writeInt(this.state == null ? -1 : this.state.ordinal()); + dest.writeParcelable(this.promotion, flags); + dest.writeString(this.message); + dest.writeString(this.collectionIdIn); + dest.writeValue(this.assetUserRuleId); + } + + public Campaign(Parcel in) { + super(in); + this.id = (Long)in.readValue(Long.class.getClassLoader()); + this.createDate = (Long)in.readValue(Long.class.getClassLoader()); + this.updateDate = (Long)in.readValue(Long.class.getClassLoader()); + this.startDate = (Long)in.readValue(Long.class.getClassLoader()); + this.endDate = (Long)in.readValue(Long.class.getClassLoader()); + this.name = in.readString(); + this.systemName = in.readString(); + this.description = in.readString(); + int tmpState = in.readInt(); + this.state = tmpState == -1 ? null : ObjectState.values()[tmpState]; + this.promotion = in.readParcelable(BasePromotion.class.getClassLoader()); + this.message = in.readString(); + this.collectionIdIn = in.readString(); + this.assetUserRuleId = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/CampaignEntitlementDiscountDetails.java b/KalturaClient/src/main/java/com/kaltura/client/types/CampaignEntitlementDiscountDetails.java new file mode 100644 index 000000000..255b70491 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/CampaignEntitlementDiscountDetails.java @@ -0,0 +1,85 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Campaign entitlement discount details + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(CampaignEntitlementDiscountDetails.Tokenizer.class) +public class CampaignEntitlementDiscountDetails extends EntitlementDiscountDetailsIdentifier { + + public interface Tokenizer extends EntitlementDiscountDetailsIdentifier.Tokenizer { + } + + + + public CampaignEntitlementDiscountDetails() { + super(); + } + + public CampaignEntitlementDiscountDetails(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaCampaignEntitlementDiscountDetails"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public CampaignEntitlementDiscountDetails createFromParcel(Parcel source) { + return new CampaignEntitlementDiscountDetails(source); + } + + @Override + public CampaignEntitlementDiscountDetails[] newArray(int size) { + return new CampaignEntitlementDiscountDetails[size]; + } + }; + + public CampaignEntitlementDiscountDetails(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/CampaignFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/CampaignFilter.java new file mode 100644 index 000000000..e3a7c90ec --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/CampaignFilter.java @@ -0,0 +1,85 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Campaign filter (same as KalturaCampaignSearchFilter with no parameters) + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(CampaignFilter.Tokenizer.class) +public class CampaignFilter extends Filter { + + public interface Tokenizer extends Filter.Tokenizer { + } + + + + public CampaignFilter() { + super(); + } + + public CampaignFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaCampaignFilter"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public CampaignFilter createFromParcel(Parcel source) { + return new CampaignFilter(source); + } + + @Override + public CampaignFilter[] newArray(int size) { + return new CampaignFilter[size]; + } + }; + + public CampaignFilter(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/CampaignIdInFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/CampaignIdInFilter.java new file mode 100644 index 000000000..435a63092 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/CampaignIdInFilter.java @@ -0,0 +1,114 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(CampaignIdInFilter.Tokenizer.class) +public class CampaignIdInFilter extends CampaignFilter { + + public interface Tokenizer extends CampaignFilter.Tokenizer { + String idIn(); + } + + /** + * campaign identifiers + */ + private String idIn; + + // idIn: + public String getIdIn(){ + return this.idIn; + } + public void setIdIn(String idIn){ + this.idIn = idIn; + } + + public void idIn(String multirequestToken){ + setToken("idIn", multirequestToken); + } + + + public CampaignIdInFilter() { + super(); + } + + public CampaignIdInFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + idIn = GsonParser.parseString(jsonObject.get("idIn")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaCampaignIdInFilter"); + kparams.add("idIn", this.idIn); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public CampaignIdInFilter createFromParcel(Parcel source) { + return new CampaignIdInFilter(source); + } + + @Override + public CampaignIdInFilter[] newArray(int size) { + return new CampaignIdInFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.idIn); + } + + public CampaignIdInFilter(Parcel in) { + super(in); + this.idIn = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/CampaignSearchFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/CampaignSearchFilter.java new file mode 100644 index 000000000..c43c32e53 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/CampaignSearchFilter.java @@ -0,0 +1,263 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.ObjectState; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(CampaignSearchFilter.Tokenizer.class) +public class CampaignSearchFilter extends CampaignFilter { + + public interface Tokenizer extends CampaignFilter.Tokenizer { + String startDateGreaterThanOrEqual(); + String endDateLessThanOrEqual(); + String stateEqual(); + String hasPromotion(); + String nameEqual(); + String nameContains(); + String stateIn(); + String assetUserRuleIdIn(); + } + + /** + * start Date Greater Than Or Equal + */ + private Long startDateGreaterThanOrEqual; + /** + * end Date Greater Than Or Equal + */ + private Long endDateLessThanOrEqual; + /** + * state Equal + */ + private ObjectState stateEqual; + /** + * has Promotion + */ + private Boolean hasPromotion; + /** + * Filter the Campaign with this name. + */ + private String nameEqual; + /** + * A string that is included in the Campaign name + */ + private String nameContains; + /** + * Comma separated Campaign State list + */ + private String stateIn; + /** + * Comma separated AssetUserRule Ids to filter by + */ + private String assetUserRuleIdIn; + + // startDateGreaterThanOrEqual: + public Long getStartDateGreaterThanOrEqual(){ + return this.startDateGreaterThanOrEqual; + } + public void setStartDateGreaterThanOrEqual(Long startDateGreaterThanOrEqual){ + this.startDateGreaterThanOrEqual = startDateGreaterThanOrEqual; + } + + public void startDateGreaterThanOrEqual(String multirequestToken){ + setToken("startDateGreaterThanOrEqual", multirequestToken); + } + + // endDateLessThanOrEqual: + public Long getEndDateLessThanOrEqual(){ + return this.endDateLessThanOrEqual; + } + public void setEndDateLessThanOrEqual(Long endDateLessThanOrEqual){ + this.endDateLessThanOrEqual = endDateLessThanOrEqual; + } + + public void endDateLessThanOrEqual(String multirequestToken){ + setToken("endDateLessThanOrEqual", multirequestToken); + } + + // stateEqual: + public ObjectState getStateEqual(){ + return this.stateEqual; + } + public void setStateEqual(ObjectState stateEqual){ + this.stateEqual = stateEqual; + } + + public void stateEqual(String multirequestToken){ + setToken("stateEqual", multirequestToken); + } + + // hasPromotion: + public Boolean getHasPromotion(){ + return this.hasPromotion; + } + public void setHasPromotion(Boolean hasPromotion){ + this.hasPromotion = hasPromotion; + } + + public void hasPromotion(String multirequestToken){ + setToken("hasPromotion", multirequestToken); + } + + // nameEqual: + public String getNameEqual(){ + return this.nameEqual; + } + public void setNameEqual(String nameEqual){ + this.nameEqual = nameEqual; + } + + public void nameEqual(String multirequestToken){ + setToken("nameEqual", multirequestToken); + } + + // nameContains: + public String getNameContains(){ + return this.nameContains; + } + public void setNameContains(String nameContains){ + this.nameContains = nameContains; + } + + public void nameContains(String multirequestToken){ + setToken("nameContains", multirequestToken); + } + + // stateIn: + public String getStateIn(){ + return this.stateIn; + } + public void setStateIn(String stateIn){ + this.stateIn = stateIn; + } + + public void stateIn(String multirequestToken){ + setToken("stateIn", multirequestToken); + } + + // assetUserRuleIdIn: + public String getAssetUserRuleIdIn(){ + return this.assetUserRuleIdIn; + } + public void setAssetUserRuleIdIn(String assetUserRuleIdIn){ + this.assetUserRuleIdIn = assetUserRuleIdIn; + } + + public void assetUserRuleIdIn(String multirequestToken){ + setToken("assetUserRuleIdIn", multirequestToken); + } + + + public CampaignSearchFilter() { + super(); + } + + public CampaignSearchFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + startDateGreaterThanOrEqual = GsonParser.parseLong(jsonObject.get("startDateGreaterThanOrEqual")); + endDateLessThanOrEqual = GsonParser.parseLong(jsonObject.get("endDateLessThanOrEqual")); + stateEqual = ObjectState.get(GsonParser.parseString(jsonObject.get("stateEqual"))); + hasPromotion = GsonParser.parseBoolean(jsonObject.get("hasPromotion")); + nameEqual = GsonParser.parseString(jsonObject.get("nameEqual")); + nameContains = GsonParser.parseString(jsonObject.get("nameContains")); + stateIn = GsonParser.parseString(jsonObject.get("stateIn")); + assetUserRuleIdIn = GsonParser.parseString(jsonObject.get("assetUserRuleIdIn")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaCampaignSearchFilter"); + kparams.add("startDateGreaterThanOrEqual", this.startDateGreaterThanOrEqual); + kparams.add("endDateLessThanOrEqual", this.endDateLessThanOrEqual); + kparams.add("stateEqual", this.stateEqual); + kparams.add("hasPromotion", this.hasPromotion); + kparams.add("nameEqual", this.nameEqual); + kparams.add("nameContains", this.nameContains); + kparams.add("stateIn", this.stateIn); + kparams.add("assetUserRuleIdIn", this.assetUserRuleIdIn); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public CampaignSearchFilter createFromParcel(Parcel source) { + return new CampaignSearchFilter(source); + } + + @Override + public CampaignSearchFilter[] newArray(int size) { + return new CampaignSearchFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.startDateGreaterThanOrEqual); + dest.writeValue(this.endDateLessThanOrEqual); + dest.writeInt(this.stateEqual == null ? -1 : this.stateEqual.ordinal()); + dest.writeValue(this.hasPromotion); + dest.writeString(this.nameEqual); + dest.writeString(this.nameContains); + dest.writeString(this.stateIn); + dest.writeString(this.assetUserRuleIdIn); + } + + public CampaignSearchFilter(Parcel in) { + super(in); + this.startDateGreaterThanOrEqual = (Long)in.readValue(Long.class.getClassLoader()); + this.endDateLessThanOrEqual = (Long)in.readValue(Long.class.getClassLoader()); + int tmpStateEqual = in.readInt(); + this.stateEqual = tmpStateEqual == -1 ? null : ObjectState.values()[tmpStateEqual]; + this.hasPromotion = (Boolean)in.readValue(Boolean.class.getClassLoader()); + this.nameEqual = in.readString(); + this.nameContains = in.readString(); + this.stateIn = in.readString(); + this.assetUserRuleIdIn = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/CampaignSegmentFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/CampaignSegmentFilter.java new file mode 100644 index 000000000..2725f6f26 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/CampaignSegmentFilter.java @@ -0,0 +1,114 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(CampaignSegmentFilter.Tokenizer.class) +public class CampaignSegmentFilter extends CampaignSearchFilter { + + public interface Tokenizer extends CampaignSearchFilter.Tokenizer { + String segmentIdEqual(); + } + + /** + * segment id to be searched inside campaigns + */ + private Long segmentIdEqual; + + // segmentIdEqual: + public Long getSegmentIdEqual(){ + return this.segmentIdEqual; + } + public void setSegmentIdEqual(Long segmentIdEqual){ + this.segmentIdEqual = segmentIdEqual; + } + + public void segmentIdEqual(String multirequestToken){ + setToken("segmentIdEqual", multirequestToken); + } + + + public CampaignSegmentFilter() { + super(); + } + + public CampaignSegmentFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + segmentIdEqual = GsonParser.parseLong(jsonObject.get("segmentIdEqual")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaCampaignSegmentFilter"); + kparams.add("segmentIdEqual", this.segmentIdEqual); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public CampaignSegmentFilter createFromParcel(Parcel source) { + return new CampaignSegmentFilter(source); + } + + @Override + public CampaignSegmentFilter[] newArray(int size) { + return new CampaignSegmentFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.segmentIdEqual); + } + + public CampaignSegmentFilter(Parcel in) { + super(in); + this.segmentIdEqual = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/CaptionPlaybackPluginData.java b/KalturaClient/src/main/java/com/kaltura/client/types/CaptionPlaybackPluginData.java new file mode 100644 index 000000000..624ca87aa --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/CaptionPlaybackPluginData.java @@ -0,0 +1,178 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(CaptionPlaybackPluginData.Tokenizer.class) +public class CaptionPlaybackPluginData extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String url(); + String language(); + String label(); + String format(); + } + + /** + * url + */ + private String url; + /** + * Language + */ + private String language; + /** + * Label + */ + private String label; + /** + * Format + */ + private String format; + + // url: + public String getUrl(){ + return this.url; + } + public void setUrl(String url){ + this.url = url; + } + + public void url(String multirequestToken){ + setToken("url", multirequestToken); + } + + // language: + public String getLanguage(){ + return this.language; + } + public void setLanguage(String language){ + this.language = language; + } + + public void language(String multirequestToken){ + setToken("language", multirequestToken); + } + + // label: + public String getLabel(){ + return this.label; + } + public void setLabel(String label){ + this.label = label; + } + + public void label(String multirequestToken){ + setToken("label", multirequestToken); + } + + // format: + public String getFormat(){ + return this.format; + } + public void setFormat(String format){ + this.format = format; + } + + public void format(String multirequestToken){ + setToken("format", multirequestToken); + } + + + public CaptionPlaybackPluginData() { + super(); + } + + public CaptionPlaybackPluginData(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + url = GsonParser.parseString(jsonObject.get("url")); + language = GsonParser.parseString(jsonObject.get("language")); + label = GsonParser.parseString(jsonObject.get("label")); + format = GsonParser.parseString(jsonObject.get("format")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaCaptionPlaybackPluginData"); + kparams.add("url", this.url); + kparams.add("language", this.language); + kparams.add("label", this.label); + kparams.add("format", this.format); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public CaptionPlaybackPluginData createFromParcel(Parcel source) { + return new CaptionPlaybackPluginData(source); + } + + @Override + public CaptionPlaybackPluginData[] newArray(int size) { + return new CaptionPlaybackPluginData[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.url); + dest.writeString(this.language); + dest.writeString(this.label); + dest.writeString(this.format); + } + + public CaptionPlaybackPluginData(Parcel in) { + super(in); + this.url = in.readString(); + this.language = in.readString(); + this.label = in.readString(); + this.format = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/CatalogPartnerConfig.java b/KalturaClient/src/main/java/com/kaltura/client/types/CatalogPartnerConfig.java new file mode 100644 index 000000000..6ea53f710 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/CatalogPartnerConfig.java @@ -0,0 +1,198 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.CategoryManagement; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Partner catalog configuration + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(CatalogPartnerConfig.Tokenizer.class) +public class CatalogPartnerConfig extends PartnerConfiguration { + + public interface Tokenizer extends PartnerConfiguration.Tokenizer { + String singleMultilingualMode(); + CategoryManagement.Tokenizer categoryManagement(); + String epgMultilingualFallbackSupport(); + String uploadExportDatalake(); + String shopMarkerMetaId(); + } + + /** + * Single multilingual mode + */ + private Boolean singleMultilingualMode; + /** + * Category management + */ + private CategoryManagement categoryManagement; + /** + * EPG Multilingual Fallback Support + */ + private Boolean epgMultilingualFallbackSupport; + /** + * Upload Export Datalake + */ + private Boolean uploadExportDatalake; + /** + * Shop Marker&#39;s identifier + */ + private Long shopMarkerMetaId; + + // singleMultilingualMode: + public Boolean getSingleMultilingualMode(){ + return this.singleMultilingualMode; + } + public void setSingleMultilingualMode(Boolean singleMultilingualMode){ + this.singleMultilingualMode = singleMultilingualMode; + } + + public void singleMultilingualMode(String multirequestToken){ + setToken("singleMultilingualMode", multirequestToken); + } + + // categoryManagement: + public CategoryManagement getCategoryManagement(){ + return this.categoryManagement; + } + public void setCategoryManagement(CategoryManagement categoryManagement){ + this.categoryManagement = categoryManagement; + } + + // epgMultilingualFallbackSupport: + public Boolean getEpgMultilingualFallbackSupport(){ + return this.epgMultilingualFallbackSupport; + } + public void setEpgMultilingualFallbackSupport(Boolean epgMultilingualFallbackSupport){ + this.epgMultilingualFallbackSupport = epgMultilingualFallbackSupport; + } + + public void epgMultilingualFallbackSupport(String multirequestToken){ + setToken("epgMultilingualFallbackSupport", multirequestToken); + } + + // uploadExportDatalake: + public Boolean getUploadExportDatalake(){ + return this.uploadExportDatalake; + } + public void setUploadExportDatalake(Boolean uploadExportDatalake){ + this.uploadExportDatalake = uploadExportDatalake; + } + + public void uploadExportDatalake(String multirequestToken){ + setToken("uploadExportDatalake", multirequestToken); + } + + // shopMarkerMetaId: + public Long getShopMarkerMetaId(){ + return this.shopMarkerMetaId; + } + public void setShopMarkerMetaId(Long shopMarkerMetaId){ + this.shopMarkerMetaId = shopMarkerMetaId; + } + + public void shopMarkerMetaId(String multirequestToken){ + setToken("shopMarkerMetaId", multirequestToken); + } + + + public CatalogPartnerConfig() { + super(); + } + + public CatalogPartnerConfig(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + singleMultilingualMode = GsonParser.parseBoolean(jsonObject.get("singleMultilingualMode")); + categoryManagement = GsonParser.parseObject(jsonObject.getAsJsonObject("categoryManagement"), CategoryManagement.class); + epgMultilingualFallbackSupport = GsonParser.parseBoolean(jsonObject.get("epgMultilingualFallbackSupport")); + uploadExportDatalake = GsonParser.parseBoolean(jsonObject.get("uploadExportDatalake")); + shopMarkerMetaId = GsonParser.parseLong(jsonObject.get("shopMarkerMetaId")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaCatalogPartnerConfig"); + kparams.add("singleMultilingualMode", this.singleMultilingualMode); + kparams.add("categoryManagement", this.categoryManagement); + kparams.add("epgMultilingualFallbackSupport", this.epgMultilingualFallbackSupport); + kparams.add("uploadExportDatalake", this.uploadExportDatalake); + kparams.add("shopMarkerMetaId", this.shopMarkerMetaId); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public CatalogPartnerConfig createFromParcel(Parcel source) { + return new CatalogPartnerConfig(source); + } + + @Override + public CatalogPartnerConfig[] newArray(int size) { + return new CatalogPartnerConfig[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.singleMultilingualMode); + dest.writeParcelable(this.categoryManagement, flags); + dest.writeValue(this.epgMultilingualFallbackSupport); + dest.writeValue(this.uploadExportDatalake); + dest.writeValue(this.shopMarkerMetaId); + } + + public CatalogPartnerConfig(Parcel in) { + super(in); + this.singleMultilingualMode = (Boolean)in.readValue(Boolean.class.getClassLoader()); + this.categoryManagement = in.readParcelable(CategoryManagement.class.getClassLoader()); + this.epgMultilingualFallbackSupport = (Boolean)in.readValue(Boolean.class.getClassLoader()); + this.uploadExportDatalake = (Boolean)in.readValue(Boolean.class.getClassLoader()); + this.shopMarkerMetaId = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/CategoryItem.java b/KalturaClient/src/main/java/com/kaltura/client/types/CategoryItem.java new file mode 100644 index 000000000..0cc0edd01 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/CategoryItem.java @@ -0,0 +1,385 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Category details + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(CategoryItem.Tokenizer.class) +public class CategoryItem extends OTTObjectSupportNullable { + + public interface Tokenizer extends OTTObjectSupportNullable.Tokenizer { + String id(); + String name(); + RequestBuilder.ListTokenizer multilingualName(); + String parentId(); + String childrenIds(); + RequestBuilder.ListTokenizer unifiedChannels(); + RequestBuilder.MapTokenizer dynamicData(); + String updateDate(); + String isActive(); + String startDateInSeconds(); + String endDateInSeconds(); + String type(); + String versionId(); + String virtualAssetId(); + String referenceId(); + } + + /** + * Unique identifier for the category + */ + private Long id; + /** + * Category name + */ + private String name; + /** + * Category name + */ + private List multilingualName; + /** + * Category parent identifier + */ + private Long parentId; + /** + * Comma separated list of child categories&#39; Ids. + */ + private String childrenIds; + /** + * List of unified Channels. + */ + private List unifiedChannels; + /** + * Dynamic data + */ + private Map dynamicData; + /** + * Specifies when was the Category last updated. Date and time represented as + epoch. + */ + private Long updateDate; + /** + * Category active status + */ + private Boolean isActive; + /** + * Start date in seconds + */ + private Long startDateInSeconds; + /** + * End date in seconds + */ + private Long endDateInSeconds; + /** + * Category type + */ + private String type; + /** + * Unique identifier for the category version + */ + private Long versionId; + /** + * Virtual asset id + */ + private Long virtualAssetId; + /** + * Category reference identifier + */ + private String referenceId; + + // id: + public Long getId(){ + return this.id; + } + // name: + public String getName(){ + return this.name; + } + // multilingualName: + public List getMultilingualName(){ + return this.multilingualName; + } + public void setMultilingualName(List multilingualName){ + this.multilingualName = multilingualName; + } + + // parentId: + public Long getParentId(){ + return this.parentId; + } + // childrenIds: + public String getChildrenIds(){ + return this.childrenIds; + } + public void setChildrenIds(String childrenIds){ + this.childrenIds = childrenIds; + } + + public void childrenIds(String multirequestToken){ + setToken("childrenIds", multirequestToken); + } + + // unifiedChannels: + public List getUnifiedChannels(){ + return this.unifiedChannels; + } + public void setUnifiedChannels(List unifiedChannels){ + this.unifiedChannels = unifiedChannels; + } + + // dynamicData: + public Map getDynamicData(){ + return this.dynamicData; + } + public void setDynamicData(Map dynamicData){ + this.dynamicData = dynamicData; + } + + // updateDate: + public Long getUpdateDate(){ + return this.updateDate; + } + // isActive: + public Boolean getIsActive(){ + return this.isActive; + } + public void setIsActive(Boolean isActive){ + this.isActive = isActive; + } + + public void isActive(String multirequestToken){ + setToken("isActive", multirequestToken); + } + + // startDateInSeconds: + public Long getStartDateInSeconds(){ + return this.startDateInSeconds; + } + public void setStartDateInSeconds(Long startDateInSeconds){ + this.startDateInSeconds = startDateInSeconds; + } + + public void startDateInSeconds(String multirequestToken){ + setToken("startDateInSeconds", multirequestToken); + } + + // endDateInSeconds: + public Long getEndDateInSeconds(){ + return this.endDateInSeconds; + } + public void setEndDateInSeconds(Long endDateInSeconds){ + this.endDateInSeconds = endDateInSeconds; + } + + public void endDateInSeconds(String multirequestToken){ + setToken("endDateInSeconds", multirequestToken); + } + + // type: + public String getType(){ + return this.type; + } + public void setType(String type){ + this.type = type; + } + + public void type(String multirequestToken){ + setToken("type", multirequestToken); + } + + // versionId: + public Long getVersionId(){ + return this.versionId; + } + // virtualAssetId: + public Long getVirtualAssetId(){ + return this.virtualAssetId; + } + // referenceId: + public String getReferenceId(){ + return this.referenceId; + } + public void setReferenceId(String referenceId){ + this.referenceId = referenceId; + } + + public void referenceId(String multirequestToken){ + setToken("referenceId", multirequestToken); + } + + + public CategoryItem() { + super(); + } + + public CategoryItem(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + id = GsonParser.parseLong(jsonObject.get("id")); + name = GsonParser.parseString(jsonObject.get("name")); + multilingualName = GsonParser.parseArray(jsonObject.getAsJsonArray("multilingualName"), TranslationToken.class); + parentId = GsonParser.parseLong(jsonObject.get("parentId")); + childrenIds = GsonParser.parseString(jsonObject.get("childrenIds")); + unifiedChannels = GsonParser.parseArray(jsonObject.getAsJsonArray("unifiedChannels"), UnifiedChannel.class); + dynamicData = GsonParser.parseMap(jsonObject.getAsJsonObject("dynamicData"), StringValue.class); + updateDate = GsonParser.parseLong(jsonObject.get("updateDate")); + isActive = GsonParser.parseBoolean(jsonObject.get("isActive")); + startDateInSeconds = GsonParser.parseLong(jsonObject.get("startDateInSeconds")); + endDateInSeconds = GsonParser.parseLong(jsonObject.get("endDateInSeconds")); + type = GsonParser.parseString(jsonObject.get("type")); + versionId = GsonParser.parseLong(jsonObject.get("versionId")); + virtualAssetId = GsonParser.parseLong(jsonObject.get("virtualAssetId")); + referenceId = GsonParser.parseString(jsonObject.get("referenceId")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaCategoryItem"); + kparams.add("multilingualName", this.multilingualName); + kparams.add("childrenIds", this.childrenIds); + kparams.add("unifiedChannels", this.unifiedChannels); + kparams.add("dynamicData", this.dynamicData); + kparams.add("isActive", this.isActive); + kparams.add("startDateInSeconds", this.startDateInSeconds); + kparams.add("endDateInSeconds", this.endDateInSeconds); + kparams.add("type", this.type); + kparams.add("referenceId", this.referenceId); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public CategoryItem createFromParcel(Parcel source) { + return new CategoryItem(source); + } + + @Override + public CategoryItem[] newArray(int size) { + return new CategoryItem[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.id); + dest.writeString(this.name); + if(this.multilingualName != null) { + dest.writeInt(this.multilingualName.size()); + dest.writeList(this.multilingualName); + } else { + dest.writeInt(-1); + } + dest.writeValue(this.parentId); + dest.writeString(this.childrenIds); + if(this.unifiedChannels != null) { + dest.writeInt(this.unifiedChannels.size()); + dest.writeList(this.unifiedChannels); + } else { + dest.writeInt(-1); + } + if(this.dynamicData != null) { + dest.writeInt(this.dynamicData.size()); + for (Map.Entry entry : this.dynamicData.entrySet()) { + dest.writeString(entry.getKey()); + dest.writeParcelable(entry.getValue(), flags); + } + } else { + dest.writeInt(-1); + } + dest.writeValue(this.updateDate); + dest.writeValue(this.isActive); + dest.writeValue(this.startDateInSeconds); + dest.writeValue(this.endDateInSeconds); + dest.writeString(this.type); + dest.writeValue(this.versionId); + dest.writeValue(this.virtualAssetId); + dest.writeString(this.referenceId); + } + + public CategoryItem(Parcel in) { + super(in); + this.id = (Long)in.readValue(Long.class.getClassLoader()); + this.name = in.readString(); + int multilingualNameSize = in.readInt(); + if( multilingualNameSize > -1) { + this.multilingualName = new ArrayList<>(); + in.readList(this.multilingualName, TranslationToken.class.getClassLoader()); + } + this.parentId = (Long)in.readValue(Long.class.getClassLoader()); + this.childrenIds = in.readString(); + int unifiedChannelsSize = in.readInt(); + if( unifiedChannelsSize > -1) { + this.unifiedChannels = new ArrayList<>(); + in.readList(this.unifiedChannels, UnifiedChannel.class.getClassLoader()); + } + int dynamicDataSize = in.readInt(); + if( dynamicDataSize > -1) { + this.dynamicData = new HashMap<>(); + for (int i = 0; i < dynamicDataSize; i++) { + String key = in.readString(); + StringValue value = in.readParcelable(StringValue.class.getClassLoader()); + this.dynamicData.put(key, value); + } + } + this.updateDate = (Long)in.readValue(Long.class.getClassLoader()); + this.isActive = (Boolean)in.readValue(Boolean.class.getClassLoader()); + this.startDateInSeconds = (Long)in.readValue(Long.class.getClassLoader()); + this.endDateInSeconds = (Long)in.readValue(Long.class.getClassLoader()); + this.type = in.readString(); + this.versionId = (Long)in.readValue(Long.class.getClassLoader()); + this.virtualAssetId = (Long)in.readValue(Long.class.getClassLoader()); + this.referenceId = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/CategoryItemAncestorsFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/CategoryItemAncestorsFilter.java new file mode 100644 index 000000000..e52fc5315 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/CategoryItemAncestorsFilter.java @@ -0,0 +1,114 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(CategoryItemAncestorsFilter.Tokenizer.class) +public class CategoryItemAncestorsFilter extends CategoryItemFilter { + + public interface Tokenizer extends CategoryItemFilter.Tokenizer { + String id(); + } + + /** + * KSQL expression + */ + private Long id; + + // id: + public Long getId(){ + return this.id; + } + public void setId(Long id){ + this.id = id; + } + + public void id(String multirequestToken){ + setToken("id", multirequestToken); + } + + + public CategoryItemAncestorsFilter() { + super(); + } + + public CategoryItemAncestorsFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + id = GsonParser.parseLong(jsonObject.get("id")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaCategoryItemAncestorsFilter"); + kparams.add("id", this.id); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public CategoryItemAncestorsFilter createFromParcel(Parcel source) { + return new CategoryItemAncestorsFilter(source); + } + + @Override + public CategoryItemAncestorsFilter[] newArray(int size) { + return new CategoryItemAncestorsFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.id); + } + + public CategoryItemAncestorsFilter(Parcel in) { + super(in); + this.id = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/CategoryItemByIdInFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/CategoryItemByIdInFilter.java new file mode 100644 index 000000000..660ba6ce2 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/CategoryItemByIdInFilter.java @@ -0,0 +1,114 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(CategoryItemByIdInFilter.Tokenizer.class) +public class CategoryItemByIdInFilter extends CategoryItemFilter { + + public interface Tokenizer extends CategoryItemFilter.Tokenizer { + String idIn(); + } + + /** + * Category item identifiers + */ + private String idIn; + + // idIn: + public String getIdIn(){ + return this.idIn; + } + public void setIdIn(String idIn){ + this.idIn = idIn; + } + + public void idIn(String multirequestToken){ + setToken("idIn", multirequestToken); + } + + + public CategoryItemByIdInFilter() { + super(); + } + + public CategoryItemByIdInFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + idIn = GsonParser.parseString(jsonObject.get("idIn")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaCategoryItemByIdInFilter"); + kparams.add("idIn", this.idIn); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public CategoryItemByIdInFilter createFromParcel(Parcel source) { + return new CategoryItemByIdInFilter(source); + } + + @Override + public CategoryItemByIdInFilter[] newArray(int size) { + return new CategoryItemByIdInFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.idIn); + } + + public CategoryItemByIdInFilter(Parcel in) { + super(in); + this.idIn = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/CategoryItemFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/CategoryItemFilter.java new file mode 100644 index 000000000..d98f50d8f --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/CategoryItemFilter.java @@ -0,0 +1,82 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(CategoryItemFilter.Tokenizer.class) +public class CategoryItemFilter extends Filter { + + public interface Tokenizer extends Filter.Tokenizer { + } + + + + public CategoryItemFilter() { + super(); + } + + public CategoryItemFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaCategoryItemFilter"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public CategoryItemFilter createFromParcel(Parcel source) { + return new CategoryItemFilter(source); + } + + @Override + public CategoryItemFilter[] newArray(int size) { + return new CategoryItemFilter[size]; + } + }; + + public CategoryItemFilter(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/CategoryItemSearchFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/CategoryItemSearchFilter.java new file mode 100644 index 000000000..f2bf65fa9 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/CategoryItemSearchFilter.java @@ -0,0 +1,156 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(CategoryItemSearchFilter.Tokenizer.class) +public class CategoryItemSearchFilter extends CategoryItemFilter { + + public interface Tokenizer extends CategoryItemFilter.Tokenizer { + String kSql(); + String rootOnly(); + String typeEqual(); + } + + /** + * KSQL expression + */ + private String kSql; + /** + * Root only + */ + private Boolean rootOnly; + /** + * Indicates which category to return by their type. + */ + private String typeEqual; + + // kSql: + public String getKSql(){ + return this.kSql; + } + public void setKSql(String kSql){ + this.kSql = kSql; + } + + public void kSql(String multirequestToken){ + setToken("kSql", multirequestToken); + } + + // rootOnly: + public Boolean getRootOnly(){ + return this.rootOnly; + } + public void setRootOnly(Boolean rootOnly){ + this.rootOnly = rootOnly; + } + + public void rootOnly(String multirequestToken){ + setToken("rootOnly", multirequestToken); + } + + // typeEqual: + public String getTypeEqual(){ + return this.typeEqual; + } + public void setTypeEqual(String typeEqual){ + this.typeEqual = typeEqual; + } + + public void typeEqual(String multirequestToken){ + setToken("typeEqual", multirequestToken); + } + + + public CategoryItemSearchFilter() { + super(); + } + + public CategoryItemSearchFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + kSql = GsonParser.parseString(jsonObject.get("kSql")); + rootOnly = GsonParser.parseBoolean(jsonObject.get("rootOnly")); + typeEqual = GsonParser.parseString(jsonObject.get("typeEqual")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaCategoryItemSearchFilter"); + kparams.add("kSql", this.kSql); + kparams.add("rootOnly", this.rootOnly); + kparams.add("typeEqual", this.typeEqual); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public CategoryItemSearchFilter createFromParcel(Parcel source) { + return new CategoryItemSearchFilter(source); + } + + @Override + public CategoryItemSearchFilter[] newArray(int size) { + return new CategoryItemSearchFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.kSql); + dest.writeValue(this.rootOnly); + dest.writeString(this.typeEqual); + } + + public CategoryItemSearchFilter(Parcel in) { + super(in); + this.kSql = in.readString(); + this.rootOnly = (Boolean)in.readValue(Boolean.class.getClassLoader()); + this.typeEqual = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/CategoryManagement.java b/KalturaClient/src/main/java/com/kaltura/client/types/CategoryManagement.java new file mode 100644 index 000000000..0b102c5eb --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/CategoryManagement.java @@ -0,0 +1,154 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.HashMap; +import java.util.Map; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Category management + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(CategoryManagement.Tokenizer.class) +public class CategoryManagement extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String defaultTreeId(); + RequestBuilder.MapTokenizer deviceFamilyToCategoryTree(); + } + + /** + * Default CategoryVersion tree id + */ + private Long defaultTreeId; + /** + * Device family to Category TreeId mapping + */ + private Map deviceFamilyToCategoryTree; + + // defaultTreeId: + public Long getDefaultTreeId(){ + return this.defaultTreeId; + } + public void setDefaultTreeId(Long defaultTreeId){ + this.defaultTreeId = defaultTreeId; + } + + public void defaultTreeId(String multirequestToken){ + setToken("defaultTreeId", multirequestToken); + } + + // deviceFamilyToCategoryTree: + public Map getDeviceFamilyToCategoryTree(){ + return this.deviceFamilyToCategoryTree; + } + public void setDeviceFamilyToCategoryTree(Map deviceFamilyToCategoryTree){ + this.deviceFamilyToCategoryTree = deviceFamilyToCategoryTree; + } + + + public CategoryManagement() { + super(); + } + + public CategoryManagement(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + defaultTreeId = GsonParser.parseLong(jsonObject.get("defaultTreeId")); + deviceFamilyToCategoryTree = GsonParser.parseMap(jsonObject.getAsJsonObject("deviceFamilyToCategoryTree"), LongValue.class); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaCategoryManagement"); + kparams.add("defaultTreeId", this.defaultTreeId); + kparams.add("deviceFamilyToCategoryTree", this.deviceFamilyToCategoryTree); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public CategoryManagement createFromParcel(Parcel source) { + return new CategoryManagement(source); + } + + @Override + public CategoryManagement[] newArray(int size) { + return new CategoryManagement[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.defaultTreeId); + if(this.deviceFamilyToCategoryTree != null) { + dest.writeInt(this.deviceFamilyToCategoryTree.size()); + for (Map.Entry entry : this.deviceFamilyToCategoryTree.entrySet()) { + dest.writeString(entry.getKey()); + dest.writeParcelable(entry.getValue(), flags); + } + } else { + dest.writeInt(-1); + } + } + + public CategoryManagement(Parcel in) { + super(in); + this.defaultTreeId = (Long)in.readValue(Long.class.getClassLoader()); + int deviceFamilyToCategoryTreeSize = in.readInt(); + if( deviceFamilyToCategoryTreeSize > -1) { + this.deviceFamilyToCategoryTree = new HashMap<>(); + for (int i = 0; i < deviceFamilyToCategoryTreeSize; i++) { + String key = in.readString(); + LongValue value = in.readParcelable(LongValue.class.getClassLoader()); + this.deviceFamilyToCategoryTree.put(key, value); + } + } + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/CategoryTree.java b/KalturaClient/src/main/java/com/kaltura/client/types/CategoryTree.java new file mode 100644 index 000000000..c49d3df03 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/CategoryTree.java @@ -0,0 +1,378 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Category details + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(CategoryTree.Tokenizer.class) +public class CategoryTree extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String id(); + String name(); + RequestBuilder.ListTokenizer multilingualName(); + RequestBuilder.ListTokenizer children(); + RequestBuilder.ListTokenizer unifiedChannels(); + RequestBuilder.MapTokenizer dynamicData(); + RequestBuilder.ListTokenizer images(); + String isActive(); + String startDateInSeconds(); + String endDateInSeconds(); + String type(); + String versionId(); + String virtualAssetId(); + String referenceId(); + } + + /** + * Unique identifier for the category item + */ + private Long id; + /** + * Category name + */ + private String name; + /** + * Category name + */ + private List multilingualName; + /** + * List of category tree + */ + private List children; + /** + * List of unified Channels. + */ + private List unifiedChannels; + /** + * Dynamic data + */ + private Map dynamicData; + /** + * Category images + */ + private List images; + /** + * Category active status + */ + private Boolean isActive; + /** + * Start date in seconds + */ + private Long startDateInSeconds; + /** + * End date in seconds + */ + private Long endDateInSeconds; + /** + * Category type + */ + private String type; + /** + * Unique identifier for the category version + */ + private Long versionId; + /** + * Virtual asset id + */ + private Long virtualAssetId; + /** + * Category reference identifier + */ + private String referenceId; + + // id: + public Long getId(){ + return this.id; + } + // name: + public String getName(){ + return this.name; + } + // multilingualName: + public List getMultilingualName(){ + return this.multilingualName; + } + public void setMultilingualName(List multilingualName){ + this.multilingualName = multilingualName; + } + + // children: + public List getChildren(){ + return this.children; + } + // unifiedChannels: + public List getUnifiedChannels(){ + return this.unifiedChannels; + } + public void setUnifiedChannels(List unifiedChannels){ + this.unifiedChannels = unifiedChannels; + } + + // dynamicData: + public Map getDynamicData(){ + return this.dynamicData; + } + public void setDynamicData(Map dynamicData){ + this.dynamicData = dynamicData; + } + + // images: + public List getImages(){ + return this.images; + } + public void setImages(List images){ + this.images = images; + } + + // isActive: + public Boolean getIsActive(){ + return this.isActive; + } + public void setIsActive(Boolean isActive){ + this.isActive = isActive; + } + + public void isActive(String multirequestToken){ + setToken("isActive", multirequestToken); + } + + // startDateInSeconds: + public Long getStartDateInSeconds(){ + return this.startDateInSeconds; + } + public void setStartDateInSeconds(Long startDateInSeconds){ + this.startDateInSeconds = startDateInSeconds; + } + + public void startDateInSeconds(String multirequestToken){ + setToken("startDateInSeconds", multirequestToken); + } + + // endDateInSeconds: + public Long getEndDateInSeconds(){ + return this.endDateInSeconds; + } + public void setEndDateInSeconds(Long endDateInSeconds){ + this.endDateInSeconds = endDateInSeconds; + } + + public void endDateInSeconds(String multirequestToken){ + setToken("endDateInSeconds", multirequestToken); + } + + // type: + public String getType(){ + return this.type; + } + public void setType(String type){ + this.type = type; + } + + public void type(String multirequestToken){ + setToken("type", multirequestToken); + } + + // versionId: + public Long getVersionId(){ + return this.versionId; + } + // virtualAssetId: + public Long getVirtualAssetId(){ + return this.virtualAssetId; + } + // referenceId: + public String getReferenceId(){ + return this.referenceId; + } + + public CategoryTree() { + super(); + } + + public CategoryTree(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + id = GsonParser.parseLong(jsonObject.get("id")); + name = GsonParser.parseString(jsonObject.get("name")); + multilingualName = GsonParser.parseArray(jsonObject.getAsJsonArray("multilingualName"), TranslationToken.class); + children = GsonParser.parseArray(jsonObject.getAsJsonArray("children"), CategoryTree.class); + unifiedChannels = GsonParser.parseArray(jsonObject.getAsJsonArray("unifiedChannels"), UnifiedChannelInfo.class); + dynamicData = GsonParser.parseMap(jsonObject.getAsJsonObject("dynamicData"), StringValue.class); + images = GsonParser.parseArray(jsonObject.getAsJsonArray("images"), Image.class); + isActive = GsonParser.parseBoolean(jsonObject.get("isActive")); + startDateInSeconds = GsonParser.parseLong(jsonObject.get("startDateInSeconds")); + endDateInSeconds = GsonParser.parseLong(jsonObject.get("endDateInSeconds")); + type = GsonParser.parseString(jsonObject.get("type")); + versionId = GsonParser.parseLong(jsonObject.get("versionId")); + virtualAssetId = GsonParser.parseLong(jsonObject.get("virtualAssetId")); + referenceId = GsonParser.parseString(jsonObject.get("referenceId")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaCategoryTree"); + kparams.add("multilingualName", this.multilingualName); + kparams.add("unifiedChannels", this.unifiedChannels); + kparams.add("dynamicData", this.dynamicData); + kparams.add("images", this.images); + kparams.add("isActive", this.isActive); + kparams.add("startDateInSeconds", this.startDateInSeconds); + kparams.add("endDateInSeconds", this.endDateInSeconds); + kparams.add("type", this.type); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public CategoryTree createFromParcel(Parcel source) { + return new CategoryTree(source); + } + + @Override + public CategoryTree[] newArray(int size) { + return new CategoryTree[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.id); + dest.writeString(this.name); + if(this.multilingualName != null) { + dest.writeInt(this.multilingualName.size()); + dest.writeList(this.multilingualName); + } else { + dest.writeInt(-1); + } + if(this.children != null) { + dest.writeInt(this.children.size()); + dest.writeList(this.children); + } else { + dest.writeInt(-1); + } + if(this.unifiedChannels != null) { + dest.writeInt(this.unifiedChannels.size()); + dest.writeList(this.unifiedChannels); + } else { + dest.writeInt(-1); + } + if(this.dynamicData != null) { + dest.writeInt(this.dynamicData.size()); + for (Map.Entry entry : this.dynamicData.entrySet()) { + dest.writeString(entry.getKey()); + dest.writeParcelable(entry.getValue(), flags); + } + } else { + dest.writeInt(-1); + } + if(this.images != null) { + dest.writeInt(this.images.size()); + dest.writeList(this.images); + } else { + dest.writeInt(-1); + } + dest.writeValue(this.isActive); + dest.writeValue(this.startDateInSeconds); + dest.writeValue(this.endDateInSeconds); + dest.writeString(this.type); + dest.writeValue(this.versionId); + dest.writeValue(this.virtualAssetId); + dest.writeString(this.referenceId); + } + + public CategoryTree(Parcel in) { + super(in); + this.id = (Long)in.readValue(Long.class.getClassLoader()); + this.name = in.readString(); + int multilingualNameSize = in.readInt(); + if( multilingualNameSize > -1) { + this.multilingualName = new ArrayList<>(); + in.readList(this.multilingualName, TranslationToken.class.getClassLoader()); + } + int childrenSize = in.readInt(); + if( childrenSize > -1) { + this.children = new ArrayList<>(); + in.readList(this.children, CategoryTree.class.getClassLoader()); + } + int unifiedChannelsSize = in.readInt(); + if( unifiedChannelsSize > -1) { + this.unifiedChannels = new ArrayList<>(); + in.readList(this.unifiedChannels, UnifiedChannelInfo.class.getClassLoader()); + } + int dynamicDataSize = in.readInt(); + if( dynamicDataSize > -1) { + this.dynamicData = new HashMap<>(); + for (int i = 0; i < dynamicDataSize; i++) { + String key = in.readString(); + StringValue value = in.readParcelable(StringValue.class.getClassLoader()); + this.dynamicData.put(key, value); + } + } + int imagesSize = in.readInt(); + if( imagesSize > -1) { + this.images = new ArrayList<>(); + in.readList(this.images, Image.class.getClassLoader()); + } + this.isActive = (Boolean)in.readValue(Boolean.class.getClassLoader()); + this.startDateInSeconds = (Long)in.readValue(Long.class.getClassLoader()); + this.endDateInSeconds = (Long)in.readValue(Long.class.getClassLoader()); + this.type = in.readString(); + this.versionId = (Long)in.readValue(Long.class.getClassLoader()); + this.virtualAssetId = (Long)in.readValue(Long.class.getClassLoader()); + this.referenceId = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/CategoryVersion.java b/KalturaClient/src/main/java/com/kaltura/client/types/CategoryVersion.java new file mode 100644 index 000000000..d451ad3ac --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/CategoryVersion.java @@ -0,0 +1,257 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.CategoryVersionState; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Category details + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(CategoryVersion.Tokenizer.class) +public class CategoryVersion extends OTTObjectSupportNullable { + + public interface Tokenizer extends OTTObjectSupportNullable.Tokenizer { + String id(); + String name(); + String treeId(); + String state(); + String baseVersionId(); + String categoryRootId(); + String defaultDate(); + String updaterId(); + String comment(); + String createDate(); + String updateDate(); + } + + /** + * Unique identifier for the category version + */ + private Long id; + /** + * Category version name + */ + private String name; + /** + * Category tree identifier + */ + private Long treeId; + /** + * The category version state + */ + private CategoryVersionState state; + /** + * The version id that this version was created from + */ + private Long baseVersionId; + /** + * The root of category item id that was created for this version + */ + private Long categoryRootId; + /** + * The date that this version became default represented as epoch. + */ + private Long defaultDate; + /** + * Last updater user id. + */ + private Long updaterId; + /** + * Comment. + */ + private String comment; + /** + * The date that this version was created represented as epoch. + */ + private Long createDate; + /** + * The date that this version was last updated represented as epoch. + */ + private Long updateDate; + + // id: + public Long getId(){ + return this.id; + } + // name: + public String getName(){ + return this.name; + } + public void setName(String name){ + this.name = name; + } + + public void name(String multirequestToken){ + setToken("name", multirequestToken); + } + + // treeId: + public Long getTreeId(){ + return this.treeId; + } + // state: + public CategoryVersionState getState(){ + return this.state; + } + // baseVersionId: + public Long getBaseVersionId(){ + return this.baseVersionId; + } + public void setBaseVersionId(Long baseVersionId){ + this.baseVersionId = baseVersionId; + } + + public void baseVersionId(String multirequestToken){ + setToken("baseVersionId", multirequestToken); + } + + // categoryRootId: + public Long getCategoryRootId(){ + return this.categoryRootId; + } + // defaultDate: + public Long getDefaultDate(){ + return this.defaultDate; + } + // updaterId: + public Long getUpdaterId(){ + return this.updaterId; + } + // comment: + public String getComment(){ + return this.comment; + } + public void setComment(String comment){ + this.comment = comment; + } + + public void comment(String multirequestToken){ + setToken("comment", multirequestToken); + } + + // createDate: + public Long getCreateDate(){ + return this.createDate; + } + // updateDate: + public Long getUpdateDate(){ + return this.updateDate; + } + + public CategoryVersion() { + super(); + } + + public CategoryVersion(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + id = GsonParser.parseLong(jsonObject.get("id")); + name = GsonParser.parseString(jsonObject.get("name")); + treeId = GsonParser.parseLong(jsonObject.get("treeId")); + state = CategoryVersionState.get(GsonParser.parseString(jsonObject.get("state"))); + baseVersionId = GsonParser.parseLong(jsonObject.get("baseVersionId")); + categoryRootId = GsonParser.parseLong(jsonObject.get("categoryRootId")); + defaultDate = GsonParser.parseLong(jsonObject.get("defaultDate")); + updaterId = GsonParser.parseLong(jsonObject.get("updaterId")); + comment = GsonParser.parseString(jsonObject.get("comment")); + createDate = GsonParser.parseLong(jsonObject.get("createDate")); + updateDate = GsonParser.parseLong(jsonObject.get("updateDate")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaCategoryVersion"); + kparams.add("name", this.name); + kparams.add("baseVersionId", this.baseVersionId); + kparams.add("comment", this.comment); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public CategoryVersion createFromParcel(Parcel source) { + return new CategoryVersion(source); + } + + @Override + public CategoryVersion[] newArray(int size) { + return new CategoryVersion[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.id); + dest.writeString(this.name); + dest.writeValue(this.treeId); + dest.writeInt(this.state == null ? -1 : this.state.ordinal()); + dest.writeValue(this.baseVersionId); + dest.writeValue(this.categoryRootId); + dest.writeValue(this.defaultDate); + dest.writeValue(this.updaterId); + dest.writeString(this.comment); + dest.writeValue(this.createDate); + dest.writeValue(this.updateDate); + } + + public CategoryVersion(Parcel in) { + super(in); + this.id = (Long)in.readValue(Long.class.getClassLoader()); + this.name = in.readString(); + this.treeId = (Long)in.readValue(Long.class.getClassLoader()); + int tmpState = in.readInt(); + this.state = tmpState == -1 ? null : CategoryVersionState.values()[tmpState]; + this.baseVersionId = (Long)in.readValue(Long.class.getClassLoader()); + this.categoryRootId = (Long)in.readValue(Long.class.getClassLoader()); + this.defaultDate = (Long)in.readValue(Long.class.getClassLoader()); + this.updaterId = (Long)in.readValue(Long.class.getClassLoader()); + this.comment = in.readString(); + this.createDate = (Long)in.readValue(Long.class.getClassLoader()); + this.updateDate = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/CategoryVersionFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/CategoryVersionFilter.java new file mode 100644 index 000000000..4e0e0ef52 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/CategoryVersionFilter.java @@ -0,0 +1,82 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(CategoryVersionFilter.Tokenizer.class) +public class CategoryVersionFilter extends Filter { + + public interface Tokenizer extends Filter.Tokenizer { + } + + + + public CategoryVersionFilter() { + super(); + } + + public CategoryVersionFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaCategoryVersionFilter"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public CategoryVersionFilter createFromParcel(Parcel source) { + return new CategoryVersionFilter(source); + } + + @Override + public CategoryVersionFilter[] newArray(int size) { + return new CategoryVersionFilter[size]; + } + }; + + public CategoryVersionFilter(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/CategoryVersionFilterByTree.java b/KalturaClient/src/main/java/com/kaltura/client/types/CategoryVersionFilterByTree.java new file mode 100644 index 000000000..1605ae6c0 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/CategoryVersionFilterByTree.java @@ -0,0 +1,137 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.CategoryVersionState; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(CategoryVersionFilterByTree.Tokenizer.class) +public class CategoryVersionFilterByTree extends CategoryVersionFilter { + + public interface Tokenizer extends CategoryVersionFilter.Tokenizer { + String treeIdEqual(); + String stateEqual(); + } + + /** + * Category version tree identifier + */ + private Long treeIdEqual; + /** + * Category version state + */ + private CategoryVersionState stateEqual; + + // treeIdEqual: + public Long getTreeIdEqual(){ + return this.treeIdEqual; + } + public void setTreeIdEqual(Long treeIdEqual){ + this.treeIdEqual = treeIdEqual; + } + + public void treeIdEqual(String multirequestToken){ + setToken("treeIdEqual", multirequestToken); + } + + // stateEqual: + public CategoryVersionState getStateEqual(){ + return this.stateEqual; + } + public void setStateEqual(CategoryVersionState stateEqual){ + this.stateEqual = stateEqual; + } + + public void stateEqual(String multirequestToken){ + setToken("stateEqual", multirequestToken); + } + + + public CategoryVersionFilterByTree() { + super(); + } + + public CategoryVersionFilterByTree(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + treeIdEqual = GsonParser.parseLong(jsonObject.get("treeIdEqual")); + stateEqual = CategoryVersionState.get(GsonParser.parseString(jsonObject.get("stateEqual"))); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaCategoryVersionFilterByTree"); + kparams.add("treeIdEqual", this.treeIdEqual); + kparams.add("stateEqual", this.stateEqual); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public CategoryVersionFilterByTree createFromParcel(Parcel source) { + return new CategoryVersionFilterByTree(source); + } + + @Override + public CategoryVersionFilterByTree[] newArray(int size) { + return new CategoryVersionFilterByTree[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.treeIdEqual); + dest.writeInt(this.stateEqual == null ? -1 : this.stateEqual.ordinal()); + } + + public CategoryVersionFilterByTree(Parcel in) { + super(in); + this.treeIdEqual = (Long)in.readValue(Long.class.getClassLoader()); + int tmpStateEqual = in.readInt(); + this.stateEqual = tmpStateEqual == -1 ? null : CategoryVersionState.values()[tmpStateEqual]; + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/Channel.java b/KalturaClient/src/main/java/com/kaltura/client/types/Channel.java new file mode 100644 index 000000000..3e6368f92 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/Channel.java @@ -0,0 +1,417 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ChannelOrder; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Channel details + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(Channel.Tokenizer.class) +public class Channel extends BaseChannel { + + public interface Tokenizer extends BaseChannel.Tokenizer { + String name(); + RequestBuilder.ListTokenizer multilingualName(); + String oldName(); + String systemName(); + String description(); + RequestBuilder.ListTokenizer multilingualDescription(); + String oldDescription(); + String isActive(); + ChannelOrder.Tokenizer orderBy(); + RequestBuilder.ListTokenizer orderingParametersEqual(); + String createDate(); + String updateDate(); + String supportSegmentBasedOrdering(); + String assetUserRuleId(); + RequestBuilder.MapTokenizer metaData(); + String virtualAssetId(); + } + + /** + * Channel name + */ + private String name; + /** + * Channel name + */ + private List multilingualName; + /** + * Channel name + */ + private String oldName; + /** + * Channel system name + */ + private String systemName; + /** + * Cannel description + */ + private String description; + /** + * Cannel description + */ + private List multilingualDescription; + /** + * Cannel description + */ + private String oldDescription; + /** + * active status + */ + private Boolean isActive; + /** + * Channel order by + */ + private ChannelOrder orderBy; + /** + * Parameters for asset list sorting. + */ + private List orderingParametersEqual; + /** + * Specifies when was the Channel was created. Date and time represented as epoch. + */ + private Long createDate; + /** + * Specifies when was the Channel last updated. Date and time represented as epoch. + */ + private Long updateDate; + /** + * Specifies whether the assets in this channel will be ordered based on their + match to the user&#39;s segments (see BEO-5524) + */ + private Boolean supportSegmentBasedOrdering; + /** + * Asset user rule identifier + */ + private Long assetUserRuleId; + /** + * key/value map field for extra data + */ + private Map metaData; + /** + * Virtual asset id + */ + private Long virtualAssetId; + + // name: + public String getName(){ + return this.name; + } + // multilingualName: + public List getMultilingualName(){ + return this.multilingualName; + } + public void setMultilingualName(List multilingualName){ + this.multilingualName = multilingualName; + } + + // oldName: + public String getOldName(){ + return this.oldName; + } + public void setOldName(String oldName){ + this.oldName = oldName; + } + + public void oldName(String multirequestToken){ + setToken("oldName", multirequestToken); + } + + // systemName: + public String getSystemName(){ + return this.systemName; + } + public void setSystemName(String systemName){ + this.systemName = systemName; + } + + public void systemName(String multirequestToken){ + setToken("systemName", multirequestToken); + } + + // description: + public String getDescription(){ + return this.description; + } + // multilingualDescription: + public List getMultilingualDescription(){ + return this.multilingualDescription; + } + public void setMultilingualDescription(List multilingualDescription){ + this.multilingualDescription = multilingualDescription; + } + + // oldDescription: + public String getOldDescription(){ + return this.oldDescription; + } + public void setOldDescription(String oldDescription){ + this.oldDescription = oldDescription; + } + + public void oldDescription(String multirequestToken){ + setToken("oldDescription", multirequestToken); + } + + // isActive: + public Boolean getIsActive(){ + return this.isActive; + } + public void setIsActive(Boolean isActive){ + this.isActive = isActive; + } + + public void isActive(String multirequestToken){ + setToken("isActive", multirequestToken); + } + + // orderBy: + public ChannelOrder getOrderBy(){ + return this.orderBy; + } + public void setOrderBy(ChannelOrder orderBy){ + this.orderBy = orderBy; + } + + // orderingParametersEqual: + public List getOrderingParametersEqual(){ + return this.orderingParametersEqual; + } + public void setOrderingParametersEqual(List orderingParametersEqual){ + this.orderingParametersEqual = orderingParametersEqual; + } + + // createDate: + public Long getCreateDate(){ + return this.createDate; + } + // updateDate: + public Long getUpdateDate(){ + return this.updateDate; + } + // supportSegmentBasedOrdering: + public Boolean getSupportSegmentBasedOrdering(){ + return this.supportSegmentBasedOrdering; + } + public void setSupportSegmentBasedOrdering(Boolean supportSegmentBasedOrdering){ + this.supportSegmentBasedOrdering = supportSegmentBasedOrdering; + } + + public void supportSegmentBasedOrdering(String multirequestToken){ + setToken("supportSegmentBasedOrdering", multirequestToken); + } + + // assetUserRuleId: + public Long getAssetUserRuleId(){ + return this.assetUserRuleId; + } + public void setAssetUserRuleId(Long assetUserRuleId){ + this.assetUserRuleId = assetUserRuleId; + } + + public void assetUserRuleId(String multirequestToken){ + setToken("assetUserRuleId", multirequestToken); + } + + // metaData: + public Map getMetaData(){ + return this.metaData; + } + public void setMetaData(Map metaData){ + this.metaData = metaData; + } + + // virtualAssetId: + public Long getVirtualAssetId(){ + return this.virtualAssetId; + } + + public Channel() { + super(); + } + + public Channel(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + name = GsonParser.parseString(jsonObject.get("name")); + multilingualName = GsonParser.parseArray(jsonObject.getAsJsonArray("multilingualName"), TranslationToken.class); + oldName = GsonParser.parseString(jsonObject.get("oldName")); + systemName = GsonParser.parseString(jsonObject.get("systemName")); + description = GsonParser.parseString(jsonObject.get("description")); + multilingualDescription = GsonParser.parseArray(jsonObject.getAsJsonArray("multilingualDescription"), TranslationToken.class); + oldDescription = GsonParser.parseString(jsonObject.get("oldDescription")); + isActive = GsonParser.parseBoolean(jsonObject.get("isActive")); + orderBy = GsonParser.parseObject(jsonObject.getAsJsonObject("orderBy"), ChannelOrder.class); + orderingParametersEqual = GsonParser.parseArray(jsonObject.getAsJsonArray("orderingParametersEqual"), BaseChannelOrder.class); + createDate = GsonParser.parseLong(jsonObject.get("createDate")); + updateDate = GsonParser.parseLong(jsonObject.get("updateDate")); + supportSegmentBasedOrdering = GsonParser.parseBoolean(jsonObject.get("supportSegmentBasedOrdering")); + assetUserRuleId = GsonParser.parseLong(jsonObject.get("assetUserRuleId")); + metaData = GsonParser.parseMap(jsonObject.getAsJsonObject("metaData"), StringValue.class); + virtualAssetId = GsonParser.parseLong(jsonObject.get("virtualAssetId")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaChannel"); + kparams.add("multilingualName", this.multilingualName); + kparams.add("oldName", this.oldName); + kparams.add("systemName", this.systemName); + kparams.add("multilingualDescription", this.multilingualDescription); + kparams.add("oldDescription", this.oldDescription); + kparams.add("isActive", this.isActive); + kparams.add("orderBy", this.orderBy); + kparams.add("orderingParametersEqual", this.orderingParametersEqual); + kparams.add("supportSegmentBasedOrdering", this.supportSegmentBasedOrdering); + kparams.add("assetUserRuleId", this.assetUserRuleId); + kparams.add("metaData", this.metaData); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public Channel createFromParcel(Parcel source) { + return new Channel(source); + } + + @Override + public Channel[] newArray(int size) { + return new Channel[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.name); + if(this.multilingualName != null) { + dest.writeInt(this.multilingualName.size()); + dest.writeList(this.multilingualName); + } else { + dest.writeInt(-1); + } + dest.writeString(this.oldName); + dest.writeString(this.systemName); + dest.writeString(this.description); + if(this.multilingualDescription != null) { + dest.writeInt(this.multilingualDescription.size()); + dest.writeList(this.multilingualDescription); + } else { + dest.writeInt(-1); + } + dest.writeString(this.oldDescription); + dest.writeValue(this.isActive); + dest.writeParcelable(this.orderBy, flags); + if(this.orderingParametersEqual != null) { + dest.writeInt(this.orderingParametersEqual.size()); + dest.writeList(this.orderingParametersEqual); + } else { + dest.writeInt(-1); + } + dest.writeValue(this.createDate); + dest.writeValue(this.updateDate); + dest.writeValue(this.supportSegmentBasedOrdering); + dest.writeValue(this.assetUserRuleId); + if(this.metaData != null) { + dest.writeInt(this.metaData.size()); + for (Map.Entry entry : this.metaData.entrySet()) { + dest.writeString(entry.getKey()); + dest.writeParcelable(entry.getValue(), flags); + } + } else { + dest.writeInt(-1); + } + dest.writeValue(this.virtualAssetId); + } + + public Channel(Parcel in) { + super(in); + this.name = in.readString(); + int multilingualNameSize = in.readInt(); + if( multilingualNameSize > -1) { + this.multilingualName = new ArrayList<>(); + in.readList(this.multilingualName, TranslationToken.class.getClassLoader()); + } + this.oldName = in.readString(); + this.systemName = in.readString(); + this.description = in.readString(); + int multilingualDescriptionSize = in.readInt(); + if( multilingualDescriptionSize > -1) { + this.multilingualDescription = new ArrayList<>(); + in.readList(this.multilingualDescription, TranslationToken.class.getClassLoader()); + } + this.oldDescription = in.readString(); + this.isActive = (Boolean)in.readValue(Boolean.class.getClassLoader()); + this.orderBy = in.readParcelable(ChannelOrder.class.getClassLoader()); + int orderingParametersEqualSize = in.readInt(); + if( orderingParametersEqualSize > -1) { + this.orderingParametersEqual = new ArrayList<>(); + in.readList(this.orderingParametersEqual, BaseChannelOrder.class.getClassLoader()); + } + this.createDate = (Long)in.readValue(Long.class.getClassLoader()); + this.updateDate = (Long)in.readValue(Long.class.getClassLoader()); + this.supportSegmentBasedOrdering = (Boolean)in.readValue(Boolean.class.getClassLoader()); + this.assetUserRuleId = (Long)in.readValue(Long.class.getClassLoader()); + int metaDataSize = in.readInt(); + if( metaDataSize > -1) { + this.metaData = new HashMap<>(); + for (int i = 0; i < metaDataSize; i++) { + String key = in.readString(); + StringValue value = in.readParcelable(StringValue.class.getClassLoader()); + this.metaData.put(key, value); + } + } + this.virtualAssetId = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ChannelAggregatedIngestInfo.java b/KalturaClient/src/main/java/com/kaltura/client/types/ChannelAggregatedIngestInfo.java new file mode 100644 index 000000000..b95f2dac3 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ChannelAggregatedIngestInfo.java @@ -0,0 +1,133 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.AggregatedIngestInfo; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ChannelAggregatedIngestInfo.Tokenizer.class) +public class ChannelAggregatedIngestInfo extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String linearChannelId(); + AggregatedIngestInfo.Tokenizer aggregatedErrors(); + } + + /** + * The linear channel asset id + */ + private Long linearChannelId; + /** + * Aggregated error counters + */ + private AggregatedIngestInfo aggregatedErrors; + + // linearChannelId: + public Long getLinearChannelId(){ + return this.linearChannelId; + } + public void setLinearChannelId(Long linearChannelId){ + this.linearChannelId = linearChannelId; + } + + public void linearChannelId(String multirequestToken){ + setToken("linearChannelId", multirequestToken); + } + + // aggregatedErrors: + public AggregatedIngestInfo getAggregatedErrors(){ + return this.aggregatedErrors; + } + public void setAggregatedErrors(AggregatedIngestInfo aggregatedErrors){ + this.aggregatedErrors = aggregatedErrors; + } + + + public ChannelAggregatedIngestInfo() { + super(); + } + + public ChannelAggregatedIngestInfo(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + linearChannelId = GsonParser.parseLong(jsonObject.get("linearChannelId")); + aggregatedErrors = GsonParser.parseObject(jsonObject.getAsJsonObject("aggregatedErrors"), AggregatedIngestInfo.class); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaChannelAggregatedIngestInfo"); + kparams.add("linearChannelId", this.linearChannelId); + kparams.add("aggregatedErrors", this.aggregatedErrors); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public ChannelAggregatedIngestInfo createFromParcel(Parcel source) { + return new ChannelAggregatedIngestInfo(source); + } + + @Override + public ChannelAggregatedIngestInfo[] newArray(int size) { + return new ChannelAggregatedIngestInfo[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.linearChannelId); + dest.writeParcelable(this.aggregatedErrors, flags); + } + + public ChannelAggregatedIngestInfo(Parcel in) { + super(in); + this.linearChannelId = (Long)in.readValue(Long.class.getClassLoader()); + this.aggregatedErrors = in.readParcelable(AggregatedIngestInfo.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ChannelCondition.java b/KalturaClient/src/main/java/com/kaltura/client/types/ChannelCondition.java new file mode 100644 index 000000000..e7d9d584a --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ChannelCondition.java @@ -0,0 +1,114 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ChannelCondition.Tokenizer.class) +public class ChannelCondition extends Condition { + + public interface Tokenizer extends Condition.Tokenizer { + String idIn(); + } + + /** + * Comma separated channel IDs list + */ + private String idIn; + + // idIn: + public String getIdIn(){ + return this.idIn; + } + public void setIdIn(String idIn){ + this.idIn = idIn; + } + + public void idIn(String multirequestToken){ + setToken("idIn", multirequestToken); + } + + + public ChannelCondition() { + super(); + } + + public ChannelCondition(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + idIn = GsonParser.parseString(jsonObject.get("idIn")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaChannelCondition"); + kparams.add("idIn", this.idIn); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public ChannelCondition createFromParcel(Parcel source) { + return new ChannelCondition(source); + } + + @Override + public ChannelCondition[] newArray(int size) { + return new ChannelCondition[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.idIn); + } + + public ChannelCondition(Parcel in) { + super(in); + this.idIn = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ChannelDynamicOrder.java b/KalturaClient/src/main/java/com/kaltura/client/types/ChannelDynamicOrder.java new file mode 100644 index 000000000..7016fdc6d --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ChannelDynamicOrder.java @@ -0,0 +1,137 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.MetaTagOrderBy; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ChannelDynamicOrder.Tokenizer.class) +public class ChannelDynamicOrder extends BaseChannelOrder { + + public interface Tokenizer extends BaseChannelOrder.Tokenizer { + String name(); + String orderBy(); + } + + /** + * Value + */ + private String name; + /** + * Order By + */ + private MetaTagOrderBy orderBy; + + // name: + public String getName(){ + return this.name; + } + public void setName(String name){ + this.name = name; + } + + public void name(String multirequestToken){ + setToken("name", multirequestToken); + } + + // orderBy: + public MetaTagOrderBy getOrderBy(){ + return this.orderBy; + } + public void setOrderBy(MetaTagOrderBy orderBy){ + this.orderBy = orderBy; + } + + public void orderBy(String multirequestToken){ + setToken("orderBy", multirequestToken); + } + + + public ChannelDynamicOrder() { + super(); + } + + public ChannelDynamicOrder(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + name = GsonParser.parseString(jsonObject.get("name")); + orderBy = MetaTagOrderBy.get(GsonParser.parseString(jsonObject.get("orderBy"))); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaChannelDynamicOrder"); + kparams.add("name", this.name); + kparams.add("orderBy", this.orderBy); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public ChannelDynamicOrder createFromParcel(Parcel source) { + return new ChannelDynamicOrder(source); + } + + @Override + public ChannelDynamicOrder[] newArray(int size) { + return new ChannelDynamicOrder[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.name); + dest.writeInt(this.orderBy == null ? -1 : this.orderBy.ordinal()); + } + + public ChannelDynamicOrder(Parcel in) { + super(in); + this.name = in.readString(); + int tmpOrderBy = in.readInt(); + this.orderBy = tmpOrderBy == -1 ? null : MetaTagOrderBy.values()[tmpOrderBy]; + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ChannelEnrichmentHolder.java b/KalturaClient/src/main/java/com/kaltura/client/types/ChannelEnrichmentHolder.java new file mode 100644 index 000000000..423386642 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ChannelEnrichmentHolder.java @@ -0,0 +1,120 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.ChannelEnrichment; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Holder object for channel enrichment enum + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ChannelEnrichmentHolder.Tokenizer.class) +public class ChannelEnrichmentHolder extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String type(); + } + + /** + * Enrichment type + */ + private ChannelEnrichment type; + + // type: + public ChannelEnrichment getType(){ + return this.type; + } + public void setType(ChannelEnrichment type){ + this.type = type; + } + + public void type(String multirequestToken){ + setToken("type", multirequestToken); + } + + + public ChannelEnrichmentHolder() { + super(); + } + + public ChannelEnrichmentHolder(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + type = ChannelEnrichment.get(GsonParser.parseString(jsonObject.get("type"))); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaChannelEnrichmentHolder"); + kparams.add("type", this.type); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public ChannelEnrichmentHolder createFromParcel(Parcel source) { + return new ChannelEnrichmentHolder(source); + } + + @Override + public ChannelEnrichmentHolder[] newArray(int size) { + return new ChannelEnrichmentHolder[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeInt(this.type == null ? -1 : this.type.ordinal()); + } + + public ChannelEnrichmentHolder(Parcel in) { + super(in); + int tmpType = in.readInt(); + this.type = tmpType == -1 ? null : ChannelEnrichment.values()[tmpType]; + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ChannelExternalFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/ChannelExternalFilter.java new file mode 100644 index 000000000..3502b330d --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ChannelExternalFilter.java @@ -0,0 +1,177 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ChannelExternalFilter.Tokenizer.class) +public class ChannelExternalFilter extends AssetFilter { + + public interface Tokenizer extends AssetFilter.Tokenizer { + String idEqual(); + String utcOffsetEqual(); + String freeText(); + String alias(); + } + + /** + * External Channel Id. + */ + private Integer idEqual; + /** + * UtcOffsetEqual + */ + private Double utcOffsetEqual; + /** + * FreeTextEqual + */ + private String freeText; + /** + * Alias for External Channel Id. + */ + private String alias; + + // idEqual: + public Integer getIdEqual(){ + return this.idEqual; + } + public void setIdEqual(Integer idEqual){ + this.idEqual = idEqual; + } + + public void idEqual(String multirequestToken){ + setToken("idEqual", multirequestToken); + } + + // utcOffsetEqual: + public Double getUtcOffsetEqual(){ + return this.utcOffsetEqual; + } + public void setUtcOffsetEqual(Double utcOffsetEqual){ + this.utcOffsetEqual = utcOffsetEqual; + } + + public void utcOffsetEqual(String multirequestToken){ + setToken("utcOffsetEqual", multirequestToken); + } + + // freeText: + public String getFreeText(){ + return this.freeText; + } + public void setFreeText(String freeText){ + this.freeText = freeText; + } + + public void freeText(String multirequestToken){ + setToken("freeText", multirequestToken); + } + + // alias: + public String getAlias(){ + return this.alias; + } + public void setAlias(String alias){ + this.alias = alias; + } + + public void alias(String multirequestToken){ + setToken("alias", multirequestToken); + } + + + public ChannelExternalFilter() { + super(); + } + + public ChannelExternalFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + idEqual = GsonParser.parseInt(jsonObject.get("idEqual")); + utcOffsetEqual = GsonParser.parseDouble(jsonObject.get("utcOffsetEqual")); + freeText = GsonParser.parseString(jsonObject.get("freeText")); + alias = GsonParser.parseString(jsonObject.get("alias")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaChannelExternalFilter"); + kparams.add("idEqual", this.idEqual); + kparams.add("utcOffsetEqual", this.utcOffsetEqual); + kparams.add("freeText", this.freeText); + kparams.add("alias", this.alias); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public ChannelExternalFilter createFromParcel(Parcel source) { + return new ChannelExternalFilter(source); + } + + @Override + public ChannelExternalFilter[] newArray(int size) { + return new ChannelExternalFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.idEqual); + dest.writeValue(this.utcOffsetEqual); + dest.writeString(this.freeText); + dest.writeString(this.alias); + } + + public ChannelExternalFilter(Parcel in) { + super(in); + this.idEqual = (Integer)in.readValue(Integer.class.getClassLoader()); + this.utcOffsetEqual = (Double)in.readValue(Double.class.getClassLoader()); + this.freeText = in.readString(); + this.alias = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ChannelFieldOrder.java b/KalturaClient/src/main/java/com/kaltura/client/types/ChannelFieldOrder.java new file mode 100644 index 000000000..caa54bca3 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ChannelFieldOrder.java @@ -0,0 +1,116 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.ChannelFieldOrderByType; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ChannelFieldOrder.Tokenizer.class) +public class ChannelFieldOrder extends BaseChannelOrder { + + public interface Tokenizer extends BaseChannelOrder.Tokenizer { + String orderBy(); + } + + /** + * Order By + */ + private ChannelFieldOrderByType orderBy; + + // orderBy: + public ChannelFieldOrderByType getOrderBy(){ + return this.orderBy; + } + public void setOrderBy(ChannelFieldOrderByType orderBy){ + this.orderBy = orderBy; + } + + public void orderBy(String multirequestToken){ + setToken("orderBy", multirequestToken); + } + + + public ChannelFieldOrder() { + super(); + } + + public ChannelFieldOrder(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + orderBy = ChannelFieldOrderByType.get(GsonParser.parseString(jsonObject.get("orderBy"))); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaChannelFieldOrder"); + kparams.add("orderBy", this.orderBy); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public ChannelFieldOrder createFromParcel(Parcel source) { + return new ChannelFieldOrder(source); + } + + @Override + public ChannelFieldOrder[] newArray(int size) { + return new ChannelFieldOrder[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeInt(this.orderBy == null ? -1 : this.orderBy.ordinal()); + } + + public ChannelFieldOrder(Parcel in) { + super(in); + int tmpOrderBy = in.readInt(); + this.orderBy = tmpOrderBy == -1 ? null : ChannelFieldOrderByType.values()[tmpOrderBy]; + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ChannelFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/ChannelFilter.java new file mode 100644 index 000000000..d0a5f1aab --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ChannelFilter.java @@ -0,0 +1,135 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ChannelFilter.Tokenizer.class) +public class ChannelFilter extends BaseSearchAssetFilter { + + public interface Tokenizer extends BaseSearchAssetFilter.Tokenizer { + String idEqual(); + String excludeWatched(); + } + + /** + * Channel Id + */ + private Integer idEqual; + /** + * Exclude watched asset. + */ + private Boolean excludeWatched; + + // idEqual: + public Integer getIdEqual(){ + return this.idEqual; + } + public void setIdEqual(Integer idEqual){ + this.idEqual = idEqual; + } + + public void idEqual(String multirequestToken){ + setToken("idEqual", multirequestToken); + } + + // excludeWatched: + public Boolean getExcludeWatched(){ + return this.excludeWatched; + } + public void setExcludeWatched(Boolean excludeWatched){ + this.excludeWatched = excludeWatched; + } + + public void excludeWatched(String multirequestToken){ + setToken("excludeWatched", multirequestToken); + } + + + public ChannelFilter() { + super(); + } + + public ChannelFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + idEqual = GsonParser.parseInt(jsonObject.get("idEqual")); + excludeWatched = GsonParser.parseBoolean(jsonObject.get("excludeWatched")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaChannelFilter"); + kparams.add("idEqual", this.idEqual); + kparams.add("excludeWatched", this.excludeWatched); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public ChannelFilter createFromParcel(Parcel source) { + return new ChannelFilter(source); + } + + @Override + public ChannelFilter[] newArray(int size) { + return new ChannelFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.idEqual); + dest.writeValue(this.excludeWatched); + } + + public ChannelFilter(Parcel in) { + super(in); + this.idEqual = (Integer)in.readValue(Integer.class.getClassLoader()); + this.excludeWatched = (Boolean)in.readValue(Boolean.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ChannelOrder.java b/KalturaClient/src/main/java/com/kaltura/client/types/ChannelOrder.java new file mode 100644 index 000000000..75809518a --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ChannelOrder.java @@ -0,0 +1,160 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.ChannelOrderBy; +import com.kaltura.client.types.DynamicOrderBy; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Channel order details + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ChannelOrder.Tokenizer.class) +public class ChannelOrder extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + DynamicOrderBy.Tokenizer dynamicOrderBy(); + String orderBy(); + String period(); + } + + /** + * Channel dynamic order by (meta) + */ + private DynamicOrderBy dynamicOrderBy; + /** + * Channel order by + */ + private ChannelOrderBy orderBy; + /** + * Sliding window period in minutes, used only when ordering by LIKES_DESC / + VOTES_DESC / RATINGS_DESC / VIEWS_DESC + */ + private Integer period; + + // dynamicOrderBy: + public DynamicOrderBy getDynamicOrderBy(){ + return this.dynamicOrderBy; + } + public void setDynamicOrderBy(DynamicOrderBy dynamicOrderBy){ + this.dynamicOrderBy = dynamicOrderBy; + } + + // orderBy: + public ChannelOrderBy getOrderBy(){ + return this.orderBy; + } + public void setOrderBy(ChannelOrderBy orderBy){ + this.orderBy = orderBy; + } + + public void orderBy(String multirequestToken){ + setToken("orderBy", multirequestToken); + } + + // period: + public Integer getPeriod(){ + return this.period; + } + public void setPeriod(Integer period){ + this.period = period; + } + + public void period(String multirequestToken){ + setToken("period", multirequestToken); + } + + + public ChannelOrder() { + super(); + } + + public ChannelOrder(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + dynamicOrderBy = GsonParser.parseObject(jsonObject.getAsJsonObject("dynamicOrderBy"), DynamicOrderBy.class); + orderBy = ChannelOrderBy.get(GsonParser.parseString(jsonObject.get("orderBy"))); + period = GsonParser.parseInt(jsonObject.get("period")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaChannelOrder"); + kparams.add("dynamicOrderBy", this.dynamicOrderBy); + kparams.add("orderBy", this.orderBy); + kparams.add("period", this.period); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public ChannelOrder createFromParcel(Parcel source) { + return new ChannelOrder(source); + } + + @Override + public ChannelOrder[] newArray(int size) { + return new ChannelOrder[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeParcelable(this.dynamicOrderBy, flags); + dest.writeInt(this.orderBy == null ? -1 : this.orderBy.ordinal()); + dest.writeValue(this.period); + } + + public ChannelOrder(Parcel in) { + super(in); + this.dynamicOrderBy = in.readParcelable(DynamicOrderBy.class.getClassLoader()); + int tmpOrderBy = in.readInt(); + this.orderBy = tmpOrderBy == -1 ? null : ChannelOrderBy.values()[tmpOrderBy]; + this.period = (Integer)in.readValue(Integer.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ChannelSearchByKsqlFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/ChannelSearchByKsqlFilter.java new file mode 100644 index 000000000..a30f74ef9 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ChannelSearchByKsqlFilter.java @@ -0,0 +1,137 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.ChannelStruct; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ChannelSearchByKsqlFilter.Tokenizer.class) +public class ChannelSearchByKsqlFilter extends ChannelsBaseFilter { + + public interface Tokenizer extends ChannelsBaseFilter.Tokenizer { + String kSql(); + String channelStructEqual(); + } + + /** + * KSQL expression + */ + private String kSql; + /** + * channel struct + */ + private ChannelStruct channelStructEqual; + + // kSql: + public String getKSql(){ + return this.kSql; + } + public void setKSql(String kSql){ + this.kSql = kSql; + } + + public void kSql(String multirequestToken){ + setToken("kSql", multirequestToken); + } + + // channelStructEqual: + public ChannelStruct getChannelStructEqual(){ + return this.channelStructEqual; + } + public void setChannelStructEqual(ChannelStruct channelStructEqual){ + this.channelStructEqual = channelStructEqual; + } + + public void channelStructEqual(String multirequestToken){ + setToken("channelStructEqual", multirequestToken); + } + + + public ChannelSearchByKsqlFilter() { + super(); + } + + public ChannelSearchByKsqlFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + kSql = GsonParser.parseString(jsonObject.get("kSql")); + channelStructEqual = ChannelStruct.get(GsonParser.parseString(jsonObject.get("channelStructEqual"))); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaChannelSearchByKsqlFilter"); + kparams.add("kSql", this.kSql); + kparams.add("channelStructEqual", this.channelStructEqual); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public ChannelSearchByKsqlFilter createFromParcel(Parcel source) { + return new ChannelSearchByKsqlFilter(source); + } + + @Override + public ChannelSearchByKsqlFilter[] newArray(int size) { + return new ChannelSearchByKsqlFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.kSql); + dest.writeInt(this.channelStructEqual == null ? -1 : this.channelStructEqual.ordinal()); + } + + public ChannelSearchByKsqlFilter(Parcel in) { + super(in); + this.kSql = in.readString(); + int tmpChannelStructEqual = in.readInt(); + this.channelStructEqual = tmpChannelStructEqual == -1 ? null : ChannelStruct.values()[tmpChannelStructEqual]; + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ChannelSlidingWindowOrder.java b/KalturaClient/src/main/java/com/kaltura/client/types/ChannelSlidingWindowOrder.java new file mode 100644 index 000000000..6a7964997 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ChannelSlidingWindowOrder.java @@ -0,0 +1,137 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.ChannelSlidingWindowOrderByType; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ChannelSlidingWindowOrder.Tokenizer.class) +public class ChannelSlidingWindowOrder extends BaseChannelOrder { + + public interface Tokenizer extends BaseChannelOrder.Tokenizer { + String period(); + String orderBy(); + } + + /** + * Sliding window period in minutes + */ + private Integer period; + /** + * Order By + */ + private ChannelSlidingWindowOrderByType orderBy; + + // period: + public Integer getPeriod(){ + return this.period; + } + public void setPeriod(Integer period){ + this.period = period; + } + + public void period(String multirequestToken){ + setToken("period", multirequestToken); + } + + // orderBy: + public ChannelSlidingWindowOrderByType getOrderBy(){ + return this.orderBy; + } + public void setOrderBy(ChannelSlidingWindowOrderByType orderBy){ + this.orderBy = orderBy; + } + + public void orderBy(String multirequestToken){ + setToken("orderBy", multirequestToken); + } + + + public ChannelSlidingWindowOrder() { + super(); + } + + public ChannelSlidingWindowOrder(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + period = GsonParser.parseInt(jsonObject.get("period")); + orderBy = ChannelSlidingWindowOrderByType.get(GsonParser.parseString(jsonObject.get("orderBy"))); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaChannelSlidingWindowOrder"); + kparams.add("period", this.period); + kparams.add("orderBy", this.orderBy); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public ChannelSlidingWindowOrder createFromParcel(Parcel source) { + return new ChannelSlidingWindowOrder(source); + } + + @Override + public ChannelSlidingWindowOrder[] newArray(int size) { + return new ChannelSlidingWindowOrder[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.period); + dest.writeInt(this.orderBy == null ? -1 : this.orderBy.ordinal()); + } + + public ChannelSlidingWindowOrder(Parcel in) { + super(in); + this.period = (Integer)in.readValue(Integer.class.getClassLoader()); + int tmpOrderBy = in.readInt(); + this.orderBy = tmpOrderBy == -1 ? null : ChannelSlidingWindowOrderByType.values()[tmpOrderBy]; + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ChannelsBaseFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/ChannelsBaseFilter.java new file mode 100644 index 000000000..cffde2b65 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ChannelsBaseFilter.java @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ChannelsBaseFilter.Tokenizer.class) +public abstract class ChannelsBaseFilter extends Filter { + + public interface Tokenizer extends Filter.Tokenizer { + } + + + + public ChannelsBaseFilter() { + super(); + } + + public ChannelsBaseFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaChannelsBaseFilter"); + return kparams; + } + + + public ChannelsBaseFilter(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ChannelsFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/ChannelsFilter.java new file mode 100644 index 000000000..d0e1f4079 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ChannelsFilter.java @@ -0,0 +1,220 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ChannelsFilter.Tokenizer.class) +public class ChannelsFilter extends ChannelsBaseFilter { + + public interface Tokenizer extends ChannelsBaseFilter.Tokenizer { + String idEqual(); + String mediaIdEqual(); + String nameEqual(); + String nameStartsWith(); + String idIn(); + String assetUserRuleIdIn(); + } + + /** + * channel identifier to filter by + */ + private Integer idEqual; + /** + * media identifier to filter by + */ + private Long mediaIdEqual; + /** + * Exact channel name to filter by + */ + private String nameEqual; + /** + * Channel name starts with (auto-complete) + */ + private String nameStartsWith; + /** + * Comma separated channel ids + */ + private String idIn; + /** + * comma-separated list of KalturaChannel.assetUserRuleId values. Matching + KalturaChannel objects will be returned by the filter. + */ + private String assetUserRuleIdIn; + + // idEqual: + public Integer getIdEqual(){ + return this.idEqual; + } + public void setIdEqual(Integer idEqual){ + this.idEqual = idEqual; + } + + public void idEqual(String multirequestToken){ + setToken("idEqual", multirequestToken); + } + + // mediaIdEqual: + public Long getMediaIdEqual(){ + return this.mediaIdEqual; + } + public void setMediaIdEqual(Long mediaIdEqual){ + this.mediaIdEqual = mediaIdEqual; + } + + public void mediaIdEqual(String multirequestToken){ + setToken("mediaIdEqual", multirequestToken); + } + + // nameEqual: + public String getNameEqual(){ + return this.nameEqual; + } + public void setNameEqual(String nameEqual){ + this.nameEqual = nameEqual; + } + + public void nameEqual(String multirequestToken){ + setToken("nameEqual", multirequestToken); + } + + // nameStartsWith: + public String getNameStartsWith(){ + return this.nameStartsWith; + } + public void setNameStartsWith(String nameStartsWith){ + this.nameStartsWith = nameStartsWith; + } + + public void nameStartsWith(String multirequestToken){ + setToken("nameStartsWith", multirequestToken); + } + + // idIn: + public String getIdIn(){ + return this.idIn; + } + public void setIdIn(String idIn){ + this.idIn = idIn; + } + + public void idIn(String multirequestToken){ + setToken("idIn", multirequestToken); + } + + // assetUserRuleIdIn: + public String getAssetUserRuleIdIn(){ + return this.assetUserRuleIdIn; + } + public void setAssetUserRuleIdIn(String assetUserRuleIdIn){ + this.assetUserRuleIdIn = assetUserRuleIdIn; + } + + public void assetUserRuleIdIn(String multirequestToken){ + setToken("assetUserRuleIdIn", multirequestToken); + } + + + public ChannelsFilter() { + super(); + } + + public ChannelsFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + idEqual = GsonParser.parseInt(jsonObject.get("idEqual")); + mediaIdEqual = GsonParser.parseLong(jsonObject.get("mediaIdEqual")); + nameEqual = GsonParser.parseString(jsonObject.get("nameEqual")); + nameStartsWith = GsonParser.parseString(jsonObject.get("nameStartsWith")); + idIn = GsonParser.parseString(jsonObject.get("idIn")); + assetUserRuleIdIn = GsonParser.parseString(jsonObject.get("assetUserRuleIdIn")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaChannelsFilter"); + kparams.add("idEqual", this.idEqual); + kparams.add("mediaIdEqual", this.mediaIdEqual); + kparams.add("nameEqual", this.nameEqual); + kparams.add("nameStartsWith", this.nameStartsWith); + kparams.add("idIn", this.idIn); + kparams.add("assetUserRuleIdIn", this.assetUserRuleIdIn); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public ChannelsFilter createFromParcel(Parcel source) { + return new ChannelsFilter(source); + } + + @Override + public ChannelsFilter[] newArray(int size) { + return new ChannelsFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.idEqual); + dest.writeValue(this.mediaIdEqual); + dest.writeString(this.nameEqual); + dest.writeString(this.nameStartsWith); + dest.writeString(this.idIn); + dest.writeString(this.assetUserRuleIdIn); + } + + public ChannelsFilter(Parcel in) { + super(in); + this.idEqual = (Integer)in.readValue(Integer.class.getClassLoader()); + this.mediaIdEqual = (Long)in.readValue(Long.class.getClassLoader()); + this.nameEqual = in.readString(); + this.nameStartsWith = in.readString(); + this.idIn = in.readString(); + this.assetUserRuleIdIn = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ClientConfiguration.java b/KalturaClient/src/main/java/com/kaltura/client/types/ClientConfiguration.java new file mode 100644 index 000000000..dcdcb990a --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ClientConfiguration.java @@ -0,0 +1,139 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Define client optional configurations + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ClientConfiguration.Tokenizer.class) +public class ClientConfiguration extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String clientTag(); + String apiVersion(); + } + + /** + * Client Tag + */ + private String clientTag; + /** + * API client version + */ + private String apiVersion; + + // clientTag: + public String getClientTag(){ + return this.clientTag; + } + public void setClientTag(String clientTag){ + this.clientTag = clientTag; + } + + public void clientTag(String multirequestToken){ + setToken("clientTag", multirequestToken); + } + + // apiVersion: + public String getApiVersion(){ + return this.apiVersion; + } + public void setApiVersion(String apiVersion){ + this.apiVersion = apiVersion; + } + + public void apiVersion(String multirequestToken){ + setToken("apiVersion", multirequestToken); + } + + + public ClientConfiguration() { + super(); + } + + public ClientConfiguration(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + clientTag = GsonParser.parseString(jsonObject.get("clientTag")); + apiVersion = GsonParser.parseString(jsonObject.get("apiVersion")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaClientConfiguration"); + kparams.add("clientTag", this.clientTag); + kparams.add("apiVersion", this.apiVersion); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public ClientConfiguration createFromParcel(Parcel source) { + return new ClientConfiguration(source); + } + + @Override + public ClientConfiguration[] newArray(int size) { + return new ClientConfiguration[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.clientTag); + dest.writeString(this.apiVersion); + } + + public ClientConfiguration(Parcel in) { + super(in); + this.clientTag = in.readString(); + this.apiVersion = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/CloudRecordingFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/CloudRecordingFilter.java new file mode 100644 index 000000000..b1fdcee32 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/CloudRecordingFilter.java @@ -0,0 +1,132 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.HashMap; +import java.util.Map; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Filtering cloud external recordings + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(CloudRecordingFilter.Tokenizer.class) +public class CloudRecordingFilter extends ExternalRecordingFilter { + + public interface Tokenizer extends ExternalRecordingFilter.Tokenizer { + RequestBuilder.MapTokenizer adapterData(); + } + + /** + * Adapter Data + */ + private Map adapterData; + + // adapterData: + public Map getAdapterData(){ + return this.adapterData; + } + public void setAdapterData(Map adapterData){ + this.adapterData = adapterData; + } + + + public CloudRecordingFilter() { + super(); + } + + public CloudRecordingFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + adapterData = GsonParser.parseMap(jsonObject.getAsJsonObject("adapterData"), StringValue.class); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaCloudRecordingFilter"); + kparams.add("adapterData", this.adapterData); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public CloudRecordingFilter createFromParcel(Parcel source) { + return new CloudRecordingFilter(source); + } + + @Override + public CloudRecordingFilter[] newArray(int size) { + return new CloudRecordingFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + if(this.adapterData != null) { + dest.writeInt(this.adapterData.size()); + for (Map.Entry entry : this.adapterData.entrySet()) { + dest.writeString(entry.getKey()); + dest.writeParcelable(entry.getValue(), flags); + } + } else { + dest.writeInt(-1); + } + } + + public CloudRecordingFilter(Parcel in) { + super(in); + int adapterDataSize = in.readInt(); + if( adapterDataSize > -1) { + this.adapterData = new HashMap<>(); + for (int i = 0; i < adapterDataSize; i++) { + String key = in.readString(); + StringValue value = in.readParcelable(StringValue.class.getClassLoader()); + this.adapterData.put(key, value); + } + } + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/CloudSeriesRecordingFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/CloudSeriesRecordingFilter.java new file mode 100644 index 000000000..df99667f9 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/CloudSeriesRecordingFilter.java @@ -0,0 +1,132 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.HashMap; +import java.util.Map; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Cloud series filtering recordings + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(CloudSeriesRecordingFilter.Tokenizer.class) +public class CloudSeriesRecordingFilter extends SeriesRecordingFilter { + + public interface Tokenizer extends SeriesRecordingFilter.Tokenizer { + RequestBuilder.MapTokenizer adapterData(); + } + + /** + * Adapter Data + */ + private Map adapterData; + + // adapterData: + public Map getAdapterData(){ + return this.adapterData; + } + public void setAdapterData(Map adapterData){ + this.adapterData = adapterData; + } + + + public CloudSeriesRecordingFilter() { + super(); + } + + public CloudSeriesRecordingFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + adapterData = GsonParser.parseMap(jsonObject.getAsJsonObject("adapterData"), StringValue.class); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaCloudSeriesRecordingFilter"); + kparams.add("adapterData", this.adapterData); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public CloudSeriesRecordingFilter createFromParcel(Parcel source) { + return new CloudSeriesRecordingFilter(source); + } + + @Override + public CloudSeriesRecordingFilter[] newArray(int size) { + return new CloudSeriesRecordingFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + if(this.adapterData != null) { + dest.writeInt(this.adapterData.size()); + for (Map.Entry entry : this.adapterData.entrySet()) { + dest.writeString(entry.getKey()); + dest.writeParcelable(entry.getValue(), flags); + } + } else { + dest.writeInt(-1); + } + } + + public CloudSeriesRecordingFilter(Parcel in) { + super(in); + int adapterDataSize = in.readInt(); + if( adapterDataSize > -1) { + this.adapterData = new HashMap<>(); + for (int i = 0; i < adapterDataSize; i++) { + String key = in.readString(); + StringValue value = in.readParcelable(StringValue.class.getClassLoader()); + this.adapterData.put(key, value); + } + } + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/Collection.java b/KalturaClient/src/main/java/com/kaltura/client/types/Collection.java new file mode 100644 index 000000000..02fd39c8f --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/Collection.java @@ -0,0 +1,588 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.DiscountModule; +import com.kaltura.client.types.UsageModule; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.ArrayList; +import java.util.List; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Collection + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(Collection.Tokenizer.class) +public class Collection extends OTTObjectSupportNullable { + + public interface Tokenizer extends OTTObjectSupportNullable.Tokenizer { + String id(); + RequestBuilder.ListTokenizer channels(); + String channelsIds(); + String startDate(); + String endDate(); + DiscountModule.Tokenizer discountModule(); + String discountModuleId(); + String name(); + RequestBuilder.ListTokenizer multilingualName(); + String description(); + RequestBuilder.ListTokenizer multilingualDescription(); + UsageModule.Tokenizer usageModule(); + String usageModuleId(); + RequestBuilder.ListTokenizer couponsGroups(); + RequestBuilder.ListTokenizer collectionCouponGroup(); + String externalId(); + RequestBuilder.ListTokenizer productCodes(); + String priceDetailsId(); + String isActive(); + String createDate(); + String updateDate(); + String virtualAssetId(); + RequestBuilder.ListTokenizer fileTypes(); + String fileTypesIds(); + String assetUserRuleId(); + } + + /** + * Collection identifier + */ + private String id; + /** + * A list of channels associated with this collection This property + will deprecated soon. Please use ChannelsIds instead of it. + */ + private List channels; + /** + * Comma separated channels Ids associated with this collection + */ + private String channelsIds; + /** + * The first date the collection is available for purchasing + */ + private Long startDate; + /** + * The last date the collection is available for purchasing + */ + private Long endDate; + /** + * The internal discount module for the collection This property will + deprecated soon. Please use DiscountModuleId instead of it. + */ + private DiscountModule discountModule; + /** + * The internal discount module identifier for the collection + */ + private Long discountModuleId; + /** + * Name of the collection + */ + private String name; + /** + * Name of the collection + */ + private List multilingualName; + /** + * description of the collection + */ + private String description; + /** + * description of the collection + */ + private List multilingualDescription; + /** + * Collection usage module This property will deprecated soon. Please + use usageModuleId instead of it. + */ + private UsageModule usageModule; + /** + * The internal usage module identifier for the collection + */ + private Long usageModuleId; + /** + * List of Coupons group This property will deprecated soon. Please + use CollectionCouponGroup instead of it. + */ + private List couponsGroups; + /** + * List of collection Coupons group + */ + private List collectionCouponGroup; + /** + * External ID + */ + private String externalId; + /** + * List of Collection product codes + */ + private List productCodes; + /** + * The ID of the price details associated with this collection + */ + private Long priceDetailsId; + /** + * Is active collection + */ + private Boolean isActive; + /** + * Specifies when was the collection created. Date and time represented as epoch. + */ + private Long createDate; + /** + * Specifies when was the collection last updated. Date and time represented as + epoch. + */ + private Long updateDate; + /** + * Virtual asset id + */ + private Long virtualAssetId; + /** + * A list of file types identifiers that are supported in this collection + */ + private List fileTypes; + /** + * Comma separated file types identifiers that are supported in this collection + */ + private String fileTypesIds; + /** + * Asset user rule identifier + */ + private Long assetUserRuleId; + + // id: + public String getId(){ + return this.id; + } + public void setId(String id){ + this.id = id; + } + + public void id(String multirequestToken){ + setToken("id", multirequestToken); + } + + // channels: + public List getChannels(){ + return this.channels; + } + // channelsIds: + public String getChannelsIds(){ + return this.channelsIds; + } + public void setChannelsIds(String channelsIds){ + this.channelsIds = channelsIds; + } + + public void channelsIds(String multirequestToken){ + setToken("channelsIds", multirequestToken); + } + + // startDate: + public Long getStartDate(){ + return this.startDate; + } + public void setStartDate(Long startDate){ + this.startDate = startDate; + } + + public void startDate(String multirequestToken){ + setToken("startDate", multirequestToken); + } + + // endDate: + public Long getEndDate(){ + return this.endDate; + } + public void setEndDate(Long endDate){ + this.endDate = endDate; + } + + public void endDate(String multirequestToken){ + setToken("endDate", multirequestToken); + } + + // discountModule: + public DiscountModule getDiscountModule(){ + return this.discountModule; + } + // discountModuleId: + public Long getDiscountModuleId(){ + return this.discountModuleId; + } + public void setDiscountModuleId(Long discountModuleId){ + this.discountModuleId = discountModuleId; + } + + public void discountModuleId(String multirequestToken){ + setToken("discountModuleId", multirequestToken); + } + + // name: + public String getName(){ + return this.name; + } + // multilingualName: + public List getMultilingualName(){ + return this.multilingualName; + } + public void setMultilingualName(List multilingualName){ + this.multilingualName = multilingualName; + } + + // description: + public String getDescription(){ + return this.description; + } + // multilingualDescription: + public List getMultilingualDescription(){ + return this.multilingualDescription; + } + public void setMultilingualDescription(List multilingualDescription){ + this.multilingualDescription = multilingualDescription; + } + + // usageModule: + public UsageModule getUsageModule(){ + return this.usageModule; + } + // usageModuleId: + public Long getUsageModuleId(){ + return this.usageModuleId; + } + public void setUsageModuleId(Long usageModuleId){ + this.usageModuleId = usageModuleId; + } + + public void usageModuleId(String multirequestToken){ + setToken("usageModuleId", multirequestToken); + } + + // couponsGroups: + public List getCouponsGroups(){ + return this.couponsGroups; + } + // collectionCouponGroup: + public List getCollectionCouponGroup(){ + return this.collectionCouponGroup; + } + public void setCollectionCouponGroup(List collectionCouponGroup){ + this.collectionCouponGroup = collectionCouponGroup; + } + + // externalId: + public String getExternalId(){ + return this.externalId; + } + public void setExternalId(String externalId){ + this.externalId = externalId; + } + + public void externalId(String multirequestToken){ + setToken("externalId", multirequestToken); + } + + // productCodes: + public List getProductCodes(){ + return this.productCodes; + } + public void setProductCodes(List productCodes){ + this.productCodes = productCodes; + } + + // priceDetailsId: + public Long getPriceDetailsId(){ + return this.priceDetailsId; + } + public void setPriceDetailsId(Long priceDetailsId){ + this.priceDetailsId = priceDetailsId; + } + + public void priceDetailsId(String multirequestToken){ + setToken("priceDetailsId", multirequestToken); + } + + // isActive: + public Boolean getIsActive(){ + return this.isActive; + } + public void setIsActive(Boolean isActive){ + this.isActive = isActive; + } + + public void isActive(String multirequestToken){ + setToken("isActive", multirequestToken); + } + + // createDate: + public Long getCreateDate(){ + return this.createDate; + } + // updateDate: + public Long getUpdateDate(){ + return this.updateDate; + } + // virtualAssetId: + public Long getVirtualAssetId(){ + return this.virtualAssetId; + } + // fileTypes: + public List getFileTypes(){ + return this.fileTypes; + } + // fileTypesIds: + public String getFileTypesIds(){ + return this.fileTypesIds; + } + public void setFileTypesIds(String fileTypesIds){ + this.fileTypesIds = fileTypesIds; + } + + public void fileTypesIds(String multirequestToken){ + setToken("fileTypesIds", multirequestToken); + } + + // assetUserRuleId: + public Long getAssetUserRuleId(){ + return this.assetUserRuleId; + } + public void setAssetUserRuleId(Long assetUserRuleId){ + this.assetUserRuleId = assetUserRuleId; + } + + public void assetUserRuleId(String multirequestToken){ + setToken("assetUserRuleId", multirequestToken); + } + + + public Collection() { + super(); + } + + public Collection(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + id = GsonParser.parseString(jsonObject.get("id")); + channels = GsonParser.parseArray(jsonObject.getAsJsonArray("channels"), BaseChannel.class); + channelsIds = GsonParser.parseString(jsonObject.get("channelsIds")); + startDate = GsonParser.parseLong(jsonObject.get("startDate")); + endDate = GsonParser.parseLong(jsonObject.get("endDate")); + discountModule = GsonParser.parseObject(jsonObject.getAsJsonObject("discountModule"), DiscountModule.class); + discountModuleId = GsonParser.parseLong(jsonObject.get("discountModuleId")); + name = GsonParser.parseString(jsonObject.get("name")); + multilingualName = GsonParser.parseArray(jsonObject.getAsJsonArray("multilingualName"), TranslationToken.class); + description = GsonParser.parseString(jsonObject.get("description")); + multilingualDescription = GsonParser.parseArray(jsonObject.getAsJsonArray("multilingualDescription"), TranslationToken.class); + usageModule = GsonParser.parseObject(jsonObject.getAsJsonObject("usageModule"), UsageModule.class); + usageModuleId = GsonParser.parseLong(jsonObject.get("usageModuleId")); + couponsGroups = GsonParser.parseArray(jsonObject.getAsJsonArray("couponsGroups"), CouponsGroup.class); + collectionCouponGroup = GsonParser.parseArray(jsonObject.getAsJsonArray("collectionCouponGroup"), CollectionCouponGroup.class); + externalId = GsonParser.parseString(jsonObject.get("externalId")); + productCodes = GsonParser.parseArray(jsonObject.getAsJsonArray("productCodes"), ProductCode.class); + priceDetailsId = GsonParser.parseLong(jsonObject.get("priceDetailsId")); + isActive = GsonParser.parseBoolean(jsonObject.get("isActive")); + createDate = GsonParser.parseLong(jsonObject.get("createDate")); + updateDate = GsonParser.parseLong(jsonObject.get("updateDate")); + virtualAssetId = GsonParser.parseLong(jsonObject.get("virtualAssetId")); + fileTypes = GsonParser.parseArray(jsonObject.getAsJsonArray("fileTypes"), IntegerValue.class); + fileTypesIds = GsonParser.parseString(jsonObject.get("fileTypesIds")); + assetUserRuleId = GsonParser.parseLong(jsonObject.get("assetUserRuleId")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaCollection"); + kparams.add("id", this.id); + kparams.add("channelsIds", this.channelsIds); + kparams.add("startDate", this.startDate); + kparams.add("endDate", this.endDate); + kparams.add("discountModuleId", this.discountModuleId); + kparams.add("multilingualName", this.multilingualName); + kparams.add("multilingualDescription", this.multilingualDescription); + kparams.add("usageModuleId", this.usageModuleId); + kparams.add("collectionCouponGroup", this.collectionCouponGroup); + kparams.add("externalId", this.externalId); + kparams.add("productCodes", this.productCodes); + kparams.add("priceDetailsId", this.priceDetailsId); + kparams.add("isActive", this.isActive); + kparams.add("fileTypesIds", this.fileTypesIds); + kparams.add("assetUserRuleId", this.assetUserRuleId); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public Collection createFromParcel(Parcel source) { + return new Collection(source); + } + + @Override + public Collection[] newArray(int size) { + return new Collection[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.id); + if(this.channels != null) { + dest.writeInt(this.channels.size()); + dest.writeList(this.channels); + } else { + dest.writeInt(-1); + } + dest.writeString(this.channelsIds); + dest.writeValue(this.startDate); + dest.writeValue(this.endDate); + dest.writeParcelable(this.discountModule, flags); + dest.writeValue(this.discountModuleId); + dest.writeString(this.name); + if(this.multilingualName != null) { + dest.writeInt(this.multilingualName.size()); + dest.writeList(this.multilingualName); + } else { + dest.writeInt(-1); + } + dest.writeString(this.description); + if(this.multilingualDescription != null) { + dest.writeInt(this.multilingualDescription.size()); + dest.writeList(this.multilingualDescription); + } else { + dest.writeInt(-1); + } + dest.writeParcelable(this.usageModule, flags); + dest.writeValue(this.usageModuleId); + if(this.couponsGroups != null) { + dest.writeInt(this.couponsGroups.size()); + dest.writeList(this.couponsGroups); + } else { + dest.writeInt(-1); + } + if(this.collectionCouponGroup != null) { + dest.writeInt(this.collectionCouponGroup.size()); + dest.writeList(this.collectionCouponGroup); + } else { + dest.writeInt(-1); + } + dest.writeString(this.externalId); + if(this.productCodes != null) { + dest.writeInt(this.productCodes.size()); + dest.writeList(this.productCodes); + } else { + dest.writeInt(-1); + } + dest.writeValue(this.priceDetailsId); + dest.writeValue(this.isActive); + dest.writeValue(this.createDate); + dest.writeValue(this.updateDate); + dest.writeValue(this.virtualAssetId); + if(this.fileTypes != null) { + dest.writeInt(this.fileTypes.size()); + dest.writeList(this.fileTypes); + } else { + dest.writeInt(-1); + } + dest.writeString(this.fileTypesIds); + dest.writeValue(this.assetUserRuleId); + } + + public Collection(Parcel in) { + super(in); + this.id = in.readString(); + int channelsSize = in.readInt(); + if( channelsSize > -1) { + this.channels = new ArrayList<>(); + in.readList(this.channels, BaseChannel.class.getClassLoader()); + } + this.channelsIds = in.readString(); + this.startDate = (Long)in.readValue(Long.class.getClassLoader()); + this.endDate = (Long)in.readValue(Long.class.getClassLoader()); + this.discountModule = in.readParcelable(DiscountModule.class.getClassLoader()); + this.discountModuleId = (Long)in.readValue(Long.class.getClassLoader()); + this.name = in.readString(); + int multilingualNameSize = in.readInt(); + if( multilingualNameSize > -1) { + this.multilingualName = new ArrayList<>(); + in.readList(this.multilingualName, TranslationToken.class.getClassLoader()); + } + this.description = in.readString(); + int multilingualDescriptionSize = in.readInt(); + if( multilingualDescriptionSize > -1) { + this.multilingualDescription = new ArrayList<>(); + in.readList(this.multilingualDescription, TranslationToken.class.getClassLoader()); + } + this.usageModule = in.readParcelable(UsageModule.class.getClassLoader()); + this.usageModuleId = (Long)in.readValue(Long.class.getClassLoader()); + int couponsGroupsSize = in.readInt(); + if( couponsGroupsSize > -1) { + this.couponsGroups = new ArrayList<>(); + in.readList(this.couponsGroups, CouponsGroup.class.getClassLoader()); + } + int collectionCouponGroupSize = in.readInt(); + if( collectionCouponGroupSize > -1) { + this.collectionCouponGroup = new ArrayList<>(); + in.readList(this.collectionCouponGroup, CollectionCouponGroup.class.getClassLoader()); + } + this.externalId = in.readString(); + int productCodesSize = in.readInt(); + if( productCodesSize > -1) { + this.productCodes = new ArrayList<>(); + in.readList(this.productCodes, ProductCode.class.getClassLoader()); + } + this.priceDetailsId = (Long)in.readValue(Long.class.getClassLoader()); + this.isActive = (Boolean)in.readValue(Boolean.class.getClassLoader()); + this.createDate = (Long)in.readValue(Long.class.getClassLoader()); + this.updateDate = (Long)in.readValue(Long.class.getClassLoader()); + this.virtualAssetId = (Long)in.readValue(Long.class.getClassLoader()); + int fileTypesSize = in.readInt(); + if( fileTypesSize > -1) { + this.fileTypes = new ArrayList<>(); + in.readList(this.fileTypes, IntegerValue.class.getClassLoader()); + } + this.fileTypesIds = in.readString(); + this.assetUserRuleId = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/CollectionCouponGroup.java b/KalturaClient/src/main/java/com/kaltura/client/types/CollectionCouponGroup.java new file mode 100644 index 000000000..12ab2688e --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/CollectionCouponGroup.java @@ -0,0 +1,160 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Coupons group details + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(CollectionCouponGroup.Tokenizer.class) +public class CollectionCouponGroup extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String id(); + String startDate(); + String endDate(); + } + + /** + * Coupon group identifier + */ + private Long id; + /** + * The first date the coupons in this coupons group are valid + */ + private Long startDate; + /** + * The last date the coupons in this coupons group are valid + */ + private Long endDate; + + // id: + public Long getId(){ + return this.id; + } + public void setId(Long id){ + this.id = id; + } + + public void id(String multirequestToken){ + setToken("id", multirequestToken); + } + + // startDate: + public Long getStartDate(){ + return this.startDate; + } + public void setStartDate(Long startDate){ + this.startDate = startDate; + } + + public void startDate(String multirequestToken){ + setToken("startDate", multirequestToken); + } + + // endDate: + public Long getEndDate(){ + return this.endDate; + } + public void setEndDate(Long endDate){ + this.endDate = endDate; + } + + public void endDate(String multirequestToken){ + setToken("endDate", multirequestToken); + } + + + public CollectionCouponGroup() { + super(); + } + + public CollectionCouponGroup(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + id = GsonParser.parseLong(jsonObject.get("id")); + startDate = GsonParser.parseLong(jsonObject.get("startDate")); + endDate = GsonParser.parseLong(jsonObject.get("endDate")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaCollectionCouponGroup"); + kparams.add("id", this.id); + kparams.add("startDate", this.startDate); + kparams.add("endDate", this.endDate); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public CollectionCouponGroup createFromParcel(Parcel source) { + return new CollectionCouponGroup(source); + } + + @Override + public CollectionCouponGroup[] newArray(int size) { + return new CollectionCouponGroup[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.id); + dest.writeValue(this.startDate); + dest.writeValue(this.endDate); + } + + public CollectionCouponGroup(Parcel in) { + super(in); + this.id = (Long)in.readValue(Long.class.getClassLoader()); + this.startDate = (Long)in.readValue(Long.class.getClassLoader()); + this.endDate = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/CollectionEntitlement.java b/KalturaClient/src/main/java/com/kaltura/client/types/CollectionEntitlement.java new file mode 100644 index 000000000..696b1c697 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/CollectionEntitlement.java @@ -0,0 +1,82 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(CollectionEntitlement.Tokenizer.class) +public class CollectionEntitlement extends Entitlement { + + public interface Tokenizer extends Entitlement.Tokenizer { + } + + + + public CollectionEntitlement() { + super(); + } + + public CollectionEntitlement(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaCollectionEntitlement"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public CollectionEntitlement createFromParcel(Parcel source) { + return new CollectionEntitlement(source); + } + + @Override + public CollectionEntitlement[] newArray(int size) { + return new CollectionEntitlement[size]; + } + }; + + public CollectionEntitlement(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/CollectionFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/CollectionFilter.java new file mode 100644 index 000000000..dff52f32d --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/CollectionFilter.java @@ -0,0 +1,223 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Collection Filter + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(CollectionFilter.Tokenizer.class) +public class CollectionFilter extends Filter { + + public interface Tokenizer extends Filter.Tokenizer { + String collectionIdIn(); + String mediaFileIdEqual(); + String couponGroupIdEqual(); + String alsoInactive(); + String assetUserRuleIdIn(); + String nameContains(); + } + + /** + * Comma separated collection IDs + */ + private String collectionIdIn; + /** + * Media-file ID to get the collections by + */ + private Integer mediaFileIdEqual; + /** + * couponGroupIdEqual + */ + private Integer couponGroupIdEqual; + /** + * return also inactive + */ + private Boolean alsoInactive; + /** + * comma-separated list of KalturaCollection.assetUserRuleId values. Matching + KalturaCollection objects will be returned by the filter. + */ + private String assetUserRuleIdIn; + /** + * A string that is included in the collection name + */ + private String nameContains; + + // collectionIdIn: + public String getCollectionIdIn(){ + return this.collectionIdIn; + } + public void setCollectionIdIn(String collectionIdIn){ + this.collectionIdIn = collectionIdIn; + } + + public void collectionIdIn(String multirequestToken){ + setToken("collectionIdIn", multirequestToken); + } + + // mediaFileIdEqual: + public Integer getMediaFileIdEqual(){ + return this.mediaFileIdEqual; + } + public void setMediaFileIdEqual(Integer mediaFileIdEqual){ + this.mediaFileIdEqual = mediaFileIdEqual; + } + + public void mediaFileIdEqual(String multirequestToken){ + setToken("mediaFileIdEqual", multirequestToken); + } + + // couponGroupIdEqual: + public Integer getCouponGroupIdEqual(){ + return this.couponGroupIdEqual; + } + public void setCouponGroupIdEqual(Integer couponGroupIdEqual){ + this.couponGroupIdEqual = couponGroupIdEqual; + } + + public void couponGroupIdEqual(String multirequestToken){ + setToken("couponGroupIdEqual", multirequestToken); + } + + // alsoInactive: + public Boolean getAlsoInactive(){ + return this.alsoInactive; + } + public void setAlsoInactive(Boolean alsoInactive){ + this.alsoInactive = alsoInactive; + } + + public void alsoInactive(String multirequestToken){ + setToken("alsoInactive", multirequestToken); + } + + // assetUserRuleIdIn: + public String getAssetUserRuleIdIn(){ + return this.assetUserRuleIdIn; + } + public void setAssetUserRuleIdIn(String assetUserRuleIdIn){ + this.assetUserRuleIdIn = assetUserRuleIdIn; + } + + public void assetUserRuleIdIn(String multirequestToken){ + setToken("assetUserRuleIdIn", multirequestToken); + } + + // nameContains: + public String getNameContains(){ + return this.nameContains; + } + public void setNameContains(String nameContains){ + this.nameContains = nameContains; + } + + public void nameContains(String multirequestToken){ + setToken("nameContains", multirequestToken); + } + + + public CollectionFilter() { + super(); + } + + public CollectionFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + collectionIdIn = GsonParser.parseString(jsonObject.get("collectionIdIn")); + mediaFileIdEqual = GsonParser.parseInt(jsonObject.get("mediaFileIdEqual")); + couponGroupIdEqual = GsonParser.parseInt(jsonObject.get("couponGroupIdEqual")); + alsoInactive = GsonParser.parseBoolean(jsonObject.get("alsoInactive")); + assetUserRuleIdIn = GsonParser.parseString(jsonObject.get("assetUserRuleIdIn")); + nameContains = GsonParser.parseString(jsonObject.get("nameContains")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaCollectionFilter"); + kparams.add("collectionIdIn", this.collectionIdIn); + kparams.add("mediaFileIdEqual", this.mediaFileIdEqual); + kparams.add("couponGroupIdEqual", this.couponGroupIdEqual); + kparams.add("alsoInactive", this.alsoInactive); + kparams.add("assetUserRuleIdIn", this.assetUserRuleIdIn); + kparams.add("nameContains", this.nameContains); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public CollectionFilter createFromParcel(Parcel source) { + return new CollectionFilter(source); + } + + @Override + public CollectionFilter[] newArray(int size) { + return new CollectionFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.collectionIdIn); + dest.writeValue(this.mediaFileIdEqual); + dest.writeValue(this.couponGroupIdEqual); + dest.writeValue(this.alsoInactive); + dest.writeString(this.assetUserRuleIdIn); + dest.writeString(this.nameContains); + } + + public CollectionFilter(Parcel in) { + super(in); + this.collectionIdIn = in.readString(); + this.mediaFileIdEqual = (Integer)in.readValue(Integer.class.getClassLoader()); + this.couponGroupIdEqual = (Integer)in.readValue(Integer.class.getClassLoader()); + this.alsoInactive = (Boolean)in.readValue(Boolean.class.getClassLoader()); + this.assetUserRuleIdIn = in.readString(); + this.nameContains = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/CollectionPrice.java b/KalturaClient/src/main/java/com/kaltura/client/types/CollectionPrice.java new file mode 100644 index 000000000..6fb8a3770 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/CollectionPrice.java @@ -0,0 +1,85 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Collection price details + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(CollectionPrice.Tokenizer.class) +public class CollectionPrice extends ProductPrice { + + public interface Tokenizer extends ProductPrice.Tokenizer { + } + + + + public CollectionPrice() { + super(); + } + + public CollectionPrice(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaCollectionPrice"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public CollectionPrice createFromParcel(Parcel source) { + return new CollectionPrice(source); + } + + @Override + public CollectionPrice[] newArray(int size) { + return new CollectionPrice[size]; + } + }; + + public CollectionPrice(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/CommercePartnerConfig.java b/KalturaClient/src/main/java/com/kaltura/client/types/CommercePartnerConfig.java new file mode 100644 index 000000000..c38641074 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/CommercePartnerConfig.java @@ -0,0 +1,191 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.ArrayList; +import java.util.List; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * partner configuration for commerce + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(CommercePartnerConfig.Tokenizer.class) +public class CommercePartnerConfig extends PartnerConfiguration { + + public interface Tokenizer extends PartnerConfiguration.Tokenizer { + RequestBuilder.ListTokenizer bookmarkEventThresholds(); + String keepSubscriptionAddOns(); + String programAssetEntitlementPaddingStart(); + String programAssetEntitlementPaddingEnd(); + } + + /** + * configuration for bookmark event threshold (when to dispatch the event) in + seconds. + */ + private List bookmarkEventThresholds; + /** + * configuration for keep add-ons after subscription deletion + */ + private Boolean keepSubscriptionAddOns; + /** + * configuration for asset start entitlement padding e.g. asset start time - + padding still relevant for asset + */ + private Integer programAssetEntitlementPaddingStart; + /** + * configuration for asset end entitlement padding e.g. asset end time + padding + still relevant for asset + */ + private Integer programAssetEntitlementPaddingEnd; + + // bookmarkEventThresholds: + public List getBookmarkEventThresholds(){ + return this.bookmarkEventThresholds; + } + public void setBookmarkEventThresholds(List bookmarkEventThresholds){ + this.bookmarkEventThresholds = bookmarkEventThresholds; + } + + // keepSubscriptionAddOns: + public Boolean getKeepSubscriptionAddOns(){ + return this.keepSubscriptionAddOns; + } + public void setKeepSubscriptionAddOns(Boolean keepSubscriptionAddOns){ + this.keepSubscriptionAddOns = keepSubscriptionAddOns; + } + + public void keepSubscriptionAddOns(String multirequestToken){ + setToken("keepSubscriptionAddOns", multirequestToken); + } + + // programAssetEntitlementPaddingStart: + public Integer getProgramAssetEntitlementPaddingStart(){ + return this.programAssetEntitlementPaddingStart; + } + public void setProgramAssetEntitlementPaddingStart(Integer programAssetEntitlementPaddingStart){ + this.programAssetEntitlementPaddingStart = programAssetEntitlementPaddingStart; + } + + public void programAssetEntitlementPaddingStart(String multirequestToken){ + setToken("programAssetEntitlementPaddingStart", multirequestToken); + } + + // programAssetEntitlementPaddingEnd: + public Integer getProgramAssetEntitlementPaddingEnd(){ + return this.programAssetEntitlementPaddingEnd; + } + public void setProgramAssetEntitlementPaddingEnd(Integer programAssetEntitlementPaddingEnd){ + this.programAssetEntitlementPaddingEnd = programAssetEntitlementPaddingEnd; + } + + public void programAssetEntitlementPaddingEnd(String multirequestToken){ + setToken("programAssetEntitlementPaddingEnd", multirequestToken); + } + + + public CommercePartnerConfig() { + super(); + } + + public CommercePartnerConfig(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + bookmarkEventThresholds = GsonParser.parseArray(jsonObject.getAsJsonArray("bookmarkEventThresholds"), BookmarkEventThreshold.class); + keepSubscriptionAddOns = GsonParser.parseBoolean(jsonObject.get("keepSubscriptionAddOns")); + programAssetEntitlementPaddingStart = GsonParser.parseInt(jsonObject.get("programAssetEntitlementPaddingStart")); + programAssetEntitlementPaddingEnd = GsonParser.parseInt(jsonObject.get("programAssetEntitlementPaddingEnd")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaCommercePartnerConfig"); + kparams.add("bookmarkEventThresholds", this.bookmarkEventThresholds); + kparams.add("keepSubscriptionAddOns", this.keepSubscriptionAddOns); + kparams.add("programAssetEntitlementPaddingStart", this.programAssetEntitlementPaddingStart); + kparams.add("programAssetEntitlementPaddingEnd", this.programAssetEntitlementPaddingEnd); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public CommercePartnerConfig createFromParcel(Parcel source) { + return new CommercePartnerConfig(source); + } + + @Override + public CommercePartnerConfig[] newArray(int size) { + return new CommercePartnerConfig[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + if(this.bookmarkEventThresholds != null) { + dest.writeInt(this.bookmarkEventThresholds.size()); + dest.writeList(this.bookmarkEventThresholds); + } else { + dest.writeInt(-1); + } + dest.writeValue(this.keepSubscriptionAddOns); + dest.writeValue(this.programAssetEntitlementPaddingStart); + dest.writeValue(this.programAssetEntitlementPaddingEnd); + } + + public CommercePartnerConfig(Parcel in) { + super(in); + int bookmarkEventThresholdsSize = in.readInt(); + if( bookmarkEventThresholdsSize > -1) { + this.bookmarkEventThresholds = new ArrayList<>(); + in.readList(this.bookmarkEventThresholds, BookmarkEventThreshold.class.getClassLoader()); + } + this.keepSubscriptionAddOns = (Boolean)in.readValue(Boolean.class.getClassLoader()); + this.programAssetEntitlementPaddingStart = (Integer)in.readValue(Integer.class.getClassLoader()); + this.programAssetEntitlementPaddingEnd = (Integer)in.readValue(Integer.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/Compensation.java b/KalturaClient/src/main/java/com/kaltura/client/types/Compensation.java new file mode 100644 index 000000000..4f741155b --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/Compensation.java @@ -0,0 +1,219 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.CompensationType; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Compensation request parameters + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(Compensation.Tokenizer.class) +public class Compensation extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String id(); + String subscriptionId(); + String compensationType(); + String amount(); + String totalRenewalIterations(); + String appliedRenewalIterations(); + String purchaseId(); + } + + /** + * Compensation identifier + */ + private Long id; + /** + * Subscription identifier + */ + private Long subscriptionId; + /** + * Compensation type + */ + private CompensationType compensationType; + /** + * Compensation amount + */ + private Double amount; + /** + * The number of renewals for compensation + */ + private Integer totalRenewalIterations; + /** + * The number of renewals the compensation was already applied on + */ + private Integer appliedRenewalIterations; + /** + * Purchase identifier + */ + private Integer purchaseId; + + // id: + public Long getId(){ + return this.id; + } + // subscriptionId: + public Long getSubscriptionId(){ + return this.subscriptionId; + } + // compensationType: + public CompensationType getCompensationType(){ + return this.compensationType; + } + public void setCompensationType(CompensationType compensationType){ + this.compensationType = compensationType; + } + + public void compensationType(String multirequestToken){ + setToken("compensationType", multirequestToken); + } + + // amount: + public Double getAmount(){ + return this.amount; + } + public void setAmount(Double amount){ + this.amount = amount; + } + + public void amount(String multirequestToken){ + setToken("amount", multirequestToken); + } + + // totalRenewalIterations: + public Integer getTotalRenewalIterations(){ + return this.totalRenewalIterations; + } + public void setTotalRenewalIterations(Integer totalRenewalIterations){ + this.totalRenewalIterations = totalRenewalIterations; + } + + public void totalRenewalIterations(String multirequestToken){ + setToken("totalRenewalIterations", multirequestToken); + } + + // appliedRenewalIterations: + public Integer getAppliedRenewalIterations(){ + return this.appliedRenewalIterations; + } + // purchaseId: + public Integer getPurchaseId(){ + return this.purchaseId; + } + public void setPurchaseId(Integer purchaseId){ + this.purchaseId = purchaseId; + } + + public void purchaseId(String multirequestToken){ + setToken("purchaseId", multirequestToken); + } + + + public Compensation() { + super(); + } + + public Compensation(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + id = GsonParser.parseLong(jsonObject.get("id")); + subscriptionId = GsonParser.parseLong(jsonObject.get("subscriptionId")); + compensationType = CompensationType.get(GsonParser.parseString(jsonObject.get("compensationType"))); + amount = GsonParser.parseDouble(jsonObject.get("amount")); + totalRenewalIterations = GsonParser.parseInt(jsonObject.get("totalRenewalIterations")); + appliedRenewalIterations = GsonParser.parseInt(jsonObject.get("appliedRenewalIterations")); + purchaseId = GsonParser.parseInt(jsonObject.get("purchaseId")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaCompensation"); + kparams.add("compensationType", this.compensationType); + kparams.add("amount", this.amount); + kparams.add("totalRenewalIterations", this.totalRenewalIterations); + kparams.add("purchaseId", this.purchaseId); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public Compensation createFromParcel(Parcel source) { + return new Compensation(source); + } + + @Override + public Compensation[] newArray(int size) { + return new Compensation[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.id); + dest.writeValue(this.subscriptionId); + dest.writeInt(this.compensationType == null ? -1 : this.compensationType.ordinal()); + dest.writeValue(this.amount); + dest.writeValue(this.totalRenewalIterations); + dest.writeValue(this.appliedRenewalIterations); + dest.writeValue(this.purchaseId); + } + + public Compensation(Parcel in) { + super(in); + this.id = (Long)in.readValue(Long.class.getClassLoader()); + this.subscriptionId = (Long)in.readValue(Long.class.getClassLoader()); + int tmpCompensationType = in.readInt(); + this.compensationType = tmpCompensationType == -1 ? null : CompensationType.values()[tmpCompensationType]; + this.amount = (Double)in.readValue(Double.class.getClassLoader()); + this.totalRenewalIterations = (Integer)in.readValue(Integer.class.getClassLoader()); + this.appliedRenewalIterations = (Integer)in.readValue(Integer.class.getClassLoader()); + this.purchaseId = (Integer)in.readValue(Integer.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/CompensationEntitlementDiscountDetails.java b/KalturaClient/src/main/java/com/kaltura/client/types/CompensationEntitlementDiscountDetails.java new file mode 100644 index 000000000..63d5b7caa --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/CompensationEntitlementDiscountDetails.java @@ -0,0 +1,85 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Compensation entitlement discount details + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(CompensationEntitlementDiscountDetails.Tokenizer.class) +public class CompensationEntitlementDiscountDetails extends EntitlementDiscountDetailsIdentifier { + + public interface Tokenizer extends EntitlementDiscountDetailsIdentifier.Tokenizer { + } + + + + public CompensationEntitlementDiscountDetails() { + super(); + } + + public CompensationEntitlementDiscountDetails(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaCompensationEntitlementDiscountDetails"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public CompensationEntitlementDiscountDetails createFromParcel(Parcel source) { + return new CompensationEntitlementDiscountDetails(source); + } + + @Override + public CompensationEntitlementDiscountDetails[] newArray(int size) { + return new CompensationEntitlementDiscountDetails[size]; + } + }; + + public CompensationEntitlementDiscountDetails(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ConcurrencyCondition.java b/KalturaClient/src/main/java/com/kaltura/client/types/ConcurrencyCondition.java new file mode 100644 index 000000000..2e785d800 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ConcurrencyCondition.java @@ -0,0 +1,140 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.ConcurrencyLimitationType; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Asset Condition + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ConcurrencyCondition.Tokenizer.class) +public class ConcurrencyCondition extends AssetCondition { + + public interface Tokenizer extends AssetCondition.Tokenizer { + String limit(); + String concurrencyLimitationType(); + } + + /** + * Concurrency limitation + */ + private Integer limit; + /** + * Concurrency limitation type + */ + private ConcurrencyLimitationType concurrencyLimitationType; + + // limit: + public Integer getLimit(){ + return this.limit; + } + public void setLimit(Integer limit){ + this.limit = limit; + } + + public void limit(String multirequestToken){ + setToken("limit", multirequestToken); + } + + // concurrencyLimitationType: + public ConcurrencyLimitationType getConcurrencyLimitationType(){ + return this.concurrencyLimitationType; + } + public void setConcurrencyLimitationType(ConcurrencyLimitationType concurrencyLimitationType){ + this.concurrencyLimitationType = concurrencyLimitationType; + } + + public void concurrencyLimitationType(String multirequestToken){ + setToken("concurrencyLimitationType", multirequestToken); + } + + + public ConcurrencyCondition() { + super(); + } + + public ConcurrencyCondition(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + limit = GsonParser.parseInt(jsonObject.get("limit")); + concurrencyLimitationType = ConcurrencyLimitationType.get(GsonParser.parseString(jsonObject.get("concurrencyLimitationType"))); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaConcurrencyCondition"); + kparams.add("limit", this.limit); + kparams.add("concurrencyLimitationType", this.concurrencyLimitationType); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public ConcurrencyCondition createFromParcel(Parcel source) { + return new ConcurrencyCondition(source); + } + + @Override + public ConcurrencyCondition[] newArray(int size) { + return new ConcurrencyCondition[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.limit); + dest.writeInt(this.concurrencyLimitationType == null ? -1 : this.concurrencyLimitationType.ordinal()); + } + + public ConcurrencyCondition(Parcel in) { + super(in); + this.limit = (Integer)in.readValue(Integer.class.getClassLoader()); + int tmpConcurrencyLimitationType = in.readInt(); + this.concurrencyLimitationType = tmpConcurrencyLimitationType == -1 ? null : ConcurrencyLimitationType.values()[tmpConcurrencyLimitationType]; + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ConcurrencyPartnerConfig.java b/KalturaClient/src/main/java/com/kaltura/client/types/ConcurrencyPartnerConfig.java new file mode 100644 index 000000000..214869cca --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ConcurrencyPartnerConfig.java @@ -0,0 +1,204 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.EvictionPolicyType; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Partner concurrency configuration + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ConcurrencyPartnerConfig.Tokenizer.class) +public class ConcurrencyPartnerConfig extends PartnerConfiguration { + + public interface Tokenizer extends PartnerConfiguration.Tokenizer { + String deviceFamilyIds(); + String evictionPolicy(); + String concurrencyThresholdInSeconds(); + String revokeOnDeviceDelete(); + String excludeFreeContentFromConcurrency(); + } + + /** + * Comma separated list of device Family Ids order by their priority. + */ + private String deviceFamilyIds; + /** + * Policy of eviction devices + */ + private EvictionPolicyType evictionPolicy; + /** + * Concurrency threshold in seconds + */ + private Long concurrencyThresholdInSeconds; + /** + * Revoke on device delete + */ + private Boolean revokeOnDeviceDelete; + /** + * If set to true then for all concurrency checks in all APIs, system shall exclude + free content from counting towards the use of a concurrency slot + */ + private Boolean excludeFreeContentFromConcurrency; + + // deviceFamilyIds: + public String getDeviceFamilyIds(){ + return this.deviceFamilyIds; + } + public void setDeviceFamilyIds(String deviceFamilyIds){ + this.deviceFamilyIds = deviceFamilyIds; + } + + public void deviceFamilyIds(String multirequestToken){ + setToken("deviceFamilyIds", multirequestToken); + } + + // evictionPolicy: + public EvictionPolicyType getEvictionPolicy(){ + return this.evictionPolicy; + } + public void setEvictionPolicy(EvictionPolicyType evictionPolicy){ + this.evictionPolicy = evictionPolicy; + } + + public void evictionPolicy(String multirequestToken){ + setToken("evictionPolicy", multirequestToken); + } + + // concurrencyThresholdInSeconds: + public Long getConcurrencyThresholdInSeconds(){ + return this.concurrencyThresholdInSeconds; + } + public void setConcurrencyThresholdInSeconds(Long concurrencyThresholdInSeconds){ + this.concurrencyThresholdInSeconds = concurrencyThresholdInSeconds; + } + + public void concurrencyThresholdInSeconds(String multirequestToken){ + setToken("concurrencyThresholdInSeconds", multirequestToken); + } + + // revokeOnDeviceDelete: + public Boolean getRevokeOnDeviceDelete(){ + return this.revokeOnDeviceDelete; + } + public void setRevokeOnDeviceDelete(Boolean revokeOnDeviceDelete){ + this.revokeOnDeviceDelete = revokeOnDeviceDelete; + } + + public void revokeOnDeviceDelete(String multirequestToken){ + setToken("revokeOnDeviceDelete", multirequestToken); + } + + // excludeFreeContentFromConcurrency: + public Boolean getExcludeFreeContentFromConcurrency(){ + return this.excludeFreeContentFromConcurrency; + } + public void setExcludeFreeContentFromConcurrency(Boolean excludeFreeContentFromConcurrency){ + this.excludeFreeContentFromConcurrency = excludeFreeContentFromConcurrency; + } + + public void excludeFreeContentFromConcurrency(String multirequestToken){ + setToken("excludeFreeContentFromConcurrency", multirequestToken); + } + + + public ConcurrencyPartnerConfig() { + super(); + } + + public ConcurrencyPartnerConfig(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + deviceFamilyIds = GsonParser.parseString(jsonObject.get("deviceFamilyIds")); + evictionPolicy = EvictionPolicyType.get(GsonParser.parseString(jsonObject.get("evictionPolicy"))); + concurrencyThresholdInSeconds = GsonParser.parseLong(jsonObject.get("concurrencyThresholdInSeconds")); + revokeOnDeviceDelete = GsonParser.parseBoolean(jsonObject.get("revokeOnDeviceDelete")); + excludeFreeContentFromConcurrency = GsonParser.parseBoolean(jsonObject.get("excludeFreeContentFromConcurrency")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaConcurrencyPartnerConfig"); + kparams.add("deviceFamilyIds", this.deviceFamilyIds); + kparams.add("evictionPolicy", this.evictionPolicy); + kparams.add("concurrencyThresholdInSeconds", this.concurrencyThresholdInSeconds); + kparams.add("revokeOnDeviceDelete", this.revokeOnDeviceDelete); + kparams.add("excludeFreeContentFromConcurrency", this.excludeFreeContentFromConcurrency); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public ConcurrencyPartnerConfig createFromParcel(Parcel source) { + return new ConcurrencyPartnerConfig(source); + } + + @Override + public ConcurrencyPartnerConfig[] newArray(int size) { + return new ConcurrencyPartnerConfig[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.deviceFamilyIds); + dest.writeInt(this.evictionPolicy == null ? -1 : this.evictionPolicy.ordinal()); + dest.writeValue(this.concurrencyThresholdInSeconds); + dest.writeValue(this.revokeOnDeviceDelete); + dest.writeValue(this.excludeFreeContentFromConcurrency); + } + + public ConcurrencyPartnerConfig(Parcel in) { + super(in); + this.deviceFamilyIds = in.readString(); + int tmpEvictionPolicy = in.readInt(); + this.evictionPolicy = tmpEvictionPolicy == -1 ? null : EvictionPolicyType.values()[tmpEvictionPolicy]; + this.concurrencyThresholdInSeconds = (Long)in.readValue(Long.class.getClassLoader()); + this.revokeOnDeviceDelete = (Boolean)in.readValue(Boolean.class.getClassLoader()); + this.excludeFreeContentFromConcurrency = (Boolean)in.readValue(Boolean.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ConcurrencyViolation.java b/KalturaClient/src/main/java/com/kaltura/client/types/ConcurrencyViolation.java new file mode 100644 index 000000000..c8e89f86a --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ConcurrencyViolation.java @@ -0,0 +1,219 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ConcurrencyViolation.Tokenizer.class) +public class ConcurrencyViolation extends EventObject { + + public interface Tokenizer extends EventObject.Tokenizer { + String timestamp(); + String udid(); + String assetId(); + String violationRule(); + String householdId(); + String userId(); + } + + /** + * Timestamp + */ + private Long timestamp; + /** + * UDID + */ + private String udid; + /** + * Asset Id + */ + private String assetId; + /** + * Violation Rule + */ + private String violationRule; + /** + * Household Id + */ + private String householdId; + /** + * User Id + */ + private String userId; + + // timestamp: + public Long getTimestamp(){ + return this.timestamp; + } + public void setTimestamp(Long timestamp){ + this.timestamp = timestamp; + } + + public void timestamp(String multirequestToken){ + setToken("timestamp", multirequestToken); + } + + // udid: + public String getUdid(){ + return this.udid; + } + public void setUdid(String udid){ + this.udid = udid; + } + + public void udid(String multirequestToken){ + setToken("udid", multirequestToken); + } + + // assetId: + public String getAssetId(){ + return this.assetId; + } + public void setAssetId(String assetId){ + this.assetId = assetId; + } + + public void assetId(String multirequestToken){ + setToken("assetId", multirequestToken); + } + + // violationRule: + public String getViolationRule(){ + return this.violationRule; + } + public void setViolationRule(String violationRule){ + this.violationRule = violationRule; + } + + public void violationRule(String multirequestToken){ + setToken("violationRule", multirequestToken); + } + + // householdId: + public String getHouseholdId(){ + return this.householdId; + } + public void setHouseholdId(String householdId){ + this.householdId = householdId; + } + + public void householdId(String multirequestToken){ + setToken("householdId", multirequestToken); + } + + // userId: + public String getUserId(){ + return this.userId; + } + public void setUserId(String userId){ + this.userId = userId; + } + + public void userId(String multirequestToken){ + setToken("userId", multirequestToken); + } + + + public ConcurrencyViolation() { + super(); + } + + public ConcurrencyViolation(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + timestamp = GsonParser.parseLong(jsonObject.get("timestamp")); + udid = GsonParser.parseString(jsonObject.get("udid")); + assetId = GsonParser.parseString(jsonObject.get("assetId")); + violationRule = GsonParser.parseString(jsonObject.get("violationRule")); + householdId = GsonParser.parseString(jsonObject.get("householdId")); + userId = GsonParser.parseString(jsonObject.get("userId")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaConcurrencyViolation"); + kparams.add("timestamp", this.timestamp); + kparams.add("udid", this.udid); + kparams.add("assetId", this.assetId); + kparams.add("violationRule", this.violationRule); + kparams.add("householdId", this.householdId); + kparams.add("userId", this.userId); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public ConcurrencyViolation createFromParcel(Parcel source) { + return new ConcurrencyViolation(source); + } + + @Override + public ConcurrencyViolation[] newArray(int size) { + return new ConcurrencyViolation[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.timestamp); + dest.writeString(this.udid); + dest.writeString(this.assetId); + dest.writeString(this.violationRule); + dest.writeString(this.householdId); + dest.writeString(this.userId); + } + + public ConcurrencyViolation(Parcel in) { + super(in); + this.timestamp = (Long)in.readValue(Long.class.getClassLoader()); + this.udid = in.readString(); + this.assetId = in.readString(); + this.violationRule = in.readString(); + this.householdId = in.readString(); + this.userId = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/Condition.java b/KalturaClient/src/main/java/com/kaltura/client/types/Condition.java new file mode 100644 index 000000000..7fad211e4 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/Condition.java @@ -0,0 +1,120 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.RuleConditionType; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Condition + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(Condition.Tokenizer.class) +public abstract class Condition extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String type(); + String description(); + } + + /** + * The type of the condition + */ + private RuleConditionType type; + /** + * Description + */ + private String description; + + // type: + public RuleConditionType getType(){ + return this.type; + } + // description: + public String getDescription(){ + return this.description; + } + public void setDescription(String description){ + this.description = description; + } + + public void description(String multirequestToken){ + setToken("description", multirequestToken); + } + + + public Condition() { + super(); + } + + public Condition(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + type = RuleConditionType.get(GsonParser.parseString(jsonObject.get("type"))); + description = GsonParser.parseString(jsonObject.get("description")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaCondition"); + kparams.add("description", this.description); + return kparams; + } + + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeInt(this.type == null ? -1 : this.type.ordinal()); + dest.writeString(this.description); + } + + public Condition(Parcel in) { + super(in); + int tmpType = in.readInt(); + this.type = tmpType == -1 ? null : RuleConditionType.values()[tmpType]; + this.description = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ConfigurationGroup.java b/KalturaClient/src/main/java/com/kaltura/client/types/ConfigurationGroup.java new file mode 100644 index 000000000..65e421291 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ConfigurationGroup.java @@ -0,0 +1,217 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.ArrayList; +import java.util.List; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ConfigurationGroup.Tokenizer.class) +public class ConfigurationGroup extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String id(); + String name(); + String partnerId(); + String isDefault(); + RequestBuilder.ListTokenizer tags(); + String numberOfDevices(); + RequestBuilder.ListTokenizer configurationIdentifiers(); + } + + /** + * Configuration group identifier + */ + private String id; + /** + * Configuration group name + */ + private String name; + /** + * Partner id + */ + private Integer partnerId; + /** + * Is default + */ + private Boolean isDefault; + /** + * tags + */ + private List tags; + /** + * Number of devices + */ + private Long numberOfDevices; + /** + * Configuration identifiers + */ + private List configurationIdentifiers; + + // id: + public String getId(){ + return this.id; + } + // name: + public String getName(){ + return this.name; + } + public void setName(String name){ + this.name = name; + } + + public void name(String multirequestToken){ + setToken("name", multirequestToken); + } + + // partnerId: + public Integer getPartnerId(){ + return this.partnerId; + } + // isDefault: + public Boolean getIsDefault(){ + return this.isDefault; + } + public void setIsDefault(Boolean isDefault){ + this.isDefault = isDefault; + } + + public void isDefault(String multirequestToken){ + setToken("isDefault", multirequestToken); + } + + // tags: + public List getTags(){ + return this.tags; + } + // numberOfDevices: + public Long getNumberOfDevices(){ + return this.numberOfDevices; + } + // configurationIdentifiers: + public List getConfigurationIdentifiers(){ + return this.configurationIdentifiers; + } + + public ConfigurationGroup() { + super(); + } + + public ConfigurationGroup(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + id = GsonParser.parseString(jsonObject.get("id")); + name = GsonParser.parseString(jsonObject.get("name")); + partnerId = GsonParser.parseInt(jsonObject.get("partnerId")); + isDefault = GsonParser.parseBoolean(jsonObject.get("isDefault")); + tags = GsonParser.parseArray(jsonObject.getAsJsonArray("tags"), StringValue.class); + numberOfDevices = GsonParser.parseLong(jsonObject.get("numberOfDevices")); + configurationIdentifiers = GsonParser.parseArray(jsonObject.getAsJsonArray("configurationIdentifiers"), ConfigurationIdentifier.class); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaConfigurationGroup"); + kparams.add("name", this.name); + kparams.add("isDefault", this.isDefault); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public ConfigurationGroup createFromParcel(Parcel source) { + return new ConfigurationGroup(source); + } + + @Override + public ConfigurationGroup[] newArray(int size) { + return new ConfigurationGroup[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.id); + dest.writeString(this.name); + dest.writeValue(this.partnerId); + dest.writeValue(this.isDefault); + if(this.tags != null) { + dest.writeInt(this.tags.size()); + dest.writeList(this.tags); + } else { + dest.writeInt(-1); + } + dest.writeValue(this.numberOfDevices); + if(this.configurationIdentifiers != null) { + dest.writeInt(this.configurationIdentifiers.size()); + dest.writeList(this.configurationIdentifiers); + } else { + dest.writeInt(-1); + } + } + + public ConfigurationGroup(Parcel in) { + super(in); + this.id = in.readString(); + this.name = in.readString(); + this.partnerId = (Integer)in.readValue(Integer.class.getClassLoader()); + this.isDefault = (Boolean)in.readValue(Boolean.class.getClassLoader()); + int tagsSize = in.readInt(); + if( tagsSize > -1) { + this.tags = new ArrayList<>(); + in.readList(this.tags, StringValue.class.getClassLoader()); + } + this.numberOfDevices = (Long)in.readValue(Long.class.getClassLoader()); + int configurationIdentifiersSize = in.readInt(); + if( configurationIdentifiersSize > -1) { + this.configurationIdentifiers = new ArrayList<>(); + in.readList(this.configurationIdentifiers, ConfigurationIdentifier.class.getClassLoader()); + } + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ConfigurationGroupDevice.java b/KalturaClient/src/main/java/com/kaltura/client/types/ConfigurationGroupDevice.java new file mode 100644 index 000000000..19c31a133 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ConfigurationGroupDevice.java @@ -0,0 +1,148 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ConfigurationGroupDevice.Tokenizer.class) +public class ConfigurationGroupDevice extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String configurationGroupId(); + String partnerId(); + String udid(); + } + + /** + * Configuration group id + */ + private String configurationGroupId; + /** + * Partner id + */ + private Integer partnerId; + /** + * Device UDID + */ + private String udid; + + // configurationGroupId: + public String getConfigurationGroupId(){ + return this.configurationGroupId; + } + public void setConfigurationGroupId(String configurationGroupId){ + this.configurationGroupId = configurationGroupId; + } + + public void configurationGroupId(String multirequestToken){ + setToken("configurationGroupId", multirequestToken); + } + + // partnerId: + public Integer getPartnerId(){ + return this.partnerId; + } + // udid: + public String getUdid(){ + return this.udid; + } + public void setUdid(String udid){ + this.udid = udid; + } + + public void udid(String multirequestToken){ + setToken("udid", multirequestToken); + } + + + public ConfigurationGroupDevice() { + super(); + } + + public ConfigurationGroupDevice(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + configurationGroupId = GsonParser.parseString(jsonObject.get("configurationGroupId")); + partnerId = GsonParser.parseInt(jsonObject.get("partnerId")); + udid = GsonParser.parseString(jsonObject.get("udid")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaConfigurationGroupDevice"); + kparams.add("configurationGroupId", this.configurationGroupId); + kparams.add("udid", this.udid); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public ConfigurationGroupDevice createFromParcel(Parcel source) { + return new ConfigurationGroupDevice(source); + } + + @Override + public ConfigurationGroupDevice[] newArray(int size) { + return new ConfigurationGroupDevice[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.configurationGroupId); + dest.writeValue(this.partnerId); + dest.writeString(this.udid); + } + + public ConfigurationGroupDevice(Parcel in) { + super(in); + this.configurationGroupId = in.readString(); + this.partnerId = (Integer)in.readValue(Integer.class.getClassLoader()); + this.udid = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ConfigurationGroupDeviceFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/ConfigurationGroupDeviceFilter.java new file mode 100644 index 000000000..95e2f938c --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ConfigurationGroupDeviceFilter.java @@ -0,0 +1,118 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Configuration group device filter + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ConfigurationGroupDeviceFilter.Tokenizer.class) +public class ConfigurationGroupDeviceFilter extends Filter { + + public interface Tokenizer extends Filter.Tokenizer { + String configurationGroupIdEqual(); + } + + /** + * the ID of the configuration group for which to return related configurations + group devices + */ + private String configurationGroupIdEqual; + + // configurationGroupIdEqual: + public String getConfigurationGroupIdEqual(){ + return this.configurationGroupIdEqual; + } + public void setConfigurationGroupIdEqual(String configurationGroupIdEqual){ + this.configurationGroupIdEqual = configurationGroupIdEqual; + } + + public void configurationGroupIdEqual(String multirequestToken){ + setToken("configurationGroupIdEqual", multirequestToken); + } + + + public ConfigurationGroupDeviceFilter() { + super(); + } + + public ConfigurationGroupDeviceFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + configurationGroupIdEqual = GsonParser.parseString(jsonObject.get("configurationGroupIdEqual")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaConfigurationGroupDeviceFilter"); + kparams.add("configurationGroupIdEqual", this.configurationGroupIdEqual); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public ConfigurationGroupDeviceFilter createFromParcel(Parcel source) { + return new ConfigurationGroupDeviceFilter(source); + } + + @Override + public ConfigurationGroupDeviceFilter[] newArray(int size) { + return new ConfigurationGroupDeviceFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.configurationGroupIdEqual); + } + + public ConfigurationGroupDeviceFilter(Parcel in) { + super(in); + this.configurationGroupIdEqual = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ConfigurationGroupTag.java b/KalturaClient/src/main/java/com/kaltura/client/types/ConfigurationGroupTag.java new file mode 100644 index 000000000..a9c5e86df --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ConfigurationGroupTag.java @@ -0,0 +1,148 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ConfigurationGroupTag.Tokenizer.class) +public class ConfigurationGroupTag extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String configurationGroupId(); + String partnerId(); + String tag(); + } + + /** + * Configuration group identifier + */ + private String configurationGroupId; + /** + * Partner identifier + */ + private Integer partnerId; + /** + * Tag + */ + private String tag; + + // configurationGroupId: + public String getConfigurationGroupId(){ + return this.configurationGroupId; + } + public void setConfigurationGroupId(String configurationGroupId){ + this.configurationGroupId = configurationGroupId; + } + + public void configurationGroupId(String multirequestToken){ + setToken("configurationGroupId", multirequestToken); + } + + // partnerId: + public Integer getPartnerId(){ + return this.partnerId; + } + // tag: + public String getTag(){ + return this.tag; + } + public void setTag(String tag){ + this.tag = tag; + } + + public void tag(String multirequestToken){ + setToken("tag", multirequestToken); + } + + + public ConfigurationGroupTag() { + super(); + } + + public ConfigurationGroupTag(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + configurationGroupId = GsonParser.parseString(jsonObject.get("configurationGroupId")); + partnerId = GsonParser.parseInt(jsonObject.get("partnerId")); + tag = GsonParser.parseString(jsonObject.get("tag")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaConfigurationGroupTag"); + kparams.add("configurationGroupId", this.configurationGroupId); + kparams.add("tag", this.tag); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public ConfigurationGroupTag createFromParcel(Parcel source) { + return new ConfigurationGroupTag(source); + } + + @Override + public ConfigurationGroupTag[] newArray(int size) { + return new ConfigurationGroupTag[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.configurationGroupId); + dest.writeValue(this.partnerId); + dest.writeString(this.tag); + } + + public ConfigurationGroupTag(Parcel in) { + super(in); + this.configurationGroupId = in.readString(); + this.partnerId = (Integer)in.readValue(Integer.class.getClassLoader()); + this.tag = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ConfigurationGroupTagFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/ConfigurationGroupTagFilter.java new file mode 100644 index 000000000..54310f4ab --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ConfigurationGroupTagFilter.java @@ -0,0 +1,118 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Configuration group tag filter + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ConfigurationGroupTagFilter.Tokenizer.class) +public class ConfigurationGroupTagFilter extends Filter { + + public interface Tokenizer extends Filter.Tokenizer { + String configurationGroupIdEqual(); + } + + /** + * the ID of the configuration group for which to return related configurations + group tags + */ + private String configurationGroupIdEqual; + + // configurationGroupIdEqual: + public String getConfigurationGroupIdEqual(){ + return this.configurationGroupIdEqual; + } + public void setConfigurationGroupIdEqual(String configurationGroupIdEqual){ + this.configurationGroupIdEqual = configurationGroupIdEqual; + } + + public void configurationGroupIdEqual(String multirequestToken){ + setToken("configurationGroupIdEqual", multirequestToken); + } + + + public ConfigurationGroupTagFilter() { + super(); + } + + public ConfigurationGroupTagFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + configurationGroupIdEqual = GsonParser.parseString(jsonObject.get("configurationGroupIdEqual")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaConfigurationGroupTagFilter"); + kparams.add("configurationGroupIdEqual", this.configurationGroupIdEqual); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public ConfigurationGroupTagFilter createFromParcel(Parcel source) { + return new ConfigurationGroupTagFilter(source); + } + + @Override + public ConfigurationGroupTagFilter[] newArray(int size) { + return new ConfigurationGroupTagFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.configurationGroupIdEqual); + } + + public ConfigurationGroupTagFilter(Parcel in) { + super(in); + this.configurationGroupIdEqual = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ConfigurationIdentifier.java b/KalturaClient/src/main/java/com/kaltura/client/types/ConfigurationIdentifier.java new file mode 100644 index 000000000..479c14bac --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ConfigurationIdentifier.java @@ -0,0 +1,136 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ConfigurationIdentifier.Tokenizer.class) +public class ConfigurationIdentifier extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String id(); + String name(); + } + + /** + * Identifier + */ + private String id; + /** + * Name + */ + private String name; + + // id: + public String getId(){ + return this.id; + } + public void setId(String id){ + this.id = id; + } + + public void id(String multirequestToken){ + setToken("id", multirequestToken); + } + + // name: + public String getName(){ + return this.name; + } + public void setName(String name){ + this.name = name; + } + + public void name(String multirequestToken){ + setToken("name", multirequestToken); + } + + + public ConfigurationIdentifier() { + super(); + } + + public ConfigurationIdentifier(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + id = GsonParser.parseString(jsonObject.get("id")); + name = GsonParser.parseString(jsonObject.get("name")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaConfigurationIdentifier"); + kparams.add("id", this.id); + kparams.add("name", this.name); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public ConfigurationIdentifier createFromParcel(Parcel source) { + return new ConfigurationIdentifier(source); + } + + @Override + public ConfigurationIdentifier[] newArray(int size) { + return new ConfigurationIdentifier[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.id); + dest.writeString(this.name); + } + + public ConfigurationIdentifier(Parcel in) { + super(in); + this.id = in.readString(); + this.name = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/Configurations.java b/KalturaClient/src/main/java/com/kaltura/client/types/Configurations.java new file mode 100644 index 000000000..cc92daa49 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/Configurations.java @@ -0,0 +1,269 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.Platform; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(Configurations.Tokenizer.class) +public class Configurations extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String id(); + String partnerId(); + String configurationGroupId(); + String appName(); + String clientVersion(); + String platform(); + String externalPushId(); + String isForceUpdate(); + String content(); + } + + /** + * Configuration id + */ + private String id; + /** + * Partner id + */ + private Integer partnerId; + /** + * Configuration group id + */ + private String configurationGroupId; + /** + * Application name + */ + private String appName; + /** + * Client version + */ + private String clientVersion; + /** + * Platform: Android/iOS/WindowsPhone/Blackberry/STB/CTV/Other + */ + private Platform platform; + /** + * External push id + */ + private String externalPushId; + /** + * The default value for &quot;isForceUpdate&quot; is + &quot;FALSE&quot;. When &quot;isForceUpdate&quot; is not + populated it will revert to its default value. + */ + private Boolean isForceUpdate; + /** + * Content + */ + private String content; + + // id: + public String getId(){ + return this.id; + } + // partnerId: + public Integer getPartnerId(){ + return this.partnerId; + } + // configurationGroupId: + public String getConfigurationGroupId(){ + return this.configurationGroupId; + } + public void setConfigurationGroupId(String configurationGroupId){ + this.configurationGroupId = configurationGroupId; + } + + public void configurationGroupId(String multirequestToken){ + setToken("configurationGroupId", multirequestToken); + } + + // appName: + public String getAppName(){ + return this.appName; + } + public void setAppName(String appName){ + this.appName = appName; + } + + public void appName(String multirequestToken){ + setToken("appName", multirequestToken); + } + + // clientVersion: + public String getClientVersion(){ + return this.clientVersion; + } + public void setClientVersion(String clientVersion){ + this.clientVersion = clientVersion; + } + + public void clientVersion(String multirequestToken){ + setToken("clientVersion", multirequestToken); + } + + // platform: + public Platform getPlatform(){ + return this.platform; + } + public void setPlatform(Platform platform){ + this.platform = platform; + } + + public void platform(String multirequestToken){ + setToken("platform", multirequestToken); + } + + // externalPushId: + public String getExternalPushId(){ + return this.externalPushId; + } + public void setExternalPushId(String externalPushId){ + this.externalPushId = externalPushId; + } + + public void externalPushId(String multirequestToken){ + setToken("externalPushId", multirequestToken); + } + + // isForceUpdate: + public Boolean getIsForceUpdate(){ + return this.isForceUpdate; + } + public void setIsForceUpdate(Boolean isForceUpdate){ + this.isForceUpdate = isForceUpdate; + } + + public void isForceUpdate(String multirequestToken){ + setToken("isForceUpdate", multirequestToken); + } + + // content: + public String getContent(){ + return this.content; + } + public void setContent(String content){ + this.content = content; + } + + public void content(String multirequestToken){ + setToken("content", multirequestToken); + } + + + public Configurations() { + super(); + } + + public Configurations(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + id = GsonParser.parseString(jsonObject.get("id")); + partnerId = GsonParser.parseInt(jsonObject.get("partnerId")); + configurationGroupId = GsonParser.parseString(jsonObject.get("configurationGroupId")); + appName = GsonParser.parseString(jsonObject.get("appName")); + clientVersion = GsonParser.parseString(jsonObject.get("clientVersion")); + platform = Platform.get(GsonParser.parseString(jsonObject.get("platform"))); + externalPushId = GsonParser.parseString(jsonObject.get("externalPushId")); + isForceUpdate = GsonParser.parseBoolean(jsonObject.get("isForceUpdate")); + content = GsonParser.parseString(jsonObject.get("content")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaConfigurations"); + kparams.add("configurationGroupId", this.configurationGroupId); + kparams.add("appName", this.appName); + kparams.add("clientVersion", this.clientVersion); + kparams.add("platform", this.platform); + kparams.add("externalPushId", this.externalPushId); + kparams.add("isForceUpdate", this.isForceUpdate); + kparams.add("content", this.content); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public Configurations createFromParcel(Parcel source) { + return new Configurations(source); + } + + @Override + public Configurations[] newArray(int size) { + return new Configurations[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.id); + dest.writeValue(this.partnerId); + dest.writeString(this.configurationGroupId); + dest.writeString(this.appName); + dest.writeString(this.clientVersion); + dest.writeInt(this.platform == null ? -1 : this.platform.ordinal()); + dest.writeString(this.externalPushId); + dest.writeValue(this.isForceUpdate); + dest.writeString(this.content); + } + + public Configurations(Parcel in) { + super(in); + this.id = in.readString(); + this.partnerId = (Integer)in.readValue(Integer.class.getClassLoader()); + this.configurationGroupId = in.readString(); + this.appName = in.readString(); + this.clientVersion = in.readString(); + int tmpPlatform = in.readInt(); + this.platform = tmpPlatform == -1 ? null : Platform.values()[tmpPlatform]; + this.externalPushId = in.readString(); + this.isForceUpdate = (Boolean)in.readValue(Boolean.class.getClassLoader()); + this.content = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ConfigurationsFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/ConfigurationsFilter.java new file mode 100644 index 000000000..eceff68b1 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ConfigurationsFilter.java @@ -0,0 +1,117 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Configuration filter + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ConfigurationsFilter.Tokenizer.class) +public class ConfigurationsFilter extends Filter { + + public interface Tokenizer extends Filter.Tokenizer { + String configurationGroupIdEqual(); + } + + /** + * the ID of the configuration group for which to return related configurations + */ + private String configurationGroupIdEqual; + + // configurationGroupIdEqual: + public String getConfigurationGroupIdEqual(){ + return this.configurationGroupIdEqual; + } + public void setConfigurationGroupIdEqual(String configurationGroupIdEqual){ + this.configurationGroupIdEqual = configurationGroupIdEqual; + } + + public void configurationGroupIdEqual(String multirequestToken){ + setToken("configurationGroupIdEqual", multirequestToken); + } + + + public ConfigurationsFilter() { + super(); + } + + public ConfigurationsFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + configurationGroupIdEqual = GsonParser.parseString(jsonObject.get("configurationGroupIdEqual")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaConfigurationsFilter"); + kparams.add("configurationGroupIdEqual", this.configurationGroupIdEqual); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public ConfigurationsFilter createFromParcel(Parcel source) { + return new ConfigurationsFilter(source); + } + + @Override + public ConfigurationsFilter[] newArray(int size) { + return new ConfigurationsFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.configurationGroupIdEqual); + } + + public ConfigurationsFilter(Parcel in) { + super(in); + this.configurationGroupIdEqual = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ContentActionCondition.java b/KalturaClient/src/main/java/com/kaltura/client/types/ContentActionCondition.java new file mode 100644 index 000000000..0457e4f51 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ContentActionCondition.java @@ -0,0 +1,187 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.ContentAction; +import com.kaltura.client.enums.ContentActionConditionLengthType; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Segmentation condition regarding content actions + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ContentActionCondition.Tokenizer.class) +public class ContentActionCondition extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String action(); + String length(); + String lengthType(); + String multiplier(); + } + + /** + * The relevant action to be examined + */ + private ContentAction action; + /** + * Optional - if action required specific length to be considered (in percentage or + minutes) + */ + private Integer length; + /** + * Optional - if action required specific length to be considered (in percentage or + minutes) + */ + private ContentActionConditionLengthType lengthType; + /** + * Score multiplier - how much is a single action worth when considering the action + */ + private Integer multiplier; + + // action: + public ContentAction getAction(){ + return this.action; + } + public void setAction(ContentAction action){ + this.action = action; + } + + public void action(String multirequestToken){ + setToken("action", multirequestToken); + } + + // length: + public Integer getLength(){ + return this.length; + } + public void setLength(Integer length){ + this.length = length; + } + + public void length(String multirequestToken){ + setToken("length", multirequestToken); + } + + // lengthType: + public ContentActionConditionLengthType getLengthType(){ + return this.lengthType; + } + public void setLengthType(ContentActionConditionLengthType lengthType){ + this.lengthType = lengthType; + } + + public void lengthType(String multirequestToken){ + setToken("lengthType", multirequestToken); + } + + // multiplier: + public Integer getMultiplier(){ + return this.multiplier; + } + public void setMultiplier(Integer multiplier){ + this.multiplier = multiplier; + } + + public void multiplier(String multirequestToken){ + setToken("multiplier", multirequestToken); + } + + + public ContentActionCondition() { + super(); + } + + public ContentActionCondition(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + action = ContentAction.get(GsonParser.parseString(jsonObject.get("action"))); + length = GsonParser.parseInt(jsonObject.get("length")); + lengthType = ContentActionConditionLengthType.get(GsonParser.parseString(jsonObject.get("lengthType"))); + multiplier = GsonParser.parseInt(jsonObject.get("multiplier")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaContentActionCondition"); + kparams.add("action", this.action); + kparams.add("length", this.length); + kparams.add("lengthType", this.lengthType); + kparams.add("multiplier", this.multiplier); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public ContentActionCondition createFromParcel(Parcel source) { + return new ContentActionCondition(source); + } + + @Override + public ContentActionCondition[] newArray(int size) { + return new ContentActionCondition[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeInt(this.action == null ? -1 : this.action.ordinal()); + dest.writeValue(this.length); + dest.writeInt(this.lengthType == null ? -1 : this.lengthType.ordinal()); + dest.writeValue(this.multiplier); + } + + public ContentActionCondition(Parcel in) { + super(in); + int tmpAction = in.readInt(); + this.action = tmpAction == -1 ? null : ContentAction.values()[tmpAction]; + this.length = (Integer)in.readValue(Integer.class.getClassLoader()); + int tmpLengthType = in.readInt(); + this.lengthType = tmpLengthType == -1 ? null : ContentActionConditionLengthType.values()[tmpLengthType]; + this.multiplier = (Integer)in.readValue(Integer.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ContentResource.java b/KalturaClient/src/main/java/com/kaltura/client/types/ContentResource.java new file mode 100644 index 000000000..83a7fd1d1 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ContentResource.java @@ -0,0 +1,71 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ContentResource.Tokenizer.class) +public abstract class ContentResource extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + } + + + + public ContentResource() { + super(); + } + + public ContentResource(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaContentResource"); + return kparams; + } + + + public ContentResource(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ContentScoreCondition.java b/KalturaClient/src/main/java/com/kaltura/client/types/ContentScoreCondition.java new file mode 100644 index 000000000..51dc59cc3 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ContentScoreCondition.java @@ -0,0 +1,238 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.ArrayList; +import java.util.List; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Defines a condition which is essentially a combination of several content-based + actions, each has their own score multiplier + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ContentScoreCondition.Tokenizer.class) +public class ContentScoreCondition extends BaseSegmentCondition { + + public interface Tokenizer extends BaseSegmentCondition.Tokenizer { + String minScore(); + String maxScore(); + String days(); + String field(); + RequestBuilder.ListTokenizer values(); + RequestBuilder.ListTokenizer actions(); + } + + /** + * The minimum score to be met + */ + private Integer minScore; + /** + * The maximum score to be met + */ + private Integer maxScore; + /** + * How many days back should the actions be considered + */ + private Integer days; + /** + * If condition should be applied on specific field (and not the one of the segment + value) + */ + private String field; + /** + * If condition should be applied on specific field (and not the one of the segment + value) - list of values to be considered together + */ + private List values; + /** + * List of the actions that consist the condition + */ + private List actions; + + // minScore: + public Integer getMinScore(){ + return this.minScore; + } + public void setMinScore(Integer minScore){ + this.minScore = minScore; + } + + public void minScore(String multirequestToken){ + setToken("minScore", multirequestToken); + } + + // maxScore: + public Integer getMaxScore(){ + return this.maxScore; + } + public void setMaxScore(Integer maxScore){ + this.maxScore = maxScore; + } + + public void maxScore(String multirequestToken){ + setToken("maxScore", multirequestToken); + } + + // days: + public Integer getDays(){ + return this.days; + } + public void setDays(Integer days){ + this.days = days; + } + + public void days(String multirequestToken){ + setToken("days", multirequestToken); + } + + // field: + public String getField(){ + return this.field; + } + public void setField(String field){ + this.field = field; + } + + public void field(String multirequestToken){ + setToken("field", multirequestToken); + } + + // values: + public List getValues(){ + return this.values; + } + public void setValues(List values){ + this.values = values; + } + + // actions: + public List getActions(){ + return this.actions; + } + public void setActions(List actions){ + this.actions = actions; + } + + + public ContentScoreCondition() { + super(); + } + + public ContentScoreCondition(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + minScore = GsonParser.parseInt(jsonObject.get("minScore")); + maxScore = GsonParser.parseInt(jsonObject.get("maxScore")); + days = GsonParser.parseInt(jsonObject.get("days")); + field = GsonParser.parseString(jsonObject.get("field")); + values = GsonParser.parseArray(jsonObject.getAsJsonArray("values"), StringValue.class); + actions = GsonParser.parseArray(jsonObject.getAsJsonArray("actions"), ContentActionCondition.class); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaContentScoreCondition"); + kparams.add("minScore", this.minScore); + kparams.add("maxScore", this.maxScore); + kparams.add("days", this.days); + kparams.add("field", this.field); + kparams.add("values", this.values); + kparams.add("actions", this.actions); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public ContentScoreCondition createFromParcel(Parcel source) { + return new ContentScoreCondition(source); + } + + @Override + public ContentScoreCondition[] newArray(int size) { + return new ContentScoreCondition[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.minScore); + dest.writeValue(this.maxScore); + dest.writeValue(this.days); + dest.writeString(this.field); + if(this.values != null) { + dest.writeInt(this.values.size()); + dest.writeList(this.values); + } else { + dest.writeInt(-1); + } + if(this.actions != null) { + dest.writeInt(this.actions.size()); + dest.writeList(this.actions); + } else { + dest.writeInt(-1); + } + } + + public ContentScoreCondition(Parcel in) { + super(in); + this.minScore = (Integer)in.readValue(Integer.class.getClassLoader()); + this.maxScore = (Integer)in.readValue(Integer.class.getClassLoader()); + this.days = (Integer)in.readValue(Integer.class.getClassLoader()); + this.field = in.readString(); + int valuesSize = in.readInt(); + if( valuesSize > -1) { + this.values = new ArrayList<>(); + in.readList(this.values, StringValue.class.getClassLoader()); + } + int actionsSize = in.readInt(); + if( actionsSize > -1) { + this.actions = new ArrayList<>(); + in.readList(this.actions, ContentActionCondition.class.getClassLoader()); + } + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ContentSource.java b/KalturaClient/src/main/java/com/kaltura/client/types/ContentSource.java new file mode 100644 index 000000000..8c50f7384 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ContentSource.java @@ -0,0 +1,117 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Content based source (meta, tag etc.) + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ContentSource.Tokenizer.class) +public class ContentSource extends SegmentSource { + + public interface Tokenizer extends SegmentSource.Tokenizer { + String field(); + } + + /** + * Topic (meta or tag) name + */ + private String field; + + // field: + public String getField(){ + return this.field; + } + public void setField(String field){ + this.field = field; + } + + public void field(String multirequestToken){ + setToken("field", multirequestToken); + } + + + public ContentSource() { + super(); + } + + public ContentSource(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + field = GsonParser.parseString(jsonObject.get("field")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaContentSource"); + kparams.add("field", this.field); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public ContentSource createFromParcel(Parcel source) { + return new ContentSource(source); + } + + @Override + public ContentSource[] newArray(int size) { + return new ContentSource[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.field); + } + + public ContentSource(Parcel in) { + super(in); + this.field = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/Country.java b/KalturaClient/src/main/java/com/kaltura/client/types/Country.java new file mode 100644 index 000000000..c297833b1 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/Country.java @@ -0,0 +1,277 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Country details + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(Country.Tokenizer.class) +public class Country extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String id(); + String name(); + String code(); + String mainLanguageCode(); + String languagesCode(); + String currency(); + String currencySign(); + String vatPercent(); + String timeZoneId(); + } + + /** + * Country identifier + */ + private Integer id; + /** + * Country name + */ + private String name; + /** + * Country code + */ + private String code; + /** + * The main language code in the country + */ + private String mainLanguageCode; + /** + * All the languages code that are supported in the country + */ + private String languagesCode; + /** + * Currency code + */ + private String currency; + /** + * Currency Sign + */ + private String currencySign; + /** + * Vat Percent in the country + */ + private Double vatPercent; + /** + * Time zone ID + */ + private String timeZoneId; + + // id: + public Integer getId(){ + return this.id; + } + // name: + public String getName(){ + return this.name; + } + public void setName(String name){ + this.name = name; + } + + public void name(String multirequestToken){ + setToken("name", multirequestToken); + } + + // code: + public String getCode(){ + return this.code; + } + public void setCode(String code){ + this.code = code; + } + + public void code(String multirequestToken){ + setToken("code", multirequestToken); + } + + // mainLanguageCode: + public String getMainLanguageCode(){ + return this.mainLanguageCode; + } + public void setMainLanguageCode(String mainLanguageCode){ + this.mainLanguageCode = mainLanguageCode; + } + + public void mainLanguageCode(String multirequestToken){ + setToken("mainLanguageCode", multirequestToken); + } + + // languagesCode: + public String getLanguagesCode(){ + return this.languagesCode; + } + public void setLanguagesCode(String languagesCode){ + this.languagesCode = languagesCode; + } + + public void languagesCode(String multirequestToken){ + setToken("languagesCode", multirequestToken); + } + + // currency: + public String getCurrency(){ + return this.currency; + } + public void setCurrency(String currency){ + this.currency = currency; + } + + public void currency(String multirequestToken){ + setToken("currency", multirequestToken); + } + + // currencySign: + public String getCurrencySign(){ + return this.currencySign; + } + public void setCurrencySign(String currencySign){ + this.currencySign = currencySign; + } + + public void currencySign(String multirequestToken){ + setToken("currencySign", multirequestToken); + } + + // vatPercent: + public Double getVatPercent(){ + return this.vatPercent; + } + public void setVatPercent(Double vatPercent){ + this.vatPercent = vatPercent; + } + + public void vatPercent(String multirequestToken){ + setToken("vatPercent", multirequestToken); + } + + // timeZoneId: + public String getTimeZoneId(){ + return this.timeZoneId; + } + public void setTimeZoneId(String timeZoneId){ + this.timeZoneId = timeZoneId; + } + + public void timeZoneId(String multirequestToken){ + setToken("timeZoneId", multirequestToken); + } + + + public Country() { + super(); + } + + public Country(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + id = GsonParser.parseInt(jsonObject.get("id")); + name = GsonParser.parseString(jsonObject.get("name")); + code = GsonParser.parseString(jsonObject.get("code")); + mainLanguageCode = GsonParser.parseString(jsonObject.get("mainLanguageCode")); + languagesCode = GsonParser.parseString(jsonObject.get("languagesCode")); + currency = GsonParser.parseString(jsonObject.get("currency")); + currencySign = GsonParser.parseString(jsonObject.get("currencySign")); + vatPercent = GsonParser.parseDouble(jsonObject.get("vatPercent")); + timeZoneId = GsonParser.parseString(jsonObject.get("timeZoneId")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaCountry"); + kparams.add("name", this.name); + kparams.add("code", this.code); + kparams.add("mainLanguageCode", this.mainLanguageCode); + kparams.add("languagesCode", this.languagesCode); + kparams.add("currency", this.currency); + kparams.add("currencySign", this.currencySign); + kparams.add("vatPercent", this.vatPercent); + kparams.add("timeZoneId", this.timeZoneId); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public Country createFromParcel(Parcel source) { + return new Country(source); + } + + @Override + public Country[] newArray(int size) { + return new Country[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.id); + dest.writeString(this.name); + dest.writeString(this.code); + dest.writeString(this.mainLanguageCode); + dest.writeString(this.languagesCode); + dest.writeString(this.currency); + dest.writeString(this.currencySign); + dest.writeValue(this.vatPercent); + dest.writeString(this.timeZoneId); + } + + public Country(Parcel in) { + super(in); + this.id = (Integer)in.readValue(Integer.class.getClassLoader()); + this.name = in.readString(); + this.code = in.readString(); + this.mainLanguageCode = in.readString(); + this.languagesCode = in.readString(); + this.currency = in.readString(); + this.currencySign = in.readString(); + this.vatPercent = (Double)in.readValue(Double.class.getClassLoader()); + this.timeZoneId = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/CountryCondition.java b/KalturaClient/src/main/java/com/kaltura/client/types/CountryCondition.java new file mode 100644 index 000000000..24023e72d --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/CountryCondition.java @@ -0,0 +1,117 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Country condition + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(CountryCondition.Tokenizer.class) +public class CountryCondition extends NotCondition { + + public interface Tokenizer extends NotCondition.Tokenizer { + String countries(); + } + + /** + * Comma separated countries IDs list + */ + private String countries; + + // countries: + public String getCountries(){ + return this.countries; + } + public void setCountries(String countries){ + this.countries = countries; + } + + public void countries(String multirequestToken){ + setToken("countries", multirequestToken); + } + + + public CountryCondition() { + super(); + } + + public CountryCondition(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + countries = GsonParser.parseString(jsonObject.get("countries")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaCountryCondition"); + kparams.add("countries", this.countries); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public CountryCondition createFromParcel(Parcel source) { + return new CountryCondition(source); + } + + @Override + public CountryCondition[] newArray(int size) { + return new CountryCondition[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.countries); + } + + public CountryCondition(Parcel in) { + super(in); + this.countries = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/CountryFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/CountryFilter.java new file mode 100644 index 000000000..acbee7407 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/CountryFilter.java @@ -0,0 +1,159 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Country filter + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(CountryFilter.Tokenizer.class) +public class CountryFilter extends Filter { + + public interface Tokenizer extends Filter.Tokenizer { + String idIn(); + String ipEqual(); + String ipEqualCurrent(); + } + + /** + * Country identifiers + */ + private String idIn; + /** + * Ip to identify the country + */ + private String ipEqual; + /** + * Indicates if to get the IP from the request + */ + private Boolean ipEqualCurrent; + + // idIn: + public String getIdIn(){ + return this.idIn; + } + public void setIdIn(String idIn){ + this.idIn = idIn; + } + + public void idIn(String multirequestToken){ + setToken("idIn", multirequestToken); + } + + // ipEqual: + public String getIpEqual(){ + return this.ipEqual; + } + public void setIpEqual(String ipEqual){ + this.ipEqual = ipEqual; + } + + public void ipEqual(String multirequestToken){ + setToken("ipEqual", multirequestToken); + } + + // ipEqualCurrent: + public Boolean getIpEqualCurrent(){ + return this.ipEqualCurrent; + } + public void setIpEqualCurrent(Boolean ipEqualCurrent){ + this.ipEqualCurrent = ipEqualCurrent; + } + + public void ipEqualCurrent(String multirequestToken){ + setToken("ipEqualCurrent", multirequestToken); + } + + + public CountryFilter() { + super(); + } + + public CountryFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + idIn = GsonParser.parseString(jsonObject.get("idIn")); + ipEqual = GsonParser.parseString(jsonObject.get("ipEqual")); + ipEqualCurrent = GsonParser.parseBoolean(jsonObject.get("ipEqualCurrent")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaCountryFilter"); + kparams.add("idIn", this.idIn); + kparams.add("ipEqual", this.ipEqual); + kparams.add("ipEqualCurrent", this.ipEqualCurrent); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public CountryFilter createFromParcel(Parcel source) { + return new CountryFilter(source); + } + + @Override + public CountryFilter[] newArray(int size) { + return new CountryFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.idIn); + dest.writeString(this.ipEqual); + dest.writeValue(this.ipEqualCurrent); + } + + public CountryFilter(Parcel in) { + super(in); + this.idIn = in.readString(); + this.ipEqual = in.readString(); + this.ipEqualCurrent = (Boolean)in.readValue(Boolean.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/Coupon.java b/KalturaClient/src/main/java/com/kaltura/client/types/Coupon.java new file mode 100644 index 000000000..cb53092d1 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/Coupon.java @@ -0,0 +1,160 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.CouponStatus; +import com.kaltura.client.types.CouponsGroup; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Coupon details container + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(Coupon.Tokenizer.class) +public class Coupon extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + CouponsGroup.Tokenizer couponsGroup(); + String status(); + String totalUses(); + String leftUses(); + String couponCode(); + } + + /** + * Coupons group details + */ + private CouponsGroup couponsGroup; + /** + * Coupon status + */ + private CouponStatus status; + /** + * Total available coupon uses + */ + private Integer totalUses; + /** + * Left coupon uses + */ + private Integer leftUses; + /** + * Coupon code + */ + private String couponCode; + + // couponsGroup: + public CouponsGroup getCouponsGroup(){ + return this.couponsGroup; + } + // status: + public CouponStatus getStatus(){ + return this.status; + } + // totalUses: + public Integer getTotalUses(){ + return this.totalUses; + } + // leftUses: + public Integer getLeftUses(){ + return this.leftUses; + } + // couponCode: + public String getCouponCode(){ + return this.couponCode; + } + + public Coupon() { + super(); + } + + public Coupon(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + couponsGroup = GsonParser.parseObject(jsonObject.getAsJsonObject("couponsGroup"), CouponsGroup.class); + status = CouponStatus.get(GsonParser.parseString(jsonObject.get("status"))); + totalUses = GsonParser.parseInt(jsonObject.get("totalUses")); + leftUses = GsonParser.parseInt(jsonObject.get("leftUses")); + couponCode = GsonParser.parseString(jsonObject.get("couponCode")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaCoupon"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public Coupon createFromParcel(Parcel source) { + return new Coupon(source); + } + + @Override + public Coupon[] newArray(int size) { + return new Coupon[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeParcelable(this.couponsGroup, flags); + dest.writeInt(this.status == null ? -1 : this.status.ordinal()); + dest.writeValue(this.totalUses); + dest.writeValue(this.leftUses); + dest.writeString(this.couponCode); + } + + public Coupon(Parcel in) { + super(in); + this.couponsGroup = in.readParcelable(CouponsGroup.class.getClassLoader()); + int tmpStatus = in.readInt(); + this.status = tmpStatus == -1 ? null : CouponStatus.values()[tmpStatus]; + this.totalUses = (Integer)in.readValue(Integer.class.getClassLoader()); + this.leftUses = (Integer)in.readValue(Integer.class.getClassLoader()); + this.couponCode = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/CouponEntitlementDiscountDetails.java b/KalturaClient/src/main/java/com/kaltura/client/types/CouponEntitlementDiscountDetails.java new file mode 100644 index 000000000..bd25c53a3 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/CouponEntitlementDiscountDetails.java @@ -0,0 +1,120 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Coupon discount details + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(CouponEntitlementDiscountDetails.Tokenizer.class) +public class CouponEntitlementDiscountDetails extends EntitlementDiscountDetails { + + public interface Tokenizer extends EntitlementDiscountDetails.Tokenizer { + String couponCode(); + String endlessCoupon(); + } + + /** + * Coupon Code + */ + private String couponCode; + /** + * Endless coupon + */ + private Boolean endlessCoupon; + + // couponCode: + public String getCouponCode(){ + return this.couponCode; + } + // endlessCoupon: + public Boolean getEndlessCoupon(){ + return this.endlessCoupon; + } + + public CouponEntitlementDiscountDetails() { + super(); + } + + public CouponEntitlementDiscountDetails(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + couponCode = GsonParser.parseString(jsonObject.get("couponCode")); + endlessCoupon = GsonParser.parseBoolean(jsonObject.get("endlessCoupon")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaCouponEntitlementDiscountDetails"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public CouponEntitlementDiscountDetails createFromParcel(Parcel source) { + return new CouponEntitlementDiscountDetails(source); + } + + @Override + public CouponEntitlementDiscountDetails[] newArray(int size) { + return new CouponEntitlementDiscountDetails[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.couponCode); + dest.writeValue(this.endlessCoupon); + } + + public CouponEntitlementDiscountDetails(Parcel in) { + super(in); + this.couponCode = in.readString(); + this.endlessCoupon = (Boolean)in.readValue(Boolean.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/CouponGenerationOptions.java b/KalturaClient/src/main/java/com/kaltura/client/types/CouponGenerationOptions.java new file mode 100644 index 000000000..0b550bbd2 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/CouponGenerationOptions.java @@ -0,0 +1,86 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Coupon generation options + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(CouponGenerationOptions.Tokenizer.class) +public class CouponGenerationOptions extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + } + + + + public CouponGenerationOptions() { + super(); + } + + public CouponGenerationOptions(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaCouponGenerationOptions"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public CouponGenerationOptions createFromParcel(Parcel source) { + return new CouponGenerationOptions(source); + } + + @Override + public CouponGenerationOptions[] newArray(int size) { + return new CouponGenerationOptions[size]; + } + }; + + public CouponGenerationOptions(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/CouponPromotion.java b/KalturaClient/src/main/java/com/kaltura/client/types/CouponPromotion.java new file mode 100644 index 000000000..0e4868579 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/CouponPromotion.java @@ -0,0 +1,117 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Coupon promotion + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(CouponPromotion.Tokenizer.class) +public class CouponPromotion extends BasePromotion { + + public interface Tokenizer extends BasePromotion.Tokenizer { + String couponGroupId(); + } + + /** + * CouponGroup identifier + */ + private Long couponGroupId; + + // couponGroupId: + public Long getCouponGroupId(){ + return this.couponGroupId; + } + public void setCouponGroupId(Long couponGroupId){ + this.couponGroupId = couponGroupId; + } + + public void couponGroupId(String multirequestToken){ + setToken("couponGroupId", multirequestToken); + } + + + public CouponPromotion() { + super(); + } + + public CouponPromotion(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + couponGroupId = GsonParser.parseLong(jsonObject.get("couponGroupId")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaCouponPromotion"); + kparams.add("couponGroupId", this.couponGroupId); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public CouponPromotion createFromParcel(Parcel source) { + return new CouponPromotion(source); + } + + @Override + public CouponPromotion[] newArray(int size) { + return new CouponPromotion[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.couponGroupId); + } + + public CouponPromotion(Parcel in) { + super(in); + this.couponGroupId = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/CouponsGroup.java b/KalturaClient/src/main/java/com/kaltura/client/types/CouponsGroup.java new file mode 100644 index 000000000..679e966f8 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/CouponsGroup.java @@ -0,0 +1,288 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.CouponGroupType; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Coupons group details + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(CouponsGroup.Tokenizer.class) +public class CouponsGroup extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String id(); + String name(); + String startDate(); + String endDate(); + String maxUsesNumber(); + String maxUsesNumberOnRenewableSub(); + String couponGroupType(); + String maxHouseholdUses(); + String discountId(); + } + + /** + * Coupon group identifier + */ + private String id; + /** + * Coupon group name + */ + private String name; + /** + * The first date the coupons in this coupons group are valid + */ + private Long startDate; + /** + * The last date the coupons in this coupons group are valid + */ + private Long endDate; + /** + * Maximum number of uses for each coupon in the group + */ + private Integer maxUsesNumber; + /** + * Maximum number of uses for each coupon in the group on a renewable subscription + */ + private Integer maxUsesNumberOnRenewableSub; + /** + * Type of the coupon group + */ + private CouponGroupType couponGroupType; + /** + * Maximum number of uses per household for each coupon in the group + */ + private Integer maxHouseholdUses; + /** + * Discount ID + */ + private Long discountId; + + // id: + public String getId(){ + return this.id; + } + public void setId(String id){ + this.id = id; + } + + public void id(String multirequestToken){ + setToken("id", multirequestToken); + } + + // name: + public String getName(){ + return this.name; + } + public void setName(String name){ + this.name = name; + } + + public void name(String multirequestToken){ + setToken("name", multirequestToken); + } + + // startDate: + public Long getStartDate(){ + return this.startDate; + } + public void setStartDate(Long startDate){ + this.startDate = startDate; + } + + public void startDate(String multirequestToken){ + setToken("startDate", multirequestToken); + } + + // endDate: + public Long getEndDate(){ + return this.endDate; + } + public void setEndDate(Long endDate){ + this.endDate = endDate; + } + + public void endDate(String multirequestToken){ + setToken("endDate", multirequestToken); + } + + // maxUsesNumber: + public Integer getMaxUsesNumber(){ + return this.maxUsesNumber; + } + public void setMaxUsesNumber(Integer maxUsesNumber){ + this.maxUsesNumber = maxUsesNumber; + } + + public void maxUsesNumber(String multirequestToken){ + setToken("maxUsesNumber", multirequestToken); + } + + // maxUsesNumberOnRenewableSub: + public Integer getMaxUsesNumberOnRenewableSub(){ + return this.maxUsesNumberOnRenewableSub; + } + public void setMaxUsesNumberOnRenewableSub(Integer maxUsesNumberOnRenewableSub){ + this.maxUsesNumberOnRenewableSub = maxUsesNumberOnRenewableSub; + } + + public void maxUsesNumberOnRenewableSub(String multirequestToken){ + setToken("maxUsesNumberOnRenewableSub", multirequestToken); + } + + // couponGroupType: + public CouponGroupType getCouponGroupType(){ + return this.couponGroupType; + } + public void setCouponGroupType(CouponGroupType couponGroupType){ + this.couponGroupType = couponGroupType; + } + + public void couponGroupType(String multirequestToken){ + setToken("couponGroupType", multirequestToken); + } + + // maxHouseholdUses: + public Integer getMaxHouseholdUses(){ + return this.maxHouseholdUses; + } + public void setMaxHouseholdUses(Integer maxHouseholdUses){ + this.maxHouseholdUses = maxHouseholdUses; + } + + public void maxHouseholdUses(String multirequestToken){ + setToken("maxHouseholdUses", multirequestToken); + } + + // discountId: + public Long getDiscountId(){ + return this.discountId; + } + public void setDiscountId(Long discountId){ + this.discountId = discountId; + } + + public void discountId(String multirequestToken){ + setToken("discountId", multirequestToken); + } + + + public CouponsGroup() { + super(); + } + + public CouponsGroup(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + id = GsonParser.parseString(jsonObject.get("id")); + name = GsonParser.parseString(jsonObject.get("name")); + startDate = GsonParser.parseLong(jsonObject.get("startDate")); + endDate = GsonParser.parseLong(jsonObject.get("endDate")); + maxUsesNumber = GsonParser.parseInt(jsonObject.get("maxUsesNumber")); + maxUsesNumberOnRenewableSub = GsonParser.parseInt(jsonObject.get("maxUsesNumberOnRenewableSub")); + couponGroupType = CouponGroupType.get(GsonParser.parseString(jsonObject.get("couponGroupType"))); + maxHouseholdUses = GsonParser.parseInt(jsonObject.get("maxHouseholdUses")); + discountId = GsonParser.parseLong(jsonObject.get("discountId")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaCouponsGroup"); + kparams.add("id", this.id); + kparams.add("name", this.name); + kparams.add("startDate", this.startDate); + kparams.add("endDate", this.endDate); + kparams.add("maxUsesNumber", this.maxUsesNumber); + kparams.add("maxUsesNumberOnRenewableSub", this.maxUsesNumberOnRenewableSub); + kparams.add("couponGroupType", this.couponGroupType); + kparams.add("maxHouseholdUses", this.maxHouseholdUses); + kparams.add("discountId", this.discountId); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public CouponsGroup createFromParcel(Parcel source) { + return new CouponsGroup(source); + } + + @Override + public CouponsGroup[] newArray(int size) { + return new CouponsGroup[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.id); + dest.writeString(this.name); + dest.writeValue(this.startDate); + dest.writeValue(this.endDate); + dest.writeValue(this.maxUsesNumber); + dest.writeValue(this.maxUsesNumberOnRenewableSub); + dest.writeInt(this.couponGroupType == null ? -1 : this.couponGroupType.ordinal()); + dest.writeValue(this.maxHouseholdUses); + dest.writeValue(this.discountId); + } + + public CouponsGroup(Parcel in) { + super(in); + this.id = in.readString(); + this.name = in.readString(); + this.startDate = (Long)in.readValue(Long.class.getClassLoader()); + this.endDate = (Long)in.readValue(Long.class.getClassLoader()); + this.maxUsesNumber = (Integer)in.readValue(Integer.class.getClassLoader()); + this.maxUsesNumberOnRenewableSub = (Integer)in.readValue(Integer.class.getClassLoader()); + int tmpCouponGroupType = in.readInt(); + this.couponGroupType = tmpCouponGroupType == -1 ? null : CouponGroupType.values()[tmpCouponGroupType]; + this.maxHouseholdUses = (Integer)in.readValue(Integer.class.getClassLoader()); + this.discountId = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/Currency.java b/KalturaClient/src/main/java/com/kaltura/client/types/Currency.java new file mode 100644 index 000000000..da533cbb8 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/Currency.java @@ -0,0 +1,202 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Currency details + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(Currency.Tokenizer.class) +public class Currency extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String id(); + String name(); + String code(); + String sign(); + String isDefault(); + } + + /** + * Identifier + */ + private Integer id; + /** + * Currency name + */ + private String name; + /** + * Currency code + */ + private String code; + /** + * Currency Sign + */ + private String sign; + /** + * Is the default Currency of the account + */ + private Boolean isDefault; + + // id: + public Integer getId(){ + return this.id; + } + public void setId(Integer id){ + this.id = id; + } + + public void id(String multirequestToken){ + setToken("id", multirequestToken); + } + + // name: + public String getName(){ + return this.name; + } + public void setName(String name){ + this.name = name; + } + + public void name(String multirequestToken){ + setToken("name", multirequestToken); + } + + // code: + public String getCode(){ + return this.code; + } + public void setCode(String code){ + this.code = code; + } + + public void code(String multirequestToken){ + setToken("code", multirequestToken); + } + + // sign: + public String getSign(){ + return this.sign; + } + public void setSign(String sign){ + this.sign = sign; + } + + public void sign(String multirequestToken){ + setToken("sign", multirequestToken); + } + + // isDefault: + public Boolean getIsDefault(){ + return this.isDefault; + } + public void setIsDefault(Boolean isDefault){ + this.isDefault = isDefault; + } + + public void isDefault(String multirequestToken){ + setToken("isDefault", multirequestToken); + } + + + public Currency() { + super(); + } + + public Currency(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + id = GsonParser.parseInt(jsonObject.get("id")); + name = GsonParser.parseString(jsonObject.get("name")); + code = GsonParser.parseString(jsonObject.get("code")); + sign = GsonParser.parseString(jsonObject.get("sign")); + isDefault = GsonParser.parseBoolean(jsonObject.get("isDefault")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaCurrency"); + kparams.add("id", this.id); + kparams.add("name", this.name); + kparams.add("code", this.code); + kparams.add("sign", this.sign); + kparams.add("isDefault", this.isDefault); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public Currency createFromParcel(Parcel source) { + return new Currency(source); + } + + @Override + public Currency[] newArray(int size) { + return new Currency[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.id); + dest.writeString(this.name); + dest.writeString(this.code); + dest.writeString(this.sign); + dest.writeValue(this.isDefault); + } + + public Currency(Parcel in) { + super(in); + this.id = (Integer)in.readValue(Integer.class.getClassLoader()); + this.name = in.readString(); + this.code = in.readString(); + this.sign = in.readString(); + this.isDefault = (Boolean)in.readValue(Boolean.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/CurrencyFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/CurrencyFilter.java new file mode 100644 index 000000000..c572eed12 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/CurrencyFilter.java @@ -0,0 +1,138 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Currency filter + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(CurrencyFilter.Tokenizer.class) +public class CurrencyFilter extends Filter { + + public interface Tokenizer extends Filter.Tokenizer { + String codeIn(); + String excludePartner(); + } + + /** + * Currency codes + */ + private String codeIn; + /** + * Exclude partner + */ + private Boolean excludePartner; + + // codeIn: + public String getCodeIn(){ + return this.codeIn; + } + public void setCodeIn(String codeIn){ + this.codeIn = codeIn; + } + + public void codeIn(String multirequestToken){ + setToken("codeIn", multirequestToken); + } + + // excludePartner: + public Boolean getExcludePartner(){ + return this.excludePartner; + } + public void setExcludePartner(Boolean excludePartner){ + this.excludePartner = excludePartner; + } + + public void excludePartner(String multirequestToken){ + setToken("excludePartner", multirequestToken); + } + + + public CurrencyFilter() { + super(); + } + + public CurrencyFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + codeIn = GsonParser.parseString(jsonObject.get("codeIn")); + excludePartner = GsonParser.parseBoolean(jsonObject.get("excludePartner")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaCurrencyFilter"); + kparams.add("codeIn", this.codeIn); + kparams.add("excludePartner", this.excludePartner); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public CurrencyFilter createFromParcel(Parcel source) { + return new CurrencyFilter(source); + } + + @Override + public CurrencyFilter[] newArray(int size) { + return new CurrencyFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.codeIn); + dest.writeValue(this.excludePartner); + } + + public CurrencyFilter(Parcel in) { + super(in); + this.codeIn = in.readString(); + this.excludePartner = (Boolean)in.readValue(Boolean.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/CustomDrmPlaybackPluginData.java b/KalturaClient/src/main/java/com/kaltura/client/types/CustomDrmPlaybackPluginData.java new file mode 100644 index 000000000..a55597f85 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/CustomDrmPlaybackPluginData.java @@ -0,0 +1,114 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(CustomDrmPlaybackPluginData.Tokenizer.class) +public class CustomDrmPlaybackPluginData extends DrmPlaybackPluginData { + + public interface Tokenizer extends DrmPlaybackPluginData.Tokenizer { + String data(); + } + + /** + * Custom DRM license data + */ + private String data; + + // data: + public String getData(){ + return this.data; + } + public void setData(String data){ + this.data = data; + } + + public void data(String multirequestToken){ + setToken("data", multirequestToken); + } + + + public CustomDrmPlaybackPluginData() { + super(); + } + + public CustomDrmPlaybackPluginData(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + data = GsonParser.parseString(jsonObject.get("data")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaCustomDrmPlaybackPluginData"); + kparams.add("data", this.data); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public CustomDrmPlaybackPluginData createFromParcel(Parcel source) { + return new CustomDrmPlaybackPluginData(source); + } + + @Override + public CustomDrmPlaybackPluginData[] newArray(int size) { + return new CustomDrmPlaybackPluginData[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.data); + } + + public CustomDrmPlaybackPluginData(Parcel in) { + super(in); + this.data = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/CustomFieldsPartnerConfiguration.java b/KalturaClient/src/main/java/com/kaltura/client/types/CustomFieldsPartnerConfiguration.java new file mode 100644 index 000000000..1271502ed --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/CustomFieldsPartnerConfiguration.java @@ -0,0 +1,117 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Custom Fields Partner Configuration + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(CustomFieldsPartnerConfiguration.Tokenizer.class) +public class CustomFieldsPartnerConfiguration extends PartnerConfiguration { + + public interface Tokenizer extends PartnerConfiguration.Tokenizer { + String metaSystemNameInsteadOfAliasList(); + } + + /** + * Array of clientTag values + */ + private String metaSystemNameInsteadOfAliasList; + + // metaSystemNameInsteadOfAliasList: + public String getMetaSystemNameInsteadOfAliasList(){ + return this.metaSystemNameInsteadOfAliasList; + } + public void setMetaSystemNameInsteadOfAliasList(String metaSystemNameInsteadOfAliasList){ + this.metaSystemNameInsteadOfAliasList = metaSystemNameInsteadOfAliasList; + } + + public void metaSystemNameInsteadOfAliasList(String multirequestToken){ + setToken("metaSystemNameInsteadOfAliasList", multirequestToken); + } + + + public CustomFieldsPartnerConfiguration() { + super(); + } + + public CustomFieldsPartnerConfiguration(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + metaSystemNameInsteadOfAliasList = GsonParser.parseString(jsonObject.get("metaSystemNameInsteadOfAliasList")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaCustomFieldsPartnerConfiguration"); + kparams.add("metaSystemNameInsteadOfAliasList", this.metaSystemNameInsteadOfAliasList); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public CustomFieldsPartnerConfiguration createFromParcel(Parcel source) { + return new CustomFieldsPartnerConfiguration(source); + } + + @Override + public CustomFieldsPartnerConfiguration[] newArray(int size) { + return new CustomFieldsPartnerConfiguration[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.metaSystemNameInsteadOfAliasList); + } + + public CustomFieldsPartnerConfiguration(Parcel in) { + super(in); + this.metaSystemNameInsteadOfAliasList = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/DataEncryption.java b/KalturaClient/src/main/java/com/kaltura/client/types/DataEncryption.java new file mode 100644 index 000000000..dfb6e418d --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/DataEncryption.java @@ -0,0 +1,112 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.Encryption; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(DataEncryption.Tokenizer.class) +public class DataEncryption extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + Encryption.Tokenizer username(); + } + + /** + * Username encryption config + */ + private Encryption username; + + // username: + public Encryption getUsername(){ + return this.username; + } + public void setUsername(Encryption username){ + this.username = username; + } + + + public DataEncryption() { + super(); + } + + public DataEncryption(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + username = GsonParser.parseObject(jsonObject.getAsJsonObject("username"), Encryption.class); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaDataEncryption"); + kparams.add("username", this.username); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public DataEncryption createFromParcel(Parcel source) { + return new DataEncryption(source); + } + + @Override + public DataEncryption[] newArray(int size) { + return new DataEncryption[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeParcelable(this.username, flags); + } + + public DataEncryption(Parcel in) { + super(in); + this.username = in.readParcelable(Encryption.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/DateAggregatedIngestInfo.java b/KalturaClient/src/main/java/com/kaltura/client/types/DateAggregatedIngestInfo.java new file mode 100644 index 000000000..d11234ef3 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/DateAggregatedIngestInfo.java @@ -0,0 +1,133 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.AggregatedIngestInfo; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(DateAggregatedIngestInfo.Tokenizer.class) +public class DateAggregatedIngestInfo extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String date(); + AggregatedIngestInfo.Tokenizer aggregatedErrors(); + } + + /** + * 00:00 UTC of the date in question + */ + private Long date; + /** + * Aggregated error counters + */ + private AggregatedIngestInfo aggregatedErrors; + + // date: + public Long getDate(){ + return this.date; + } + public void setDate(Long date){ + this.date = date; + } + + public void date(String multirequestToken){ + setToken("date", multirequestToken); + } + + // aggregatedErrors: + public AggregatedIngestInfo getAggregatedErrors(){ + return this.aggregatedErrors; + } + public void setAggregatedErrors(AggregatedIngestInfo aggregatedErrors){ + this.aggregatedErrors = aggregatedErrors; + } + + + public DateAggregatedIngestInfo() { + super(); + } + + public DateAggregatedIngestInfo(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + date = GsonParser.parseLong(jsonObject.get("date")); + aggregatedErrors = GsonParser.parseObject(jsonObject.getAsJsonObject("aggregatedErrors"), AggregatedIngestInfo.class); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaDateAggregatedIngestInfo"); + kparams.add("date", this.date); + kparams.add("aggregatedErrors", this.aggregatedErrors); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public DateAggregatedIngestInfo createFromParcel(Parcel source) { + return new DateAggregatedIngestInfo(source); + } + + @Override + public DateAggregatedIngestInfo[] newArray(int size) { + return new DateAggregatedIngestInfo[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.date); + dest.writeParcelable(this.aggregatedErrors, flags); + } + + public DateAggregatedIngestInfo(Parcel in) { + super(in); + this.date = (Long)in.readValue(Long.class.getClassLoader()); + this.aggregatedErrors = in.readParcelable(AggregatedIngestInfo.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/DateCondition.java b/KalturaClient/src/main/java/com/kaltura/client/types/DateCondition.java new file mode 100644 index 000000000..93fc06dff --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/DateCondition.java @@ -0,0 +1,138 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Date condition + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(DateCondition.Tokenizer.class) +public class DateCondition extends NotCondition { + + public interface Tokenizer extends NotCondition.Tokenizer { + String startDate(); + String endDate(); + } + + /** + * Start date + */ + private Long startDate; + /** + * End date + */ + private Long endDate; + + // startDate: + public Long getStartDate(){ + return this.startDate; + } + public void setStartDate(Long startDate){ + this.startDate = startDate; + } + + public void startDate(String multirequestToken){ + setToken("startDate", multirequestToken); + } + + // endDate: + public Long getEndDate(){ + return this.endDate; + } + public void setEndDate(Long endDate){ + this.endDate = endDate; + } + + public void endDate(String multirequestToken){ + setToken("endDate", multirequestToken); + } + + + public DateCondition() { + super(); + } + + public DateCondition(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + startDate = GsonParser.parseLong(jsonObject.get("startDate")); + endDate = GsonParser.parseLong(jsonObject.get("endDate")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaDateCondition"); + kparams.add("startDate", this.startDate); + kparams.add("endDate", this.endDate); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public DateCondition createFromParcel(Parcel source) { + return new DateCondition(source); + } + + @Override + public DateCondition[] newArray(int size) { + return new DateCondition[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.startDate); + dest.writeValue(this.endDate); + } + + public DateCondition(Parcel in) { + super(in); + this.startDate = (Long)in.readValue(Long.class.getClassLoader()); + this.endDate = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/DateTrigger.java b/KalturaClient/src/main/java/com/kaltura/client/types/DateTrigger.java new file mode 100644 index 000000000..b601630c8 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/DateTrigger.java @@ -0,0 +1,114 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(DateTrigger.Tokenizer.class) +public class DateTrigger extends Trigger { + + public interface Tokenizer extends Trigger.Tokenizer { + String date(); + } + + /** + * Trigger date + */ + private Long date; + + // date: + public Long getDate(){ + return this.date; + } + public void setDate(Long date){ + this.date = date; + } + + public void date(String multirequestToken){ + setToken("date", multirequestToken); + } + + + public DateTrigger() { + super(); + } + + public DateTrigger(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + date = GsonParser.parseLong(jsonObject.get("date")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaDateTrigger"); + kparams.add("date", this.date); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public DateTrigger createFromParcel(Parcel source) { + return new DateTrigger(source); + } + + @Override + public DateTrigger[] newArray(int size) { + return new DateTrigger[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.date); + } + + public DateTrigger(Parcel in) { + super(in); + this.date = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/DefaultParentalSettingsPartnerConfig.java b/KalturaClient/src/main/java/com/kaltura/client/types/DefaultParentalSettingsPartnerConfig.java new file mode 100644 index 000000000..c2b0fa1e4 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/DefaultParentalSettingsPartnerConfig.java @@ -0,0 +1,198 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(DefaultParentalSettingsPartnerConfig.Tokenizer.class) +public class DefaultParentalSettingsPartnerConfig extends PartnerConfiguration { + + public interface Tokenizer extends PartnerConfiguration.Tokenizer { + String defaultMoviesParentalRuleId(); + String defaultTvSeriesParentalRuleId(); + String defaultParentalPin(); + String defaultPurchasePin(); + String defaultPurchaseSettings(); + } + + /** + * defaultTvSeriesParentalRuleId + */ + private Long defaultMoviesParentalRuleId; + /** + * defaultTvSeriesParentalRuleId + */ + private Long defaultTvSeriesParentalRuleId; + /** + * defaultParentalPin + */ + private String defaultParentalPin; + /** + * defaultPurchasePin + */ + private String defaultPurchasePin; + /** + * defaultPurchaseSettings + */ + private Long defaultPurchaseSettings; + + // defaultMoviesParentalRuleId: + public Long getDefaultMoviesParentalRuleId(){ + return this.defaultMoviesParentalRuleId; + } + public void setDefaultMoviesParentalRuleId(Long defaultMoviesParentalRuleId){ + this.defaultMoviesParentalRuleId = defaultMoviesParentalRuleId; + } + + public void defaultMoviesParentalRuleId(String multirequestToken){ + setToken("defaultMoviesParentalRuleId", multirequestToken); + } + + // defaultTvSeriesParentalRuleId: + public Long getDefaultTvSeriesParentalRuleId(){ + return this.defaultTvSeriesParentalRuleId; + } + public void setDefaultTvSeriesParentalRuleId(Long defaultTvSeriesParentalRuleId){ + this.defaultTvSeriesParentalRuleId = defaultTvSeriesParentalRuleId; + } + + public void defaultTvSeriesParentalRuleId(String multirequestToken){ + setToken("defaultTvSeriesParentalRuleId", multirequestToken); + } + + // defaultParentalPin: + public String getDefaultParentalPin(){ + return this.defaultParentalPin; + } + public void setDefaultParentalPin(String defaultParentalPin){ + this.defaultParentalPin = defaultParentalPin; + } + + public void defaultParentalPin(String multirequestToken){ + setToken("defaultParentalPin", multirequestToken); + } + + // defaultPurchasePin: + public String getDefaultPurchasePin(){ + return this.defaultPurchasePin; + } + public void setDefaultPurchasePin(String defaultPurchasePin){ + this.defaultPurchasePin = defaultPurchasePin; + } + + public void defaultPurchasePin(String multirequestToken){ + setToken("defaultPurchasePin", multirequestToken); + } + + // defaultPurchaseSettings: + public Long getDefaultPurchaseSettings(){ + return this.defaultPurchaseSettings; + } + public void setDefaultPurchaseSettings(Long defaultPurchaseSettings){ + this.defaultPurchaseSettings = defaultPurchaseSettings; + } + + public void defaultPurchaseSettings(String multirequestToken){ + setToken("defaultPurchaseSettings", multirequestToken); + } + + + public DefaultParentalSettingsPartnerConfig() { + super(); + } + + public DefaultParentalSettingsPartnerConfig(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + defaultMoviesParentalRuleId = GsonParser.parseLong(jsonObject.get("defaultMoviesParentalRuleId")); + defaultTvSeriesParentalRuleId = GsonParser.parseLong(jsonObject.get("defaultTvSeriesParentalRuleId")); + defaultParentalPin = GsonParser.parseString(jsonObject.get("defaultParentalPin")); + defaultPurchasePin = GsonParser.parseString(jsonObject.get("defaultPurchasePin")); + defaultPurchaseSettings = GsonParser.parseLong(jsonObject.get("defaultPurchaseSettings")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaDefaultParentalSettingsPartnerConfig"); + kparams.add("defaultMoviesParentalRuleId", this.defaultMoviesParentalRuleId); + kparams.add("defaultTvSeriesParentalRuleId", this.defaultTvSeriesParentalRuleId); + kparams.add("defaultParentalPin", this.defaultParentalPin); + kparams.add("defaultPurchasePin", this.defaultPurchasePin); + kparams.add("defaultPurchaseSettings", this.defaultPurchaseSettings); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public DefaultParentalSettingsPartnerConfig createFromParcel(Parcel source) { + return new DefaultParentalSettingsPartnerConfig(source); + } + + @Override + public DefaultParentalSettingsPartnerConfig[] newArray(int size) { + return new DefaultParentalSettingsPartnerConfig[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.defaultMoviesParentalRuleId); + dest.writeValue(this.defaultTvSeriesParentalRuleId); + dest.writeString(this.defaultParentalPin); + dest.writeString(this.defaultPurchasePin); + dest.writeValue(this.defaultPurchaseSettings); + } + + public DefaultParentalSettingsPartnerConfig(Parcel in) { + super(in); + this.defaultMoviesParentalRuleId = (Long)in.readValue(Long.class.getClassLoader()); + this.defaultTvSeriesParentalRuleId = (Long)in.readValue(Long.class.getClassLoader()); + this.defaultParentalPin = in.readString(); + this.defaultPurchasePin = in.readString(); + this.defaultPurchaseSettings = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/DefaultPlaybackAdapters.java b/KalturaClient/src/main/java/com/kaltura/client/types/DefaultPlaybackAdapters.java new file mode 100644 index 000000000..902a218da --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/DefaultPlaybackAdapters.java @@ -0,0 +1,157 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(DefaultPlaybackAdapters.Tokenizer.class) +public class DefaultPlaybackAdapters extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String mediaAdapterId(); + String epgAdapterId(); + String recordingAdapterId(); + } + + /** + * Default adapter identifier for media + */ + private Long mediaAdapterId; + /** + * Default adapter identifier for epg + */ + private Long epgAdapterId; + /** + * Default adapter identifier for recording + */ + private Long recordingAdapterId; + + // mediaAdapterId: + public Long getMediaAdapterId(){ + return this.mediaAdapterId; + } + public void setMediaAdapterId(Long mediaAdapterId){ + this.mediaAdapterId = mediaAdapterId; + } + + public void mediaAdapterId(String multirequestToken){ + setToken("mediaAdapterId", multirequestToken); + } + + // epgAdapterId: + public Long getEpgAdapterId(){ + return this.epgAdapterId; + } + public void setEpgAdapterId(Long epgAdapterId){ + this.epgAdapterId = epgAdapterId; + } + + public void epgAdapterId(String multirequestToken){ + setToken("epgAdapterId", multirequestToken); + } + + // recordingAdapterId: + public Long getRecordingAdapterId(){ + return this.recordingAdapterId; + } + public void setRecordingAdapterId(Long recordingAdapterId){ + this.recordingAdapterId = recordingAdapterId; + } + + public void recordingAdapterId(String multirequestToken){ + setToken("recordingAdapterId", multirequestToken); + } + + + public DefaultPlaybackAdapters() { + super(); + } + + public DefaultPlaybackAdapters(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + mediaAdapterId = GsonParser.parseLong(jsonObject.get("mediaAdapterId")); + epgAdapterId = GsonParser.parseLong(jsonObject.get("epgAdapterId")); + recordingAdapterId = GsonParser.parseLong(jsonObject.get("recordingAdapterId")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaDefaultPlaybackAdapters"); + kparams.add("mediaAdapterId", this.mediaAdapterId); + kparams.add("epgAdapterId", this.epgAdapterId); + kparams.add("recordingAdapterId", this.recordingAdapterId); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public DefaultPlaybackAdapters createFromParcel(Parcel source) { + return new DefaultPlaybackAdapters(source); + } + + @Override + public DefaultPlaybackAdapters[] newArray(int size) { + return new DefaultPlaybackAdapters[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.mediaAdapterId); + dest.writeValue(this.epgAdapterId); + dest.writeValue(this.recordingAdapterId); + } + + public DefaultPlaybackAdapters(Parcel in) { + super(in); + this.mediaAdapterId = (Long)in.readValue(Long.class.getClassLoader()); + this.epgAdapterId = (Long)in.readValue(Long.class.getClassLoader()); + this.recordingAdapterId = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/DefaultRegionFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/DefaultRegionFilter.java new file mode 100644 index 000000000..52d2a8fc6 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/DefaultRegionFilter.java @@ -0,0 +1,82 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(DefaultRegionFilter.Tokenizer.class) +public class DefaultRegionFilter extends BaseRegionFilter { + + public interface Tokenizer extends BaseRegionFilter.Tokenizer { + } + + + + public DefaultRegionFilter() { + super(); + } + + public DefaultRegionFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaDefaultRegionFilter"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public DefaultRegionFilter createFromParcel(Parcel source) { + return new DefaultRegionFilter(source); + } + + @Override + public DefaultRegionFilter[] newArray(int size) { + return new DefaultRegionFilter[size]; + } + }; + + public DefaultRegionFilter(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/DetachedResponseProfile.java b/KalturaClient/src/main/java/com/kaltura/client/types/DetachedResponseProfile.java new file mode 100644 index 000000000..40e7637dd --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/DetachedResponseProfile.java @@ -0,0 +1,164 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.RelatedObjectFilter; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.ArrayList; +import java.util.List; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Define specific base profile response + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(DetachedResponseProfile.Tokenizer.class) +public class DetachedResponseProfile extends BaseResponseProfile { + + public interface Tokenizer extends BaseResponseProfile.Tokenizer { + String name(); + RelatedObjectFilter.Tokenizer filter(); + RequestBuilder.ListTokenizer relatedProfiles(); + } + + /** + * name + */ + private String name; + /** + * filter + */ + private RelatedObjectFilter filter; + /** + * relatedProfiles + */ + private List relatedProfiles; + + // name: + public String getName(){ + return this.name; + } + public void setName(String name){ + this.name = name; + } + + public void name(String multirequestToken){ + setToken("name", multirequestToken); + } + + // filter: + public RelatedObjectFilter getFilter(){ + return this.filter; + } + public void setFilter(RelatedObjectFilter filter){ + this.filter = filter; + } + + // relatedProfiles: + public List getRelatedProfiles(){ + return this.relatedProfiles; + } + public void setRelatedProfiles(List relatedProfiles){ + this.relatedProfiles = relatedProfiles; + } + + + public DetachedResponseProfile() { + super(); + } + + public DetachedResponseProfile(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + name = GsonParser.parseString(jsonObject.get("name")); + filter = GsonParser.parseObject(jsonObject.getAsJsonObject("filter"), RelatedObjectFilter.class); + relatedProfiles = GsonParser.parseArray(jsonObject.getAsJsonArray("relatedProfiles"), DetachedResponseProfile.class); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaDetachedResponseProfile"); + kparams.add("name", this.name); + kparams.add("filter", this.filter); + kparams.add("relatedProfiles", this.relatedProfiles); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public DetachedResponseProfile createFromParcel(Parcel source) { + return new DetachedResponseProfile(source); + } + + @Override + public DetachedResponseProfile[] newArray(int size) { + return new DetachedResponseProfile[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.name); + dest.writeParcelable(this.filter, flags); + if(this.relatedProfiles != null) { + dest.writeInt(this.relatedProfiles.size()); + dest.writeList(this.relatedProfiles); + } else { + dest.writeInt(-1); + } + } + + public DetachedResponseProfile(Parcel in) { + super(in); + this.name = in.readString(); + this.filter = in.readParcelable(RelatedObjectFilter.class.getClassLoader()); + int relatedProfilesSize = in.readInt(); + if( relatedProfilesSize > -1) { + this.relatedProfiles = new ArrayList<>(); + in.readList(this.relatedProfiles, DetachedResponseProfile.class.getClassLoader()); + } + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/DeviceBrand.java b/KalturaClient/src/main/java/com/kaltura/client/types/DeviceBrand.java new file mode 100644 index 000000000..01f3cc263 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/DeviceBrand.java @@ -0,0 +1,175 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.DeviceBrandType; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Device brand details + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(DeviceBrand.Tokenizer.class) +public class DeviceBrand extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String id(); + String name(); + String deviceFamilyid(); + String type(); + } + + /** + * Device brand identifier + */ + private Long id; + /** + * Device brand name + */ + private String name; + /** + * Device family identifier + */ + private Long deviceFamilyid; + /** + * Type of device family. if this device family belongs only to this + group, otherwise. + */ + private DeviceBrandType type; + + // id: + public Long getId(){ + return this.id; + } + public void setId(Long id){ + this.id = id; + } + + public void id(String multirequestToken){ + setToken("id", multirequestToken); + } + + // name: + public String getName(){ + return this.name; + } + public void setName(String name){ + this.name = name; + } + + public void name(String multirequestToken){ + setToken("name", multirequestToken); + } + + // deviceFamilyid: + public Long getDeviceFamilyid(){ + return this.deviceFamilyid; + } + public void setDeviceFamilyid(Long deviceFamilyid){ + this.deviceFamilyid = deviceFamilyid; + } + + public void deviceFamilyid(String multirequestToken){ + setToken("deviceFamilyid", multirequestToken); + } + + // type: + public DeviceBrandType getType(){ + return this.type; + } + + public DeviceBrand() { + super(); + } + + public DeviceBrand(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + id = GsonParser.parseLong(jsonObject.get("id")); + name = GsonParser.parseString(jsonObject.get("name")); + deviceFamilyid = GsonParser.parseLong(jsonObject.get("deviceFamilyid")); + type = DeviceBrandType.get(GsonParser.parseString(jsonObject.get("type"))); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaDeviceBrand"); + kparams.add("id", this.id); + kparams.add("name", this.name); + kparams.add("deviceFamilyid", this.deviceFamilyid); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public DeviceBrand createFromParcel(Parcel source) { + return new DeviceBrand(source); + } + + @Override + public DeviceBrand[] newArray(int size) { + return new DeviceBrand[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.id); + dest.writeString(this.name); + dest.writeValue(this.deviceFamilyid); + dest.writeInt(this.type == null ? -1 : this.type.ordinal()); + } + + public DeviceBrand(Parcel in) { + super(in); + this.id = (Long)in.readValue(Long.class.getClassLoader()); + this.name = in.readString(); + this.deviceFamilyid = (Long)in.readValue(Long.class.getClassLoader()); + int tmpType = in.readInt(); + this.type = tmpType == -1 ? null : DeviceBrandType.values()[tmpType]; + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/DeviceBrandCondition.java b/KalturaClient/src/main/java/com/kaltura/client/types/DeviceBrandCondition.java new file mode 100644 index 000000000..43b3e6a04 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/DeviceBrandCondition.java @@ -0,0 +1,114 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(DeviceBrandCondition.Tokenizer.class) +public class DeviceBrandCondition extends Condition { + + public interface Tokenizer extends Condition.Tokenizer { + String idIn(); + } + + /** + * Comma separated Device Brand IDs list + */ + private String idIn; + + // idIn: + public String getIdIn(){ + return this.idIn; + } + public void setIdIn(String idIn){ + this.idIn = idIn; + } + + public void idIn(String multirequestToken){ + setToken("idIn", multirequestToken); + } + + + public DeviceBrandCondition() { + super(); + } + + public DeviceBrandCondition(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + idIn = GsonParser.parseString(jsonObject.get("idIn")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaDeviceBrandCondition"); + kparams.add("idIn", this.idIn); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public DeviceBrandCondition createFromParcel(Parcel source) { + return new DeviceBrandCondition(source); + } + + @Override + public DeviceBrandCondition[] newArray(int size) { + return new DeviceBrandCondition[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.idIn); + } + + public DeviceBrandCondition(Parcel in) { + super(in); + this.idIn = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/DeviceBrandFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/DeviceBrandFilter.java new file mode 100644 index 000000000..e30dd9714 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/DeviceBrandFilter.java @@ -0,0 +1,179 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.DeviceBrandType; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(DeviceBrandFilter.Tokenizer.class) +public class DeviceBrandFilter extends Filter { + + public interface Tokenizer extends Filter.Tokenizer { + String idEqual(); + String deviceFamilyIdEqual(); + String nameEqual(); + String typeEqual(); + } + + /** + * Filter the device brand with this identifier. + */ + private Long idEqual; + /** + * Filter the device brands with this device family&#39;s identifier. + */ + private Long deviceFamilyIdEqual; + /** + * Filter the device brand with this name. + */ + private String nameEqual; + /** + * Filter device brands of this type + */ + private DeviceBrandType typeEqual; + + // idEqual: + public Long getIdEqual(){ + return this.idEqual; + } + public void setIdEqual(Long idEqual){ + this.idEqual = idEqual; + } + + public void idEqual(String multirequestToken){ + setToken("idEqual", multirequestToken); + } + + // deviceFamilyIdEqual: + public Long getDeviceFamilyIdEqual(){ + return this.deviceFamilyIdEqual; + } + public void setDeviceFamilyIdEqual(Long deviceFamilyIdEqual){ + this.deviceFamilyIdEqual = deviceFamilyIdEqual; + } + + public void deviceFamilyIdEqual(String multirequestToken){ + setToken("deviceFamilyIdEqual", multirequestToken); + } + + // nameEqual: + public String getNameEqual(){ + return this.nameEqual; + } + public void setNameEqual(String nameEqual){ + this.nameEqual = nameEqual; + } + + public void nameEqual(String multirequestToken){ + setToken("nameEqual", multirequestToken); + } + + // typeEqual: + public DeviceBrandType getTypeEqual(){ + return this.typeEqual; + } + public void setTypeEqual(DeviceBrandType typeEqual){ + this.typeEqual = typeEqual; + } + + public void typeEqual(String multirequestToken){ + setToken("typeEqual", multirequestToken); + } + + + public DeviceBrandFilter() { + super(); + } + + public DeviceBrandFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + idEqual = GsonParser.parseLong(jsonObject.get("idEqual")); + deviceFamilyIdEqual = GsonParser.parseLong(jsonObject.get("deviceFamilyIdEqual")); + nameEqual = GsonParser.parseString(jsonObject.get("nameEqual")); + typeEqual = DeviceBrandType.get(GsonParser.parseString(jsonObject.get("typeEqual"))); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaDeviceBrandFilter"); + kparams.add("idEqual", this.idEqual); + kparams.add("deviceFamilyIdEqual", this.deviceFamilyIdEqual); + kparams.add("nameEqual", this.nameEqual); + kparams.add("typeEqual", this.typeEqual); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public DeviceBrandFilter createFromParcel(Parcel source) { + return new DeviceBrandFilter(source); + } + + @Override + public DeviceBrandFilter[] newArray(int size) { + return new DeviceBrandFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.idEqual); + dest.writeValue(this.deviceFamilyIdEqual); + dest.writeString(this.nameEqual); + dest.writeInt(this.typeEqual == null ? -1 : this.typeEqual.ordinal()); + } + + public DeviceBrandFilter(Parcel in) { + super(in); + this.idEqual = (Long)in.readValue(Long.class.getClassLoader()); + this.deviceFamilyIdEqual = (Long)in.readValue(Long.class.getClassLoader()); + this.nameEqual = in.readString(); + int tmpTypeEqual = in.readInt(); + this.typeEqual = tmpTypeEqual == -1 ? null : DeviceBrandType.values()[tmpTypeEqual]; + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/DeviceDynamicDataCondition.java b/KalturaClient/src/main/java/com/kaltura/client/types/DeviceDynamicDataCondition.java new file mode 100644 index 000000000..80c63b2ee --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/DeviceDynamicDataCondition.java @@ -0,0 +1,135 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(DeviceDynamicDataCondition.Tokenizer.class) +public class DeviceDynamicDataCondition extends Condition { + + public interface Tokenizer extends Condition.Tokenizer { + String key(); + String value(); + } + + /** + * key + */ + private String key; + /** + * value + */ + private String value; + + // key: + public String getKey(){ + return this.key; + } + public void setKey(String key){ + this.key = key; + } + + public void key(String multirequestToken){ + setToken("key", multirequestToken); + } + + // value: + public String getValue(){ + return this.value; + } + public void setValue(String value){ + this.value = value; + } + + public void value(String multirequestToken){ + setToken("value", multirequestToken); + } + + + public DeviceDynamicDataCondition() { + super(); + } + + public DeviceDynamicDataCondition(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + key = GsonParser.parseString(jsonObject.get("key")); + value = GsonParser.parseString(jsonObject.get("value")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaDeviceDynamicDataCondition"); + kparams.add("key", this.key); + kparams.add("value", this.value); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public DeviceDynamicDataCondition createFromParcel(Parcel source) { + return new DeviceDynamicDataCondition(source); + } + + @Override + public DeviceDynamicDataCondition[] newArray(int size) { + return new DeviceDynamicDataCondition[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.key); + dest.writeString(this.value); + } + + public DeviceDynamicDataCondition(Parcel in) { + super(in); + this.key = in.readString(); + this.value = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/DeviceFamily.java b/KalturaClient/src/main/java/com/kaltura/client/types/DeviceFamily.java new file mode 100644 index 000000000..5a910393c --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/DeviceFamily.java @@ -0,0 +1,85 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Device family details + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(DeviceFamily.Tokenizer.class) +public class DeviceFamily extends DeviceFamilyBase { + + public interface Tokenizer extends DeviceFamilyBase.Tokenizer { + } + + + + public DeviceFamily() { + super(); + } + + public DeviceFamily(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaDeviceFamily"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public DeviceFamily createFromParcel(Parcel source) { + return new DeviceFamily(source); + } + + @Override + public DeviceFamily[] newArray(int size) { + return new DeviceFamily[size]; + } + }; + + public DeviceFamily(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/DeviceFamilyBase.java b/KalturaClient/src/main/java/com/kaltura/client/types/DeviceFamilyBase.java new file mode 100644 index 000000000..848b93095 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/DeviceFamilyBase.java @@ -0,0 +1,154 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.DeviceFamilyType; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Device family details + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(DeviceFamilyBase.Tokenizer.class) +public class DeviceFamilyBase extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String id(); + String name(); + String type(); + } + + /** + * Device family identifier + */ + private Long id; + /** + * Device family name + */ + private String name; + /** + * Type of device family. if this device family belongs only to this + group, otherwise. + */ + private DeviceFamilyType type; + + // id: + public Long getId(){ + return this.id; + } + public void setId(Long id){ + this.id = id; + } + + public void id(String multirequestToken){ + setToken("id", multirequestToken); + } + + // name: + public String getName(){ + return this.name; + } + public void setName(String name){ + this.name = name; + } + + public void name(String multirequestToken){ + setToken("name", multirequestToken); + } + + // type: + public DeviceFamilyType getType(){ + return this.type; + } + + public DeviceFamilyBase() { + super(); + } + + public DeviceFamilyBase(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + id = GsonParser.parseLong(jsonObject.get("id")); + name = GsonParser.parseString(jsonObject.get("name")); + type = DeviceFamilyType.get(GsonParser.parseString(jsonObject.get("type"))); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaDeviceFamilyBase"); + kparams.add("id", this.id); + kparams.add("name", this.name); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public DeviceFamilyBase createFromParcel(Parcel source) { + return new DeviceFamilyBase(source); + } + + @Override + public DeviceFamilyBase[] newArray(int size) { + return new DeviceFamilyBase[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.id); + dest.writeString(this.name); + dest.writeInt(this.type == null ? -1 : this.type.ordinal()); + } + + public DeviceFamilyBase(Parcel in) { + super(in); + this.id = (Long)in.readValue(Long.class.getClassLoader()); + this.name = in.readString(); + int tmpType = in.readInt(); + this.type = tmpType == -1 ? null : DeviceFamilyType.values()[tmpType]; + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/DeviceFamilyCondition.java b/KalturaClient/src/main/java/com/kaltura/client/types/DeviceFamilyCondition.java new file mode 100644 index 000000000..127970d37 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/DeviceFamilyCondition.java @@ -0,0 +1,114 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(DeviceFamilyCondition.Tokenizer.class) +public class DeviceFamilyCondition extends Condition { + + public interface Tokenizer extends Condition.Tokenizer { + String idIn(); + } + + /** + * Comma separated Device Family IDs list + */ + private String idIn; + + // idIn: + public String getIdIn(){ + return this.idIn; + } + public void setIdIn(String idIn){ + this.idIn = idIn; + } + + public void idIn(String multirequestToken){ + setToken("idIn", multirequestToken); + } + + + public DeviceFamilyCondition() { + super(); + } + + public DeviceFamilyCondition(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + idIn = GsonParser.parseString(jsonObject.get("idIn")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaDeviceFamilyCondition"); + kparams.add("idIn", this.idIn); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public DeviceFamilyCondition createFromParcel(Parcel source) { + return new DeviceFamilyCondition(source); + } + + @Override + public DeviceFamilyCondition[] newArray(int size) { + return new DeviceFamilyCondition[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.idIn); + } + + public DeviceFamilyCondition(Parcel in) { + super(in); + this.idIn = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/DeviceFamilyFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/DeviceFamilyFilter.java new file mode 100644 index 000000000..0f28095d6 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/DeviceFamilyFilter.java @@ -0,0 +1,158 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.DeviceFamilyType; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(DeviceFamilyFilter.Tokenizer.class) +public class DeviceFamilyFilter extends Filter { + + public interface Tokenizer extends Filter.Tokenizer { + String idEqual(); + String nameEqual(); + String typeEqual(); + } + + /** + * Filter the device family with this identifier. + */ + private Long idEqual; + /** + * Filter the device family with this name. + */ + private String nameEqual; + /** + * Filter device families of this type + */ + private DeviceFamilyType typeEqual; + + // idEqual: + public Long getIdEqual(){ + return this.idEqual; + } + public void setIdEqual(Long idEqual){ + this.idEqual = idEqual; + } + + public void idEqual(String multirequestToken){ + setToken("idEqual", multirequestToken); + } + + // nameEqual: + public String getNameEqual(){ + return this.nameEqual; + } + public void setNameEqual(String nameEqual){ + this.nameEqual = nameEqual; + } + + public void nameEqual(String multirequestToken){ + setToken("nameEqual", multirequestToken); + } + + // typeEqual: + public DeviceFamilyType getTypeEqual(){ + return this.typeEqual; + } + public void setTypeEqual(DeviceFamilyType typeEqual){ + this.typeEqual = typeEqual; + } + + public void typeEqual(String multirequestToken){ + setToken("typeEqual", multirequestToken); + } + + + public DeviceFamilyFilter() { + super(); + } + + public DeviceFamilyFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + idEqual = GsonParser.parseLong(jsonObject.get("idEqual")); + nameEqual = GsonParser.parseString(jsonObject.get("nameEqual")); + typeEqual = DeviceFamilyType.get(GsonParser.parseString(jsonObject.get("typeEqual"))); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaDeviceFamilyFilter"); + kparams.add("idEqual", this.idEqual); + kparams.add("nameEqual", this.nameEqual); + kparams.add("typeEqual", this.typeEqual); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public DeviceFamilyFilter createFromParcel(Parcel source) { + return new DeviceFamilyFilter(source); + } + + @Override + public DeviceFamilyFilter[] newArray(int size) { + return new DeviceFamilyFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.idEqual); + dest.writeString(this.nameEqual); + dest.writeInt(this.typeEqual == null ? -1 : this.typeEqual.ordinal()); + } + + public DeviceFamilyFilter(Parcel in) { + super(in); + this.idEqual = (Long)in.readValue(Long.class.getClassLoader()); + this.nameEqual = in.readString(); + int tmpTypeEqual = in.readInt(); + this.typeEqual = tmpTypeEqual == -1 ? null : DeviceFamilyType.values()[tmpTypeEqual]; + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/DeviceManufacturerCondition.java b/KalturaClient/src/main/java/com/kaltura/client/types/DeviceManufacturerCondition.java new file mode 100644 index 000000000..5e809060a --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/DeviceManufacturerCondition.java @@ -0,0 +1,114 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(DeviceManufacturerCondition.Tokenizer.class) +public class DeviceManufacturerCondition extends Condition { + + public interface Tokenizer extends Condition.Tokenizer { + String idIn(); + } + + /** + * Comma separated Device Manufacturer IDs list + */ + private String idIn; + + // idIn: + public String getIdIn(){ + return this.idIn; + } + public void setIdIn(String idIn){ + this.idIn = idIn; + } + + public void idIn(String multirequestToken){ + setToken("idIn", multirequestToken); + } + + + public DeviceManufacturerCondition() { + super(); + } + + public DeviceManufacturerCondition(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + idIn = GsonParser.parseString(jsonObject.get("idIn")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaDeviceManufacturerCondition"); + kparams.add("idIn", this.idIn); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public DeviceManufacturerCondition createFromParcel(Parcel source) { + return new DeviceManufacturerCondition(source); + } + + @Override + public DeviceManufacturerCondition[] newArray(int size) { + return new DeviceManufacturerCondition[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.idIn); + } + + public DeviceManufacturerCondition(Parcel in) { + super(in); + this.idIn = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/DeviceManufacturerInformation.java b/KalturaClient/src/main/java/com/kaltura/client/types/DeviceManufacturerInformation.java new file mode 100644 index 000000000..26473516b --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/DeviceManufacturerInformation.java @@ -0,0 +1,85 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Device Manufacturer Information + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(DeviceManufacturerInformation.Tokenizer.class) +public class DeviceManufacturerInformation extends DeviceReferenceData { + + public interface Tokenizer extends DeviceReferenceData.Tokenizer { + } + + + + public DeviceManufacturerInformation() { + super(); + } + + public DeviceManufacturerInformation(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaDeviceManufacturerInformation"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public DeviceManufacturerInformation createFromParcel(Parcel source) { + return new DeviceManufacturerInformation(source); + } + + @Override + public DeviceManufacturerInformation[] newArray(int size) { + return new DeviceManufacturerInformation[size]; + } + }; + + public DeviceManufacturerInformation(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/DeviceManufacturersReferenceDataFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/DeviceManufacturersReferenceDataFilter.java new file mode 100644 index 000000000..624b846e5 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/DeviceManufacturersReferenceDataFilter.java @@ -0,0 +1,114 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(DeviceManufacturersReferenceDataFilter.Tokenizer.class) +public class DeviceManufacturersReferenceDataFilter extends DeviceReferenceDataFilter { + + public interface Tokenizer extends DeviceReferenceDataFilter.Tokenizer { + String nameEqual(); + } + + /** + * name equal + */ + private String nameEqual; + + // nameEqual: + public String getNameEqual(){ + return this.nameEqual; + } + public void setNameEqual(String nameEqual){ + this.nameEqual = nameEqual; + } + + public void nameEqual(String multirequestToken){ + setToken("nameEqual", multirequestToken); + } + + + public DeviceManufacturersReferenceDataFilter() { + super(); + } + + public DeviceManufacturersReferenceDataFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + nameEqual = GsonParser.parseString(jsonObject.get("nameEqual")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaDeviceManufacturersReferenceDataFilter"); + kparams.add("nameEqual", this.nameEqual); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public DeviceManufacturersReferenceDataFilter createFromParcel(Parcel source) { + return new DeviceManufacturersReferenceDataFilter(source); + } + + @Override + public DeviceManufacturersReferenceDataFilter[] newArray(int size) { + return new DeviceManufacturersReferenceDataFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.nameEqual); + } + + public DeviceManufacturersReferenceDataFilter(Parcel in) { + super(in); + this.nameEqual = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/DeviceModelCondition.java b/KalturaClient/src/main/java/com/kaltura/client/types/DeviceModelCondition.java new file mode 100644 index 000000000..c7c32d106 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/DeviceModelCondition.java @@ -0,0 +1,114 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(DeviceModelCondition.Tokenizer.class) +public class DeviceModelCondition extends Condition { + + public interface Tokenizer extends Condition.Tokenizer { + String regexEqual(); + } + + /** + * regex of device model that is compared to + */ + private String regexEqual; + + // regexEqual: + public String getRegexEqual(){ + return this.regexEqual; + } + public void setRegexEqual(String regexEqual){ + this.regexEqual = regexEqual; + } + + public void regexEqual(String multirequestToken){ + setToken("regexEqual", multirequestToken); + } + + + public DeviceModelCondition() { + super(); + } + + public DeviceModelCondition(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + regexEqual = GsonParser.parseString(jsonObject.get("regexEqual")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaDeviceModelCondition"); + kparams.add("regexEqual", this.regexEqual); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public DeviceModelCondition createFromParcel(Parcel source) { + return new DeviceModelCondition(source); + } + + @Override + public DeviceModelCondition[] newArray(int size) { + return new DeviceModelCondition[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.regexEqual); + } + + public DeviceModelCondition(Parcel in) { + super(in); + this.regexEqual = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/DevicePin.java b/KalturaClient/src/main/java/com/kaltura/client/types/DevicePin.java new file mode 100644 index 000000000..cacb107f0 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/DevicePin.java @@ -0,0 +1,118 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Device pin + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(DevicePin.Tokenizer.class) +public class DevicePin extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String pin(); + } + + /** + * Device pin + */ + private String pin; + + // pin: + public String getPin(){ + return this.pin; + } + public void setPin(String pin){ + this.pin = pin; + } + + public void pin(String multirequestToken){ + setToken("pin", multirequestToken); + } + + + public DevicePin() { + super(); + } + + public DevicePin(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + pin = GsonParser.parseString(jsonObject.get("pin")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaDevicePin"); + kparams.add("pin", this.pin); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public DevicePin createFromParcel(Parcel source) { + return new DevicePin(source); + } + + @Override + public DevicePin[] newArray(int size) { + return new DevicePin[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.pin); + } + + public DevicePin(Parcel in) { + super(in); + this.pin = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/DeviceReferenceData.java b/KalturaClient/src/main/java/com/kaltura/client/types/DeviceReferenceData.java new file mode 100644 index 000000000..8e5a13a61 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/DeviceReferenceData.java @@ -0,0 +1,150 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Device Information + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(DeviceReferenceData.Tokenizer.class) +public class DeviceReferenceData extends OTTObjectSupportNullable { + + public interface Tokenizer extends OTTObjectSupportNullable.Tokenizer { + String id(); + String name(); + String status(); + } + + /** + * id + */ + private Long id; + /** + * Name + */ + private String name; + /** + * Status + */ + private Boolean status; + + // id: + public Long getId(){ + return this.id; + } + // name: + public String getName(){ + return this.name; + } + public void setName(String name){ + this.name = name; + } + + public void name(String multirequestToken){ + setToken("name", multirequestToken); + } + + // status: + public Boolean getStatus(){ + return this.status; + } + public void setStatus(Boolean status){ + this.status = status; + } + + public void status(String multirequestToken){ + setToken("status", multirequestToken); + } + + + public DeviceReferenceData() { + super(); + } + + public DeviceReferenceData(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + id = GsonParser.parseLong(jsonObject.get("id")); + name = GsonParser.parseString(jsonObject.get("name")); + status = GsonParser.parseBoolean(jsonObject.get("status")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaDeviceReferenceData"); + kparams.add("name", this.name); + kparams.add("status", this.status); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public DeviceReferenceData createFromParcel(Parcel source) { + return new DeviceReferenceData(source); + } + + @Override + public DeviceReferenceData[] newArray(int size) { + return new DeviceReferenceData[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.id); + dest.writeString(this.name); + dest.writeValue(this.status); + } + + public DeviceReferenceData(Parcel in) { + super(in); + this.id = (Long)in.readValue(Long.class.getClassLoader()); + this.name = in.readString(); + this.status = (Boolean)in.readValue(Boolean.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/DeviceReferenceDataFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/DeviceReferenceDataFilter.java new file mode 100644 index 000000000..3ff4c03db --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/DeviceReferenceDataFilter.java @@ -0,0 +1,117 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Device Reference Data Filter + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(DeviceReferenceDataFilter.Tokenizer.class) +public class DeviceReferenceDataFilter extends Filter { + + public interface Tokenizer extends Filter.Tokenizer { + String idIn(); + } + + /** + * IdIn + */ + private String idIn; + + // idIn: + public String getIdIn(){ + return this.idIn; + } + public void setIdIn(String idIn){ + this.idIn = idIn; + } + + public void idIn(String multirequestToken){ + setToken("idIn", multirequestToken); + } + + + public DeviceReferenceDataFilter() { + super(); + } + + public DeviceReferenceDataFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + idIn = GsonParser.parseString(jsonObject.get("idIn")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaDeviceReferenceDataFilter"); + kparams.add("idIn", this.idIn); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public DeviceReferenceDataFilter createFromParcel(Parcel source) { + return new DeviceReferenceDataFilter(source); + } + + @Override + public DeviceReferenceDataFilter[] newArray(int size) { + return new DeviceReferenceDataFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.idIn); + } + + public DeviceReferenceDataFilter(Parcel in) { + super(in); + this.idIn = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/DeviceReport.java b/KalturaClient/src/main/java/com/kaltura/client/types/DeviceReport.java new file mode 100644 index 000000000..bd4e44547 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/DeviceReport.java @@ -0,0 +1,325 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.Platform; +import com.kaltura.client.types.PushParams; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(DeviceReport.Tokenizer.class) +public class DeviceReport extends Report { + + public interface Tokenizer extends Report.Tokenizer { + String partnerId(); + String configurationGroupId(); + String udid(); + PushParams.Tokenizer pushParameters(); + String versionNumber(); + String versionPlatform(); + String versionAppName(); + String lastAccessIP(); + String lastAccessDate(); + String userAgent(); + String operationSystem(); + } + + /** + * Partner unique identifier + */ + private Integer partnerId; + /** + * Configuration group identifier which the version configuration the device last + received belongs to + */ + private String configurationGroupId; + /** + * Device unique identifier + */ + private String udid; + /** + * Device-Application push parameters + */ + private PushParams pushParameters; + /** + * Application version number + */ + private String versionNumber; + /** + * Application version type + */ + private Platform versionPlatform; + /** + * Application version name + */ + private String versionAppName; + /** + * Last access IP + */ + private String lastAccessIP; + /** + * Last device configuration request date + */ + private Long lastAccessDate; + /** + * request header property + */ + private String userAgent; + /** + * Request header property Incase value cannot be found - returns + &quot;Unknown 0.0&quot; + */ + private String operationSystem; + + // partnerId: + public Integer getPartnerId(){ + return this.partnerId; + } + public void setPartnerId(Integer partnerId){ + this.partnerId = partnerId; + } + + public void partnerId(String multirequestToken){ + setToken("partnerId", multirequestToken); + } + + // configurationGroupId: + public String getConfigurationGroupId(){ + return this.configurationGroupId; + } + public void setConfigurationGroupId(String configurationGroupId){ + this.configurationGroupId = configurationGroupId; + } + + public void configurationGroupId(String multirequestToken){ + setToken("configurationGroupId", multirequestToken); + } + + // udid: + public String getUdid(){ + return this.udid; + } + public void setUdid(String udid){ + this.udid = udid; + } + + public void udid(String multirequestToken){ + setToken("udid", multirequestToken); + } + + // pushParameters: + public PushParams getPushParameters(){ + return this.pushParameters; + } + public void setPushParameters(PushParams pushParameters){ + this.pushParameters = pushParameters; + } + + // versionNumber: + public String getVersionNumber(){ + return this.versionNumber; + } + public void setVersionNumber(String versionNumber){ + this.versionNumber = versionNumber; + } + + public void versionNumber(String multirequestToken){ + setToken("versionNumber", multirequestToken); + } + + // versionPlatform: + public Platform getVersionPlatform(){ + return this.versionPlatform; + } + public void setVersionPlatform(Platform versionPlatform){ + this.versionPlatform = versionPlatform; + } + + public void versionPlatform(String multirequestToken){ + setToken("versionPlatform", multirequestToken); + } + + // versionAppName: + public String getVersionAppName(){ + return this.versionAppName; + } + public void setVersionAppName(String versionAppName){ + this.versionAppName = versionAppName; + } + + public void versionAppName(String multirequestToken){ + setToken("versionAppName", multirequestToken); + } + + // lastAccessIP: + public String getLastAccessIP(){ + return this.lastAccessIP; + } + public void setLastAccessIP(String lastAccessIP){ + this.lastAccessIP = lastAccessIP; + } + + public void lastAccessIP(String multirequestToken){ + setToken("lastAccessIP", multirequestToken); + } + + // lastAccessDate: + public Long getLastAccessDate(){ + return this.lastAccessDate; + } + public void setLastAccessDate(Long lastAccessDate){ + this.lastAccessDate = lastAccessDate; + } + + public void lastAccessDate(String multirequestToken){ + setToken("lastAccessDate", multirequestToken); + } + + // userAgent: + public String getUserAgent(){ + return this.userAgent; + } + public void setUserAgent(String userAgent){ + this.userAgent = userAgent; + } + + public void userAgent(String multirequestToken){ + setToken("userAgent", multirequestToken); + } + + // operationSystem: + public String getOperationSystem(){ + return this.operationSystem; + } + public void setOperationSystem(String operationSystem){ + this.operationSystem = operationSystem; + } + + public void operationSystem(String multirequestToken){ + setToken("operationSystem", multirequestToken); + } + + + public DeviceReport() { + super(); + } + + public DeviceReport(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + partnerId = GsonParser.parseInt(jsonObject.get("partnerId")); + configurationGroupId = GsonParser.parseString(jsonObject.get("configurationGroupId")); + udid = GsonParser.parseString(jsonObject.get("udid")); + pushParameters = GsonParser.parseObject(jsonObject.getAsJsonObject("pushParameters"), PushParams.class); + versionNumber = GsonParser.parseString(jsonObject.get("versionNumber")); + versionPlatform = Platform.get(GsonParser.parseString(jsonObject.get("versionPlatform"))); + versionAppName = GsonParser.parseString(jsonObject.get("versionAppName")); + lastAccessIP = GsonParser.parseString(jsonObject.get("lastAccessIP")); + lastAccessDate = GsonParser.parseLong(jsonObject.get("lastAccessDate")); + userAgent = GsonParser.parseString(jsonObject.get("userAgent")); + operationSystem = GsonParser.parseString(jsonObject.get("operationSystem")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaDeviceReport"); + kparams.add("partnerId", this.partnerId); + kparams.add("configurationGroupId", this.configurationGroupId); + kparams.add("udid", this.udid); + kparams.add("pushParameters", this.pushParameters); + kparams.add("versionNumber", this.versionNumber); + kparams.add("versionPlatform", this.versionPlatform); + kparams.add("versionAppName", this.versionAppName); + kparams.add("lastAccessIP", this.lastAccessIP); + kparams.add("lastAccessDate", this.lastAccessDate); + kparams.add("userAgent", this.userAgent); + kparams.add("operationSystem", this.operationSystem); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public DeviceReport createFromParcel(Parcel source) { + return new DeviceReport(source); + } + + @Override + public DeviceReport[] newArray(int size) { + return new DeviceReport[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.partnerId); + dest.writeString(this.configurationGroupId); + dest.writeString(this.udid); + dest.writeParcelable(this.pushParameters, flags); + dest.writeString(this.versionNumber); + dest.writeInt(this.versionPlatform == null ? -1 : this.versionPlatform.ordinal()); + dest.writeString(this.versionAppName); + dest.writeString(this.lastAccessIP); + dest.writeValue(this.lastAccessDate); + dest.writeString(this.userAgent); + dest.writeString(this.operationSystem); + } + + public DeviceReport(Parcel in) { + super(in); + this.partnerId = (Integer)in.readValue(Integer.class.getClassLoader()); + this.configurationGroupId = in.readString(); + this.udid = in.readString(); + this.pushParameters = in.readParcelable(PushParams.class.getClassLoader()); + this.versionNumber = in.readString(); + int tmpVersionPlatform = in.readInt(); + this.versionPlatform = tmpVersionPlatform == -1 ? null : Platform.values()[tmpVersionPlatform]; + this.versionAppName = in.readString(); + this.lastAccessIP = in.readString(); + this.lastAccessDate = (Long)in.readValue(Long.class.getClassLoader()); + this.userAgent = in.readString(); + this.operationSystem = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/DeviceReportFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/DeviceReportFilter.java new file mode 100644 index 000000000..73b2860b3 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/DeviceReportFilter.java @@ -0,0 +1,117 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Report filter + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(DeviceReportFilter.Tokenizer.class) +public class DeviceReportFilter extends ReportFilter { + + public interface Tokenizer extends ReportFilter.Tokenizer { + String lastAccessDateGreaterThanOrEqual(); + } + + /** + * Filter device configuration later than specific date + */ + private Long lastAccessDateGreaterThanOrEqual; + + // lastAccessDateGreaterThanOrEqual: + public Long getLastAccessDateGreaterThanOrEqual(){ + return this.lastAccessDateGreaterThanOrEqual; + } + public void setLastAccessDateGreaterThanOrEqual(Long lastAccessDateGreaterThanOrEqual){ + this.lastAccessDateGreaterThanOrEqual = lastAccessDateGreaterThanOrEqual; + } + + public void lastAccessDateGreaterThanOrEqual(String multirequestToken){ + setToken("lastAccessDateGreaterThanOrEqual", multirequestToken); + } + + + public DeviceReportFilter() { + super(); + } + + public DeviceReportFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + lastAccessDateGreaterThanOrEqual = GsonParser.parseLong(jsonObject.get("lastAccessDateGreaterThanOrEqual")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaDeviceReportFilter"); + kparams.add("lastAccessDateGreaterThanOrEqual", this.lastAccessDateGreaterThanOrEqual); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public DeviceReportFilter createFromParcel(Parcel source) { + return new DeviceReportFilter(source); + } + + @Override + public DeviceReportFilter[] newArray(int size) { + return new DeviceReportFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.lastAccessDateGreaterThanOrEqual); + } + + public DeviceReportFilter(Parcel in) { + super(in); + this.lastAccessDateGreaterThanOrEqual = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/Discount.java b/KalturaClient/src/main/java/com/kaltura/client/types/Discount.java new file mode 100644 index 000000000..7fcbf1105 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/Discount.java @@ -0,0 +1,117 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Discount + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(Discount.Tokenizer.class) +public class Discount extends Price { + + public interface Tokenizer extends Price.Tokenizer { + String percentage(); + } + + /** + * The discount percentage + */ + private Double percentage; + + // percentage: + public Double getPercentage(){ + return this.percentage; + } + public void setPercentage(Double percentage){ + this.percentage = percentage; + } + + public void percentage(String multirequestToken){ + setToken("percentage", multirequestToken); + } + + + public Discount() { + super(); + } + + public Discount(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + percentage = GsonParser.parseDouble(jsonObject.get("percentage")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaDiscount"); + kparams.add("percentage", this.percentage); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public Discount createFromParcel(Parcel source) { + return new Discount(source); + } + + @Override + public Discount[] newArray(int size) { + return new Discount[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.percentage); + } + + public Discount(Parcel in) { + super(in); + this.percentage = (Double)in.readValue(Double.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/DiscountDetails.java b/KalturaClient/src/main/java/com/kaltura/client/types/DiscountDetails.java new file mode 100644 index 000000000..bcd1035e7 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/DiscountDetails.java @@ -0,0 +1,243 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.ArrayList; +import java.util.List; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Discount details + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(DiscountDetails.Tokenizer.class) +public class DiscountDetails extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String id(); + String name(); + RequestBuilder.ListTokenizer multiCurrencyDiscount(); + String startDate(); + String endDate(); + String whenAlgoTimes(); + String whenAlgoType(); + } + + /** + * The discount ID + */ + private Integer id; + /** + * The price code name + */ + private String name; + /** + * Multi currency discounts for all countries and currencies + */ + private List multiCurrencyDiscount; + /** + * Start date represented as epoch + */ + private Long startDate; + /** + * End date represented as epoch + */ + private Long endDate; + /** + * End date represented as epoch + */ + private Integer whenAlgoTimes; + /** + * End date represented as epoch + */ + private Integer whenAlgoType; + + // id: + public Integer getId(){ + return this.id; + } + // name: + public String getName(){ + return this.name; + } + public void setName(String name){ + this.name = name; + } + + public void name(String multirequestToken){ + setToken("name", multirequestToken); + } + + // multiCurrencyDiscount: + public List getMultiCurrencyDiscount(){ + return this.multiCurrencyDiscount; + } + public void setMultiCurrencyDiscount(List multiCurrencyDiscount){ + this.multiCurrencyDiscount = multiCurrencyDiscount; + } + + // startDate: + public Long getStartDate(){ + return this.startDate; + } + public void setStartDate(Long startDate){ + this.startDate = startDate; + } + + public void startDate(String multirequestToken){ + setToken("startDate", multirequestToken); + } + + // endDate: + public Long getEndDate(){ + return this.endDate; + } + public void setEndDate(Long endDate){ + this.endDate = endDate; + } + + public void endDate(String multirequestToken){ + setToken("endDate", multirequestToken); + } + + // whenAlgoTimes: + public Integer getWhenAlgoTimes(){ + return this.whenAlgoTimes; + } + public void setWhenAlgoTimes(Integer whenAlgoTimes){ + this.whenAlgoTimes = whenAlgoTimes; + } + + public void whenAlgoTimes(String multirequestToken){ + setToken("whenAlgoTimes", multirequestToken); + } + + // whenAlgoType: + public Integer getWhenAlgoType(){ + return this.whenAlgoType; + } + public void setWhenAlgoType(Integer whenAlgoType){ + this.whenAlgoType = whenAlgoType; + } + + public void whenAlgoType(String multirequestToken){ + setToken("whenAlgoType", multirequestToken); + } + + + public DiscountDetails() { + super(); + } + + public DiscountDetails(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + id = GsonParser.parseInt(jsonObject.get("id")); + name = GsonParser.parseString(jsonObject.get("name")); + multiCurrencyDiscount = GsonParser.parseArray(jsonObject.getAsJsonArray("multiCurrencyDiscount"), Discount.class); + startDate = GsonParser.parseLong(jsonObject.get("startDate")); + endDate = GsonParser.parseLong(jsonObject.get("endDate")); + whenAlgoTimes = GsonParser.parseInt(jsonObject.get("whenAlgoTimes")); + whenAlgoType = GsonParser.parseInt(jsonObject.get("whenAlgoType")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaDiscountDetails"); + kparams.add("name", this.name); + kparams.add("multiCurrencyDiscount", this.multiCurrencyDiscount); + kparams.add("startDate", this.startDate); + kparams.add("endDate", this.endDate); + kparams.add("whenAlgoTimes", this.whenAlgoTimes); + kparams.add("whenAlgoType", this.whenAlgoType); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public DiscountDetails createFromParcel(Parcel source) { + return new DiscountDetails(source); + } + + @Override + public DiscountDetails[] newArray(int size) { + return new DiscountDetails[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.id); + dest.writeString(this.name); + if(this.multiCurrencyDiscount != null) { + dest.writeInt(this.multiCurrencyDiscount.size()); + dest.writeList(this.multiCurrencyDiscount); + } else { + dest.writeInt(-1); + } + dest.writeValue(this.startDate); + dest.writeValue(this.endDate); + dest.writeValue(this.whenAlgoTimes); + dest.writeValue(this.whenAlgoType); + } + + public DiscountDetails(Parcel in) { + super(in); + this.id = (Integer)in.readValue(Integer.class.getClassLoader()); + this.name = in.readString(); + int multiCurrencyDiscountSize = in.readInt(); + if( multiCurrencyDiscountSize > -1) { + this.multiCurrencyDiscount = new ArrayList<>(); + in.readList(this.multiCurrencyDiscount, Discount.class.getClassLoader()); + } + this.startDate = (Long)in.readValue(Long.class.getClassLoader()); + this.endDate = (Long)in.readValue(Long.class.getClassLoader()); + this.whenAlgoTimes = (Integer)in.readValue(Integer.class.getClassLoader()); + this.whenAlgoType = (Integer)in.readValue(Integer.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/DiscountDetailsFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/DiscountDetailsFilter.java new file mode 100644 index 000000000..37cbc6d67 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/DiscountDetailsFilter.java @@ -0,0 +1,114 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(DiscountDetailsFilter.Tokenizer.class) +public class DiscountDetailsFilter extends Filter { + + public interface Tokenizer extends Filter.Tokenizer { + String idIn(); + } + + /** + * Comma separated discount codes + */ + private String idIn; + + // idIn: + public String getIdIn(){ + return this.idIn; + } + public void setIdIn(String idIn){ + this.idIn = idIn; + } + + public void idIn(String multirequestToken){ + setToken("idIn", multirequestToken); + } + + + public DiscountDetailsFilter() { + super(); + } + + public DiscountDetailsFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + idIn = GsonParser.parseString(jsonObject.get("idIn")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaDiscountDetailsFilter"); + kparams.add("idIn", this.idIn); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public DiscountDetailsFilter createFromParcel(Parcel source) { + return new DiscountDetailsFilter(source); + } + + @Override + public DiscountDetailsFilter[] newArray(int size) { + return new DiscountDetailsFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.idIn); + } + + public DiscountDetailsFilter(Parcel in) { + super(in); + this.idIn = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/DiscountEntitlementDiscountDetails.java b/KalturaClient/src/main/java/com/kaltura/client/types/DiscountEntitlementDiscountDetails.java new file mode 100644 index 000000000..d1b5bebd1 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/DiscountEntitlementDiscountDetails.java @@ -0,0 +1,85 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Discount entitlement discount details + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(DiscountEntitlementDiscountDetails.Tokenizer.class) +public class DiscountEntitlementDiscountDetails extends EntitlementDiscountDetailsIdentifier { + + public interface Tokenizer extends EntitlementDiscountDetailsIdentifier.Tokenizer { + } + + + + public DiscountEntitlementDiscountDetails() { + super(); + } + + public DiscountEntitlementDiscountDetails(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaDiscountEntitlementDiscountDetails"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public DiscountEntitlementDiscountDetails createFromParcel(Parcel source) { + return new DiscountEntitlementDiscountDetails(source); + } + + @Override + public DiscountEntitlementDiscountDetails[] newArray(int size) { + return new DiscountEntitlementDiscountDetails[size]; + } + }; + + public DiscountEntitlementDiscountDetails(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/DiscountModule.java b/KalturaClient/src/main/java/com/kaltura/client/types/DiscountModule.java new file mode 100644 index 000000000..116d2b11f --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/DiscountModule.java @@ -0,0 +1,181 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Discount module + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(DiscountModule.Tokenizer.class) +public class DiscountModule extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String id(); + String percent(); + String startDate(); + String endDate(); + } + + /** + * Discount module identifier + */ + private Long id; + /** + * The discount percentage + */ + private Double percent; + /** + * The first date the discount is available + */ + private Long startDate; + /** + * The last date the discount is available + */ + private Long endDate; + + // id: + public Long getId(){ + return this.id; + } + public void setId(Long id){ + this.id = id; + } + + public void id(String multirequestToken){ + setToken("id", multirequestToken); + } + + // percent: + public Double getPercent(){ + return this.percent; + } + public void setPercent(Double percent){ + this.percent = percent; + } + + public void percent(String multirequestToken){ + setToken("percent", multirequestToken); + } + + // startDate: + public Long getStartDate(){ + return this.startDate; + } + public void setStartDate(Long startDate){ + this.startDate = startDate; + } + + public void startDate(String multirequestToken){ + setToken("startDate", multirequestToken); + } + + // endDate: + public Long getEndDate(){ + return this.endDate; + } + public void setEndDate(Long endDate){ + this.endDate = endDate; + } + + public void endDate(String multirequestToken){ + setToken("endDate", multirequestToken); + } + + + public DiscountModule() { + super(); + } + + public DiscountModule(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + id = GsonParser.parseLong(jsonObject.get("id")); + percent = GsonParser.parseDouble(jsonObject.get("percent")); + startDate = GsonParser.parseLong(jsonObject.get("startDate")); + endDate = GsonParser.parseLong(jsonObject.get("endDate")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaDiscountModule"); + kparams.add("id", this.id); + kparams.add("percent", this.percent); + kparams.add("startDate", this.startDate); + kparams.add("endDate", this.endDate); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public DiscountModule createFromParcel(Parcel source) { + return new DiscountModule(source); + } + + @Override + public DiscountModule[] newArray(int size) { + return new DiscountModule[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.id); + dest.writeValue(this.percent); + dest.writeValue(this.startDate); + dest.writeValue(this.endDate); + } + + public DiscountModule(Parcel in) { + super(in); + this.id = (Long)in.readValue(Long.class.getClassLoader()); + this.percent = (Double)in.readValue(Double.class.getClassLoader()); + this.startDate = (Long)in.readValue(Long.class.getClassLoader()); + this.endDate = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/DiscoveryMediaFile.java b/KalturaClient/src/main/java/com/kaltura/client/types/DiscoveryMediaFile.java new file mode 100644 index 000000000..1ea7aa0a3 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/DiscoveryMediaFile.java @@ -0,0 +1,117 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Media file in discovery context + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(DiscoveryMediaFile.Tokenizer.class) +public class DiscoveryMediaFile extends MediaFile { + + public interface Tokenizer extends MediaFile.Tokenizer { + String isPlaybackable(); + } + + /** + * show, if file could be played + */ + private Boolean isPlaybackable; + + // isPlaybackable: + public Boolean getIsPlaybackable(){ + return this.isPlaybackable; + } + public void setIsPlaybackable(Boolean isPlaybackable){ + this.isPlaybackable = isPlaybackable; + } + + public void isPlaybackable(String multirequestToken){ + setToken("isPlaybackable", multirequestToken); + } + + + public DiscoveryMediaFile() { + super(); + } + + public DiscoveryMediaFile(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + isPlaybackable = GsonParser.parseBoolean(jsonObject.get("isPlaybackable")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaDiscoveryMediaFile"); + kparams.add("isPlaybackable", this.isPlaybackable); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public DiscoveryMediaFile createFromParcel(Parcel source) { + return new DiscoveryMediaFile(source); + } + + @Override + public DiscoveryMediaFile[] newArray(int size) { + return new DiscoveryMediaFile[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.isPlaybackable); + } + + public DiscoveryMediaFile(Parcel in) { + super(in); + this.isPlaybackable = (Boolean)in.readValue(Boolean.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/Dispatcher.java b/KalturaClient/src/main/java/com/kaltura/client/types/Dispatcher.java new file mode 100644 index 000000000..f53b69e65 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/Dispatcher.java @@ -0,0 +1,83 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(Dispatcher.Tokenizer.class) +public class Dispatcher extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + } + + + + public Dispatcher() { + super(); + } + + public Dispatcher(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaDispatcher"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public Dispatcher createFromParcel(Parcel source) { + return new Dispatcher(source); + } + + @Override + public Dispatcher[] newArray(int size) { + return new Dispatcher[size]; + } + }; + + public Dispatcher(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/DoubleValue.java b/KalturaClient/src/main/java/com/kaltura/client/types/DoubleValue.java new file mode 100644 index 000000000..260ef7f2d --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/DoubleValue.java @@ -0,0 +1,117 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * A string representation to return an array of doubles + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(DoubleValue.Tokenizer.class) +public class DoubleValue extends Value { + + public interface Tokenizer extends Value.Tokenizer { + String value(); + } + + /** + * Value + */ + private Double value; + + // value: + public Double getValue(){ + return this.value; + } + public void setValue(Double value){ + this.value = value; + } + + public void value(String multirequestToken){ + setToken("value", multirequestToken); + } + + + public DoubleValue() { + super(); + } + + public DoubleValue(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + value = GsonParser.parseDouble(jsonObject.get("value")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaDoubleValue"); + kparams.add("value", this.value); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public DoubleValue createFromParcel(Parcel source) { + return new DoubleValue(source); + } + + @Override + public DoubleValue[] newArray(int size) { + return new DoubleValue[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.value); + } + + public DoubleValue(Parcel in) { + super(in); + this.value = (Double)in.readValue(Double.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/DrmPlaybackPluginData.java b/KalturaClient/src/main/java/com/kaltura/client/types/DrmPlaybackPluginData.java new file mode 100644 index 000000000..ffdfbc2b0 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/DrmPlaybackPluginData.java @@ -0,0 +1,173 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.DrmSchemeName; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.HashMap; +import java.util.Map; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(DrmPlaybackPluginData.Tokenizer.class) +public class DrmPlaybackPluginData extends PluginData { + + public interface Tokenizer extends PluginData.Tokenizer { + String scheme(); + String licenseURL(); + RequestBuilder.MapTokenizer dynamicData(); + } + + /** + * Scheme + */ + private DrmSchemeName scheme; + /** + * License URL + */ + private String licenseURL; + /** + * Dynamic data + */ + private Map dynamicData; + + // scheme: + public DrmSchemeName getScheme(){ + return this.scheme; + } + public void setScheme(DrmSchemeName scheme){ + this.scheme = scheme; + } + + public void scheme(String multirequestToken){ + setToken("scheme", multirequestToken); + } + + // licenseURL: + public String getLicenseURL(){ + return this.licenseURL; + } + public void setLicenseURL(String licenseURL){ + this.licenseURL = licenseURL; + } + + public void licenseURL(String multirequestToken){ + setToken("licenseURL", multirequestToken); + } + + // dynamicData: + public Map getDynamicData(){ + return this.dynamicData; + } + public void setDynamicData(Map dynamicData){ + this.dynamicData = dynamicData; + } + + + public DrmPlaybackPluginData() { + super(); + } + + public DrmPlaybackPluginData(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + scheme = DrmSchemeName.get(GsonParser.parseString(jsonObject.get("scheme"))); + licenseURL = GsonParser.parseString(jsonObject.get("licenseURL")); + dynamicData = GsonParser.parseMap(jsonObject.getAsJsonObject("dynamicData"), StringValue.class); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaDrmPlaybackPluginData"); + kparams.add("scheme", this.scheme); + kparams.add("licenseURL", this.licenseURL); + kparams.add("dynamicData", this.dynamicData); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public DrmPlaybackPluginData createFromParcel(Parcel source) { + return new DrmPlaybackPluginData(source); + } + + @Override + public DrmPlaybackPluginData[] newArray(int size) { + return new DrmPlaybackPluginData[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeInt(this.scheme == null ? -1 : this.scheme.ordinal()); + dest.writeString(this.licenseURL); + if(this.dynamicData != null) { + dest.writeInt(this.dynamicData.size()); + for (Map.Entry entry : this.dynamicData.entrySet()) { + dest.writeString(entry.getKey()); + dest.writeParcelable(entry.getValue(), flags); + } + } else { + dest.writeInt(-1); + } + } + + public DrmPlaybackPluginData(Parcel in) { + super(in); + int tmpScheme = in.readInt(); + this.scheme = tmpScheme == -1 ? null : DrmSchemeName.values()[tmpScheme]; + this.licenseURL = in.readString(); + int dynamicDataSize = in.readInt(); + if( dynamicDataSize > -1) { + this.dynamicData = new HashMap<>(); + for (int i = 0; i < dynamicDataSize; i++) { + String key = in.readString(); + StringValue value = in.readParcelable(StringValue.class.getClassLoader()); + this.dynamicData.put(key, value); + } + } + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/DrmProfile.java b/KalturaClient/src/main/java/com/kaltura/client/types/DrmProfile.java new file mode 100644 index 000000000..e0b279d02 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/DrmProfile.java @@ -0,0 +1,226 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * DRM Adapter + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(DrmProfile.Tokenizer.class) +public class DrmProfile extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String id(); + String name(); + String isActive(); + String adapterUrl(); + String settings(); + String systemName(); + String sharedSecret(); + } + + /** + * DRM adapter identifier + */ + private Integer id; + /** + * DRM adapter name + */ + private String name; + /** + * DRM adapter active status + */ + private Boolean isActive; + /** + * DRM adapter URL + */ + private String adapterUrl; + /** + * DRM adapter settings + */ + private String settings; + /** + * DRM adapter alias + */ + private String systemName; + /** + * DRM shared secret + */ + private String sharedSecret; + + // id: + public Integer getId(){ + return this.id; + } + // name: + public String getName(){ + return this.name; + } + public void setName(String name){ + this.name = name; + } + + public void name(String multirequestToken){ + setToken("name", multirequestToken); + } + + // isActive: + public Boolean getIsActive(){ + return this.isActive; + } + public void setIsActive(Boolean isActive){ + this.isActive = isActive; + } + + public void isActive(String multirequestToken){ + setToken("isActive", multirequestToken); + } + + // adapterUrl: + public String getAdapterUrl(){ + return this.adapterUrl; + } + public void setAdapterUrl(String adapterUrl){ + this.adapterUrl = adapterUrl; + } + + public void adapterUrl(String multirequestToken){ + setToken("adapterUrl", multirequestToken); + } + + // settings: + public String getSettings(){ + return this.settings; + } + public void setSettings(String settings){ + this.settings = settings; + } + + public void settings(String multirequestToken){ + setToken("settings", multirequestToken); + } + + // systemName: + public String getSystemName(){ + return this.systemName; + } + public void setSystemName(String systemName){ + this.systemName = systemName; + } + + public void systemName(String multirequestToken){ + setToken("systemName", multirequestToken); + } + + // sharedSecret: + public String getSharedSecret(){ + return this.sharedSecret; + } + + public DrmProfile() { + super(); + } + + public DrmProfile(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + id = GsonParser.parseInt(jsonObject.get("id")); + name = GsonParser.parseString(jsonObject.get("name")); + isActive = GsonParser.parseBoolean(jsonObject.get("isActive")); + adapterUrl = GsonParser.parseString(jsonObject.get("adapterUrl")); + settings = GsonParser.parseString(jsonObject.get("settings")); + systemName = GsonParser.parseString(jsonObject.get("systemName")); + sharedSecret = GsonParser.parseString(jsonObject.get("sharedSecret")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaDrmProfile"); + kparams.add("name", this.name); + kparams.add("isActive", this.isActive); + kparams.add("adapterUrl", this.adapterUrl); + kparams.add("settings", this.settings); + kparams.add("systemName", this.systemName); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public DrmProfile createFromParcel(Parcel source) { + return new DrmProfile(source); + } + + @Override + public DrmProfile[] newArray(int size) { + return new DrmProfile[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.id); + dest.writeString(this.name); + dest.writeValue(this.isActive); + dest.writeString(this.adapterUrl); + dest.writeString(this.settings); + dest.writeString(this.systemName); + dest.writeString(this.sharedSecret); + } + + public DrmProfile(Parcel in) { + super(in); + this.id = (Integer)in.readValue(Integer.class.getClassLoader()); + this.name = in.readString(); + this.isActive = (Boolean)in.readValue(Boolean.class.getClassLoader()); + this.adapterUrl = in.readString(); + this.settings = in.readString(); + this.systemName = in.readString(); + this.sharedSecret = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/Duration.java b/KalturaClient/src/main/java/com/kaltura/client/types/Duration.java new file mode 100644 index 000000000..f3bcbfc72 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/Duration.java @@ -0,0 +1,154 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.DurationUnit; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * representation of duration time unit and value + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(Duration.Tokenizer.class) +public class Duration extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String unit(); + String value(); + String code(); + } + + /** + * duration unit + */ + private DurationUnit unit; + /** + * duration value + */ + private Integer value; + /** + * duration code - the canculat time in minutes except from years and months that + have specific code + */ + private Long code; + + // unit: + public DurationUnit getUnit(){ + return this.unit; + } + public void setUnit(DurationUnit unit){ + this.unit = unit; + } + + public void unit(String multirequestToken){ + setToken("unit", multirequestToken); + } + + // value: + public Integer getValue(){ + return this.value; + } + public void setValue(Integer value){ + this.value = value; + } + + public void value(String multirequestToken){ + setToken("value", multirequestToken); + } + + // code: + public Long getCode(){ + return this.code; + } + + public Duration() { + super(); + } + + public Duration(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + unit = DurationUnit.get(GsonParser.parseString(jsonObject.get("unit"))); + value = GsonParser.parseInt(jsonObject.get("value")); + code = GsonParser.parseLong(jsonObject.get("code")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaDuration"); + kparams.add("unit", this.unit); + kparams.add("value", this.value); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public Duration createFromParcel(Parcel source) { + return new Duration(source); + } + + @Override + public Duration[] newArray(int size) { + return new Duration[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeInt(this.unit == null ? -1 : this.unit.ordinal()); + dest.writeValue(this.value); + dest.writeValue(this.code); + } + + public Duration(Parcel in) { + super(in); + int tmpUnit = in.readInt(); + this.unit = tmpUnit == -1 ? null : DurationUnit.values()[tmpUnit]; + this.value = (Integer)in.readValue(Integer.class.getClassLoader()); + this.code = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/DynamicChannel.java b/KalturaClient/src/main/java/com/kaltura/client/types/DynamicChannel.java new file mode 100644 index 000000000..63ed09233 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/DynamicChannel.java @@ -0,0 +1,183 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.AssetGroupBy; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.ArrayList; +import java.util.List; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(DynamicChannel.Tokenizer.class) +public class DynamicChannel extends Channel { + + public interface Tokenizer extends Channel.Tokenizer { + String kSql(); + RequestBuilder.ListTokenizer assetTypes(); + AssetGroupBy.Tokenizer groupBy(); + } + + /** + * Search assets using dynamic criteria. Provided collection of nested expressions + with key, comparison operators, value, and logical conjunction. + Possible keys: any Tag or Meta defined in the system and the following reserved + keys: start_date, end_date. epg_id, media_id - for specific asset + IDs. geo_block - only valid value is &quot;true&quot;: When + enabled, only assets that are not restriced to the user by geo-block rules will + return. parental_rules - only valid value is + &quot;true&quot;: When enabled, only assets that the user + doesn&#39;t need to provide PIN code will return. + user_interests - only valid value is &quot;true&quot;. When enabled, + only assets that the user defined as his interests (by tags and metas) will + return. epg_channel_id – the channel identifier of the EPG + program. *****Deprecated, please use linear_media_id instead***** + linear_media_id – the linear media identifier of the EPG program. + entitled_assets - valid values: &quot;free&quot;, + &quot;entitled&quot;, &quot;both&quot;. free - gets only free to + watch assets. entitled - only those that the user is implicitly entitled to + watch. Comparison operators: for numerical fields =, &gt;, + &gt;=, &lt;, &lt;=, : (in). For alpha-numerical fields + =, != (not), ~ (like), !~, ^ (any word starts with), ^= (phrase starts with), + + (exists), !+ (not exists). Logical conjunction: and, or. + Search values are limited to 20 characters each. (maximum length + of entire filter is 4096 characters) + */ + private String kSql; + /** + * Asset types in the channel. -26 is EPG + */ + private List assetTypes; + /** + * Channel group by + */ + private AssetGroupBy groupBy; + + // kSql: + public String getKSql(){ + return this.kSql; + } + public void setKSql(String kSql){ + this.kSql = kSql; + } + + public void kSql(String multirequestToken){ + setToken("kSql", multirequestToken); + } + + // assetTypes: + public List getAssetTypes(){ + return this.assetTypes; + } + public void setAssetTypes(List assetTypes){ + this.assetTypes = assetTypes; + } + + // groupBy: + public AssetGroupBy getGroupBy(){ + return this.groupBy; + } + public void setGroupBy(AssetGroupBy groupBy){ + this.groupBy = groupBy; + } + + + public DynamicChannel() { + super(); + } + + public DynamicChannel(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + kSql = GsonParser.parseString(jsonObject.get("kSql")); + assetTypes = GsonParser.parseArray(jsonObject.getAsJsonArray("assetTypes"), IntegerValue.class); + groupBy = GsonParser.parseObject(jsonObject.getAsJsonObject("groupBy"), AssetGroupBy.class); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaDynamicChannel"); + kparams.add("kSql", this.kSql); + kparams.add("assetTypes", this.assetTypes); + kparams.add("groupBy", this.groupBy); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public DynamicChannel createFromParcel(Parcel source) { + return new DynamicChannel(source); + } + + @Override + public DynamicChannel[] newArray(int size) { + return new DynamicChannel[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.kSql); + if(this.assetTypes != null) { + dest.writeInt(this.assetTypes.size()); + dest.writeList(this.assetTypes); + } else { + dest.writeInt(-1); + } + dest.writeParcelable(this.groupBy, flags); + } + + public DynamicChannel(Parcel in) { + super(in); + this.kSql = in.readString(); + int assetTypesSize = in.readInt(); + if( assetTypesSize > -1) { + this.assetTypes = new ArrayList<>(); + in.readList(this.assetTypes, IntegerValue.class.getClassLoader()); + } + this.groupBy = in.readParcelable(AssetGroupBy.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/DynamicData.java b/KalturaClient/src/main/java/com/kaltura/client/types/DynamicData.java new file mode 100644 index 000000000..6ea2f8614 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/DynamicData.java @@ -0,0 +1,133 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.types.Value; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(DynamicData.Tokenizer.class) +public class DynamicData extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String key(); + Value.Tokenizer value(); + } + + /** + * Key + */ + private String key; + /** + * Value + */ + private Value value; + + // key: + public String getKey(){ + return this.key; + } + public void setKey(String key){ + this.key = key; + } + + public void key(String multirequestToken){ + setToken("key", multirequestToken); + } + + // value: + public Value getValue(){ + return this.value; + } + public void setValue(Value value){ + this.value = value; + } + + + public DynamicData() { + super(); + } + + public DynamicData(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + key = GsonParser.parseString(jsonObject.get("key")); + value = GsonParser.parseObject(jsonObject.getAsJsonObject("value"), Value.class); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaDynamicData"); + kparams.add("key", this.key); + kparams.add("value", this.value); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public DynamicData createFromParcel(Parcel source) { + return new DynamicData(source); + } + + @Override + public DynamicData[] newArray(int size) { + return new DynamicData[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.key); + dest.writeParcelable(this.value, flags); + } + + public DynamicData(Parcel in) { + super(in); + this.key = in.readString(); + this.value = in.readParcelable(Value.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/DynamicKeysCondition.java b/KalturaClient/src/main/java/com/kaltura/client/types/DynamicKeysCondition.java new file mode 100644 index 000000000..b6948ef64 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/DynamicKeysCondition.java @@ -0,0 +1,135 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(DynamicKeysCondition.Tokenizer.class) +public class DynamicKeysCondition extends Condition { + + public interface Tokenizer extends Condition.Tokenizer { + String key(); + String values(); + } + + /** + * key + */ + private String key; + /** + * comma-separated values + */ + private String values; + + // key: + public String getKey(){ + return this.key; + } + public void setKey(String key){ + this.key = key; + } + + public void key(String multirequestToken){ + setToken("key", multirequestToken); + } + + // values: + public String getValues(){ + return this.values; + } + public void setValues(String values){ + this.values = values; + } + + public void values(String multirequestToken){ + setToken("values", multirequestToken); + } + + + public DynamicKeysCondition() { + super(); + } + + public DynamicKeysCondition(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + key = GsonParser.parseString(jsonObject.get("key")); + values = GsonParser.parseString(jsonObject.get("values")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaDynamicKeysCondition"); + kparams.add("key", this.key); + kparams.add("values", this.values); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public DynamicKeysCondition createFromParcel(Parcel source) { + return new DynamicKeysCondition(source); + } + + @Override + public DynamicKeysCondition[] newArray(int size) { + return new DynamicKeysCondition[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.key); + dest.writeString(this.values); + } + + public DynamicKeysCondition(Parcel in) { + super(in); + this.key = in.readString(); + this.values = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/DynamicList.java b/KalturaClient/src/main/java/com/kaltura/client/types/DynamicList.java new file mode 100644 index 000000000..1f7d9d9b2 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/DynamicList.java @@ -0,0 +1,150 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(DynamicList.Tokenizer.class) +public class DynamicList extends OTTObjectSupportNullable { + + public interface Tokenizer extends OTTObjectSupportNullable.Tokenizer { + String id(); + String createDate(); + String updateDate(); + String name(); + } + + /** + * ID + */ + private Long id; + /** + * Create date of the DynamicList + */ + private Long createDate; + /** + * Update date of the DynamicList + */ + private Long updateDate; + /** + * Name + */ + private String name; + + // id: + public Long getId(){ + return this.id; + } + // createDate: + public Long getCreateDate(){ + return this.createDate; + } + // updateDate: + public Long getUpdateDate(){ + return this.updateDate; + } + // name: + public String getName(){ + return this.name; + } + public void setName(String name){ + this.name = name; + } + + public void name(String multirequestToken){ + setToken("name", multirequestToken); + } + + + public DynamicList() { + super(); + } + + public DynamicList(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + id = GsonParser.parseLong(jsonObject.get("id")); + createDate = GsonParser.parseLong(jsonObject.get("createDate")); + updateDate = GsonParser.parseLong(jsonObject.get("updateDate")); + name = GsonParser.parseString(jsonObject.get("name")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaDynamicList"); + kparams.add("name", this.name); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public DynamicList createFromParcel(Parcel source) { + return new DynamicList(source); + } + + @Override + public DynamicList[] newArray(int size) { + return new DynamicList[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.id); + dest.writeValue(this.createDate); + dest.writeValue(this.updateDate); + dest.writeString(this.name); + } + + public DynamicList(Parcel in) { + super(in); + this.id = (Long)in.readValue(Long.class.getClassLoader()); + this.createDate = (Long)in.readValue(Long.class.getClassLoader()); + this.updateDate = (Long)in.readValue(Long.class.getClassLoader()); + this.name = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/DynamicListFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/DynamicListFilter.java new file mode 100644 index 000000000..29682e1cb --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/DynamicListFilter.java @@ -0,0 +1,85 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * DynamicListFilter + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(DynamicListFilter.Tokenizer.class) +public class DynamicListFilter extends Filter { + + public interface Tokenizer extends Filter.Tokenizer { + } + + + + public DynamicListFilter() { + super(); + } + + public DynamicListFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaDynamicListFilter"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public DynamicListFilter createFromParcel(Parcel source) { + return new DynamicListFilter(source); + } + + @Override + public DynamicListFilter[] newArray(int size) { + return new DynamicListFilter[size]; + } + }; + + public DynamicListFilter(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/DynamicListIdInFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/DynamicListIdInFilter.java new file mode 100644 index 000000000..ac81cdd0b --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/DynamicListIdInFilter.java @@ -0,0 +1,117 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * DynamicListIdInFilter + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(DynamicListIdInFilter.Tokenizer.class) +public class DynamicListIdInFilter extends DynamicListFilter { + + public interface Tokenizer extends DynamicListFilter.Tokenizer { + String idIn(); + } + + /** + * DynamicList identifiers + */ + private String idIn; + + // idIn: + public String getIdIn(){ + return this.idIn; + } + public void setIdIn(String idIn){ + this.idIn = idIn; + } + + public void idIn(String multirequestToken){ + setToken("idIn", multirequestToken); + } + + + public DynamicListIdInFilter() { + super(); + } + + public DynamicListIdInFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + idIn = GsonParser.parseString(jsonObject.get("idIn")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaDynamicListIdInFilter"); + kparams.add("idIn", this.idIn); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public DynamicListIdInFilter createFromParcel(Parcel source) { + return new DynamicListIdInFilter(source); + } + + @Override + public DynamicListIdInFilter[] newArray(int size) { + return new DynamicListIdInFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.idIn); + } + + public DynamicListIdInFilter(Parcel in) { + super(in); + this.idIn = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/DynamicListSearchFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/DynamicListSearchFilter.java new file mode 100644 index 000000000..f6e4abce2 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/DynamicListSearchFilter.java @@ -0,0 +1,126 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * DynamicListSearchFilter + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(DynamicListSearchFilter.Tokenizer.class) +public abstract class DynamicListSearchFilter extends DynamicListFilter { + + public interface Tokenizer extends DynamicListFilter.Tokenizer { + String idEqual(); + String valueEqual(); + } + + /** + * DynamicList id to search by + */ + private Long idEqual; + /** + * udid value that should be in the DynamicList + */ + private String valueEqual; + + // idEqual: + public Long getIdEqual(){ + return this.idEqual; + } + public void setIdEqual(Long idEqual){ + this.idEqual = idEqual; + } + + public void idEqual(String multirequestToken){ + setToken("idEqual", multirequestToken); + } + + // valueEqual: + public String getValueEqual(){ + return this.valueEqual; + } + public void setValueEqual(String valueEqual){ + this.valueEqual = valueEqual; + } + + public void valueEqual(String multirequestToken){ + setToken("valueEqual", multirequestToken); + } + + + public DynamicListSearchFilter() { + super(); + } + + public DynamicListSearchFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + idEqual = GsonParser.parseLong(jsonObject.get("idEqual")); + valueEqual = GsonParser.parseString(jsonObject.get("valueEqual")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaDynamicListSearchFilter"); + kparams.add("idEqual", this.idEqual); + kparams.add("valueEqual", this.valueEqual); + return kparams; + } + + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.idEqual); + dest.writeString(this.valueEqual); + } + + public DynamicListSearchFilter(Parcel in) { + super(in); + this.idEqual = (Long)in.readValue(Long.class.getClassLoader()); + this.valueEqual = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/DynamicOrderBy.java b/KalturaClient/src/main/java/com/kaltura/client/types/DynamicOrderBy.java new file mode 100644 index 000000000..8a0205e75 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/DynamicOrderBy.java @@ -0,0 +1,141 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.MetaTagOrderBy; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Kaltura Asset Order + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(DynamicOrderBy.Tokenizer.class) +public class DynamicOrderBy extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String name(); + String orderBy(); + } + + /** + * order by name + */ + private String name; + /** + * order by meta asc/desc + */ + private MetaTagOrderBy orderBy; + + // name: + public String getName(){ + return this.name; + } + public void setName(String name){ + this.name = name; + } + + public void name(String multirequestToken){ + setToken("name", multirequestToken); + } + + // orderBy: + public MetaTagOrderBy getOrderBy(){ + return this.orderBy; + } + public void setOrderBy(MetaTagOrderBy orderBy){ + this.orderBy = orderBy; + } + + public void orderBy(String multirequestToken){ + setToken("orderBy", multirequestToken); + } + + + public DynamicOrderBy() { + super(); + } + + public DynamicOrderBy(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + name = GsonParser.parseString(jsonObject.get("name")); + orderBy = MetaTagOrderBy.get(GsonParser.parseString(jsonObject.get("orderBy"))); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaDynamicOrderBy"); + kparams.add("name", this.name); + kparams.add("orderBy", this.orderBy); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public DynamicOrderBy createFromParcel(Parcel source) { + return new DynamicOrderBy(source); + } + + @Override + public DynamicOrderBy[] newArray(int size) { + return new DynamicOrderBy[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.name); + dest.writeInt(this.orderBy == null ? -1 : this.orderBy.ordinal()); + } + + public DynamicOrderBy(Parcel in) { + super(in); + this.name = in.readString(); + int tmpOrderBy = in.readInt(); + this.orderBy = tmpOrderBy == -1 ? null : MetaTagOrderBy.values()[tmpOrderBy]; + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/EmailMessage.java b/KalturaClient/src/main/java/com/kaltura/client/types/EmailMessage.java new file mode 100644 index 000000000..e5b4c9981 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/EmailMessage.java @@ -0,0 +1,291 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.ArrayList; +import java.util.List; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(EmailMessage.Tokenizer.class) +public class EmailMessage extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String templateName(); + String subject(); + String firstName(); + String lastName(); + String senderName(); + String senderFrom(); + String senderTo(); + String bccAddress(); + RequestBuilder.ListTokenizer extraParameters(); + } + + /** + * email template name + */ + private String templateName; + /** + * email subject + */ + private String subject; + /** + * first name + */ + private String firstName; + /** + * last name + */ + private String lastName; + /** + * sender name + */ + private String senderName; + /** + * sender from + */ + private String senderFrom; + /** + * sender to + */ + private String senderTo; + /** + * bcc address - seperated by comma + */ + private String bccAddress; + /** + * extra parameters + */ + private List extraParameters; + + // templateName: + public String getTemplateName(){ + return this.templateName; + } + public void setTemplateName(String templateName){ + this.templateName = templateName; + } + + public void templateName(String multirequestToken){ + setToken("templateName", multirequestToken); + } + + // subject: + public String getSubject(){ + return this.subject; + } + public void setSubject(String subject){ + this.subject = subject; + } + + public void subject(String multirequestToken){ + setToken("subject", multirequestToken); + } + + // firstName: + public String getFirstName(){ + return this.firstName; + } + public void setFirstName(String firstName){ + this.firstName = firstName; + } + + public void firstName(String multirequestToken){ + setToken("firstName", multirequestToken); + } + + // lastName: + public String getLastName(){ + return this.lastName; + } + public void setLastName(String lastName){ + this.lastName = lastName; + } + + public void lastName(String multirequestToken){ + setToken("lastName", multirequestToken); + } + + // senderName: + public String getSenderName(){ + return this.senderName; + } + public void setSenderName(String senderName){ + this.senderName = senderName; + } + + public void senderName(String multirequestToken){ + setToken("senderName", multirequestToken); + } + + // senderFrom: + public String getSenderFrom(){ + return this.senderFrom; + } + public void setSenderFrom(String senderFrom){ + this.senderFrom = senderFrom; + } + + public void senderFrom(String multirequestToken){ + setToken("senderFrom", multirequestToken); + } + + // senderTo: + public String getSenderTo(){ + return this.senderTo; + } + public void setSenderTo(String senderTo){ + this.senderTo = senderTo; + } + + public void senderTo(String multirequestToken){ + setToken("senderTo", multirequestToken); + } + + // bccAddress: + public String getBccAddress(){ + return this.bccAddress; + } + public void setBccAddress(String bccAddress){ + this.bccAddress = bccAddress; + } + + public void bccAddress(String multirequestToken){ + setToken("bccAddress", multirequestToken); + } + + // extraParameters: + public List getExtraParameters(){ + return this.extraParameters; + } + public void setExtraParameters(List extraParameters){ + this.extraParameters = extraParameters; + } + + + public EmailMessage() { + super(); + } + + public EmailMessage(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + templateName = GsonParser.parseString(jsonObject.get("templateName")); + subject = GsonParser.parseString(jsonObject.get("subject")); + firstName = GsonParser.parseString(jsonObject.get("firstName")); + lastName = GsonParser.parseString(jsonObject.get("lastName")); + senderName = GsonParser.parseString(jsonObject.get("senderName")); + senderFrom = GsonParser.parseString(jsonObject.get("senderFrom")); + senderTo = GsonParser.parseString(jsonObject.get("senderTo")); + bccAddress = GsonParser.parseString(jsonObject.get("bccAddress")); + extraParameters = GsonParser.parseArray(jsonObject.getAsJsonArray("extraParameters"), KeyValue.class); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaEmailMessage"); + kparams.add("templateName", this.templateName); + kparams.add("subject", this.subject); + kparams.add("firstName", this.firstName); + kparams.add("lastName", this.lastName); + kparams.add("senderName", this.senderName); + kparams.add("senderFrom", this.senderFrom); + kparams.add("senderTo", this.senderTo); + kparams.add("bccAddress", this.bccAddress); + kparams.add("extraParameters", this.extraParameters); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public EmailMessage createFromParcel(Parcel source) { + return new EmailMessage(source); + } + + @Override + public EmailMessage[] newArray(int size) { + return new EmailMessage[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.templateName); + dest.writeString(this.subject); + dest.writeString(this.firstName); + dest.writeString(this.lastName); + dest.writeString(this.senderName); + dest.writeString(this.senderFrom); + dest.writeString(this.senderTo); + dest.writeString(this.bccAddress); + if(this.extraParameters != null) { + dest.writeInt(this.extraParameters.size()); + dest.writeList(this.extraParameters); + } else { + dest.writeInt(-1); + } + } + + public EmailMessage(Parcel in) { + super(in); + this.templateName = in.readString(); + this.subject = in.readString(); + this.firstName = in.readString(); + this.lastName = in.readString(); + this.senderName = in.readString(); + this.senderFrom = in.readString(); + this.senderTo = in.readString(); + this.bccAddress = in.readString(); + int extraParametersSize = in.readInt(); + if( extraParametersSize > -1) { + this.extraParameters = new ArrayList<>(); + in.readList(this.extraParameters, KeyValue.class.getClassLoader()); + } + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/Encryption.java b/KalturaClient/src/main/java/com/kaltura/client/types/Encryption.java new file mode 100644 index 000000000..d2b8b086d --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/Encryption.java @@ -0,0 +1,117 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.EncryptionType; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(Encryption.Tokenizer.class) +public class Encryption extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String encryptionType(); + } + + /** + * Encryption type + */ + private EncryptionType encryptionType; + + // encryptionType: + public EncryptionType getEncryptionType(){ + return this.encryptionType; + } + public void setEncryptionType(EncryptionType encryptionType){ + this.encryptionType = encryptionType; + } + + public void encryptionType(String multirequestToken){ + setToken("encryptionType", multirequestToken); + } + + + public Encryption() { + super(); + } + + public Encryption(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + encryptionType = EncryptionType.get(GsonParser.parseString(jsonObject.get("encryptionType"))); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaEncryption"); + kparams.add("encryptionType", this.encryptionType); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public Encryption createFromParcel(Parcel source) { + return new Encryption(source); + } + + @Override + public Encryption[] newArray(int size) { + return new Encryption[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeInt(this.encryptionType == null ? -1 : this.encryptionType.ordinal()); + } + + public Encryption(Parcel in) { + super(in); + int tmpEncryptionType = in.readInt(); + this.encryptionType = tmpEncryptionType == -1 ? null : EncryptionType.values()[tmpEncryptionType]; + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/EndDateOffsetRuleAction.java b/KalturaClient/src/main/java/com/kaltura/client/types/EndDateOffsetRuleAction.java new file mode 100644 index 000000000..23368823d --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/EndDateOffsetRuleAction.java @@ -0,0 +1,85 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * End date offset action + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(EndDateOffsetRuleAction.Tokenizer.class) +public class EndDateOffsetRuleAction extends TimeOffsetRuleAction { + + public interface Tokenizer extends TimeOffsetRuleAction.Tokenizer { + } + + + + public EndDateOffsetRuleAction() { + super(); + } + + public EndDateOffsetRuleAction(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaEndDateOffsetRuleAction"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public EndDateOffsetRuleAction createFromParcel(Parcel source) { + return new EndDateOffsetRuleAction(source); + } + + @Override + public EndDateOffsetRuleAction[] newArray(int size) { + return new EndDateOffsetRuleAction[size]; + } + }; + + public EndDateOffsetRuleAction(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/Engagement.java b/KalturaClient/src/main/java/com/kaltura/client/types/Engagement.java new file mode 100644 index 000000000..c3996524e --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/Engagement.java @@ -0,0 +1,270 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.EngagementType; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Engagement + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(Engagement.Tokenizer.class) +public class Engagement extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String id(); + String totalNumberOfRecipients(); + String type(); + String adapterId(); + String adapterDynamicData(); + String intervalSeconds(); + String userList(); + String sendTimeInSeconds(); + String couponGroupId(); + } + + /** + * Engagement id + */ + private Integer id; + /** + * Total number of recipients + */ + private Integer totalNumberOfRecipients; + /** + * Engagement type + */ + private EngagementType type; + /** + * Engagement adapter id + */ + private Integer adapterId; + /** + * Engagement adapter dynamic data + */ + private String adapterDynamicData; + /** + * Interval (seconds) + */ + private Integer intervalSeconds; + /** + * Manual User list + */ + private String userList; + /** + * Send time (seconds) + */ + private Long sendTimeInSeconds; + /** + * Coupon GroupId + */ + private Integer couponGroupId; + + // id: + public Integer getId(){ + return this.id; + } + // totalNumberOfRecipients: + public Integer getTotalNumberOfRecipients(){ + return this.totalNumberOfRecipients; + } + // type: + public EngagementType getType(){ + return this.type; + } + public void setType(EngagementType type){ + this.type = type; + } + + public void type(String multirequestToken){ + setToken("type", multirequestToken); + } + + // adapterId: + public Integer getAdapterId(){ + return this.adapterId; + } + public void setAdapterId(Integer adapterId){ + this.adapterId = adapterId; + } + + public void adapterId(String multirequestToken){ + setToken("adapterId", multirequestToken); + } + + // adapterDynamicData: + public String getAdapterDynamicData(){ + return this.adapterDynamicData; + } + public void setAdapterDynamicData(String adapterDynamicData){ + this.adapterDynamicData = adapterDynamicData; + } + + public void adapterDynamicData(String multirequestToken){ + setToken("adapterDynamicData", multirequestToken); + } + + // intervalSeconds: + public Integer getIntervalSeconds(){ + return this.intervalSeconds; + } + public void setIntervalSeconds(Integer intervalSeconds){ + this.intervalSeconds = intervalSeconds; + } + + public void intervalSeconds(String multirequestToken){ + setToken("intervalSeconds", multirequestToken); + } + + // userList: + public String getUserList(){ + return this.userList; + } + public void setUserList(String userList){ + this.userList = userList; + } + + public void userList(String multirequestToken){ + setToken("userList", multirequestToken); + } + + // sendTimeInSeconds: + public Long getSendTimeInSeconds(){ + return this.sendTimeInSeconds; + } + public void setSendTimeInSeconds(Long sendTimeInSeconds){ + this.sendTimeInSeconds = sendTimeInSeconds; + } + + public void sendTimeInSeconds(String multirequestToken){ + setToken("sendTimeInSeconds", multirequestToken); + } + + // couponGroupId: + public Integer getCouponGroupId(){ + return this.couponGroupId; + } + public void setCouponGroupId(Integer couponGroupId){ + this.couponGroupId = couponGroupId; + } + + public void couponGroupId(String multirequestToken){ + setToken("couponGroupId", multirequestToken); + } + + + public Engagement() { + super(); + } + + public Engagement(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + id = GsonParser.parseInt(jsonObject.get("id")); + totalNumberOfRecipients = GsonParser.parseInt(jsonObject.get("totalNumberOfRecipients")); + type = EngagementType.get(GsonParser.parseString(jsonObject.get("type"))); + adapterId = GsonParser.parseInt(jsonObject.get("adapterId")); + adapterDynamicData = GsonParser.parseString(jsonObject.get("adapterDynamicData")); + intervalSeconds = GsonParser.parseInt(jsonObject.get("intervalSeconds")); + userList = GsonParser.parseString(jsonObject.get("userList")); + sendTimeInSeconds = GsonParser.parseLong(jsonObject.get("sendTimeInSeconds")); + couponGroupId = GsonParser.parseInt(jsonObject.get("couponGroupId")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaEngagement"); + kparams.add("type", this.type); + kparams.add("adapterId", this.adapterId); + kparams.add("adapterDynamicData", this.adapterDynamicData); + kparams.add("intervalSeconds", this.intervalSeconds); + kparams.add("userList", this.userList); + kparams.add("sendTimeInSeconds", this.sendTimeInSeconds); + kparams.add("couponGroupId", this.couponGroupId); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public Engagement createFromParcel(Parcel source) { + return new Engagement(source); + } + + @Override + public Engagement[] newArray(int size) { + return new Engagement[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.id); + dest.writeValue(this.totalNumberOfRecipients); + dest.writeInt(this.type == null ? -1 : this.type.ordinal()); + dest.writeValue(this.adapterId); + dest.writeString(this.adapterDynamicData); + dest.writeValue(this.intervalSeconds); + dest.writeString(this.userList); + dest.writeValue(this.sendTimeInSeconds); + dest.writeValue(this.couponGroupId); + } + + public Engagement(Parcel in) { + super(in); + this.id = (Integer)in.readValue(Integer.class.getClassLoader()); + this.totalNumberOfRecipients = (Integer)in.readValue(Integer.class.getClassLoader()); + int tmpType = in.readInt(); + this.type = tmpType == -1 ? null : EngagementType.values()[tmpType]; + this.adapterId = (Integer)in.readValue(Integer.class.getClassLoader()); + this.adapterDynamicData = in.readString(); + this.intervalSeconds = (Integer)in.readValue(Integer.class.getClassLoader()); + this.userList = in.readString(); + this.sendTimeInSeconds = (Long)in.readValue(Long.class.getClassLoader()); + this.couponGroupId = (Integer)in.readValue(Integer.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/EngagementAdapter.java b/KalturaClient/src/main/java/com/kaltura/client/types/EngagementAdapter.java new file mode 100644 index 000000000..7b3824ea6 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/EngagementAdapter.java @@ -0,0 +1,207 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.HashMap; +import java.util.Map; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Engagement Adapter + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(EngagementAdapter.Tokenizer.class) +public class EngagementAdapter extends EngagementAdapterBase { + + public interface Tokenizer extends EngagementAdapterBase.Tokenizer { + String isActive(); + String adapterUrl(); + String providerUrl(); + RequestBuilder.MapTokenizer engagementAdapterSettings(); + String sharedSecret(); + } + + /** + * Engagement adapter active status + */ + private Boolean isActive; + /** + * Engagement adapter adapter URL + */ + private String adapterUrl; + /** + * Engagement provider adapter URL + */ + private String providerUrl; + /** + * Engagement adapter extra parameters + */ + private Map engagementAdapterSettings; + /** + * Shared Secret + */ + private String sharedSecret; + + // isActive: + public Boolean getIsActive(){ + return this.isActive; + } + public void setIsActive(Boolean isActive){ + this.isActive = isActive; + } + + public void isActive(String multirequestToken){ + setToken("isActive", multirequestToken); + } + + // adapterUrl: + public String getAdapterUrl(){ + return this.adapterUrl; + } + public void setAdapterUrl(String adapterUrl){ + this.adapterUrl = adapterUrl; + } + + public void adapterUrl(String multirequestToken){ + setToken("adapterUrl", multirequestToken); + } + + // providerUrl: + public String getProviderUrl(){ + return this.providerUrl; + } + public void setProviderUrl(String providerUrl){ + this.providerUrl = providerUrl; + } + + public void providerUrl(String multirequestToken){ + setToken("providerUrl", multirequestToken); + } + + // engagementAdapterSettings: + public Map getEngagementAdapterSettings(){ + return this.engagementAdapterSettings; + } + public void setEngagementAdapterSettings(Map engagementAdapterSettings){ + this.engagementAdapterSettings = engagementAdapterSettings; + } + + // sharedSecret: + public String getSharedSecret(){ + return this.sharedSecret; + } + + public EngagementAdapter() { + super(); + } + + public EngagementAdapter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + isActive = GsonParser.parseBoolean(jsonObject.get("isActive")); + adapterUrl = GsonParser.parseString(jsonObject.get("adapterUrl")); + providerUrl = GsonParser.parseString(jsonObject.get("providerUrl")); + engagementAdapterSettings = GsonParser.parseMap(jsonObject.getAsJsonObject("engagementAdapterSettings"), StringValue.class); + sharedSecret = GsonParser.parseString(jsonObject.get("sharedSecret")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaEngagementAdapter"); + kparams.add("isActive", this.isActive); + kparams.add("adapterUrl", this.adapterUrl); + kparams.add("providerUrl", this.providerUrl); + kparams.add("engagementAdapterSettings", this.engagementAdapterSettings); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public EngagementAdapter createFromParcel(Parcel source) { + return new EngagementAdapter(source); + } + + @Override + public EngagementAdapter[] newArray(int size) { + return new EngagementAdapter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.isActive); + dest.writeString(this.adapterUrl); + dest.writeString(this.providerUrl); + if(this.engagementAdapterSettings != null) { + dest.writeInt(this.engagementAdapterSettings.size()); + for (Map.Entry entry : this.engagementAdapterSettings.entrySet()) { + dest.writeString(entry.getKey()); + dest.writeParcelable(entry.getValue(), flags); + } + } else { + dest.writeInt(-1); + } + dest.writeString(this.sharedSecret); + } + + public EngagementAdapter(Parcel in) { + super(in); + this.isActive = (Boolean)in.readValue(Boolean.class.getClassLoader()); + this.adapterUrl = in.readString(); + this.providerUrl = in.readString(); + int engagementAdapterSettingsSize = in.readInt(); + if( engagementAdapterSettingsSize > -1) { + this.engagementAdapterSettings = new HashMap<>(); + for (int i = 0; i < engagementAdapterSettingsSize; i++) { + String key = in.readString(); + StringValue value = in.readParcelable(StringValue.class.getClassLoader()); + this.engagementAdapterSettings.put(key, value); + } + } + this.sharedSecret = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/EngagementAdapterBase.java b/KalturaClient/src/main/java/com/kaltura/client/types/EngagementAdapterBase.java new file mode 100644 index 000000000..6db79ca5a --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/EngagementAdapterBase.java @@ -0,0 +1,130 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Engagement adapter basic + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(EngagementAdapterBase.Tokenizer.class) +public class EngagementAdapterBase extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String id(); + String name(); + } + + /** + * Engagement adapter id + */ + private Integer id; + /** + * Engagement adapter name + */ + private String name; + + // id: + public Integer getId(){ + return this.id; + } + // name: + public String getName(){ + return this.name; + } + public void setName(String name){ + this.name = name; + } + + public void name(String multirequestToken){ + setToken("name", multirequestToken); + } + + + public EngagementAdapterBase() { + super(); + } + + public EngagementAdapterBase(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + id = GsonParser.parseInt(jsonObject.get("id")); + name = GsonParser.parseString(jsonObject.get("name")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaEngagementAdapterBase"); + kparams.add("name", this.name); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public EngagementAdapterBase createFromParcel(Parcel source) { + return new EngagementAdapterBase(source); + } + + @Override + public EngagementAdapterBase[] newArray(int size) { + return new EngagementAdapterBase[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.id); + dest.writeString(this.name); + } + + public EngagementAdapterBase(Parcel in) { + super(in); + this.id = (Integer)in.readValue(Integer.class.getClassLoader()); + this.name = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/EngagementFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/EngagementFilter.java new file mode 100644 index 000000000..64945c3a0 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/EngagementFilter.java @@ -0,0 +1,135 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(EngagementFilter.Tokenizer.class) +public class EngagementFilter extends Filter { + + public interface Tokenizer extends Filter.Tokenizer { + String typeIn(); + String sendTimeGreaterThanOrEqual(); + } + + /** + * List of inbox message types to search within. + */ + private String typeIn; + /** + * SendTime GreaterThanOrEqual + */ + private Long sendTimeGreaterThanOrEqual; + + // typeIn: + public String getTypeIn(){ + return this.typeIn; + } + public void setTypeIn(String typeIn){ + this.typeIn = typeIn; + } + + public void typeIn(String multirequestToken){ + setToken("typeIn", multirequestToken); + } + + // sendTimeGreaterThanOrEqual: + public Long getSendTimeGreaterThanOrEqual(){ + return this.sendTimeGreaterThanOrEqual; + } + public void setSendTimeGreaterThanOrEqual(Long sendTimeGreaterThanOrEqual){ + this.sendTimeGreaterThanOrEqual = sendTimeGreaterThanOrEqual; + } + + public void sendTimeGreaterThanOrEqual(String multirequestToken){ + setToken("sendTimeGreaterThanOrEqual", multirequestToken); + } + + + public EngagementFilter() { + super(); + } + + public EngagementFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + typeIn = GsonParser.parseString(jsonObject.get("typeIn")); + sendTimeGreaterThanOrEqual = GsonParser.parseLong(jsonObject.get("sendTimeGreaterThanOrEqual")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaEngagementFilter"); + kparams.add("typeIn", this.typeIn); + kparams.add("sendTimeGreaterThanOrEqual", this.sendTimeGreaterThanOrEqual); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public EngagementFilter createFromParcel(Parcel source) { + return new EngagementFilter(source); + } + + @Override + public EngagementFilter[] newArray(int size) { + return new EngagementFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.typeIn); + dest.writeValue(this.sendTimeGreaterThanOrEqual); + } + + public EngagementFilter(Parcel in) { + super(in); + this.typeIn = in.readString(); + this.sendTimeGreaterThanOrEqual = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/Entitlement.java b/KalturaClient/src/main/java/com/kaltura/client/types/Entitlement.java new file mode 100644 index 000000000..e93829fc0 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/Entitlement.java @@ -0,0 +1,298 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.PaymentMethodType; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Entitlement + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(Entitlement.Tokenizer.class) +public class Entitlement extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String id(); + String productId(); + String currentUses(); + String endDate(); + String currentDate(); + String lastViewDate(); + String purchaseDate(); + String paymentMethod(); + String deviceUdid(); + String deviceName(); + String isCancelationWindowEnabled(); + String maxUses(); + String userId(); + String householdId(); + String isPending(); + } + + /** + * Purchase identifier (for subscriptions and collections only) + */ + private Integer id; + /** + * Product identifier + */ + private String productId; + /** + * The current number of uses + */ + private Integer currentUses; + /** + * The end date of the entitlement + */ + private Long endDate; + /** + * Current date + */ + private Long currentDate; + /** + * The last date the item was viewed + */ + private Long lastViewDate; + /** + * Purchase date + */ + private Long purchaseDate; + /** + * Payment Method + */ + private PaymentMethodType paymentMethod; + /** + * The UDID of the device from which the purchase was made + */ + private String deviceUdid; + /** + * The name of the device from which the purchase was made + */ + private String deviceName; + /** + * Indicates whether a cancelation window period is enabled + */ + private Boolean isCancelationWindowEnabled; + /** + * The maximum number of uses available for this item (only for subscription and + PPV) + */ + private Integer maxUses; + /** + * The Identifier of the purchasing user + */ + private String userId; + /** + * The Identifier of the purchasing household + */ + private Long householdId; + /** + * Indicates whether the asynchronous purchase is pending + */ + private Boolean isPending; + + // id: + public Integer getId(){ + return this.id; + } + // productId: + public String getProductId(){ + return this.productId; + } + // currentUses: + public Integer getCurrentUses(){ + return this.currentUses; + } + // endDate: + public Long getEndDate(){ + return this.endDate; + } + public void setEndDate(Long endDate){ + this.endDate = endDate; + } + + public void endDate(String multirequestToken){ + setToken("endDate", multirequestToken); + } + + // currentDate: + public Long getCurrentDate(){ + return this.currentDate; + } + // lastViewDate: + public Long getLastViewDate(){ + return this.lastViewDate; + } + // purchaseDate: + public Long getPurchaseDate(){ + return this.purchaseDate; + } + // paymentMethod: + public PaymentMethodType getPaymentMethod(){ + return this.paymentMethod; + } + // deviceUdid: + public String getDeviceUdid(){ + return this.deviceUdid; + } + // deviceName: + public String getDeviceName(){ + return this.deviceName; + } + // isCancelationWindowEnabled: + public Boolean getIsCancelationWindowEnabled(){ + return this.isCancelationWindowEnabled; + } + // maxUses: + public Integer getMaxUses(){ + return this.maxUses; + } + // userId: + public String getUserId(){ + return this.userId; + } + // householdId: + public Long getHouseholdId(){ + return this.householdId; + } + // isPending: + public Boolean getIsPending(){ + return this.isPending; + } + public void setIsPending(Boolean isPending){ + this.isPending = isPending; + } + + public void isPending(String multirequestToken){ + setToken("isPending", multirequestToken); + } + + + public Entitlement() { + super(); + } + + public Entitlement(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + id = GsonParser.parseInt(jsonObject.get("id")); + productId = GsonParser.parseString(jsonObject.get("productId")); + currentUses = GsonParser.parseInt(jsonObject.get("currentUses")); + endDate = GsonParser.parseLong(jsonObject.get("endDate")); + currentDate = GsonParser.parseLong(jsonObject.get("currentDate")); + lastViewDate = GsonParser.parseLong(jsonObject.get("lastViewDate")); + purchaseDate = GsonParser.parseLong(jsonObject.get("purchaseDate")); + paymentMethod = PaymentMethodType.get(GsonParser.parseString(jsonObject.get("paymentMethod"))); + deviceUdid = GsonParser.parseString(jsonObject.get("deviceUdid")); + deviceName = GsonParser.parseString(jsonObject.get("deviceName")); + isCancelationWindowEnabled = GsonParser.parseBoolean(jsonObject.get("isCancelationWindowEnabled")); + maxUses = GsonParser.parseInt(jsonObject.get("maxUses")); + userId = GsonParser.parseString(jsonObject.get("userId")); + householdId = GsonParser.parseLong(jsonObject.get("householdId")); + isPending = GsonParser.parseBoolean(jsonObject.get("isPending")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaEntitlement"); + kparams.add("endDate", this.endDate); + kparams.add("isPending", this.isPending); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public Entitlement createFromParcel(Parcel source) { + return new Entitlement(source); + } + + @Override + public Entitlement[] newArray(int size) { + return new Entitlement[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.id); + dest.writeString(this.productId); + dest.writeValue(this.currentUses); + dest.writeValue(this.endDate); + dest.writeValue(this.currentDate); + dest.writeValue(this.lastViewDate); + dest.writeValue(this.purchaseDate); + dest.writeInt(this.paymentMethod == null ? -1 : this.paymentMethod.ordinal()); + dest.writeString(this.deviceUdid); + dest.writeString(this.deviceName); + dest.writeValue(this.isCancelationWindowEnabled); + dest.writeValue(this.maxUses); + dest.writeString(this.userId); + dest.writeValue(this.householdId); + dest.writeValue(this.isPending); + } + + public Entitlement(Parcel in) { + super(in); + this.id = (Integer)in.readValue(Integer.class.getClassLoader()); + this.productId = in.readString(); + this.currentUses = (Integer)in.readValue(Integer.class.getClassLoader()); + this.endDate = (Long)in.readValue(Long.class.getClassLoader()); + this.currentDate = (Long)in.readValue(Long.class.getClassLoader()); + this.lastViewDate = (Long)in.readValue(Long.class.getClassLoader()); + this.purchaseDate = (Long)in.readValue(Long.class.getClassLoader()); + int tmpPaymentMethod = in.readInt(); + this.paymentMethod = tmpPaymentMethod == -1 ? null : PaymentMethodType.values()[tmpPaymentMethod]; + this.deviceUdid = in.readString(); + this.deviceName = in.readString(); + this.isCancelationWindowEnabled = (Boolean)in.readValue(Boolean.class.getClassLoader()); + this.maxUses = (Integer)in.readValue(Integer.class.getClassLoader()); + this.userId = in.readString(); + this.householdId = (Long)in.readValue(Long.class.getClassLoader()); + this.isPending = (Boolean)in.readValue(Boolean.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/EntitlementDiscountDetails.java b/KalturaClient/src/main/java/com/kaltura/client/types/EntitlementDiscountDetails.java new file mode 100644 index 000000000..dccce3935 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/EntitlementDiscountDetails.java @@ -0,0 +1,133 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Entitlement discount details + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(EntitlementDiscountDetails.Tokenizer.class) +public class EntitlementDiscountDetails extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String amount(); + String startDate(); + String endDate(); + } + + /** + * Amount + */ + private Double amount; + /** + * Start date + */ + private Long startDate; + /** + * End date + */ + private Long endDate; + + // amount: + public Double getAmount(){ + return this.amount; + } + // startDate: + public Long getStartDate(){ + return this.startDate; + } + // endDate: + public Long getEndDate(){ + return this.endDate; + } + + public EntitlementDiscountDetails() { + super(); + } + + public EntitlementDiscountDetails(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + amount = GsonParser.parseDouble(jsonObject.get("amount")); + startDate = GsonParser.parseLong(jsonObject.get("startDate")); + endDate = GsonParser.parseLong(jsonObject.get("endDate")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaEntitlementDiscountDetails"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public EntitlementDiscountDetails createFromParcel(Parcel source) { + return new EntitlementDiscountDetails(source); + } + + @Override + public EntitlementDiscountDetails[] newArray(int size) { + return new EntitlementDiscountDetails[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.amount); + dest.writeValue(this.startDate); + dest.writeValue(this.endDate); + } + + public EntitlementDiscountDetails(Parcel in) { + super(in); + this.amount = (Double)in.readValue(Double.class.getClassLoader()); + this.startDate = (Long)in.readValue(Long.class.getClassLoader()); + this.endDate = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/EntitlementDiscountDetailsIdentifier.java b/KalturaClient/src/main/java/com/kaltura/client/types/EntitlementDiscountDetailsIdentifier.java new file mode 100644 index 000000000..eeb964698 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/EntitlementDiscountDetailsIdentifier.java @@ -0,0 +1,105 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(EntitlementDiscountDetailsIdentifier.Tokenizer.class) +public class EntitlementDiscountDetailsIdentifier extends EntitlementDiscountDetails { + + public interface Tokenizer extends EntitlementDiscountDetails.Tokenizer { + String id(); + } + + /** + * Identifier + */ + private Long id; + + // id: + public Long getId(){ + return this.id; + } + + public EntitlementDiscountDetailsIdentifier() { + super(); + } + + public EntitlementDiscountDetailsIdentifier(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + id = GsonParser.parseLong(jsonObject.get("id")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaEntitlementDiscountDetailsIdentifier"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public EntitlementDiscountDetailsIdentifier createFromParcel(Parcel source) { + return new EntitlementDiscountDetailsIdentifier(source); + } + + @Override + public EntitlementDiscountDetailsIdentifier[] newArray(int size) { + return new EntitlementDiscountDetailsIdentifier[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.id); + } + + public EntitlementDiscountDetailsIdentifier(Parcel in) { + super(in); + this.id = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/EntitlementFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/EntitlementFilter.java new file mode 100644 index 000000000..4962bc1a9 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/EntitlementFilter.java @@ -0,0 +1,163 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.EntityReferenceBy; +import com.kaltura.client.enums.TransactionType; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Entitlements filter + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(EntitlementFilter.Tokenizer.class) +public class EntitlementFilter extends Filter { + + public interface Tokenizer extends Filter.Tokenizer { + String productTypeEqual(); + String entityReferenceEqual(); + String isExpiredEqual(); + } + + /** + * The type of the entitlements to return + */ + private TransactionType productTypeEqual; + /** + * Reference type to filter by + */ + private EntityReferenceBy entityReferenceEqual; + /** + * Is expired + */ + private Boolean isExpiredEqual; + + // productTypeEqual: + public TransactionType getProductTypeEqual(){ + return this.productTypeEqual; + } + public void setProductTypeEqual(TransactionType productTypeEqual){ + this.productTypeEqual = productTypeEqual; + } + + public void productTypeEqual(String multirequestToken){ + setToken("productTypeEqual", multirequestToken); + } + + // entityReferenceEqual: + public EntityReferenceBy getEntityReferenceEqual(){ + return this.entityReferenceEqual; + } + public void setEntityReferenceEqual(EntityReferenceBy entityReferenceEqual){ + this.entityReferenceEqual = entityReferenceEqual; + } + + public void entityReferenceEqual(String multirequestToken){ + setToken("entityReferenceEqual", multirequestToken); + } + + // isExpiredEqual: + public Boolean getIsExpiredEqual(){ + return this.isExpiredEqual; + } + public void setIsExpiredEqual(Boolean isExpiredEqual){ + this.isExpiredEqual = isExpiredEqual; + } + + public void isExpiredEqual(String multirequestToken){ + setToken("isExpiredEqual", multirequestToken); + } + + + public EntitlementFilter() { + super(); + } + + public EntitlementFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + productTypeEqual = TransactionType.get(GsonParser.parseString(jsonObject.get("productTypeEqual"))); + entityReferenceEqual = EntityReferenceBy.get(GsonParser.parseString(jsonObject.get("entityReferenceEqual"))); + isExpiredEqual = GsonParser.parseBoolean(jsonObject.get("isExpiredEqual")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaEntitlementFilter"); + kparams.add("productTypeEqual", this.productTypeEqual); + kparams.add("entityReferenceEqual", this.entityReferenceEqual); + kparams.add("isExpiredEqual", this.isExpiredEqual); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public EntitlementFilter createFromParcel(Parcel source) { + return new EntitlementFilter(source); + } + + @Override + public EntitlementFilter[] newArray(int size) { + return new EntitlementFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeInt(this.productTypeEqual == null ? -1 : this.productTypeEqual.ordinal()); + dest.writeInt(this.entityReferenceEqual == null ? -1 : this.entityReferenceEqual.ordinal()); + dest.writeValue(this.isExpiredEqual); + } + + public EntitlementFilter(Parcel in) { + super(in); + int tmpProductTypeEqual = in.readInt(); + this.productTypeEqual = tmpProductTypeEqual == -1 ? null : TransactionType.values()[tmpProductTypeEqual]; + int tmpEntityReferenceEqual = in.readInt(); + this.entityReferenceEqual = tmpEntityReferenceEqual == -1 ? null : EntityReferenceBy.values()[tmpEntityReferenceEqual]; + this.isExpiredEqual = (Boolean)in.readValue(Boolean.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/EntitlementPriceDetails.java b/KalturaClient/src/main/java/com/kaltura/client/types/EntitlementPriceDetails.java new file mode 100644 index 000000000..a43708b71 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/EntitlementPriceDetails.java @@ -0,0 +1,134 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.types.Price; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.ArrayList; +import java.util.List; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Entitlement price details + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(EntitlementPriceDetails.Tokenizer.class) +public class EntitlementPriceDetails extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + Price.Tokenizer fullPrice(); + RequestBuilder.ListTokenizer discountDetails(); + } + + /** + * Full price + */ + private Price fullPrice; + /** + * List of the season numbers to exclude. + */ + private List discountDetails; + + // fullPrice: + public Price getFullPrice(){ + return this.fullPrice; + } + // discountDetails: + public List getDiscountDetails(){ + return this.discountDetails; + } + + public EntitlementPriceDetails() { + super(); + } + + public EntitlementPriceDetails(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + fullPrice = GsonParser.parseObject(jsonObject.getAsJsonObject("fullPrice"), Price.class); + discountDetails = GsonParser.parseArray(jsonObject.getAsJsonArray("discountDetails"), EntitlementDiscountDetails.class); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaEntitlementPriceDetails"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public EntitlementPriceDetails createFromParcel(Parcel source) { + return new EntitlementPriceDetails(source); + } + + @Override + public EntitlementPriceDetails[] newArray(int size) { + return new EntitlementPriceDetails[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeParcelable(this.fullPrice, flags); + if(this.discountDetails != null) { + dest.writeInt(this.discountDetails.size()); + dest.writeList(this.discountDetails); + } else { + dest.writeInt(-1); + } + } + + public EntitlementPriceDetails(Parcel in) { + super(in); + this.fullPrice = in.readParcelable(Price.class.getClassLoader()); + int discountDetailsSize = in.readInt(); + if( discountDetailsSize > -1) { + this.discountDetails = new ArrayList<>(); + in.readList(this.discountDetails, EntitlementDiscountDetails.class.getClassLoader()); + } + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/EntitlementRenewal.java b/KalturaClient/src/main/java/com/kaltura/client/types/EntitlementRenewal.java new file mode 100644 index 000000000..94ff4519b --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/EntitlementRenewal.java @@ -0,0 +1,196 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.types.Price; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(EntitlementRenewal.Tokenizer.class) +public class EntitlementRenewal extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + Price.Tokenizer price(); + String date(); + String purchaseId(); + String subscriptionId(); + String userId(); + } + + /** + * Price that is going to be paid on the renewal + */ + private Price price; + /** + * Next renewal date + */ + private Long date; + /** + * Puchase ID + */ + private Long purchaseId; + /** + * Subscription ID + */ + private Long subscriptionId; + /** + * User ID + */ + private Long userId; + + // price: + public Price getPrice(){ + return this.price; + } + public void setPrice(Price price){ + this.price = price; + } + + // date: + public Long getDate(){ + return this.date; + } + public void setDate(Long date){ + this.date = date; + } + + public void date(String multirequestToken){ + setToken("date", multirequestToken); + } + + // purchaseId: + public Long getPurchaseId(){ + return this.purchaseId; + } + public void setPurchaseId(Long purchaseId){ + this.purchaseId = purchaseId; + } + + public void purchaseId(String multirequestToken){ + setToken("purchaseId", multirequestToken); + } + + // subscriptionId: + public Long getSubscriptionId(){ + return this.subscriptionId; + } + public void setSubscriptionId(Long subscriptionId){ + this.subscriptionId = subscriptionId; + } + + public void subscriptionId(String multirequestToken){ + setToken("subscriptionId", multirequestToken); + } + + // userId: + public Long getUserId(){ + return this.userId; + } + public void setUserId(Long userId){ + this.userId = userId; + } + + public void userId(String multirequestToken){ + setToken("userId", multirequestToken); + } + + + public EntitlementRenewal() { + super(); + } + + public EntitlementRenewal(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + price = GsonParser.parseObject(jsonObject.getAsJsonObject("price"), Price.class); + date = GsonParser.parseLong(jsonObject.get("date")); + purchaseId = GsonParser.parseLong(jsonObject.get("purchaseId")); + subscriptionId = GsonParser.parseLong(jsonObject.get("subscriptionId")); + userId = GsonParser.parseLong(jsonObject.get("userId")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaEntitlementRenewal"); + kparams.add("price", this.price); + kparams.add("date", this.date); + kparams.add("purchaseId", this.purchaseId); + kparams.add("subscriptionId", this.subscriptionId); + kparams.add("userId", this.userId); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public EntitlementRenewal createFromParcel(Parcel source) { + return new EntitlementRenewal(source); + } + + @Override + public EntitlementRenewal[] newArray(int size) { + return new EntitlementRenewal[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeParcelable(this.price, flags); + dest.writeValue(this.date); + dest.writeValue(this.purchaseId); + dest.writeValue(this.subscriptionId); + dest.writeValue(this.userId); + } + + public EntitlementRenewal(Parcel in) { + super(in); + this.price = in.readParcelable(Price.class.getClassLoader()); + this.date = (Long)in.readValue(Long.class.getClassLoader()); + this.purchaseId = (Long)in.readValue(Long.class.getClassLoader()); + this.subscriptionId = (Long)in.readValue(Long.class.getClassLoader()); + this.userId = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/EntitlementRenewalBase.java b/KalturaClient/src/main/java/com/kaltura/client/types/EntitlementRenewalBase.java new file mode 100644 index 000000000..807071eba --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/EntitlementRenewalBase.java @@ -0,0 +1,157 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(EntitlementRenewalBase.Tokenizer.class) +public class EntitlementRenewalBase extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String price(); + String purchaseId(); + String subscriptionId(); + } + + /** + * Price that is going to be paid on the renewal + */ + private Double price; + /** + * Puchase ID + */ + private Long purchaseId; + /** + * Subscription ID + */ + private Long subscriptionId; + + // price: + public Double getPrice(){ + return this.price; + } + public void setPrice(Double price){ + this.price = price; + } + + public void price(String multirequestToken){ + setToken("price", multirequestToken); + } + + // purchaseId: + public Long getPurchaseId(){ + return this.purchaseId; + } + public void setPurchaseId(Long purchaseId){ + this.purchaseId = purchaseId; + } + + public void purchaseId(String multirequestToken){ + setToken("purchaseId", multirequestToken); + } + + // subscriptionId: + public Long getSubscriptionId(){ + return this.subscriptionId; + } + public void setSubscriptionId(Long subscriptionId){ + this.subscriptionId = subscriptionId; + } + + public void subscriptionId(String multirequestToken){ + setToken("subscriptionId", multirequestToken); + } + + + public EntitlementRenewalBase() { + super(); + } + + public EntitlementRenewalBase(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + price = GsonParser.parseDouble(jsonObject.get("price")); + purchaseId = GsonParser.parseLong(jsonObject.get("purchaseId")); + subscriptionId = GsonParser.parseLong(jsonObject.get("subscriptionId")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaEntitlementRenewalBase"); + kparams.add("price", this.price); + kparams.add("purchaseId", this.purchaseId); + kparams.add("subscriptionId", this.subscriptionId); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public EntitlementRenewalBase createFromParcel(Parcel source) { + return new EntitlementRenewalBase(source); + } + + @Override + public EntitlementRenewalBase[] newArray(int size) { + return new EntitlementRenewalBase[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.price); + dest.writeValue(this.purchaseId); + dest.writeValue(this.subscriptionId); + } + + public EntitlementRenewalBase(Parcel in) { + super(in); + this.price = (Double)in.readValue(Double.class.getClassLoader()); + this.purchaseId = (Long)in.readValue(Long.class.getClassLoader()); + this.subscriptionId = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/Epg.java b/KalturaClient/src/main/java/com/kaltura/client/types/Epg.java new file mode 100644 index 000000000..770af2199 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/Epg.java @@ -0,0 +1,82 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(Epg.Tokenizer.class) +public class Epg extends ProgramAsset { + + public interface Tokenizer extends ProgramAsset.Tokenizer { + } + + + + public Epg() { + super(); + } + + public Epg(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaEpg"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public Epg createFromParcel(Parcel source) { + return new Epg(source); + } + + @Override + public Epg[] newArray(int size) { + return new Epg[size]; + } + }; + + public Epg(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/EpgFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/EpgFilter.java new file mode 100644 index 000000000..3b5be9a89 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/EpgFilter.java @@ -0,0 +1,136 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(EpgFilter.Tokenizer.class) +public class EpgFilter extends Filter { + + public interface Tokenizer extends Filter.Tokenizer { + String dateEqual(); + String liveAssetIdEqual(); + } + + /** + * date in unix timestamp, e.g. 1610928000(January 18, 2021 0:00:00), + 1611014400(January 19, 2021 0:00:00) + */ + private Long dateEqual; + /** + * EPG live asset identifier + */ + private Long liveAssetIdEqual; + + // dateEqual: + public Long getDateEqual(){ + return this.dateEqual; + } + public void setDateEqual(Long dateEqual){ + this.dateEqual = dateEqual; + } + + public void dateEqual(String multirequestToken){ + setToken("dateEqual", multirequestToken); + } + + // liveAssetIdEqual: + public Long getLiveAssetIdEqual(){ + return this.liveAssetIdEqual; + } + public void setLiveAssetIdEqual(Long liveAssetIdEqual){ + this.liveAssetIdEqual = liveAssetIdEqual; + } + + public void liveAssetIdEqual(String multirequestToken){ + setToken("liveAssetIdEqual", multirequestToken); + } + + + public EpgFilter() { + super(); + } + + public EpgFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + dateEqual = GsonParser.parseLong(jsonObject.get("dateEqual")); + liveAssetIdEqual = GsonParser.parseLong(jsonObject.get("liveAssetIdEqual")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaEpgFilter"); + kparams.add("dateEqual", this.dateEqual); + kparams.add("liveAssetIdEqual", this.liveAssetIdEqual); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public EpgFilter createFromParcel(Parcel source) { + return new EpgFilter(source); + } + + @Override + public EpgFilter[] newArray(int size) { + return new EpgFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.dateEqual); + dest.writeValue(this.liveAssetIdEqual); + } + + public EpgFilter(Parcel in) { + super(in); + this.dateEqual = (Long)in.readValue(Long.class.getClassLoader()); + this.liveAssetIdEqual = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/EpgIngestErrorMessage.java b/KalturaClient/src/main/java/com/kaltura/client/types/EpgIngestErrorMessage.java new file mode 100644 index 000000000..b5c83cf0a --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/EpgIngestErrorMessage.java @@ -0,0 +1,175 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.HashMap; +import java.util.Map; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * A Kaltura error message + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(EpgIngestErrorMessage.Tokenizer.class) +public class EpgIngestErrorMessage extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String message(); + String code(); + RequestBuilder.MapTokenizer args(); + } + + /** + * The message description with arguments place holders + */ + private String message; + /** + * The message code + */ + private String code; + /** + * Message args + */ + private Map args; + + // message: + public String getMessage(){ + return this.message; + } + public void setMessage(String message){ + this.message = message; + } + + public void message(String multirequestToken){ + setToken("message", multirequestToken); + } + + // code: + public String getCode(){ + return this.code; + } + public void setCode(String code){ + this.code = code; + } + + public void code(String multirequestToken){ + setToken("code", multirequestToken); + } + + // args: + public Map getArgs(){ + return this.args; + } + public void setArgs(Map args){ + this.args = args; + } + + + public EpgIngestErrorMessage() { + super(); + } + + public EpgIngestErrorMessage(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + message = GsonParser.parseString(jsonObject.get("message")); + code = GsonParser.parseString(jsonObject.get("code")); + args = GsonParser.parseMap(jsonObject.getAsJsonObject("args"), StringValue.class); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaEpgIngestErrorMessage"); + kparams.add("message", this.message); + kparams.add("code", this.code); + kparams.add("args", this.args); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public EpgIngestErrorMessage createFromParcel(Parcel source) { + return new EpgIngestErrorMessage(source); + } + + @Override + public EpgIngestErrorMessage[] newArray(int size) { + return new EpgIngestErrorMessage[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.message); + dest.writeString(this.code); + if(this.args != null) { + dest.writeInt(this.args.size()); + for (Map.Entry entry : this.args.entrySet()) { + dest.writeString(entry.getKey()); + dest.writeParcelable(entry.getValue(), flags); + } + } else { + dest.writeInt(-1); + } + } + + public EpgIngestErrorMessage(Parcel in) { + super(in); + this.message = in.readString(); + this.code = in.readString(); + int argsSize = in.readInt(); + if( argsSize > -1) { + this.args = new HashMap<>(); + for (int i = 0; i < argsSize; i++) { + String key = in.readString(); + StringValue value = in.readParcelable(StringValue.class.getClassLoader()); + this.args.put(key, value); + } + } + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/EpgNotificationSettings.java b/KalturaClient/src/main/java/com/kaltura/client/types/EpgNotificationSettings.java new file mode 100644 index 000000000..308384b63 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/EpgNotificationSettings.java @@ -0,0 +1,203 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(EpgNotificationSettings.Tokenizer.class) +public class EpgNotificationSettings extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String enabled(); + String deviceFamilyIds(); + String liveAssetIds(); + String backwardTimeRange(); + String forwardTimeRange(); + } + + /** + * EPG notification capability is enabled for the account + */ + private Boolean enabled; + /** + * Specify which devices should receive notifications + */ + private String deviceFamilyIds; + /** + * Specify which live assets should fire notifications + */ + private String liveAssetIds; + /** + * The backward range (in hours), in which, EPG updates triggers a notification, + every program that is updated and it’s starts time falls within this + range shall trigger a notification + */ + private Integer backwardTimeRange; + /** + * The forward range (in hours), in which, EPG updates triggers a notification, + every program that is updated and it’s starts time falls within this + range shall trigger a notification + */ + private Integer forwardTimeRange; + + // enabled: + public Boolean getEnabled(){ + return this.enabled; + } + public void setEnabled(Boolean enabled){ + this.enabled = enabled; + } + + public void enabled(String multirequestToken){ + setToken("enabled", multirequestToken); + } + + // deviceFamilyIds: + public String getDeviceFamilyIds(){ + return this.deviceFamilyIds; + } + public void setDeviceFamilyIds(String deviceFamilyIds){ + this.deviceFamilyIds = deviceFamilyIds; + } + + public void deviceFamilyIds(String multirequestToken){ + setToken("deviceFamilyIds", multirequestToken); + } + + // liveAssetIds: + public String getLiveAssetIds(){ + return this.liveAssetIds; + } + public void setLiveAssetIds(String liveAssetIds){ + this.liveAssetIds = liveAssetIds; + } + + public void liveAssetIds(String multirequestToken){ + setToken("liveAssetIds", multirequestToken); + } + + // backwardTimeRange: + public Integer getBackwardTimeRange(){ + return this.backwardTimeRange; + } + public void setBackwardTimeRange(Integer backwardTimeRange){ + this.backwardTimeRange = backwardTimeRange; + } + + public void backwardTimeRange(String multirequestToken){ + setToken("backwardTimeRange", multirequestToken); + } + + // forwardTimeRange: + public Integer getForwardTimeRange(){ + return this.forwardTimeRange; + } + public void setForwardTimeRange(Integer forwardTimeRange){ + this.forwardTimeRange = forwardTimeRange; + } + + public void forwardTimeRange(String multirequestToken){ + setToken("forwardTimeRange", multirequestToken); + } + + + public EpgNotificationSettings() { + super(); + } + + public EpgNotificationSettings(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + enabled = GsonParser.parseBoolean(jsonObject.get("enabled")); + deviceFamilyIds = GsonParser.parseString(jsonObject.get("deviceFamilyIds")); + liveAssetIds = GsonParser.parseString(jsonObject.get("liveAssetIds")); + backwardTimeRange = GsonParser.parseInt(jsonObject.get("backwardTimeRange")); + forwardTimeRange = GsonParser.parseInt(jsonObject.get("forwardTimeRange")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaEpgNotificationSettings"); + kparams.add("enabled", this.enabled); + kparams.add("deviceFamilyIds", this.deviceFamilyIds); + kparams.add("liveAssetIds", this.liveAssetIds); + kparams.add("backwardTimeRange", this.backwardTimeRange); + kparams.add("forwardTimeRange", this.forwardTimeRange); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public EpgNotificationSettings createFromParcel(Parcel source) { + return new EpgNotificationSettings(source); + } + + @Override + public EpgNotificationSettings[] newArray(int size) { + return new EpgNotificationSettings[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.enabled); + dest.writeString(this.deviceFamilyIds); + dest.writeString(this.liveAssetIds); + dest.writeValue(this.backwardTimeRange); + dest.writeValue(this.forwardTimeRange); + } + + public EpgNotificationSettings(Parcel in) { + super(in); + this.enabled = (Boolean)in.readValue(Boolean.class.getClassLoader()); + this.deviceFamilyIds = in.readString(); + this.liveAssetIds = in.readString(); + this.backwardTimeRange = (Integer)in.readValue(Integer.class.getClassLoader()); + this.forwardTimeRange = (Integer)in.readValue(Integer.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/EpgServicePartnerConfiguration.java b/KalturaClient/src/main/java/com/kaltura/client/types/EpgServicePartnerConfiguration.java new file mode 100644 index 000000000..146b8e9c8 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/EpgServicePartnerConfiguration.java @@ -0,0 +1,136 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(EpgServicePartnerConfiguration.Tokenizer.class) +public class EpgServicePartnerConfiguration extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String numberOfSlots(); + String firstSlotOffset(); + } + + /** + * The number of slots (NOS) that are supported (1, 2, 3, 4, 6, 8, 12, 24) + */ + private Integer numberOfSlots; + /** + * The offset of the first slot from 00:00 UTC + */ + private Integer firstSlotOffset; + + // numberOfSlots: + public Integer getNumberOfSlots(){ + return this.numberOfSlots; + } + public void setNumberOfSlots(Integer numberOfSlots){ + this.numberOfSlots = numberOfSlots; + } + + public void numberOfSlots(String multirequestToken){ + setToken("numberOfSlots", multirequestToken); + } + + // firstSlotOffset: + public Integer getFirstSlotOffset(){ + return this.firstSlotOffset; + } + public void setFirstSlotOffset(Integer firstSlotOffset){ + this.firstSlotOffset = firstSlotOffset; + } + + public void firstSlotOffset(String multirequestToken){ + setToken("firstSlotOffset", multirequestToken); + } + + + public EpgServicePartnerConfiguration() { + super(); + } + + public EpgServicePartnerConfiguration(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + numberOfSlots = GsonParser.parseInt(jsonObject.get("numberOfSlots")); + firstSlotOffset = GsonParser.parseInt(jsonObject.get("firstSlotOffset")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaEpgServicePartnerConfiguration"); + kparams.add("numberOfSlots", this.numberOfSlots); + kparams.add("firstSlotOffset", this.firstSlotOffset); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public EpgServicePartnerConfiguration createFromParcel(Parcel source) { + return new EpgServicePartnerConfiguration(source); + } + + @Override + public EpgServicePartnerConfiguration[] newArray(int size) { + return new EpgServicePartnerConfiguration[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.numberOfSlots); + dest.writeValue(this.firstSlotOffset); + } + + public EpgServicePartnerConfiguration(Parcel in) { + super(in); + this.numberOfSlots = (Integer)in.readValue(Integer.class.getClassLoader()); + this.firstSlotOffset = (Integer)in.readValue(Integer.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/EventNotification.java b/KalturaClient/src/main/java/com/kaltura/client/types/EventNotification.java new file mode 100644 index 000000000..8cc100f57 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/EventNotification.java @@ -0,0 +1,248 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.EventNotificationStatus; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Household Coupon details + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(EventNotification.Tokenizer.class) +public class EventNotification extends OTTObjectSupportNullable { + + public interface Tokenizer extends OTTObjectSupportNullable.Tokenizer { + String id(); + String objectId(); + String eventObjectType(); + String message(); + String status(); + String actionType(); + String createDate(); + String updateDate(); + } + + /** + * Identifier + */ + private String id; + /** + * Object identifier + */ + private Long objectId; + /** + * Event object type + */ + private String eventObjectType; + /** + * Message + */ + private String message; + /** + * Status + */ + private EventNotificationStatus status; + /** + * Action type + */ + private String actionType; + /** + * Create date + */ + private Long createDate; + /** + * Update date + */ + private Long updateDate; + + // id: + public String getId(){ + return this.id; + } + public void setId(String id){ + this.id = id; + } + + public void id(String multirequestToken){ + setToken("id", multirequestToken); + } + + // objectId: + public Long getObjectId(){ + return this.objectId; + } + public void setObjectId(Long objectId){ + this.objectId = objectId; + } + + public void objectId(String multirequestToken){ + setToken("objectId", multirequestToken); + } + + // eventObjectType: + public String getEventObjectType(){ + return this.eventObjectType; + } + public void setEventObjectType(String eventObjectType){ + this.eventObjectType = eventObjectType; + } + + public void eventObjectType(String multirequestToken){ + setToken("eventObjectType", multirequestToken); + } + + // message: + public String getMessage(){ + return this.message; + } + public void setMessage(String message){ + this.message = message; + } + + public void message(String multirequestToken){ + setToken("message", multirequestToken); + } + + // status: + public EventNotificationStatus getStatus(){ + return this.status; + } + public void setStatus(EventNotificationStatus status){ + this.status = status; + } + + public void status(String multirequestToken){ + setToken("status", multirequestToken); + } + + // actionType: + public String getActionType(){ + return this.actionType; + } + public void setActionType(String actionType){ + this.actionType = actionType; + } + + public void actionType(String multirequestToken){ + setToken("actionType", multirequestToken); + } + + // createDate: + public Long getCreateDate(){ + return this.createDate; + } + // updateDate: + public Long getUpdateDate(){ + return this.updateDate; + } + + public EventNotification() { + super(); + } + + public EventNotification(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + id = GsonParser.parseString(jsonObject.get("id")); + objectId = GsonParser.parseLong(jsonObject.get("objectId")); + eventObjectType = GsonParser.parseString(jsonObject.get("eventObjectType")); + message = GsonParser.parseString(jsonObject.get("message")); + status = EventNotificationStatus.get(GsonParser.parseString(jsonObject.get("status"))); + actionType = GsonParser.parseString(jsonObject.get("actionType")); + createDate = GsonParser.parseLong(jsonObject.get("createDate")); + updateDate = GsonParser.parseLong(jsonObject.get("updateDate")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaEventNotification"); + kparams.add("id", this.id); + kparams.add("objectId", this.objectId); + kparams.add("eventObjectType", this.eventObjectType); + kparams.add("message", this.message); + kparams.add("status", this.status); + kparams.add("actionType", this.actionType); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public EventNotification createFromParcel(Parcel source) { + return new EventNotification(source); + } + + @Override + public EventNotification[] newArray(int size) { + return new EventNotification[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.id); + dest.writeValue(this.objectId); + dest.writeString(this.eventObjectType); + dest.writeString(this.message); + dest.writeInt(this.status == null ? -1 : this.status.ordinal()); + dest.writeString(this.actionType); + dest.writeValue(this.createDate); + dest.writeValue(this.updateDate); + } + + public EventNotification(Parcel in) { + super(in); + this.id = in.readString(); + this.objectId = (Long)in.readValue(Long.class.getClassLoader()); + this.eventObjectType = in.readString(); + this.message = in.readString(); + int tmpStatus = in.readInt(); + this.status = tmpStatus == -1 ? null : EventNotificationStatus.values()[tmpStatus]; + this.actionType = in.readString(); + this.createDate = (Long)in.readValue(Long.class.getClassLoader()); + this.updateDate = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/EventNotificationFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/EventNotificationFilter.java new file mode 100644 index 000000000..133706a88 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/EventNotificationFilter.java @@ -0,0 +1,156 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(EventNotificationFilter.Tokenizer.class) +public class EventNotificationFilter extends Filter { + + public interface Tokenizer extends Filter.Tokenizer { + String idEqual(); + String objectIdEqual(); + String eventObjectTypeEqual(); + } + + /** + * Indicates which event notification to return by their event notifications Id. + */ + private String idEqual; + /** + * Indicates which objectId to return by their event notifications. + */ + private Long objectIdEqual; + /** + * Indicates which objectType to return by their event notifications. + */ + private String eventObjectTypeEqual; + + // idEqual: + public String getIdEqual(){ + return this.idEqual; + } + public void setIdEqual(String idEqual){ + this.idEqual = idEqual; + } + + public void idEqual(String multirequestToken){ + setToken("idEqual", multirequestToken); + } + + // objectIdEqual: + public Long getObjectIdEqual(){ + return this.objectIdEqual; + } + public void setObjectIdEqual(Long objectIdEqual){ + this.objectIdEqual = objectIdEqual; + } + + public void objectIdEqual(String multirequestToken){ + setToken("objectIdEqual", multirequestToken); + } + + // eventObjectTypeEqual: + public String getEventObjectTypeEqual(){ + return this.eventObjectTypeEqual; + } + public void setEventObjectTypeEqual(String eventObjectTypeEqual){ + this.eventObjectTypeEqual = eventObjectTypeEqual; + } + + public void eventObjectTypeEqual(String multirequestToken){ + setToken("eventObjectTypeEqual", multirequestToken); + } + + + public EventNotificationFilter() { + super(); + } + + public EventNotificationFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + idEqual = GsonParser.parseString(jsonObject.get("idEqual")); + objectIdEqual = GsonParser.parseLong(jsonObject.get("objectIdEqual")); + eventObjectTypeEqual = GsonParser.parseString(jsonObject.get("eventObjectTypeEqual")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaEventNotificationFilter"); + kparams.add("idEqual", this.idEqual); + kparams.add("objectIdEqual", this.objectIdEqual); + kparams.add("eventObjectTypeEqual", this.eventObjectTypeEqual); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public EventNotificationFilter createFromParcel(Parcel source) { + return new EventNotificationFilter(source); + } + + @Override + public EventNotificationFilter[] newArray(int size) { + return new EventNotificationFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.idEqual); + dest.writeValue(this.objectIdEqual); + dest.writeString(this.eventObjectTypeEqual); + } + + public EventNotificationFilter(Parcel in) { + super(in); + this.idEqual = in.readString(); + this.objectIdEqual = (Long)in.readValue(Long.class.getClassLoader()); + this.eventObjectTypeEqual = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/EventNotificationObjectScope.java b/KalturaClient/src/main/java/com/kaltura/client/types/EventNotificationObjectScope.java new file mode 100644 index 000000000..be0a9504c --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/EventNotificationObjectScope.java @@ -0,0 +1,114 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.EventObject; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Kaltura event notification object scope + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(EventNotificationObjectScope.Tokenizer.class) +public class EventNotificationObjectScope extends EventNotificationScope { + + public interface Tokenizer extends EventNotificationScope.Tokenizer { + EventObject.Tokenizer eventObject(); + } + + /** + * Event object to fire + */ + private EventObject eventObject; + + // eventObject: + public EventObject getEventObject(){ + return this.eventObject; + } + public void setEventObject(EventObject eventObject){ + this.eventObject = eventObject; + } + + + public EventNotificationObjectScope() { + super(); + } + + public EventNotificationObjectScope(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + eventObject = GsonParser.parseObject(jsonObject.getAsJsonObject("eventObject"), EventObject.class); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaEventNotificationObjectScope"); + kparams.add("eventObject", this.eventObject); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public EventNotificationObjectScope createFromParcel(Parcel source) { + return new EventNotificationObjectScope(source); + } + + @Override + public EventNotificationObjectScope[] newArray(int size) { + return new EventNotificationObjectScope[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeParcelable(this.eventObject, flags); + } + + public EventNotificationObjectScope(Parcel in) { + super(in); + this.eventObject = in.readParcelable(EventObject.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/EventNotificationScope.java b/KalturaClient/src/main/java/com/kaltura/client/types/EventNotificationScope.java new file mode 100644 index 000000000..08db7f11f --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/EventNotificationScope.java @@ -0,0 +1,74 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Kaltura event notification scope + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(EventNotificationScope.Tokenizer.class) +public abstract class EventNotificationScope extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + } + + + + public EventNotificationScope() { + super(); + } + + public EventNotificationScope(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaEventNotificationScope"); + return kparams; + } + + + public EventNotificationScope(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/EventObject.java b/KalturaClient/src/main/java/com/kaltura/client/types/EventObject.java new file mode 100644 index 000000000..9e1281d98 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/EventObject.java @@ -0,0 +1,83 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(EventObject.Tokenizer.class) +public class EventObject extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + } + + + + public EventObject() { + super(); + } + + public EventObject(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaEventObject"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public EventObject createFromParcel(Parcel source) { + return new EventObject(source); + } + + @Override + public EventObject[] newArray(int size) { + return new EventObject[size]; + } + }; + + public EventObject(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ExportTask.java b/KalturaClient/src/main/java/com/kaltura/client/types/ExportTask.java new file mode 100644 index 000000000..7cfc59d76 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ExportTask.java @@ -0,0 +1,284 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.ExportDataType; +import com.kaltura.client.enums.ExportType; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Bulk export task + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ExportTask.Tokenizer.class) +public class ExportTask extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String id(); + String alias(); + String name(); + String dataType(); + String filter(); + String exportType(); + String frequency(); + String notificationUrl(); + String isActive(); + } + + /** + * Task identifier + */ + private Long id; + /** + * Alias for the task used to solicit an export using API + */ + private String alias; + /** + * Task display name + */ + private String name; + /** + * The data type exported in this task + */ + private ExportDataType dataType; + /** + * Filter to apply on the export, utilize KSQL. Note: KSQL currently + applies to media assets only. It cannot be used for USERS filtering + */ + private String filter; + /** + * Type of export batch – full or incremental + */ + private ExportType exportType; + /** + * How often the export should occur, reasonable minimum threshold should apply, + configurable in minutes + */ + private Long frequency; + /** + * The URL for sending a notification when the task&#39;s export process is + done + */ + private String notificationUrl; + /** + * Indicates if the task is active or not + */ + private Boolean isActive; + + // id: + public Long getId(){ + return this.id; + } + // alias: + public String getAlias(){ + return this.alias; + } + public void setAlias(String alias){ + this.alias = alias; + } + + public void alias(String multirequestToken){ + setToken("alias", multirequestToken); + } + + // name: + public String getName(){ + return this.name; + } + public void setName(String name){ + this.name = name; + } + + public void name(String multirequestToken){ + setToken("name", multirequestToken); + } + + // dataType: + public ExportDataType getDataType(){ + return this.dataType; + } + public void setDataType(ExportDataType dataType){ + this.dataType = dataType; + } + + public void dataType(String multirequestToken){ + setToken("dataType", multirequestToken); + } + + // filter: + public String getFilter(){ + return this.filter; + } + public void setFilter(String filter){ + this.filter = filter; + } + + public void filter(String multirequestToken){ + setToken("filter", multirequestToken); + } + + // exportType: + public ExportType getExportType(){ + return this.exportType; + } + public void setExportType(ExportType exportType){ + this.exportType = exportType; + } + + public void exportType(String multirequestToken){ + setToken("exportType", multirequestToken); + } + + // frequency: + public Long getFrequency(){ + return this.frequency; + } + public void setFrequency(Long frequency){ + this.frequency = frequency; + } + + public void frequency(String multirequestToken){ + setToken("frequency", multirequestToken); + } + + // notificationUrl: + public String getNotificationUrl(){ + return this.notificationUrl; + } + public void setNotificationUrl(String notificationUrl){ + this.notificationUrl = notificationUrl; + } + + public void notificationUrl(String multirequestToken){ + setToken("notificationUrl", multirequestToken); + } + + // isActive: + public Boolean getIsActive(){ + return this.isActive; + } + public void setIsActive(Boolean isActive){ + this.isActive = isActive; + } + + public void isActive(String multirequestToken){ + setToken("isActive", multirequestToken); + } + + + public ExportTask() { + super(); + } + + public ExportTask(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + id = GsonParser.parseLong(jsonObject.get("id")); + alias = GsonParser.parseString(jsonObject.get("alias")); + name = GsonParser.parseString(jsonObject.get("name")); + dataType = ExportDataType.get(GsonParser.parseString(jsonObject.get("dataType"))); + filter = GsonParser.parseString(jsonObject.get("filter")); + exportType = ExportType.get(GsonParser.parseString(jsonObject.get("exportType"))); + frequency = GsonParser.parseLong(jsonObject.get("frequency")); + notificationUrl = GsonParser.parseString(jsonObject.get("notificationUrl")); + isActive = GsonParser.parseBoolean(jsonObject.get("isActive")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaExportTask"); + kparams.add("alias", this.alias); + kparams.add("name", this.name); + kparams.add("dataType", this.dataType); + kparams.add("filter", this.filter); + kparams.add("exportType", this.exportType); + kparams.add("frequency", this.frequency); + kparams.add("notificationUrl", this.notificationUrl); + kparams.add("isActive", this.isActive); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public ExportTask createFromParcel(Parcel source) { + return new ExportTask(source); + } + + @Override + public ExportTask[] newArray(int size) { + return new ExportTask[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.id); + dest.writeString(this.alias); + dest.writeString(this.name); + dest.writeInt(this.dataType == null ? -1 : this.dataType.ordinal()); + dest.writeString(this.filter); + dest.writeInt(this.exportType == null ? -1 : this.exportType.ordinal()); + dest.writeValue(this.frequency); + dest.writeString(this.notificationUrl); + dest.writeValue(this.isActive); + } + + public ExportTask(Parcel in) { + super(in); + this.id = (Long)in.readValue(Long.class.getClassLoader()); + this.alias = in.readString(); + this.name = in.readString(); + int tmpDataType = in.readInt(); + this.dataType = tmpDataType == -1 ? null : ExportDataType.values()[tmpDataType]; + this.filter = in.readString(); + int tmpExportType = in.readInt(); + this.exportType = tmpExportType == -1 ? null : ExportType.values()[tmpExportType]; + this.frequency = (Long)in.readValue(Long.class.getClassLoader()); + this.notificationUrl = in.readString(); + this.isActive = (Boolean)in.readValue(Boolean.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ExportTaskFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/ExportTaskFilter.java new file mode 100644 index 000000000..a5912b443 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ExportTaskFilter.java @@ -0,0 +1,117 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Bulk export tasks filter + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ExportTaskFilter.Tokenizer.class) +public class ExportTaskFilter extends Filter { + + public interface Tokenizer extends Filter.Tokenizer { + String idIn(); + } + + /** + * Comma separated tasks identifiers + */ + private String idIn; + + // idIn: + public String getIdIn(){ + return this.idIn; + } + public void setIdIn(String idIn){ + this.idIn = idIn; + } + + public void idIn(String multirequestToken){ + setToken("idIn", multirequestToken); + } + + + public ExportTaskFilter() { + super(); + } + + public ExportTaskFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + idIn = GsonParser.parseString(jsonObject.get("idIn")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaExportTaskFilter"); + kparams.add("idIn", this.idIn); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public ExportTaskFilter createFromParcel(Parcel source) { + return new ExportTaskFilter(source); + } + + @Override + public ExportTaskFilter[] newArray(int size) { + return new ExportTaskFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.idIn); + } + + public ExportTaskFilter(Parcel in) { + super(in); + this.idIn = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ExpressionAnd.java b/KalturaClient/src/main/java/com/kaltura/client/types/ExpressionAnd.java new file mode 100644 index 000000000..2a03b029b --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ExpressionAnd.java @@ -0,0 +1,125 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.ArrayList; +import java.util.List; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * And Expression + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ExpressionAnd.Tokenizer.class) +public class ExpressionAnd extends UserSessionProfileExpression { + + public interface Tokenizer extends UserSessionProfileExpression.Tokenizer { + RequestBuilder.ListTokenizer expressions(); + } + + /** + * expressions with and relation between them + */ + private List expressions; + + // expressions: + public List getExpressions(){ + return this.expressions; + } + public void setExpressions(List expressions){ + this.expressions = expressions; + } + + + public ExpressionAnd() { + super(); + } + + public ExpressionAnd(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + expressions = GsonParser.parseArray(jsonObject.getAsJsonArray("expressions"), UserSessionProfileExpression.class); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaExpressionAnd"); + kparams.add("expressions", this.expressions); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public ExpressionAnd createFromParcel(Parcel source) { + return new ExpressionAnd(source); + } + + @Override + public ExpressionAnd[] newArray(int size) { + return new ExpressionAnd[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + if(this.expressions != null) { + dest.writeInt(this.expressions.size()); + dest.writeList(this.expressions); + } else { + dest.writeInt(-1); + } + } + + public ExpressionAnd(Parcel in) { + super(in); + int expressionsSize = in.readInt(); + if( expressionsSize > -1) { + this.expressions = new ArrayList<>(); + in.readList(this.expressions, UserSessionProfileExpression.class.getClassLoader()); + } + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ExpressionNot.java b/KalturaClient/src/main/java/com/kaltura/client/types/ExpressionNot.java new file mode 100644 index 000000000..56d04a223 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ExpressionNot.java @@ -0,0 +1,114 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.UserSessionProfileExpression; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Not Expression + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ExpressionNot.Tokenizer.class) +public class ExpressionNot extends UserSessionProfileExpression { + + public interface Tokenizer extends UserSessionProfileExpression.Tokenizer { + UserSessionProfileExpression.Tokenizer expression(); + } + + /** + * expression + */ + private UserSessionProfileExpression expression; + + // expression: + public UserSessionProfileExpression getExpression(){ + return this.expression; + } + public void setExpression(UserSessionProfileExpression expression){ + this.expression = expression; + } + + + public ExpressionNot() { + super(); + } + + public ExpressionNot(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + expression = GsonParser.parseObject(jsonObject.getAsJsonObject("expression"), UserSessionProfileExpression.class); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaExpressionNot"); + kparams.add("expression", this.expression); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public ExpressionNot createFromParcel(Parcel source) { + return new ExpressionNot(source); + } + + @Override + public ExpressionNot[] newArray(int size) { + return new ExpressionNot[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeParcelable(this.expression, flags); + } + + public ExpressionNot(Parcel in) { + super(in); + this.expression = in.readParcelable(UserSessionProfileExpression.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ExpressionOr.java b/KalturaClient/src/main/java/com/kaltura/client/types/ExpressionOr.java new file mode 100644 index 000000000..d20e8e2a1 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ExpressionOr.java @@ -0,0 +1,125 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.ArrayList; +import java.util.List; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Or Expression + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ExpressionOr.Tokenizer.class) +public class ExpressionOr extends UserSessionProfileExpression { + + public interface Tokenizer extends UserSessionProfileExpression.Tokenizer { + RequestBuilder.ListTokenizer expressions(); + } + + /** + * expressions with or relation between them + */ + private List expressions; + + // expressions: + public List getExpressions(){ + return this.expressions; + } + public void setExpressions(List expressions){ + this.expressions = expressions; + } + + + public ExpressionOr() { + super(); + } + + public ExpressionOr(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + expressions = GsonParser.parseArray(jsonObject.getAsJsonArray("expressions"), UserSessionProfileExpression.class); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaExpressionOr"); + kparams.add("expressions", this.expressions); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public ExpressionOr createFromParcel(Parcel source) { + return new ExpressionOr(source); + } + + @Override + public ExpressionOr[] newArray(int size) { + return new ExpressionOr[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + if(this.expressions != null) { + dest.writeInt(this.expressions.size()); + dest.writeList(this.expressions); + } else { + dest.writeInt(-1); + } + } + + public ExpressionOr(Parcel in) { + super(in); + int expressionsSize = in.readInt(); + if( expressionsSize > -1) { + this.expressions = new ArrayList<>(); + in.readList(this.expressions, UserSessionProfileExpression.class.getClassLoader()); + } + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ExternalChannelProfile.java b/KalturaClient/src/main/java/com/kaltura/client/types/ExternalChannelProfile.java new file mode 100644 index 000000000..79ef9c2c4 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ExternalChannelProfile.java @@ -0,0 +1,299 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * OSS Adapter + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ExternalChannelProfile.Tokenizer.class) +public class ExternalChannelProfile extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String id(); + String name(); + String isActive(); + String externalIdentifier(); + String filterExpression(); + String recommendationEngineId(); + RequestBuilder.ListTokenizer enrichments(); + String assetUserRuleId(); + RequestBuilder.MapTokenizer metaData(); + } + + /** + * External channel id + */ + private Integer id; + /** + * External channel name + */ + private String name; + /** + * External channel active status + */ + private Boolean isActive; + /** + * External channel external identifier + */ + private String externalIdentifier; + /** + * Filter expression + */ + private String filterExpression; + /** + * Recommendation engine id + */ + private Integer recommendationEngineId; + /** + * Enrichments + */ + private List enrichments; + /** + * Asset user rule identifier + */ + private Long assetUserRuleId; + /** + * key/value map field for extra data + */ + private Map metaData; + + // id: + public Integer getId(){ + return this.id; + } + // name: + public String getName(){ + return this.name; + } + public void setName(String name){ + this.name = name; + } + + public void name(String multirequestToken){ + setToken("name", multirequestToken); + } + + // isActive: + public Boolean getIsActive(){ + return this.isActive; + } + public void setIsActive(Boolean isActive){ + this.isActive = isActive; + } + + public void isActive(String multirequestToken){ + setToken("isActive", multirequestToken); + } + + // externalIdentifier: + public String getExternalIdentifier(){ + return this.externalIdentifier; + } + public void setExternalIdentifier(String externalIdentifier){ + this.externalIdentifier = externalIdentifier; + } + + public void externalIdentifier(String multirequestToken){ + setToken("externalIdentifier", multirequestToken); + } + + // filterExpression: + public String getFilterExpression(){ + return this.filterExpression; + } + public void setFilterExpression(String filterExpression){ + this.filterExpression = filterExpression; + } + + public void filterExpression(String multirequestToken){ + setToken("filterExpression", multirequestToken); + } + + // recommendationEngineId: + public Integer getRecommendationEngineId(){ + return this.recommendationEngineId; + } + public void setRecommendationEngineId(Integer recommendationEngineId){ + this.recommendationEngineId = recommendationEngineId; + } + + public void recommendationEngineId(String multirequestToken){ + setToken("recommendationEngineId", multirequestToken); + } + + // enrichments: + public List getEnrichments(){ + return this.enrichments; + } + public void setEnrichments(List enrichments){ + this.enrichments = enrichments; + } + + // assetUserRuleId: + public Long getAssetUserRuleId(){ + return this.assetUserRuleId; + } + public void setAssetUserRuleId(Long assetUserRuleId){ + this.assetUserRuleId = assetUserRuleId; + } + + public void assetUserRuleId(String multirequestToken){ + setToken("assetUserRuleId", multirequestToken); + } + + // metaData: + public Map getMetaData(){ + return this.metaData; + } + public void setMetaData(Map metaData){ + this.metaData = metaData; + } + + + public ExternalChannelProfile() { + super(); + } + + public ExternalChannelProfile(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + id = GsonParser.parseInt(jsonObject.get("id")); + name = GsonParser.parseString(jsonObject.get("name")); + isActive = GsonParser.parseBoolean(jsonObject.get("isActive")); + externalIdentifier = GsonParser.parseString(jsonObject.get("externalIdentifier")); + filterExpression = GsonParser.parseString(jsonObject.get("filterExpression")); + recommendationEngineId = GsonParser.parseInt(jsonObject.get("recommendationEngineId")); + enrichments = GsonParser.parseArray(jsonObject.getAsJsonArray("enrichments"), ChannelEnrichmentHolder.class); + assetUserRuleId = GsonParser.parseLong(jsonObject.get("assetUserRuleId")); + metaData = GsonParser.parseMap(jsonObject.getAsJsonObject("metaData"), StringValue.class); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaExternalChannelProfile"); + kparams.add("name", this.name); + kparams.add("isActive", this.isActive); + kparams.add("externalIdentifier", this.externalIdentifier); + kparams.add("filterExpression", this.filterExpression); + kparams.add("recommendationEngineId", this.recommendationEngineId); + kparams.add("enrichments", this.enrichments); + kparams.add("assetUserRuleId", this.assetUserRuleId); + kparams.add("metaData", this.metaData); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public ExternalChannelProfile createFromParcel(Parcel source) { + return new ExternalChannelProfile(source); + } + + @Override + public ExternalChannelProfile[] newArray(int size) { + return new ExternalChannelProfile[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.id); + dest.writeString(this.name); + dest.writeValue(this.isActive); + dest.writeString(this.externalIdentifier); + dest.writeString(this.filterExpression); + dest.writeValue(this.recommendationEngineId); + if(this.enrichments != null) { + dest.writeInt(this.enrichments.size()); + dest.writeList(this.enrichments); + } else { + dest.writeInt(-1); + } + dest.writeValue(this.assetUserRuleId); + if(this.metaData != null) { + dest.writeInt(this.metaData.size()); + for (Map.Entry entry : this.metaData.entrySet()) { + dest.writeString(entry.getKey()); + dest.writeParcelable(entry.getValue(), flags); + } + } else { + dest.writeInt(-1); + } + } + + public ExternalChannelProfile(Parcel in) { + super(in); + this.id = (Integer)in.readValue(Integer.class.getClassLoader()); + this.name = in.readString(); + this.isActive = (Boolean)in.readValue(Boolean.class.getClassLoader()); + this.externalIdentifier = in.readString(); + this.filterExpression = in.readString(); + this.recommendationEngineId = (Integer)in.readValue(Integer.class.getClassLoader()); + int enrichmentsSize = in.readInt(); + if( enrichmentsSize > -1) { + this.enrichments = new ArrayList<>(); + in.readList(this.enrichments, ChannelEnrichmentHolder.class.getClassLoader()); + } + this.assetUserRuleId = (Long)in.readValue(Long.class.getClassLoader()); + int metaDataSize = in.readInt(); + if( metaDataSize > -1) { + this.metaData = new HashMap<>(); + for (int i = 0; i < metaDataSize; i++) { + String key = in.readString(); + StringValue value = in.readParcelable(StringValue.class.getClassLoader()); + this.metaData.put(key, value); + } + } + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ExternalChannelProfileByIdInFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/ExternalChannelProfileByIdInFilter.java new file mode 100644 index 000000000..866d5b89a --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ExternalChannelProfileByIdInFilter.java @@ -0,0 +1,114 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ExternalChannelProfileByIdInFilter.Tokenizer.class) +public class ExternalChannelProfileByIdInFilter extends ExternalChannelProfileFilter { + + public interface Tokenizer extends ExternalChannelProfileFilter.Tokenizer { + String idIn(); + } + + /** + * Comma separated external channel profile ids + */ + private String idIn; + + // idIn: + public String getIdIn(){ + return this.idIn; + } + public void setIdIn(String idIn){ + this.idIn = idIn; + } + + public void idIn(String multirequestToken){ + setToken("idIn", multirequestToken); + } + + + public ExternalChannelProfileByIdInFilter() { + super(); + } + + public ExternalChannelProfileByIdInFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + idIn = GsonParser.parseString(jsonObject.get("idIn")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaExternalChannelProfileByIdInFilter"); + kparams.add("idIn", this.idIn); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public ExternalChannelProfileByIdInFilter createFromParcel(Parcel source) { + return new ExternalChannelProfileByIdInFilter(source); + } + + @Override + public ExternalChannelProfileByIdInFilter[] newArray(int size) { + return new ExternalChannelProfileByIdInFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.idIn); + } + + public ExternalChannelProfileByIdInFilter(Parcel in) { + super(in); + this.idIn = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ExternalChannelProfileFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/ExternalChannelProfileFilter.java new file mode 100644 index 000000000..c944b8fab --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ExternalChannelProfileFilter.java @@ -0,0 +1,85 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * External channel profile filter + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ExternalChannelProfileFilter.Tokenizer.class) +public class ExternalChannelProfileFilter extends Filter { + + public interface Tokenizer extends Filter.Tokenizer { + } + + + + public ExternalChannelProfileFilter() { + super(); + } + + public ExternalChannelProfileFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaExternalChannelProfileFilter"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public ExternalChannelProfileFilter createFromParcel(Parcel source) { + return new ExternalChannelProfileFilter(source); + } + + @Override + public ExternalChannelProfileFilter[] newArray(int size) { + return new ExternalChannelProfileFilter[size]; + } + }; + + public ExternalChannelProfileFilter(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ExternalReceipt.java b/KalturaClient/src/main/java/com/kaltura/client/types/ExternalReceipt.java new file mode 100644 index 000000000..c0af90c22 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ExternalReceipt.java @@ -0,0 +1,137 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ExternalReceipt.Tokenizer.class) +public class ExternalReceipt extends PurchaseBase { + + public interface Tokenizer extends PurchaseBase.Tokenizer { + String receiptId(); + String paymentGatewayName(); + } + + /** + * A unique identifier that was provided by the In-App billing service to validate + the purchase + */ + private String receiptId; + /** + * The payment gateway name for the In-App billing service to be used. Possible + values: Google/Apple + */ + private String paymentGatewayName; + + // receiptId: + public String getReceiptId(){ + return this.receiptId; + } + public void setReceiptId(String receiptId){ + this.receiptId = receiptId; + } + + public void receiptId(String multirequestToken){ + setToken("receiptId", multirequestToken); + } + + // paymentGatewayName: + public String getPaymentGatewayName(){ + return this.paymentGatewayName; + } + public void setPaymentGatewayName(String paymentGatewayName){ + this.paymentGatewayName = paymentGatewayName; + } + + public void paymentGatewayName(String multirequestToken){ + setToken("paymentGatewayName", multirequestToken); + } + + + public ExternalReceipt() { + super(); + } + + public ExternalReceipt(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + receiptId = GsonParser.parseString(jsonObject.get("receiptId")); + paymentGatewayName = GsonParser.parseString(jsonObject.get("paymentGatewayName")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaExternalReceipt"); + kparams.add("receiptId", this.receiptId); + kparams.add("paymentGatewayName", this.paymentGatewayName); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public ExternalReceipt createFromParcel(Parcel source) { + return new ExternalReceipt(source); + } + + @Override + public ExternalReceipt[] newArray(int size) { + return new ExternalReceipt[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.receiptId); + dest.writeString(this.paymentGatewayName); + } + + public ExternalReceipt(Parcel in) { + super(in); + this.receiptId = in.readString(); + this.paymentGatewayName = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ExternalRecording.java b/KalturaClient/src/main/java/com/kaltura/client/types/ExternalRecording.java new file mode 100644 index 000000000..4f7228981 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ExternalRecording.java @@ -0,0 +1,163 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.HashMap; +import java.util.Map; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ExternalRecording.Tokenizer.class) +public class ExternalRecording extends Recording { + + public interface Tokenizer extends Recording.Tokenizer { + String externalId(); + RequestBuilder.MapTokenizer metaData(); + String expiryDate(); + } + + /** + * External identifier for the recording + */ + private String externalId; + /** + * key/value map field for extra data + */ + private Map metaData; + /** + * Specifies until when the recording is available. Date and time represented as + epoch. + */ + private Long expiryDate; + + // externalId: + public String getExternalId(){ + return this.externalId; + } + public void setExternalId(String externalId){ + this.externalId = externalId; + } + + public void externalId(String multirequestToken){ + setToken("externalId", multirequestToken); + } + + // metaData: + public Map getMetaData(){ + return this.metaData; + } + public void setMetaData(Map metaData){ + this.metaData = metaData; + } + + // expiryDate: + public Long getExpiryDate(){ + return this.expiryDate; + } + + public ExternalRecording() { + super(); + } + + public ExternalRecording(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + externalId = GsonParser.parseString(jsonObject.get("externalId")); + metaData = GsonParser.parseMap(jsonObject.getAsJsonObject("metaData"), StringValue.class); + expiryDate = GsonParser.parseLong(jsonObject.get("expiryDate")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaExternalRecording"); + kparams.add("externalId", this.externalId); + kparams.add("metaData", this.metaData); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public ExternalRecording createFromParcel(Parcel source) { + return new ExternalRecording(source); + } + + @Override + public ExternalRecording[] newArray(int size) { + return new ExternalRecording[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.externalId); + if(this.metaData != null) { + dest.writeInt(this.metaData.size()); + for (Map.Entry entry : this.metaData.entrySet()) { + dest.writeString(entry.getKey()); + dest.writeParcelable(entry.getValue(), flags); + } + } else { + dest.writeInt(-1); + } + dest.writeValue(this.expiryDate); + } + + public ExternalRecording(Parcel in) { + super(in); + this.externalId = in.readString(); + int metaDataSize = in.readInt(); + if( metaDataSize > -1) { + this.metaData = new HashMap<>(); + for (int i = 0; i < metaDataSize; i++) { + String key = in.readString(); + StringValue value = in.readParcelable(StringValue.class.getClassLoader()); + this.metaData.put(key, value); + } + } + this.expiryDate = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ExternalRecordingFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/ExternalRecordingFilter.java new file mode 100644 index 000000000..4fd4e369c --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ExternalRecordingFilter.java @@ -0,0 +1,132 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.HashMap; +import java.util.Map; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Filtering external recordings + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ExternalRecordingFilter.Tokenizer.class) +public class ExternalRecordingFilter extends RecordingFilter { + + public interface Tokenizer extends RecordingFilter.Tokenizer { + RequestBuilder.MapTokenizer metaData(); + } + + /** + * MetaData filtering + */ + private Map metaData; + + // metaData: + public Map getMetaData(){ + return this.metaData; + } + public void setMetaData(Map metaData){ + this.metaData = metaData; + } + + + public ExternalRecordingFilter() { + super(); + } + + public ExternalRecordingFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + metaData = GsonParser.parseMap(jsonObject.getAsJsonObject("metaData"), StringValue.class); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaExternalRecordingFilter"); + kparams.add("metaData", this.metaData); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public ExternalRecordingFilter createFromParcel(Parcel source) { + return new ExternalRecordingFilter(source); + } + + @Override + public ExternalRecordingFilter[] newArray(int size) { + return new ExternalRecordingFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + if(this.metaData != null) { + dest.writeInt(this.metaData.size()); + for (Map.Entry entry : this.metaData.entrySet()) { + dest.writeString(entry.getKey()); + dest.writeParcelable(entry.getValue(), flags); + } + } else { + dest.writeInt(-1); + } + } + + public ExternalRecordingFilter(Parcel in) { + super(in); + int metaDataSize = in.readInt(); + if( metaDataSize > -1) { + this.metaData = new HashMap<>(); + for (int i = 0; i < metaDataSize; i++) { + String key = in.readString(); + StringValue value = in.readParcelable(StringValue.class.getClassLoader()); + this.metaData.put(key, value); + } + } + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ExternalRecordingResponseProfileFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/ExternalRecordingResponseProfileFilter.java new file mode 100644 index 000000000..a25a21166 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ExternalRecordingResponseProfileFilter.java @@ -0,0 +1,85 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Kaltura External Recording ResponseProfile Filter + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ExternalRecordingResponseProfileFilter.Tokenizer.class) +public class ExternalRecordingResponseProfileFilter extends RelatedObjectFilter { + + public interface Tokenizer extends RelatedObjectFilter.Tokenizer { + } + + + + public ExternalRecordingResponseProfileFilter() { + super(); + } + + public ExternalRecordingResponseProfileFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaExternalRecordingResponseProfileFilter"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public ExternalRecordingResponseProfileFilter createFromParcel(Parcel source) { + return new ExternalRecordingResponseProfileFilter(source); + } + + @Override + public ExternalRecordingResponseProfileFilter[] newArray(int size) { + return new ExternalRecordingResponseProfileFilter[size]; + } + }; + + public ExternalRecordingResponseProfileFilter(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ExternalSeriesRecording.java b/KalturaClient/src/main/java/com/kaltura/client/types/ExternalSeriesRecording.java new file mode 100644 index 000000000..0b6d8fa13 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ExternalSeriesRecording.java @@ -0,0 +1,129 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.HashMap; +import java.util.Map; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ExternalSeriesRecording.Tokenizer.class) +public class ExternalSeriesRecording extends SeriesRecording { + + public interface Tokenizer extends SeriesRecording.Tokenizer { + RequestBuilder.MapTokenizer metaData(); + } + + /** + * MetaData filtering + */ + private Map metaData; + + // metaData: + public Map getMetaData(){ + return this.metaData; + } + public void setMetaData(Map metaData){ + this.metaData = metaData; + } + + + public ExternalSeriesRecording() { + super(); + } + + public ExternalSeriesRecording(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + metaData = GsonParser.parseMap(jsonObject.getAsJsonObject("metaData"), StringValue.class); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaExternalSeriesRecording"); + kparams.add("metaData", this.metaData); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public ExternalSeriesRecording createFromParcel(Parcel source) { + return new ExternalSeriesRecording(source); + } + + @Override + public ExternalSeriesRecording[] newArray(int size) { + return new ExternalSeriesRecording[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + if(this.metaData != null) { + dest.writeInt(this.metaData.size()); + for (Map.Entry entry : this.metaData.entrySet()) { + dest.writeString(entry.getKey()); + dest.writeParcelable(entry.getValue(), flags); + } + } else { + dest.writeInt(-1); + } + } + + public ExternalSeriesRecording(Parcel in) { + super(in); + int metaDataSize = in.readInt(); + if( metaDataSize > -1) { + this.metaData = new HashMap<>(); + for (int i = 0; i < metaDataSize; i++) { + String key = in.readString(); + StringValue value = in.readParcelable(StringValue.class.getClassLoader()); + this.metaData.put(key, value); + } + } + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/FacebookPost.java b/KalturaClient/src/main/java/com/kaltura/client/types/FacebookPost.java new file mode 100644 index 000000000..ac9b7147b --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/FacebookPost.java @@ -0,0 +1,143 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.ArrayList; +import java.util.List; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(FacebookPost.Tokenizer.class) +public class FacebookPost extends SocialNetworkComment { + + public interface Tokenizer extends SocialNetworkComment.Tokenizer { + RequestBuilder.ListTokenizer comments(); + String link(); + } + + /** + * List of comments on the post + */ + private List comments; + /** + * A link associated to the post + */ + private String link; + + // comments: + public List getComments(){ + return this.comments; + } + public void setComments(List comments){ + this.comments = comments; + } + + // link: + public String getLink(){ + return this.link; + } + public void setLink(String link){ + this.link = link; + } + + public void link(String multirequestToken){ + setToken("link", multirequestToken); + } + + + public FacebookPost() { + super(); + } + + public FacebookPost(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + comments = GsonParser.parseArray(jsonObject.getAsJsonArray("comments"), SocialNetworkComment.class); + link = GsonParser.parseString(jsonObject.get("link")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaFacebookPost"); + kparams.add("comments", this.comments); + kparams.add("link", this.link); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public FacebookPost createFromParcel(Parcel source) { + return new FacebookPost(source); + } + + @Override + public FacebookPost[] newArray(int size) { + return new FacebookPost[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + if(this.comments != null) { + dest.writeInt(this.comments.size()); + dest.writeList(this.comments); + } else { + dest.writeInt(-1); + } + dest.writeString(this.link); + } + + public FacebookPost(Parcel in) { + super(in); + int commentsSize = in.readInt(); + if( commentsSize > -1) { + this.comments = new ArrayList<>(); + in.readList(this.comments, SocialNetworkComment.class.getClassLoader()); + } + this.link = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/FacebookSocial.java b/KalturaClient/src/main/java/com/kaltura/client/types/FacebookSocial.java new file mode 100644 index 000000000..771f39516 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/FacebookSocial.java @@ -0,0 +1,82 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(FacebookSocial.Tokenizer.class) +public class FacebookSocial extends Social { + + public interface Tokenizer extends Social.Tokenizer { + } + + + + public FacebookSocial() { + super(); + } + + public FacebookSocial(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaFacebookSocial"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public FacebookSocial createFromParcel(Parcel source) { + return new FacebookSocial(source); + } + + @Override + public FacebookSocial[] newArray(int size) { + return new FacebookSocial[size]; + } + }; + + public FacebookSocial(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/FairPlayPlaybackPluginData.java b/KalturaClient/src/main/java/com/kaltura/client/types/FairPlayPlaybackPluginData.java new file mode 100644 index 000000000..9bb2ce917 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/FairPlayPlaybackPluginData.java @@ -0,0 +1,114 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(FairPlayPlaybackPluginData.Tokenizer.class) +public class FairPlayPlaybackPluginData extends DrmPlaybackPluginData { + + public interface Tokenizer extends DrmPlaybackPluginData.Tokenizer { + String certificate(); + } + + /** + * Custom data string + */ + private String certificate; + + // certificate: + public String getCertificate(){ + return this.certificate; + } + public void setCertificate(String certificate){ + this.certificate = certificate; + } + + public void certificate(String multirequestToken){ + setToken("certificate", multirequestToken); + } + + + public FairPlayPlaybackPluginData() { + super(); + } + + public FairPlayPlaybackPluginData(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + certificate = GsonParser.parseString(jsonObject.get("certificate")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaFairPlayPlaybackPluginData"); + kparams.add("certificate", this.certificate); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public FairPlayPlaybackPluginData createFromParcel(Parcel source) { + return new FairPlayPlaybackPluginData(source); + } + + @Override + public FairPlayPlaybackPluginData[] newArray(int size) { + return new FairPlayPlaybackPluginData[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.certificate); + } + + public FairPlayPlaybackPluginData(Parcel in) { + super(in); + this.certificate = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/Favorite.java b/KalturaClient/src/main/java/com/kaltura/client/types/Favorite.java new file mode 100644 index 000000000..b4de9eea8 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/Favorite.java @@ -0,0 +1,151 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Favorite details + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(Favorite.Tokenizer.class) +public class Favorite extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String assetId(); + String extraData(); + String createDate(); + } + + /** + * AssetInfo Model + */ + private Long assetId; + /** + * Extra Value + */ + private String extraData; + /** + * Specifies when was the favorite created. Date and time represented as epoch. + */ + private Long createDate; + + // assetId: + public Long getAssetId(){ + return this.assetId; + } + public void setAssetId(Long assetId){ + this.assetId = assetId; + } + + public void assetId(String multirequestToken){ + setToken("assetId", multirequestToken); + } + + // extraData: + public String getExtraData(){ + return this.extraData; + } + public void setExtraData(String extraData){ + this.extraData = extraData; + } + + public void extraData(String multirequestToken){ + setToken("extraData", multirequestToken); + } + + // createDate: + public Long getCreateDate(){ + return this.createDate; + } + + public Favorite() { + super(); + } + + public Favorite(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + assetId = GsonParser.parseLong(jsonObject.get("assetId")); + extraData = GsonParser.parseString(jsonObject.get("extraData")); + createDate = GsonParser.parseLong(jsonObject.get("createDate")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaFavorite"); + kparams.add("assetId", this.assetId); + kparams.add("extraData", this.extraData); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public Favorite createFromParcel(Parcel source) { + return new Favorite(source); + } + + @Override + public Favorite[] newArray(int size) { + return new Favorite[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.assetId); + dest.writeString(this.extraData); + dest.writeValue(this.createDate); + } + + public Favorite(Parcel in) { + super(in); + this.assetId = (Long)in.readValue(Long.class.getClassLoader()); + this.extraData = in.readString(); + this.createDate = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/FavoriteFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/FavoriteFilter.java new file mode 100644 index 000000000..e28fe4cd2 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/FavoriteFilter.java @@ -0,0 +1,160 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Favorite request filter + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(FavoriteFilter.Tokenizer.class) +public class FavoriteFilter extends Filter { + + public interface Tokenizer extends Filter.Tokenizer { + String mediaTypeEqual(); + String mediaIdIn(); + String udidEqualCurrent(); + } + + /** + * Media type to filter by the favorite assets + */ + private Integer mediaTypeEqual; + /** + * Media identifiers from which to filter the favorite assets + */ + private String mediaIdIn; + /** + * Indicates whether the results should be filtered by origin UDID using the + current + */ + private Boolean udidEqualCurrent; + + // mediaTypeEqual: + public Integer getMediaTypeEqual(){ + return this.mediaTypeEqual; + } + public void setMediaTypeEqual(Integer mediaTypeEqual){ + this.mediaTypeEqual = mediaTypeEqual; + } + + public void mediaTypeEqual(String multirequestToken){ + setToken("mediaTypeEqual", multirequestToken); + } + + // mediaIdIn: + public String getMediaIdIn(){ + return this.mediaIdIn; + } + public void setMediaIdIn(String mediaIdIn){ + this.mediaIdIn = mediaIdIn; + } + + public void mediaIdIn(String multirequestToken){ + setToken("mediaIdIn", multirequestToken); + } + + // udidEqualCurrent: + public Boolean getUdidEqualCurrent(){ + return this.udidEqualCurrent; + } + public void setUdidEqualCurrent(Boolean udidEqualCurrent){ + this.udidEqualCurrent = udidEqualCurrent; + } + + public void udidEqualCurrent(String multirequestToken){ + setToken("udidEqualCurrent", multirequestToken); + } + + + public FavoriteFilter() { + super(); + } + + public FavoriteFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + mediaTypeEqual = GsonParser.parseInt(jsonObject.get("mediaTypeEqual")); + mediaIdIn = GsonParser.parseString(jsonObject.get("mediaIdIn")); + udidEqualCurrent = GsonParser.parseBoolean(jsonObject.get("udidEqualCurrent")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaFavoriteFilter"); + kparams.add("mediaTypeEqual", this.mediaTypeEqual); + kparams.add("mediaIdIn", this.mediaIdIn); + kparams.add("udidEqualCurrent", this.udidEqualCurrent); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public FavoriteFilter createFromParcel(Parcel source) { + return new FavoriteFilter(source); + } + + @Override + public FavoriteFilter[] newArray(int size) { + return new FavoriteFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.mediaTypeEqual); + dest.writeString(this.mediaIdIn); + dest.writeValue(this.udidEqualCurrent); + } + + public FavoriteFilter(Parcel in) { + super(in); + this.mediaTypeEqual = (Integer)in.readValue(Integer.class.getClassLoader()); + this.mediaIdIn = in.readString(); + this.udidEqualCurrent = (Boolean)in.readValue(Boolean.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/Feed.java b/KalturaClient/src/main/java/com/kaltura/client/types/Feed.java new file mode 100644 index 000000000..7d7a5f73c --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/Feed.java @@ -0,0 +1,106 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(Feed.Tokenizer.class) +public class Feed extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String assetId(); + } + + /** + * Asset identifier + */ + private Long assetId; + + // assetId: + public Long getAssetId(){ + return this.assetId; + } + + public Feed() { + super(); + } + + public Feed(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + assetId = GsonParser.parseLong(jsonObject.get("assetId")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaFeed"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public Feed createFromParcel(Parcel source) { + return new Feed(source); + } + + @Override + public Feed[] newArray(int size) { + return new Feed[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.assetId); + } + + public Feed(Parcel in) { + super(in); + this.assetId = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/FileTypeCondition.java b/KalturaClient/src/main/java/com/kaltura/client/types/FileTypeCondition.java new file mode 100644 index 000000000..dbf34be90 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/FileTypeCondition.java @@ -0,0 +1,114 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(FileTypeCondition.Tokenizer.class) +public class FileTypeCondition extends Condition { + + public interface Tokenizer extends Condition.Tokenizer { + String idIn(); + } + + /** + * Comma separated filetype IDs list + */ + private String idIn; + + // idIn: + public String getIdIn(){ + return this.idIn; + } + public void setIdIn(String idIn){ + this.idIn = idIn; + } + + public void idIn(String multirequestToken){ + setToken("idIn", multirequestToken); + } + + + public FileTypeCondition() { + super(); + } + + public FileTypeCondition(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + idIn = GsonParser.parseString(jsonObject.get("idIn")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaFileTypeCondition"); + kparams.add("idIn", this.idIn); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public FileTypeCondition createFromParcel(Parcel source) { + return new FileTypeCondition(source); + } + + @Override + public FileTypeCondition[] newArray(int size) { + return new FileTypeCondition[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.idIn); + } + + public FileTypeCondition(Parcel in) { + super(in); + this.idIn = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/Filter.java b/KalturaClient/src/main/java/com/kaltura/client/types/Filter.java new file mode 100644 index 000000000..027c6765f --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/Filter.java @@ -0,0 +1,103 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(Filter.Tokenizer.class) +public abstract class Filter extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String orderBy(); + } + + /** + * order by + */ + private String orderBy; + + // orderBy: + public String getOrderBy(){ + return this.orderBy; + } + public void setOrderBy(String orderBy){ + this.orderBy = orderBy; + } + + public void orderBy(String multirequestToken){ + setToken("orderBy", multirequestToken); + } + + + public Filter() { + super(); + } + + public Filter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + orderBy = GsonParser.parseString(jsonObject.get("orderBy")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaFilter"); + kparams.add("orderBy", this.orderBy); + return kparams; + } + + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.orderBy); + } + + public Filter(Parcel in) { + super(in); + this.orderBy = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/FilterAction.java b/KalturaClient/src/main/java/com/kaltura/client/types/FilterAction.java new file mode 100644 index 000000000..17e3f6caf --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/FilterAction.java @@ -0,0 +1,99 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.BasePreActionCondition; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(FilterAction.Tokenizer.class) +public abstract class FilterAction extends AssetRuleAction { + + public interface Tokenizer extends AssetRuleAction.Tokenizer { + BasePreActionCondition.Tokenizer preActionCondition(); + } + + /** + * PreAction condition + */ + private BasePreActionCondition preActionCondition; + + // preActionCondition: + public BasePreActionCondition getPreActionCondition(){ + return this.preActionCondition; + } + public void setPreActionCondition(BasePreActionCondition preActionCondition){ + this.preActionCondition = preActionCondition; + } + + + public FilterAction() { + super(); + } + + public FilterAction(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + preActionCondition = GsonParser.parseObject(jsonObject.getAsJsonObject("preActionCondition"), BasePreActionCondition.class); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaFilterAction"); + kparams.add("preActionCondition", this.preActionCondition); + return kparams; + } + + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeParcelable(this.preActionCondition, flags); + } + + public FilterAction(Parcel in) { + super(in); + this.preActionCondition = in.readParcelable(BasePreActionCondition.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/FilterAssetByKsqlAction.java b/KalturaClient/src/main/java/com/kaltura/client/types/FilterAssetByKsqlAction.java new file mode 100644 index 000000000..6d651425d --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/FilterAssetByKsqlAction.java @@ -0,0 +1,114 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(FilterAssetByKsqlAction.Tokenizer.class) +public class FilterAssetByKsqlAction extends FilterAction { + + public interface Tokenizer extends FilterAction.Tokenizer { + String ksql(); + } + + /** + * ksql to filter assets by + */ + private String ksql; + + // ksql: + public String getKsql(){ + return this.ksql; + } + public void setKsql(String ksql){ + this.ksql = ksql; + } + + public void ksql(String multirequestToken){ + setToken("ksql", multirequestToken); + } + + + public FilterAssetByKsqlAction() { + super(); + } + + public FilterAssetByKsqlAction(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + ksql = GsonParser.parseString(jsonObject.get("ksql")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaFilterAssetByKsqlAction"); + kparams.add("ksql", this.ksql); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public FilterAssetByKsqlAction createFromParcel(Parcel source) { + return new FilterAssetByKsqlAction(source); + } + + @Override + public FilterAssetByKsqlAction[] newArray(int size) { + return new FilterAssetByKsqlAction[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.ksql); + } + + public FilterAssetByKsqlAction(Parcel in) { + super(in); + this.ksql = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByAudioCodecAction.java b/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByAudioCodecAction.java new file mode 100644 index 000000000..c4d8b6791 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByAudioCodecAction.java @@ -0,0 +1,105 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * FilterFile By AudioCodec + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(FilterFileByAudioCodecAction.Tokenizer.class) +public abstract class FilterFileByAudioCodecAction extends FilterAction { + + public interface Tokenizer extends FilterAction.Tokenizer { + String audioCodecIn(); + } + + /** + * List of comma separated audioCodecs + */ + private String audioCodecIn; + + // audioCodecIn: + public String getAudioCodecIn(){ + return this.audioCodecIn; + } + public void setAudioCodecIn(String audioCodecIn){ + this.audioCodecIn = audioCodecIn; + } + + public void audioCodecIn(String multirequestToken){ + setToken("audioCodecIn", multirequestToken); + } + + + public FilterFileByAudioCodecAction() { + super(); + } + + public FilterFileByAudioCodecAction(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + audioCodecIn = GsonParser.parseString(jsonObject.get("audioCodecIn")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaFilterFileByAudioCodecAction"); + kparams.add("audioCodecIn", this.audioCodecIn); + return kparams; + } + + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.audioCodecIn); + } + + public FilterFileByAudioCodecAction(Parcel in) { + super(in); + this.audioCodecIn = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByAudioCodecInDiscoveryAction.java b/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByAudioCodecInDiscoveryAction.java new file mode 100644 index 000000000..14ea43ff6 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByAudioCodecInDiscoveryAction.java @@ -0,0 +1,82 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(FilterFileByAudioCodecInDiscoveryAction.Tokenizer.class) +public class FilterFileByAudioCodecInDiscoveryAction extends FilterFileByAudioCodecAction { + + public interface Tokenizer extends FilterFileByAudioCodecAction.Tokenizer { + } + + + + public FilterFileByAudioCodecInDiscoveryAction() { + super(); + } + + public FilterFileByAudioCodecInDiscoveryAction(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaFilterFileByAudioCodecInDiscoveryAction"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public FilterFileByAudioCodecInDiscoveryAction createFromParcel(Parcel source) { + return new FilterFileByAudioCodecInDiscoveryAction(source); + } + + @Override + public FilterFileByAudioCodecInDiscoveryAction[] newArray(int size) { + return new FilterFileByAudioCodecInDiscoveryAction[size]; + } + }; + + public FilterFileByAudioCodecInDiscoveryAction(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByAudioCodecInPlaybackAction.java b/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByAudioCodecInPlaybackAction.java new file mode 100644 index 000000000..e7347fc52 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByAudioCodecInPlaybackAction.java @@ -0,0 +1,82 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(FilterFileByAudioCodecInPlaybackAction.Tokenizer.class) +public class FilterFileByAudioCodecInPlaybackAction extends FilterFileByAudioCodecAction { + + public interface Tokenizer extends FilterFileByAudioCodecAction.Tokenizer { + } + + + + public FilterFileByAudioCodecInPlaybackAction() { + super(); + } + + public FilterFileByAudioCodecInPlaybackAction(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaFilterFileByAudioCodecInPlaybackAction"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public FilterFileByAudioCodecInPlaybackAction createFromParcel(Parcel source) { + return new FilterFileByAudioCodecInPlaybackAction(source); + } + + @Override + public FilterFileByAudioCodecInPlaybackAction[] newArray(int size) { + return new FilterFileByAudioCodecInPlaybackAction[size]; + } + }; + + public FilterFileByAudioCodecInPlaybackAction(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByDynamicDataAction.java b/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByDynamicDataAction.java new file mode 100644 index 000000000..5bc28bb76 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByDynamicDataAction.java @@ -0,0 +1,126 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Filter File By Dynamic Data + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(FilterFileByDynamicDataAction.Tokenizer.class) +public abstract class FilterFileByDynamicDataAction extends FilterAction { + + public interface Tokenizer extends FilterAction.Tokenizer { + String key(); + String values(); + } + + /** + * Key to be searched + */ + private String key; + /** + * Comma separated values to be searched + */ + private String values; + + // key: + public String getKey(){ + return this.key; + } + public void setKey(String key){ + this.key = key; + } + + public void key(String multirequestToken){ + setToken("key", multirequestToken); + } + + // values: + public String getValues(){ + return this.values; + } + public void setValues(String values){ + this.values = values; + } + + public void values(String multirequestToken){ + setToken("values", multirequestToken); + } + + + public FilterFileByDynamicDataAction() { + super(); + } + + public FilterFileByDynamicDataAction(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + key = GsonParser.parseString(jsonObject.get("key")); + values = GsonParser.parseString(jsonObject.get("values")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaFilterFileByDynamicDataAction"); + kparams.add("key", this.key); + kparams.add("values", this.values); + return kparams; + } + + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.key); + dest.writeString(this.values); + } + + public FilterFileByDynamicDataAction(Parcel in) { + super(in); + this.key = in.readString(); + this.values = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByDynamicDataInDiscoveryAction.java b/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByDynamicDataInDiscoveryAction.java new file mode 100644 index 000000000..476b1b7f0 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByDynamicDataInDiscoveryAction.java @@ -0,0 +1,82 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(FilterFileByDynamicDataInDiscoveryAction.Tokenizer.class) +public class FilterFileByDynamicDataInDiscoveryAction extends FilterFileByDynamicDataAction { + + public interface Tokenizer extends FilterFileByDynamicDataAction.Tokenizer { + } + + + + public FilterFileByDynamicDataInDiscoveryAction() { + super(); + } + + public FilterFileByDynamicDataInDiscoveryAction(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaFilterFileByDynamicDataInDiscoveryAction"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public FilterFileByDynamicDataInDiscoveryAction createFromParcel(Parcel source) { + return new FilterFileByDynamicDataInDiscoveryAction(source); + } + + @Override + public FilterFileByDynamicDataInDiscoveryAction[] newArray(int size) { + return new FilterFileByDynamicDataInDiscoveryAction[size]; + } + }; + + public FilterFileByDynamicDataInDiscoveryAction(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByDynamicDataInPlaybackAction.java b/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByDynamicDataInPlaybackAction.java new file mode 100644 index 000000000..4c98c6af6 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByDynamicDataInPlaybackAction.java @@ -0,0 +1,82 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(FilterFileByDynamicDataInPlaybackAction.Tokenizer.class) +public class FilterFileByDynamicDataInPlaybackAction extends FilterFileByDynamicDataAction { + + public interface Tokenizer extends FilterFileByDynamicDataAction.Tokenizer { + } + + + + public FilterFileByDynamicDataInPlaybackAction() { + super(); + } + + public FilterFileByDynamicDataInPlaybackAction(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaFilterFileByDynamicDataInPlaybackAction"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public FilterFileByDynamicDataInPlaybackAction createFromParcel(Parcel source) { + return new FilterFileByDynamicDataInPlaybackAction(source); + } + + @Override + public FilterFileByDynamicDataInPlaybackAction[] newArray(int size) { + return new FilterFileByDynamicDataInPlaybackAction[size]; + } + }; + + public FilterFileByDynamicDataInPlaybackAction(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByFileTypeIdAction.java b/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByFileTypeIdAction.java new file mode 100644 index 000000000..40f271ca3 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByFileTypeIdAction.java @@ -0,0 +1,105 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * FilterFile By FileType + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(FilterFileByFileTypeIdAction.Tokenizer.class) +public abstract class FilterFileByFileTypeIdAction extends FilterAction { + + public interface Tokenizer extends FilterAction.Tokenizer { + String fileTypeIdIn(); + } + + /** + * List of comma separated fileTypesIds + */ + private String fileTypeIdIn; + + // fileTypeIdIn: + public String getFileTypeIdIn(){ + return this.fileTypeIdIn; + } + public void setFileTypeIdIn(String fileTypeIdIn){ + this.fileTypeIdIn = fileTypeIdIn; + } + + public void fileTypeIdIn(String multirequestToken){ + setToken("fileTypeIdIn", multirequestToken); + } + + + public FilterFileByFileTypeIdAction() { + super(); + } + + public FilterFileByFileTypeIdAction(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + fileTypeIdIn = GsonParser.parseString(jsonObject.get("fileTypeIdIn")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaFilterFileByFileTypeIdAction"); + kparams.add("fileTypeIdIn", this.fileTypeIdIn); + return kparams; + } + + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.fileTypeIdIn); + } + + public FilterFileByFileTypeIdAction(Parcel in) { + super(in); + this.fileTypeIdIn = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByFileTypeIdForAssetTypeAction.java b/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByFileTypeIdForAssetTypeAction.java new file mode 100644 index 000000000..6194566f8 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByFileTypeIdForAssetTypeAction.java @@ -0,0 +1,105 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Filter file By FileType For AssetType + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(FilterFileByFileTypeIdForAssetTypeAction.Tokenizer.class) +public abstract class FilterFileByFileTypeIdForAssetTypeAction extends FilterFileByFileTypeIdAction { + + public interface Tokenizer extends FilterFileByFileTypeIdAction.Tokenizer { + String assetTypeIn(); + } + + /** + * List of comma separated assetTypes + */ + private String assetTypeIn; + + // assetTypeIn: + public String getAssetTypeIn(){ + return this.assetTypeIn; + } + public void setAssetTypeIn(String assetTypeIn){ + this.assetTypeIn = assetTypeIn; + } + + public void assetTypeIn(String multirequestToken){ + setToken("assetTypeIn", multirequestToken); + } + + + public FilterFileByFileTypeIdForAssetTypeAction() { + super(); + } + + public FilterFileByFileTypeIdForAssetTypeAction(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + assetTypeIn = GsonParser.parseString(jsonObject.get("assetTypeIn")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaFilterFileByFileTypeIdForAssetTypeAction"); + kparams.add("assetTypeIn", this.assetTypeIn); + return kparams; + } + + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.assetTypeIn); + } + + public FilterFileByFileTypeIdForAssetTypeAction(Parcel in) { + super(in); + this.assetTypeIn = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByFileTypeIdForAssetTypeInDiscoveryAction.java b/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByFileTypeIdForAssetTypeInDiscoveryAction.java new file mode 100644 index 000000000..d50f1e41f --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByFileTypeIdForAssetTypeInDiscoveryAction.java @@ -0,0 +1,82 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(FilterFileByFileTypeIdForAssetTypeInDiscoveryAction.Tokenizer.class) +public class FilterFileByFileTypeIdForAssetTypeInDiscoveryAction extends FilterFileByFileTypeIdForAssetTypeAction { + + public interface Tokenizer extends FilterFileByFileTypeIdForAssetTypeAction.Tokenizer { + } + + + + public FilterFileByFileTypeIdForAssetTypeInDiscoveryAction() { + super(); + } + + public FilterFileByFileTypeIdForAssetTypeInDiscoveryAction(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaFilterFileByFileTypeIdForAssetTypeInDiscoveryAction"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public FilterFileByFileTypeIdForAssetTypeInDiscoveryAction createFromParcel(Parcel source) { + return new FilterFileByFileTypeIdForAssetTypeInDiscoveryAction(source); + } + + @Override + public FilterFileByFileTypeIdForAssetTypeInDiscoveryAction[] newArray(int size) { + return new FilterFileByFileTypeIdForAssetTypeInDiscoveryAction[size]; + } + }; + + public FilterFileByFileTypeIdForAssetTypeInDiscoveryAction(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByFileTypeIdForAssetTypeInPlaybackAction.java b/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByFileTypeIdForAssetTypeInPlaybackAction.java new file mode 100644 index 000000000..b8f4af1f8 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByFileTypeIdForAssetTypeInPlaybackAction.java @@ -0,0 +1,82 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(FilterFileByFileTypeIdForAssetTypeInPlaybackAction.Tokenizer.class) +public class FilterFileByFileTypeIdForAssetTypeInPlaybackAction extends FilterFileByFileTypeIdForAssetTypeAction { + + public interface Tokenizer extends FilterFileByFileTypeIdForAssetTypeAction.Tokenizer { + } + + + + public FilterFileByFileTypeIdForAssetTypeInPlaybackAction() { + super(); + } + + public FilterFileByFileTypeIdForAssetTypeInPlaybackAction(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaFilterFileByFileTypeIdForAssetTypeInPlaybackAction"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public FilterFileByFileTypeIdForAssetTypeInPlaybackAction createFromParcel(Parcel source) { + return new FilterFileByFileTypeIdForAssetTypeInPlaybackAction(source); + } + + @Override + public FilterFileByFileTypeIdForAssetTypeInPlaybackAction[] newArray(int size) { + return new FilterFileByFileTypeIdForAssetTypeInPlaybackAction[size]; + } + }; + + public FilterFileByFileTypeIdForAssetTypeInPlaybackAction(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByFileTypeIdInDiscoveryAction.java b/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByFileTypeIdInDiscoveryAction.java new file mode 100644 index 000000000..edcdc6e24 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByFileTypeIdInDiscoveryAction.java @@ -0,0 +1,82 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(FilterFileByFileTypeIdInDiscoveryAction.Tokenizer.class) +public class FilterFileByFileTypeIdInDiscoveryAction extends FilterFileByFileTypeIdAction { + + public interface Tokenizer extends FilterFileByFileTypeIdAction.Tokenizer { + } + + + + public FilterFileByFileTypeIdInDiscoveryAction() { + super(); + } + + public FilterFileByFileTypeIdInDiscoveryAction(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaFilterFileByFileTypeIdInDiscoveryAction"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public FilterFileByFileTypeIdInDiscoveryAction createFromParcel(Parcel source) { + return new FilterFileByFileTypeIdInDiscoveryAction(source); + } + + @Override + public FilterFileByFileTypeIdInDiscoveryAction[] newArray(int size) { + return new FilterFileByFileTypeIdInDiscoveryAction[size]; + } + }; + + public FilterFileByFileTypeIdInDiscoveryAction(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByFileTypeIdInPlaybackAction.java b/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByFileTypeIdInPlaybackAction.java new file mode 100644 index 000000000..7710f99ff --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByFileTypeIdInPlaybackAction.java @@ -0,0 +1,82 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(FilterFileByFileTypeIdInPlaybackAction.Tokenizer.class) +public class FilterFileByFileTypeIdInPlaybackAction extends FilterFileByFileTypeIdAction { + + public interface Tokenizer extends FilterFileByFileTypeIdAction.Tokenizer { + } + + + + public FilterFileByFileTypeIdInPlaybackAction() { + super(); + } + + public FilterFileByFileTypeIdInPlaybackAction(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaFilterFileByFileTypeIdInPlaybackAction"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public FilterFileByFileTypeIdInPlaybackAction createFromParcel(Parcel source) { + return new FilterFileByFileTypeIdInPlaybackAction(source); + } + + @Override + public FilterFileByFileTypeIdInPlaybackAction[] newArray(int size) { + return new FilterFileByFileTypeIdInPlaybackAction[size]; + } + }; + + public FilterFileByFileTypeIdInPlaybackAction(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByLabelAction.java b/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByLabelAction.java new file mode 100644 index 000000000..baa3e1e08 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByLabelAction.java @@ -0,0 +1,105 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * FilterFile By Label + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(FilterFileByLabelAction.Tokenizer.class) +public abstract class FilterFileByLabelAction extends FilterAction { + + public interface Tokenizer extends FilterAction.Tokenizer { + String labelIn(); + } + + /** + * List of comma separated labels + */ + private String labelIn; + + // labelIn: + public String getLabelIn(){ + return this.labelIn; + } + public void setLabelIn(String labelIn){ + this.labelIn = labelIn; + } + + public void labelIn(String multirequestToken){ + setToken("labelIn", multirequestToken); + } + + + public FilterFileByLabelAction() { + super(); + } + + public FilterFileByLabelAction(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + labelIn = GsonParser.parseString(jsonObject.get("labelIn")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaFilterFileByLabelAction"); + kparams.add("labelIn", this.labelIn); + return kparams; + } + + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.labelIn); + } + + public FilterFileByLabelAction(Parcel in) { + super(in); + this.labelIn = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByLabelInDiscoveryAction.java b/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByLabelInDiscoveryAction.java new file mode 100644 index 000000000..646abbc5f --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByLabelInDiscoveryAction.java @@ -0,0 +1,82 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(FilterFileByLabelInDiscoveryAction.Tokenizer.class) +public class FilterFileByLabelInDiscoveryAction extends FilterFileByLabelAction { + + public interface Tokenizer extends FilterFileByLabelAction.Tokenizer { + } + + + + public FilterFileByLabelInDiscoveryAction() { + super(); + } + + public FilterFileByLabelInDiscoveryAction(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaFilterFileByLabelInDiscoveryAction"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public FilterFileByLabelInDiscoveryAction createFromParcel(Parcel source) { + return new FilterFileByLabelInDiscoveryAction(source); + } + + @Override + public FilterFileByLabelInDiscoveryAction[] newArray(int size) { + return new FilterFileByLabelInDiscoveryAction[size]; + } + }; + + public FilterFileByLabelInDiscoveryAction(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByLabelInPlaybackAction.java b/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByLabelInPlaybackAction.java new file mode 100644 index 000000000..875c948f2 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByLabelInPlaybackAction.java @@ -0,0 +1,82 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(FilterFileByLabelInPlaybackAction.Tokenizer.class) +public class FilterFileByLabelInPlaybackAction extends FilterFileByLabelAction { + + public interface Tokenizer extends FilterFileByLabelAction.Tokenizer { + } + + + + public FilterFileByLabelInPlaybackAction() { + super(); + } + + public FilterFileByLabelInPlaybackAction(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaFilterFileByLabelInPlaybackAction"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public FilterFileByLabelInPlaybackAction createFromParcel(Parcel source) { + return new FilterFileByLabelInPlaybackAction(source); + } + + @Override + public FilterFileByLabelInPlaybackAction[] newArray(int size) { + return new FilterFileByLabelInPlaybackAction[size]; + } + }; + + public FilterFileByLabelInPlaybackAction(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByQualityAction.java b/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByQualityAction.java new file mode 100644 index 000000000..46aef2f74 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByQualityAction.java @@ -0,0 +1,105 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Filter Files By their Quality + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(FilterFileByQualityAction.Tokenizer.class) +public abstract class FilterFileByQualityAction extends FilterAction { + + public interface Tokenizer extends FilterAction.Tokenizer { + String qualityIn(); + } + + /** + * List of comma separated qualities + */ + private String qualityIn; + + // qualityIn: + public String getQualityIn(){ + return this.qualityIn; + } + public void setQualityIn(String qualityIn){ + this.qualityIn = qualityIn; + } + + public void qualityIn(String multirequestToken){ + setToken("qualityIn", multirequestToken); + } + + + public FilterFileByQualityAction() { + super(); + } + + public FilterFileByQualityAction(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + qualityIn = GsonParser.parseString(jsonObject.get("qualityIn")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaFilterFileByQualityAction"); + kparams.add("qualityIn", this.qualityIn); + return kparams; + } + + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.qualityIn); + } + + public FilterFileByQualityAction(Parcel in) { + super(in); + this.qualityIn = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByQualityInDiscoveryAction.java b/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByQualityInDiscoveryAction.java new file mode 100644 index 000000000..c80994a98 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByQualityInDiscoveryAction.java @@ -0,0 +1,82 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(FilterFileByQualityInDiscoveryAction.Tokenizer.class) +public class FilterFileByQualityInDiscoveryAction extends FilterFileByQualityAction { + + public interface Tokenizer extends FilterFileByQualityAction.Tokenizer { + } + + + + public FilterFileByQualityInDiscoveryAction() { + super(); + } + + public FilterFileByQualityInDiscoveryAction(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaFilterFileByQualityInDiscoveryAction"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public FilterFileByQualityInDiscoveryAction createFromParcel(Parcel source) { + return new FilterFileByQualityInDiscoveryAction(source); + } + + @Override + public FilterFileByQualityInDiscoveryAction[] newArray(int size) { + return new FilterFileByQualityInDiscoveryAction[size]; + } + }; + + public FilterFileByQualityInDiscoveryAction(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByQualityInPlaybackAction.java b/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByQualityInPlaybackAction.java new file mode 100644 index 000000000..065d53273 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByQualityInPlaybackAction.java @@ -0,0 +1,82 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(FilterFileByQualityInPlaybackAction.Tokenizer.class) +public class FilterFileByQualityInPlaybackAction extends FilterFileByQualityAction { + + public interface Tokenizer extends FilterFileByQualityAction.Tokenizer { + } + + + + public FilterFileByQualityInPlaybackAction() { + super(); + } + + public FilterFileByQualityInPlaybackAction(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaFilterFileByQualityInPlaybackAction"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public FilterFileByQualityInPlaybackAction createFromParcel(Parcel source) { + return new FilterFileByQualityInPlaybackAction(source); + } + + @Override + public FilterFileByQualityInPlaybackAction[] newArray(int size) { + return new FilterFileByQualityInPlaybackAction[size]; + } + }; + + public FilterFileByQualityInPlaybackAction(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByStreamerTypeAction.java b/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByStreamerTypeAction.java new file mode 100644 index 000000000..676f2dd43 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByStreamerTypeAction.java @@ -0,0 +1,105 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * FilterFile By StreamerType + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(FilterFileByStreamerTypeAction.Tokenizer.class) +public abstract class FilterFileByStreamerTypeAction extends FilterAction { + + public interface Tokenizer extends FilterAction.Tokenizer { + String streamerTypeIn(); + } + + /** + * List of comma separated streamerTypes + */ + private String streamerTypeIn; + + // streamerTypeIn: + public String getStreamerTypeIn(){ + return this.streamerTypeIn; + } + public void setStreamerTypeIn(String streamerTypeIn){ + this.streamerTypeIn = streamerTypeIn; + } + + public void streamerTypeIn(String multirequestToken){ + setToken("streamerTypeIn", multirequestToken); + } + + + public FilterFileByStreamerTypeAction() { + super(); + } + + public FilterFileByStreamerTypeAction(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + streamerTypeIn = GsonParser.parseString(jsonObject.get("streamerTypeIn")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaFilterFileByStreamerTypeAction"); + kparams.add("streamerTypeIn", this.streamerTypeIn); + return kparams; + } + + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.streamerTypeIn); + } + + public FilterFileByStreamerTypeAction(Parcel in) { + super(in); + this.streamerTypeIn = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByStreamerTypeInDiscovery.java b/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByStreamerTypeInDiscovery.java new file mode 100644 index 000000000..8db84eb8d --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByStreamerTypeInDiscovery.java @@ -0,0 +1,82 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(FilterFileByStreamerTypeInDiscovery.Tokenizer.class) +public class FilterFileByStreamerTypeInDiscovery extends FilterFileByStreamerTypeAction { + + public interface Tokenizer extends FilterFileByStreamerTypeAction.Tokenizer { + } + + + + public FilterFileByStreamerTypeInDiscovery() { + super(); + } + + public FilterFileByStreamerTypeInDiscovery(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaFilterFileByStreamerTypeInDiscovery"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public FilterFileByStreamerTypeInDiscovery createFromParcel(Parcel source) { + return new FilterFileByStreamerTypeInDiscovery(source); + } + + @Override + public FilterFileByStreamerTypeInDiscovery[] newArray(int size) { + return new FilterFileByStreamerTypeInDiscovery[size]; + } + }; + + public FilterFileByStreamerTypeInDiscovery(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByStreamerTypeInPlayback.java b/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByStreamerTypeInPlayback.java new file mode 100644 index 000000000..43f3c1dcb --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByStreamerTypeInPlayback.java @@ -0,0 +1,82 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(FilterFileByStreamerTypeInPlayback.Tokenizer.class) +public class FilterFileByStreamerTypeInPlayback extends FilterFileByStreamerTypeAction { + + public interface Tokenizer extends FilterFileByStreamerTypeAction.Tokenizer { + } + + + + public FilterFileByStreamerTypeInPlayback() { + super(); + } + + public FilterFileByStreamerTypeInPlayback(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaFilterFileByStreamerTypeInPlayback"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public FilterFileByStreamerTypeInPlayback createFromParcel(Parcel source) { + return new FilterFileByStreamerTypeInPlayback(source); + } + + @Override + public FilterFileByStreamerTypeInPlayback[] newArray(int size) { + return new FilterFileByStreamerTypeInPlayback[size]; + } + }; + + public FilterFileByStreamerTypeInPlayback(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByVideoCodecAction.java b/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByVideoCodecAction.java new file mode 100644 index 000000000..35238a686 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByVideoCodecAction.java @@ -0,0 +1,105 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * FilterFile By VideoCode + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(FilterFileByVideoCodecAction.Tokenizer.class) +public abstract class FilterFileByVideoCodecAction extends FilterAction { + + public interface Tokenizer extends FilterAction.Tokenizer { + String videoCodecIn(); + } + + /** + * List of comma separated videoCodecs + */ + private String videoCodecIn; + + // videoCodecIn: + public String getVideoCodecIn(){ + return this.videoCodecIn; + } + public void setVideoCodecIn(String videoCodecIn){ + this.videoCodecIn = videoCodecIn; + } + + public void videoCodecIn(String multirequestToken){ + setToken("videoCodecIn", multirequestToken); + } + + + public FilterFileByVideoCodecAction() { + super(); + } + + public FilterFileByVideoCodecAction(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + videoCodecIn = GsonParser.parseString(jsonObject.get("videoCodecIn")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaFilterFileByVideoCodecAction"); + kparams.add("videoCodecIn", this.videoCodecIn); + return kparams; + } + + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.videoCodecIn); + } + + public FilterFileByVideoCodecAction(Parcel in) { + super(in); + this.videoCodecIn = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByVideoCodecInDiscoveryAction.java b/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByVideoCodecInDiscoveryAction.java new file mode 100644 index 000000000..9eb565e7c --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByVideoCodecInDiscoveryAction.java @@ -0,0 +1,82 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(FilterFileByVideoCodecInDiscoveryAction.Tokenizer.class) +public class FilterFileByVideoCodecInDiscoveryAction extends FilterFileByVideoCodecAction { + + public interface Tokenizer extends FilterFileByVideoCodecAction.Tokenizer { + } + + + + public FilterFileByVideoCodecInDiscoveryAction() { + super(); + } + + public FilterFileByVideoCodecInDiscoveryAction(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaFilterFileByVideoCodecInDiscoveryAction"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public FilterFileByVideoCodecInDiscoveryAction createFromParcel(Parcel source) { + return new FilterFileByVideoCodecInDiscoveryAction(source); + } + + @Override + public FilterFileByVideoCodecInDiscoveryAction[] newArray(int size) { + return new FilterFileByVideoCodecInDiscoveryAction[size]; + } + }; + + public FilterFileByVideoCodecInDiscoveryAction(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByVideoCodecInPlayback.java b/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByVideoCodecInPlayback.java new file mode 100644 index 000000000..75065a793 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/FilterFileByVideoCodecInPlayback.java @@ -0,0 +1,82 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(FilterFileByVideoCodecInPlayback.Tokenizer.class) +public class FilterFileByVideoCodecInPlayback extends FilterFileByVideoCodecAction { + + public interface Tokenizer extends FilterFileByVideoCodecAction.Tokenizer { + } + + + + public FilterFileByVideoCodecInPlayback() { + super(); + } + + public FilterFileByVideoCodecInPlayback(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaFilterFileByVideoCodecInPlayback"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public FilterFileByVideoCodecInPlayback createFromParcel(Parcel source) { + return new FilterFileByVideoCodecInPlayback(source); + } + + @Override + public FilterFileByVideoCodecInPlayback[] newArray(int size) { + return new FilterFileByVideoCodecInPlayback[size]; + } + }; + + public FilterFileByVideoCodecInPlayback(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/FilterPager.java b/KalturaClient/src/main/java/com/kaltura/client/types/FilterPager.java new file mode 100644 index 000000000..fd0808ec7 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/FilterPager.java @@ -0,0 +1,142 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * The KalturaFilterPager object enables paging management to be applied upon + service list actions + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(FilterPager.Tokenizer.class) +public class FilterPager extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String pageSize(); + String pageIndex(); + } + + /** + * The number of objects to retrieve. Possible range 1 ≤ value ≤ 50. If omitted + or value &lt; 1 - will be set to 25. If a value &gt; 50 provided – + will be set to 50 + */ + private Integer pageSize; + /** + * The page number for which {pageSize} of objects should be retrieved + */ + private Integer pageIndex; + + // pageSize: + public Integer getPageSize(){ + return this.pageSize; + } + public void setPageSize(Integer pageSize){ + this.pageSize = pageSize; + } + + public void pageSize(String multirequestToken){ + setToken("pageSize", multirequestToken); + } + + // pageIndex: + public Integer getPageIndex(){ + return this.pageIndex; + } + public void setPageIndex(Integer pageIndex){ + this.pageIndex = pageIndex; + } + + public void pageIndex(String multirequestToken){ + setToken("pageIndex", multirequestToken); + } + + + public FilterPager() { + super(); + } + + public FilterPager(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + pageSize = GsonParser.parseInt(jsonObject.get("pageSize")); + pageIndex = GsonParser.parseInt(jsonObject.get("pageIndex")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaFilterPager"); + kparams.add("pageSize", this.pageSize); + kparams.add("pageIndex", this.pageIndex); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public FilterPager createFromParcel(Parcel source) { + return new FilterPager(source); + } + + @Override + public FilterPager[] newArray(int size) { + return new FilterPager[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.pageSize); + dest.writeValue(this.pageIndex); + } + + public FilterPager(Parcel in) { + super(in); + this.pageSize = (Integer)in.readValue(Integer.class.getClassLoader()); + this.pageIndex = (Integer)in.readValue(Integer.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/FollowDataBase.java b/KalturaClient/src/main/java/com/kaltura/client/types/FollowDataBase.java new file mode 100644 index 000000000..30b3f10c7 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/FollowDataBase.java @@ -0,0 +1,142 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(FollowDataBase.Tokenizer.class) +public abstract class FollowDataBase extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String announcementId(); + String status(); + String title(); + String timestamp(); + String followPhrase(); + } + + /** + * Announcement Id + */ + private Long announcementId; + /** + * Status + */ + private Integer status; + /** + * Title + */ + private String title; + /** + * Timestamp + */ + private Long timestamp; + /** + * Follow Phrase + */ + private String followPhrase; + + // announcementId: + public Long getAnnouncementId(){ + return this.announcementId; + } + // status: + public Integer getStatus(){ + return this.status; + } + // title: + public String getTitle(){ + return this.title; + } + // timestamp: + public Long getTimestamp(){ + return this.timestamp; + } + // followPhrase: + public String getFollowPhrase(){ + return this.followPhrase; + } + + public FollowDataBase() { + super(); + } + + public FollowDataBase(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + announcementId = GsonParser.parseLong(jsonObject.get("announcementId")); + status = GsonParser.parseInt(jsonObject.get("status")); + title = GsonParser.parseString(jsonObject.get("title")); + timestamp = GsonParser.parseLong(jsonObject.get("timestamp")); + followPhrase = GsonParser.parseString(jsonObject.get("followPhrase")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaFollowDataBase"); + return kparams; + } + + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.announcementId); + dest.writeValue(this.status); + dest.writeString(this.title); + dest.writeValue(this.timestamp); + dest.writeString(this.followPhrase); + } + + public FollowDataBase(Parcel in) { + super(in); + this.announcementId = (Long)in.readValue(Long.class.getClassLoader()); + this.status = (Integer)in.readValue(Integer.class.getClassLoader()); + this.title = in.readString(); + this.timestamp = (Long)in.readValue(Long.class.getClassLoader()); + this.followPhrase = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/FollowTvSeries.java b/KalturaClient/src/main/java/com/kaltura/client/types/FollowTvSeries.java new file mode 100644 index 000000000..fbaa893d9 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/FollowTvSeries.java @@ -0,0 +1,114 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(FollowTvSeries.Tokenizer.class) +public class FollowTvSeries extends FollowDataBase { + + public interface Tokenizer extends FollowDataBase.Tokenizer { + String assetId(); + } + + /** + * Asset Id + */ + private Integer assetId; + + // assetId: + public Integer getAssetId(){ + return this.assetId; + } + public void setAssetId(Integer assetId){ + this.assetId = assetId; + } + + public void assetId(String multirequestToken){ + setToken("assetId", multirequestToken); + } + + + public FollowTvSeries() { + super(); + } + + public FollowTvSeries(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + assetId = GsonParser.parseInt(jsonObject.get("assetId")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaFollowTvSeries"); + kparams.add("assetId", this.assetId); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public FollowTvSeries createFromParcel(Parcel source) { + return new FollowTvSeries(source); + } + + @Override + public FollowTvSeries[] newArray(int size) { + return new FollowTvSeries[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.assetId); + } + + public FollowTvSeries(Parcel in) { + super(in); + this.assetId = (Integer)in.readValue(Integer.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/FollowTvSeriesFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/FollowTvSeriesFilter.java new file mode 100644 index 000000000..2fff57796 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/FollowTvSeriesFilter.java @@ -0,0 +1,82 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(FollowTvSeriesFilter.Tokenizer.class) +public class FollowTvSeriesFilter extends Filter { + + public interface Tokenizer extends Filter.Tokenizer { + } + + + + public FollowTvSeriesFilter() { + super(); + } + + public FollowTvSeriesFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaFollowTvSeriesFilter"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public FollowTvSeriesFilter createFromParcel(Parcel source) { + return new FollowTvSeriesFilter(source); + } + + @Override + public FollowTvSeriesFilter[] newArray(int size) { + return new FollowTvSeriesFilter[size]; + } + }; + + public FollowTvSeriesFilter(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/GeneralPartnerConfig.java b/KalturaClient/src/main/java/com/kaltura/client/types/GeneralPartnerConfig.java new file mode 100644 index 000000000..4e0ccbc51 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/GeneralPartnerConfig.java @@ -0,0 +1,499 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.DeleteMediaPolicy; +import com.kaltura.client.enums.DowngradePolicy; +import com.kaltura.client.enums.SuspensionProfileInheritanceType; +import com.kaltura.client.types.RollingDeviceRemovalData; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Partner General configuration + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(GeneralPartnerConfig.Tokenizer.class) +public class GeneralPartnerConfig extends PartnerConfiguration { + + public interface Tokenizer extends PartnerConfiguration.Tokenizer { + String partnerName(); + String mainLanguage(); + String secondaryLanguages(); + String deleteMediaPolicy(); + String mainCurrency(); + String secondaryCurrencies(); + String downgradePolicy(); + String downgradePriorityFamilyIds(); + String mailSettings(); + String dateFormat(); + String householdLimitationModule(); + String enableRegionFiltering(); + String defaultRegion(); + RollingDeviceRemovalData.Tokenizer rollingDeviceData(); + String linearWatchHistoryThreshold(); + String finishedPercentThreshold(); + String suspensionProfileInheritanceType(); + String allowDeviceMobility(); + String enableMultiLcns(); + } + + /** + * Partner name + */ + private String partnerName; + /** + * Main metadata language + */ + private Integer mainLanguage; + /** + * A list of comma separated languages ids. + */ + private String secondaryLanguages; + /** + * Delete media policy + */ + private DeleteMediaPolicy deleteMediaPolicy; + /** + * Main currency + */ + private Integer mainCurrency; + /** + * A list of comma separated currency ids. + */ + private String secondaryCurrencies; + /** + * Downgrade policy + */ + private DowngradePolicy downgradePolicy; + /** + * Priority Family Ids to remove devices on downgrade (first in the list first to + remove) + */ + private String downgradePriorityFamilyIds; + /** + * Mail settings + */ + private String mailSettings; + /** + * Default Date Format for Email notifications (default should be: DD Month YYYY) + */ + private String dateFormat; + /** + * Household limitation&#160;module + */ + private Integer householdLimitationModule; + /** + * Enable Region Filtering + */ + private Boolean enableRegionFiltering; + /** + * Default Region + */ + private Integer defaultRegion; + /** + * Rolling Device Policy + */ + private RollingDeviceRemovalData rollingDeviceData; + /** + * minimum bookmark position of a linear channel to be included in a watch history + */ + private Integer linearWatchHistoryThreshold; + /** + * Finished PercentThreshold + */ + private Integer finishedPercentThreshold; + /** + * Suspension Profile Inheritance + */ + private SuspensionProfileInheritanceType suspensionProfileInheritanceType; + /** + * Allow Device Mobility + */ + private Boolean allowDeviceMobility; + /** + * Enable multi LCNs per linear channel + */ + private Boolean enableMultiLcns; + + // partnerName: + public String getPartnerName(){ + return this.partnerName; + } + public void setPartnerName(String partnerName){ + this.partnerName = partnerName; + } + + public void partnerName(String multirequestToken){ + setToken("partnerName", multirequestToken); + } + + // mainLanguage: + public Integer getMainLanguage(){ + return this.mainLanguage; + } + public void setMainLanguage(Integer mainLanguage){ + this.mainLanguage = mainLanguage; + } + + public void mainLanguage(String multirequestToken){ + setToken("mainLanguage", multirequestToken); + } + + // secondaryLanguages: + public String getSecondaryLanguages(){ + return this.secondaryLanguages; + } + public void setSecondaryLanguages(String secondaryLanguages){ + this.secondaryLanguages = secondaryLanguages; + } + + public void secondaryLanguages(String multirequestToken){ + setToken("secondaryLanguages", multirequestToken); + } + + // deleteMediaPolicy: + public DeleteMediaPolicy getDeleteMediaPolicy(){ + return this.deleteMediaPolicy; + } + public void setDeleteMediaPolicy(DeleteMediaPolicy deleteMediaPolicy){ + this.deleteMediaPolicy = deleteMediaPolicy; + } + + public void deleteMediaPolicy(String multirequestToken){ + setToken("deleteMediaPolicy", multirequestToken); + } + + // mainCurrency: + public Integer getMainCurrency(){ + return this.mainCurrency; + } + public void setMainCurrency(Integer mainCurrency){ + this.mainCurrency = mainCurrency; + } + + public void mainCurrency(String multirequestToken){ + setToken("mainCurrency", multirequestToken); + } + + // secondaryCurrencies: + public String getSecondaryCurrencies(){ + return this.secondaryCurrencies; + } + public void setSecondaryCurrencies(String secondaryCurrencies){ + this.secondaryCurrencies = secondaryCurrencies; + } + + public void secondaryCurrencies(String multirequestToken){ + setToken("secondaryCurrencies", multirequestToken); + } + + // downgradePolicy: + public DowngradePolicy getDowngradePolicy(){ + return this.downgradePolicy; + } + public void setDowngradePolicy(DowngradePolicy downgradePolicy){ + this.downgradePolicy = downgradePolicy; + } + + public void downgradePolicy(String multirequestToken){ + setToken("downgradePolicy", multirequestToken); + } + + // downgradePriorityFamilyIds: + public String getDowngradePriorityFamilyIds(){ + return this.downgradePriorityFamilyIds; + } + public void setDowngradePriorityFamilyIds(String downgradePriorityFamilyIds){ + this.downgradePriorityFamilyIds = downgradePriorityFamilyIds; + } + + public void downgradePriorityFamilyIds(String multirequestToken){ + setToken("downgradePriorityFamilyIds", multirequestToken); + } + + // mailSettings: + public String getMailSettings(){ + return this.mailSettings; + } + public void setMailSettings(String mailSettings){ + this.mailSettings = mailSettings; + } + + public void mailSettings(String multirequestToken){ + setToken("mailSettings", multirequestToken); + } + + // dateFormat: + public String getDateFormat(){ + return this.dateFormat; + } + public void setDateFormat(String dateFormat){ + this.dateFormat = dateFormat; + } + + public void dateFormat(String multirequestToken){ + setToken("dateFormat", multirequestToken); + } + + // householdLimitationModule: + public Integer getHouseholdLimitationModule(){ + return this.householdLimitationModule; + } + public void setHouseholdLimitationModule(Integer householdLimitationModule){ + this.householdLimitationModule = householdLimitationModule; + } + + public void householdLimitationModule(String multirequestToken){ + setToken("householdLimitationModule", multirequestToken); + } + + // enableRegionFiltering: + public Boolean getEnableRegionFiltering(){ + return this.enableRegionFiltering; + } + public void setEnableRegionFiltering(Boolean enableRegionFiltering){ + this.enableRegionFiltering = enableRegionFiltering; + } + + public void enableRegionFiltering(String multirequestToken){ + setToken("enableRegionFiltering", multirequestToken); + } + + // defaultRegion: + public Integer getDefaultRegion(){ + return this.defaultRegion; + } + public void setDefaultRegion(Integer defaultRegion){ + this.defaultRegion = defaultRegion; + } + + public void defaultRegion(String multirequestToken){ + setToken("defaultRegion", multirequestToken); + } + + // rollingDeviceData: + public RollingDeviceRemovalData getRollingDeviceData(){ + return this.rollingDeviceData; + } + public void setRollingDeviceData(RollingDeviceRemovalData rollingDeviceData){ + this.rollingDeviceData = rollingDeviceData; + } + + // linearWatchHistoryThreshold: + public Integer getLinearWatchHistoryThreshold(){ + return this.linearWatchHistoryThreshold; + } + public void setLinearWatchHistoryThreshold(Integer linearWatchHistoryThreshold){ + this.linearWatchHistoryThreshold = linearWatchHistoryThreshold; + } + + public void linearWatchHistoryThreshold(String multirequestToken){ + setToken("linearWatchHistoryThreshold", multirequestToken); + } + + // finishedPercentThreshold: + public Integer getFinishedPercentThreshold(){ + return this.finishedPercentThreshold; + } + public void setFinishedPercentThreshold(Integer finishedPercentThreshold){ + this.finishedPercentThreshold = finishedPercentThreshold; + } + + public void finishedPercentThreshold(String multirequestToken){ + setToken("finishedPercentThreshold", multirequestToken); + } + + // suspensionProfileInheritanceType: + public SuspensionProfileInheritanceType getSuspensionProfileInheritanceType(){ + return this.suspensionProfileInheritanceType; + } + public void setSuspensionProfileInheritanceType(SuspensionProfileInheritanceType suspensionProfileInheritanceType){ + this.suspensionProfileInheritanceType = suspensionProfileInheritanceType; + } + + public void suspensionProfileInheritanceType(String multirequestToken){ + setToken("suspensionProfileInheritanceType", multirequestToken); + } + + // allowDeviceMobility: + public Boolean getAllowDeviceMobility(){ + return this.allowDeviceMobility; + } + public void setAllowDeviceMobility(Boolean allowDeviceMobility){ + this.allowDeviceMobility = allowDeviceMobility; + } + + public void allowDeviceMobility(String multirequestToken){ + setToken("allowDeviceMobility", multirequestToken); + } + + // enableMultiLcns: + public Boolean getEnableMultiLcns(){ + return this.enableMultiLcns; + } + public void setEnableMultiLcns(Boolean enableMultiLcns){ + this.enableMultiLcns = enableMultiLcns; + } + + public void enableMultiLcns(String multirequestToken){ + setToken("enableMultiLcns", multirequestToken); + } + + + public GeneralPartnerConfig() { + super(); + } + + public GeneralPartnerConfig(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + partnerName = GsonParser.parseString(jsonObject.get("partnerName")); + mainLanguage = GsonParser.parseInt(jsonObject.get("mainLanguage")); + secondaryLanguages = GsonParser.parseString(jsonObject.get("secondaryLanguages")); + deleteMediaPolicy = DeleteMediaPolicy.get(GsonParser.parseString(jsonObject.get("deleteMediaPolicy"))); + mainCurrency = GsonParser.parseInt(jsonObject.get("mainCurrency")); + secondaryCurrencies = GsonParser.parseString(jsonObject.get("secondaryCurrencies")); + downgradePolicy = DowngradePolicy.get(GsonParser.parseString(jsonObject.get("downgradePolicy"))); + downgradePriorityFamilyIds = GsonParser.parseString(jsonObject.get("downgradePriorityFamilyIds")); + mailSettings = GsonParser.parseString(jsonObject.get("mailSettings")); + dateFormat = GsonParser.parseString(jsonObject.get("dateFormat")); + householdLimitationModule = GsonParser.parseInt(jsonObject.get("householdLimitationModule")); + enableRegionFiltering = GsonParser.parseBoolean(jsonObject.get("enableRegionFiltering")); + defaultRegion = GsonParser.parseInt(jsonObject.get("defaultRegion")); + rollingDeviceData = GsonParser.parseObject(jsonObject.getAsJsonObject("rollingDeviceData"), RollingDeviceRemovalData.class); + linearWatchHistoryThreshold = GsonParser.parseInt(jsonObject.get("linearWatchHistoryThreshold")); + finishedPercentThreshold = GsonParser.parseInt(jsonObject.get("finishedPercentThreshold")); + suspensionProfileInheritanceType = SuspensionProfileInheritanceType.get(GsonParser.parseString(jsonObject.get("suspensionProfileInheritanceType"))); + allowDeviceMobility = GsonParser.parseBoolean(jsonObject.get("allowDeviceMobility")); + enableMultiLcns = GsonParser.parseBoolean(jsonObject.get("enableMultiLcns")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaGeneralPartnerConfig"); + kparams.add("partnerName", this.partnerName); + kparams.add("mainLanguage", this.mainLanguage); + kparams.add("secondaryLanguages", this.secondaryLanguages); + kparams.add("deleteMediaPolicy", this.deleteMediaPolicy); + kparams.add("mainCurrency", this.mainCurrency); + kparams.add("secondaryCurrencies", this.secondaryCurrencies); + kparams.add("downgradePolicy", this.downgradePolicy); + kparams.add("downgradePriorityFamilyIds", this.downgradePriorityFamilyIds); + kparams.add("mailSettings", this.mailSettings); + kparams.add("dateFormat", this.dateFormat); + kparams.add("householdLimitationModule", this.householdLimitationModule); + kparams.add("enableRegionFiltering", this.enableRegionFiltering); + kparams.add("defaultRegion", this.defaultRegion); + kparams.add("rollingDeviceData", this.rollingDeviceData); + kparams.add("linearWatchHistoryThreshold", this.linearWatchHistoryThreshold); + kparams.add("finishedPercentThreshold", this.finishedPercentThreshold); + kparams.add("suspensionProfileInheritanceType", this.suspensionProfileInheritanceType); + kparams.add("allowDeviceMobility", this.allowDeviceMobility); + kparams.add("enableMultiLcns", this.enableMultiLcns); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public GeneralPartnerConfig createFromParcel(Parcel source) { + return new GeneralPartnerConfig(source); + } + + @Override + public GeneralPartnerConfig[] newArray(int size) { + return new GeneralPartnerConfig[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.partnerName); + dest.writeValue(this.mainLanguage); + dest.writeString(this.secondaryLanguages); + dest.writeInt(this.deleteMediaPolicy == null ? -1 : this.deleteMediaPolicy.ordinal()); + dest.writeValue(this.mainCurrency); + dest.writeString(this.secondaryCurrencies); + dest.writeInt(this.downgradePolicy == null ? -1 : this.downgradePolicy.ordinal()); + dest.writeString(this.downgradePriorityFamilyIds); + dest.writeString(this.mailSettings); + dest.writeString(this.dateFormat); + dest.writeValue(this.householdLimitationModule); + dest.writeValue(this.enableRegionFiltering); + dest.writeValue(this.defaultRegion); + dest.writeParcelable(this.rollingDeviceData, flags); + dest.writeValue(this.linearWatchHistoryThreshold); + dest.writeValue(this.finishedPercentThreshold); + dest.writeInt(this.suspensionProfileInheritanceType == null ? -1 : this.suspensionProfileInheritanceType.ordinal()); + dest.writeValue(this.allowDeviceMobility); + dest.writeValue(this.enableMultiLcns); + } + + public GeneralPartnerConfig(Parcel in) { + super(in); + this.partnerName = in.readString(); + this.mainLanguage = (Integer)in.readValue(Integer.class.getClassLoader()); + this.secondaryLanguages = in.readString(); + int tmpDeleteMediaPolicy = in.readInt(); + this.deleteMediaPolicy = tmpDeleteMediaPolicy == -1 ? null : DeleteMediaPolicy.values()[tmpDeleteMediaPolicy]; + this.mainCurrency = (Integer)in.readValue(Integer.class.getClassLoader()); + this.secondaryCurrencies = in.readString(); + int tmpDowngradePolicy = in.readInt(); + this.downgradePolicy = tmpDowngradePolicy == -1 ? null : DowngradePolicy.values()[tmpDowngradePolicy]; + this.downgradePriorityFamilyIds = in.readString(); + this.mailSettings = in.readString(); + this.dateFormat = in.readString(); + this.householdLimitationModule = (Integer)in.readValue(Integer.class.getClassLoader()); + this.enableRegionFiltering = (Boolean)in.readValue(Boolean.class.getClassLoader()); + this.defaultRegion = (Integer)in.readValue(Integer.class.getClassLoader()); + this.rollingDeviceData = in.readParcelable(RollingDeviceRemovalData.class.getClassLoader()); + this.linearWatchHistoryThreshold = (Integer)in.readValue(Integer.class.getClassLoader()); + this.finishedPercentThreshold = (Integer)in.readValue(Integer.class.getClassLoader()); + int tmpSuspensionProfileInheritanceType = in.readInt(); + this.suspensionProfileInheritanceType = tmpSuspensionProfileInheritanceType == -1 ? null : SuspensionProfileInheritanceType.values()[tmpSuspensionProfileInheritanceType]; + this.allowDeviceMobility = (Boolean)in.readValue(Boolean.class.getClassLoader()); + this.enableMultiLcns = (Boolean)in.readValue(Boolean.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/GroupPermission.java b/KalturaClient/src/main/java/com/kaltura/client/types/GroupPermission.java new file mode 100644 index 000000000..5653324ec --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/GroupPermission.java @@ -0,0 +1,105 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(GroupPermission.Tokenizer.class) +public class GroupPermission extends Permission { + + public interface Tokenizer extends Permission.Tokenizer { + String group(); + } + + /** + * Permission identifier + */ + private String group; + + // group: + public String getGroup(){ + return this.group; + } + + public GroupPermission() { + super(); + } + + public GroupPermission(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + group = GsonParser.parseString(jsonObject.get("group")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaGroupPermission"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public GroupPermission createFromParcel(Parcel source) { + return new GroupPermission(source); + } + + @Override + public GroupPermission[] newArray(int size) { + return new GroupPermission[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.group); + } + + public GroupPermission(Parcel in) { + super(in); + this.group = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/HeaderCondition.java b/KalturaClient/src/main/java/com/kaltura/client/types/HeaderCondition.java new file mode 100644 index 000000000..6bb2f6f34 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/HeaderCondition.java @@ -0,0 +1,138 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Header condition + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(HeaderCondition.Tokenizer.class) +public class HeaderCondition extends NotCondition { + + public interface Tokenizer extends NotCondition.Tokenizer { + String key(); + String value(); + } + + /** + * Header key + */ + private String key; + /** + * Header value + */ + private String value; + + // key: + public String getKey(){ + return this.key; + } + public void setKey(String key){ + this.key = key; + } + + public void key(String multirequestToken){ + setToken("key", multirequestToken); + } + + // value: + public String getValue(){ + return this.value; + } + public void setValue(String value){ + this.value = value; + } + + public void value(String multirequestToken){ + setToken("value", multirequestToken); + } + + + public HeaderCondition() { + super(); + } + + public HeaderCondition(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + key = GsonParser.parseString(jsonObject.get("key")); + value = GsonParser.parseString(jsonObject.get("value")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaHeaderCondition"); + kparams.add("key", this.key); + kparams.add("value", this.value); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public HeaderCondition createFromParcel(Parcel source) { + return new HeaderCondition(source); + } + + @Override + public HeaderCondition[] newArray(int size) { + return new HeaderCondition[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.key); + dest.writeString(this.value); + } + + public HeaderCondition(Parcel in) { + super(in); + this.key = in.readString(); + this.value = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/HomeNetwork.java b/KalturaClient/src/main/java/com/kaltura/client/types/HomeNetwork.java new file mode 100644 index 000000000..8a2916448 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/HomeNetwork.java @@ -0,0 +1,181 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Home network details + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(HomeNetwork.Tokenizer.class) +public class HomeNetwork extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String externalId(); + String name(); + String description(); + String isActive(); + } + + /** + * Home network identifier + */ + private String externalId; + /** + * Home network name + */ + private String name; + /** + * Home network description + */ + private String description; + /** + * Is home network is active + */ + private Boolean isActive; + + // externalId: + public String getExternalId(){ + return this.externalId; + } + public void setExternalId(String externalId){ + this.externalId = externalId; + } + + public void externalId(String multirequestToken){ + setToken("externalId", multirequestToken); + } + + // name: + public String getName(){ + return this.name; + } + public void setName(String name){ + this.name = name; + } + + public void name(String multirequestToken){ + setToken("name", multirequestToken); + } + + // description: + public String getDescription(){ + return this.description; + } + public void setDescription(String description){ + this.description = description; + } + + public void description(String multirequestToken){ + setToken("description", multirequestToken); + } + + // isActive: + public Boolean getIsActive(){ + return this.isActive; + } + public void setIsActive(Boolean isActive){ + this.isActive = isActive; + } + + public void isActive(String multirequestToken){ + setToken("isActive", multirequestToken); + } + + + public HomeNetwork() { + super(); + } + + public HomeNetwork(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + externalId = GsonParser.parseString(jsonObject.get("externalId")); + name = GsonParser.parseString(jsonObject.get("name")); + description = GsonParser.parseString(jsonObject.get("description")); + isActive = GsonParser.parseBoolean(jsonObject.get("isActive")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaHomeNetwork"); + kparams.add("externalId", this.externalId); + kparams.add("name", this.name); + kparams.add("description", this.description); + kparams.add("isActive", this.isActive); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public HomeNetwork createFromParcel(Parcel source) { + return new HomeNetwork(source); + } + + @Override + public HomeNetwork[] newArray(int size) { + return new HomeNetwork[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.externalId); + dest.writeString(this.name); + dest.writeString(this.description); + dest.writeValue(this.isActive); + } + + public HomeNetwork(Parcel in) { + super(in); + this.externalId = in.readString(); + this.name = in.readString(); + this.description = in.readString(); + this.isActive = (Boolean)in.readValue(Boolean.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/Household.java b/KalturaClient/src/main/java/com/kaltura/client/types/Household.java new file mode 100644 index 000000000..1c6084fbf --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/Household.java @@ -0,0 +1,341 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.HouseholdRestriction; +import com.kaltura.client.enums.HouseholdState; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Household details + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(Household.Tokenizer.class) +public class Household extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String id(); + String name(); + String description(); + String externalId(); + String householdLimitationsId(); + String devicesLimit(); + String usersLimit(); + String concurrentLimit(); + String regionId(); + String state(); + String isFrequencyEnabled(); + String frequencyNextDeviceAction(); + String frequencyNextUserAction(); + String restriction(); + String roleId(); + String createDate(); + String updateDate(); + } + + /** + * Household identifier + */ + private Long id; + /** + * Household name + */ + private String name; + /** + * Household description + */ + private String description; + /** + * Household external identifier + */ + private String externalId; + /** + * Household limitation module identifier + */ + private Integer householdLimitationsId; + /** + * The max number of the devices that can be added to the household + */ + private Integer devicesLimit; + /** + * The max number of the users that can be added to the household + */ + private Integer usersLimit; + /** + * The max number of concurrent streams in the household + */ + private Integer concurrentLimit; + /** + * The households region identifier + */ + private Integer regionId; + /** + * Household state + */ + private HouseholdState state; + /** + * Is household frequency enabled + */ + private Boolean isFrequencyEnabled; + /** + * The next time a device is allowed to be removed from the household (epoch) + */ + private Long frequencyNextDeviceAction; + /** + * The next time a user is allowed to be removed from the household (epoch) + */ + private Long frequencyNextUserAction; + /** + * Household restriction + */ + private HouseholdRestriction restriction; + /** + * suspended roleId + */ + private Integer roleId; + /** + * create date + */ + private Long createDate; + /** + * update date + */ + private Long updateDate; + + // id: + public Long getId(){ + return this.id; + } + // name: + public String getName(){ + return this.name; + } + public void setName(String name){ + this.name = name; + } + + public void name(String multirequestToken){ + setToken("name", multirequestToken); + } + + // description: + public String getDescription(){ + return this.description; + } + public void setDescription(String description){ + this.description = description; + } + + public void description(String multirequestToken){ + setToken("description", multirequestToken); + } + + // externalId: + public String getExternalId(){ + return this.externalId; + } + public void setExternalId(String externalId){ + this.externalId = externalId; + } + + public void externalId(String multirequestToken){ + setToken("externalId", multirequestToken); + } + + // householdLimitationsId: + public Integer getHouseholdLimitationsId(){ + return this.householdLimitationsId; + } + // devicesLimit: + public Integer getDevicesLimit(){ + return this.devicesLimit; + } + // usersLimit: + public Integer getUsersLimit(){ + return this.usersLimit; + } + // concurrentLimit: + public Integer getConcurrentLimit(){ + return this.concurrentLimit; + } + // regionId: + public Integer getRegionId(){ + return this.regionId; + } + public void setRegionId(Integer regionId){ + this.regionId = regionId; + } + + public void regionId(String multirequestToken){ + setToken("regionId", multirequestToken); + } + + // state: + public HouseholdState getState(){ + return this.state; + } + // isFrequencyEnabled: + public Boolean getIsFrequencyEnabled(){ + return this.isFrequencyEnabled; + } + // frequencyNextDeviceAction: + public Long getFrequencyNextDeviceAction(){ + return this.frequencyNextDeviceAction; + } + // frequencyNextUserAction: + public Long getFrequencyNextUserAction(){ + return this.frequencyNextUserAction; + } + // restriction: + public HouseholdRestriction getRestriction(){ + return this.restriction; + } + // roleId: + public Integer getRoleId(){ + return this.roleId; + } + // createDate: + public Long getCreateDate(){ + return this.createDate; + } + // updateDate: + public Long getUpdateDate(){ + return this.updateDate; + } + + public Household() { + super(); + } + + public Household(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + id = GsonParser.parseLong(jsonObject.get("id")); + name = GsonParser.parseString(jsonObject.get("name")); + description = GsonParser.parseString(jsonObject.get("description")); + externalId = GsonParser.parseString(jsonObject.get("externalId")); + householdLimitationsId = GsonParser.parseInt(jsonObject.get("householdLimitationsId")); + devicesLimit = GsonParser.parseInt(jsonObject.get("devicesLimit")); + usersLimit = GsonParser.parseInt(jsonObject.get("usersLimit")); + concurrentLimit = GsonParser.parseInt(jsonObject.get("concurrentLimit")); + regionId = GsonParser.parseInt(jsonObject.get("regionId")); + state = HouseholdState.get(GsonParser.parseString(jsonObject.get("state"))); + isFrequencyEnabled = GsonParser.parseBoolean(jsonObject.get("isFrequencyEnabled")); + frequencyNextDeviceAction = GsonParser.parseLong(jsonObject.get("frequencyNextDeviceAction")); + frequencyNextUserAction = GsonParser.parseLong(jsonObject.get("frequencyNextUserAction")); + restriction = HouseholdRestriction.get(GsonParser.parseString(jsonObject.get("restriction"))); + roleId = GsonParser.parseInt(jsonObject.get("roleId")); + createDate = GsonParser.parseLong(jsonObject.get("createDate")); + updateDate = GsonParser.parseLong(jsonObject.get("updateDate")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaHousehold"); + kparams.add("name", this.name); + kparams.add("description", this.description); + kparams.add("externalId", this.externalId); + kparams.add("regionId", this.regionId); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public Household createFromParcel(Parcel source) { + return new Household(source); + } + + @Override + public Household[] newArray(int size) { + return new Household[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.id); + dest.writeString(this.name); + dest.writeString(this.description); + dest.writeString(this.externalId); + dest.writeValue(this.householdLimitationsId); + dest.writeValue(this.devicesLimit); + dest.writeValue(this.usersLimit); + dest.writeValue(this.concurrentLimit); + dest.writeValue(this.regionId); + dest.writeInt(this.state == null ? -1 : this.state.ordinal()); + dest.writeValue(this.isFrequencyEnabled); + dest.writeValue(this.frequencyNextDeviceAction); + dest.writeValue(this.frequencyNextUserAction); + dest.writeInt(this.restriction == null ? -1 : this.restriction.ordinal()); + dest.writeValue(this.roleId); + dest.writeValue(this.createDate); + dest.writeValue(this.updateDate); + } + + public Household(Parcel in) { + super(in); + this.id = (Long)in.readValue(Long.class.getClassLoader()); + this.name = in.readString(); + this.description = in.readString(); + this.externalId = in.readString(); + this.householdLimitationsId = (Integer)in.readValue(Integer.class.getClassLoader()); + this.devicesLimit = (Integer)in.readValue(Integer.class.getClassLoader()); + this.usersLimit = (Integer)in.readValue(Integer.class.getClassLoader()); + this.concurrentLimit = (Integer)in.readValue(Integer.class.getClassLoader()); + this.regionId = (Integer)in.readValue(Integer.class.getClassLoader()); + int tmpState = in.readInt(); + this.state = tmpState == -1 ? null : HouseholdState.values()[tmpState]; + this.isFrequencyEnabled = (Boolean)in.readValue(Boolean.class.getClassLoader()); + this.frequencyNextDeviceAction = (Long)in.readValue(Long.class.getClassLoader()); + this.frequencyNextUserAction = (Long)in.readValue(Long.class.getClassLoader()); + int tmpRestriction = in.readInt(); + this.restriction = tmpRestriction == -1 ? null : HouseholdRestriction.values()[tmpRestriction]; + this.roleId = (Integer)in.readValue(Integer.class.getClassLoader()); + this.createDate = (Long)in.readValue(Long.class.getClassLoader()); + this.updateDate = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/HouseholdCoupon.java b/KalturaClient/src/main/java/com/kaltura/client/types/HouseholdCoupon.java new file mode 100644 index 000000000..488dfe451 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/HouseholdCoupon.java @@ -0,0 +1,138 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Household Coupon details + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(HouseholdCoupon.Tokenizer.class) +public class HouseholdCoupon extends OTTObjectSupportNullable { + + public interface Tokenizer extends OTTObjectSupportNullable.Tokenizer { + String code(); + String lastUsageDate(); + } + + /** + * Coupon code + */ + private String code; + /** + * Last Usage Date + */ + private Long lastUsageDate; + + // code: + public String getCode(){ + return this.code; + } + public void setCode(String code){ + this.code = code; + } + + public void code(String multirequestToken){ + setToken("code", multirequestToken); + } + + // lastUsageDate: + public Long getLastUsageDate(){ + return this.lastUsageDate; + } + public void setLastUsageDate(Long lastUsageDate){ + this.lastUsageDate = lastUsageDate; + } + + public void lastUsageDate(String multirequestToken){ + setToken("lastUsageDate", multirequestToken); + } + + + public HouseholdCoupon() { + super(); + } + + public HouseholdCoupon(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + code = GsonParser.parseString(jsonObject.get("code")); + lastUsageDate = GsonParser.parseLong(jsonObject.get("lastUsageDate")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaHouseholdCoupon"); + kparams.add("code", this.code); + kparams.add("lastUsageDate", this.lastUsageDate); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public HouseholdCoupon createFromParcel(Parcel source) { + return new HouseholdCoupon(source); + } + + @Override + public HouseholdCoupon[] newArray(int size) { + return new HouseholdCoupon[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.code); + dest.writeValue(this.lastUsageDate); + } + + public HouseholdCoupon(Parcel in) { + super(in); + this.code = in.readString(); + this.lastUsageDate = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/HouseholdCouponCodeFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/HouseholdCouponCodeFilter.java new file mode 100644 index 000000000..f06e0eae6 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/HouseholdCouponCodeFilter.java @@ -0,0 +1,85 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Kaltura Houseold CouponCode Filter + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(HouseholdCouponCodeFilter.Tokenizer.class) +public class HouseholdCouponCodeFilter extends RelatedObjectFilter { + + public interface Tokenizer extends RelatedObjectFilter.Tokenizer { + } + + + + public HouseholdCouponCodeFilter() { + super(); + } + + public HouseholdCouponCodeFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaHouseholdCouponCodeFilter"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public HouseholdCouponCodeFilter createFromParcel(Parcel source) { + return new HouseholdCouponCodeFilter(source); + } + + @Override + public HouseholdCouponCodeFilter[] newArray(int size) { + return new HouseholdCouponCodeFilter[size]; + } + }; + + public HouseholdCouponCodeFilter(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/HouseholdCouponFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/HouseholdCouponFilter.java new file mode 100644 index 000000000..840d9c235 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/HouseholdCouponFilter.java @@ -0,0 +1,181 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.CouponStatus; +import com.kaltura.client.enums.TransactionType; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(HouseholdCouponFilter.Tokenizer.class) +public class HouseholdCouponFilter extends Filter { + + public interface Tokenizer extends Filter.Tokenizer { + String businessModuleTypeEqual(); + String businessModuleIdEqual(); + String couponCode(); + String status(); + } + + /** + * Indicates which household coupons list to return by their business module type. + */ + private TransactionType businessModuleTypeEqual; + /** + * Indicates which household coupons list to return by their business module ID. + */ + private Long businessModuleIdEqual; + /** + * Allow clients to inquiry if a specific coupon is part of an HH’s wallet or not + */ + private String couponCode; + /** + * Allow clients to filter out coupons which are valid/invalid + */ + private CouponStatus status; + + // businessModuleTypeEqual: + public TransactionType getBusinessModuleTypeEqual(){ + return this.businessModuleTypeEqual; + } + public void setBusinessModuleTypeEqual(TransactionType businessModuleTypeEqual){ + this.businessModuleTypeEqual = businessModuleTypeEqual; + } + + public void businessModuleTypeEqual(String multirequestToken){ + setToken("businessModuleTypeEqual", multirequestToken); + } + + // businessModuleIdEqual: + public Long getBusinessModuleIdEqual(){ + return this.businessModuleIdEqual; + } + public void setBusinessModuleIdEqual(Long businessModuleIdEqual){ + this.businessModuleIdEqual = businessModuleIdEqual; + } + + public void businessModuleIdEqual(String multirequestToken){ + setToken("businessModuleIdEqual", multirequestToken); + } + + // couponCode: + public String getCouponCode(){ + return this.couponCode; + } + public void setCouponCode(String couponCode){ + this.couponCode = couponCode; + } + + public void couponCode(String multirequestToken){ + setToken("couponCode", multirequestToken); + } + + // status: + public CouponStatus getStatus(){ + return this.status; + } + public void setStatus(CouponStatus status){ + this.status = status; + } + + public void status(String multirequestToken){ + setToken("status", multirequestToken); + } + + + public HouseholdCouponFilter() { + super(); + } + + public HouseholdCouponFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + businessModuleTypeEqual = TransactionType.get(GsonParser.parseString(jsonObject.get("businessModuleTypeEqual"))); + businessModuleIdEqual = GsonParser.parseLong(jsonObject.get("businessModuleIdEqual")); + couponCode = GsonParser.parseString(jsonObject.get("couponCode")); + status = CouponStatus.get(GsonParser.parseString(jsonObject.get("status"))); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaHouseholdCouponFilter"); + kparams.add("businessModuleTypeEqual", this.businessModuleTypeEqual); + kparams.add("businessModuleIdEqual", this.businessModuleIdEqual); + kparams.add("couponCode", this.couponCode); + kparams.add("status", this.status); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public HouseholdCouponFilter createFromParcel(Parcel source) { + return new HouseholdCouponFilter(source); + } + + @Override + public HouseholdCouponFilter[] newArray(int size) { + return new HouseholdCouponFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeInt(this.businessModuleTypeEqual == null ? -1 : this.businessModuleTypeEqual.ordinal()); + dest.writeValue(this.businessModuleIdEqual); + dest.writeString(this.couponCode); + dest.writeInt(this.status == null ? -1 : this.status.ordinal()); + } + + public HouseholdCouponFilter(Parcel in) { + super(in); + int tmpBusinessModuleTypeEqual = in.readInt(); + this.businessModuleTypeEqual = tmpBusinessModuleTypeEqual == -1 ? null : TransactionType.values()[tmpBusinessModuleTypeEqual]; + this.businessModuleIdEqual = (Long)in.readValue(Long.class.getClassLoader()); + this.couponCode = in.readString(); + int tmpStatus = in.readInt(); + this.status = tmpStatus == -1 ? null : CouponStatus.values()[tmpStatus]; + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/HouseholdDevice.java b/KalturaClient/src/main/java/com/kaltura/client/types/HouseholdDevice.java new file mode 100644 index 000000000..b6ffabf68 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/HouseholdDevice.java @@ -0,0 +1,384 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.DeviceStatus; +import com.kaltura.client.types.CustomDrmPlaybackPluginData; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.HashMap; +import java.util.Map; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Device details + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(HouseholdDevice.Tokenizer.class) +public class HouseholdDevice extends OTTObjectSupportNullable { + + public interface Tokenizer extends OTTObjectSupportNullable.Tokenizer { + String householdId(); + String udid(); + String name(); + String brandId(); + String activatedOn(); + String status(); + String deviceFamilyId(); + CustomDrmPlaybackPluginData.Tokenizer drm(); + String externalId(); + String macAddress(); + RequestBuilder.MapTokenizer dynamicData(); + String model(); + String manufacturer(); + String manufacturerId(); + String lastActivityTime(); + } + + /** + * Household identifier + */ + private Integer householdId; + /** + * Device UDID + */ + private String udid; + /** + * Device name + */ + private String name; + /** + * Device brand identifier + */ + private Integer brandId; + /** + * Device activation date (epoch) + */ + private Long activatedOn; + /** + * Device state + */ + private DeviceStatus status; + /** + * Device family id + */ + private Long deviceFamilyId; + /** + * Device DRM data + */ + private CustomDrmPlaybackPluginData drm; + /** + * external Id + */ + private String externalId; + /** + * mac address + */ + private String macAddress; + /** + * Dynamic data + */ + private Map dynamicData; + /** + * model + */ + private String model; + /** + * manufacturer + */ + private String manufacturer; + /** + * manufacturer Id, read only + */ + private Long manufacturerId; + /** + * Last Activity Time, read only + */ + private Long lastActivityTime; + + // householdId: + public Integer getHouseholdId(){ + return this.householdId; + } + public void setHouseholdId(Integer householdId){ + this.householdId = householdId; + } + + public void householdId(String multirequestToken){ + setToken("householdId", multirequestToken); + } + + // udid: + public String getUdid(){ + return this.udid; + } + public void setUdid(String udid){ + this.udid = udid; + } + + public void udid(String multirequestToken){ + setToken("udid", multirequestToken); + } + + // name: + public String getName(){ + return this.name; + } + public void setName(String name){ + this.name = name; + } + + public void name(String multirequestToken){ + setToken("name", multirequestToken); + } + + // brandId: + public Integer getBrandId(){ + return this.brandId; + } + public void setBrandId(Integer brandId){ + this.brandId = brandId; + } + + public void brandId(String multirequestToken){ + setToken("brandId", multirequestToken); + } + + // activatedOn: + public Long getActivatedOn(){ + return this.activatedOn; + } + public void setActivatedOn(Long activatedOn){ + this.activatedOn = activatedOn; + } + + public void activatedOn(String multirequestToken){ + setToken("activatedOn", multirequestToken); + } + + // status: + public DeviceStatus getStatus(){ + return this.status; + } + // deviceFamilyId: + public Long getDeviceFamilyId(){ + return this.deviceFamilyId; + } + // drm: + public CustomDrmPlaybackPluginData getDrm(){ + return this.drm; + } + // externalId: + public String getExternalId(){ + return this.externalId; + } + public void setExternalId(String externalId){ + this.externalId = externalId; + } + + public void externalId(String multirequestToken){ + setToken("externalId", multirequestToken); + } + + // macAddress: + public String getMacAddress(){ + return this.macAddress; + } + public void setMacAddress(String macAddress){ + this.macAddress = macAddress; + } + + public void macAddress(String multirequestToken){ + setToken("macAddress", multirequestToken); + } + + // dynamicData: + public Map getDynamicData(){ + return this.dynamicData; + } + public void setDynamicData(Map dynamicData){ + this.dynamicData = dynamicData; + } + + // model: + public String getModel(){ + return this.model; + } + public void setModel(String model){ + this.model = model; + } + + public void model(String multirequestToken){ + setToken("model", multirequestToken); + } + + // manufacturer: + public String getManufacturer(){ + return this.manufacturer; + } + public void setManufacturer(String manufacturer){ + this.manufacturer = manufacturer; + } + + public void manufacturer(String multirequestToken){ + setToken("manufacturer", multirequestToken); + } + + // manufacturerId: + public Long getManufacturerId(){ + return this.manufacturerId; + } + // lastActivityTime: + public Long getLastActivityTime(){ + return this.lastActivityTime; + } + + public HouseholdDevice() { + super(); + } + + public HouseholdDevice(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + householdId = GsonParser.parseInt(jsonObject.get("householdId")); + udid = GsonParser.parseString(jsonObject.get("udid")); + name = GsonParser.parseString(jsonObject.get("name")); + brandId = GsonParser.parseInt(jsonObject.get("brandId")); + activatedOn = GsonParser.parseLong(jsonObject.get("activatedOn")); + status = DeviceStatus.get(GsonParser.parseString(jsonObject.get("status"))); + deviceFamilyId = GsonParser.parseLong(jsonObject.get("deviceFamilyId")); + drm = GsonParser.parseObject(jsonObject.getAsJsonObject("drm"), CustomDrmPlaybackPluginData.class); + externalId = GsonParser.parseString(jsonObject.get("externalId")); + macAddress = GsonParser.parseString(jsonObject.get("macAddress")); + dynamicData = GsonParser.parseMap(jsonObject.getAsJsonObject("dynamicData"), StringValue.class); + model = GsonParser.parseString(jsonObject.get("model")); + manufacturer = GsonParser.parseString(jsonObject.get("manufacturer")); + manufacturerId = GsonParser.parseLong(jsonObject.get("manufacturerId")); + lastActivityTime = GsonParser.parseLong(jsonObject.get("lastActivityTime")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaHouseholdDevice"); + kparams.add("householdId", this.householdId); + kparams.add("udid", this.udid); + kparams.add("name", this.name); + kparams.add("brandId", this.brandId); + kparams.add("activatedOn", this.activatedOn); + kparams.add("externalId", this.externalId); + kparams.add("macAddress", this.macAddress); + kparams.add("dynamicData", this.dynamicData); + kparams.add("model", this.model); + kparams.add("manufacturer", this.manufacturer); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public HouseholdDevice createFromParcel(Parcel source) { + return new HouseholdDevice(source); + } + + @Override + public HouseholdDevice[] newArray(int size) { + return new HouseholdDevice[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.householdId); + dest.writeString(this.udid); + dest.writeString(this.name); + dest.writeValue(this.brandId); + dest.writeValue(this.activatedOn); + dest.writeInt(this.status == null ? -1 : this.status.ordinal()); + dest.writeValue(this.deviceFamilyId); + dest.writeParcelable(this.drm, flags); + dest.writeString(this.externalId); + dest.writeString(this.macAddress); + if(this.dynamicData != null) { + dest.writeInt(this.dynamicData.size()); + for (Map.Entry entry : this.dynamicData.entrySet()) { + dest.writeString(entry.getKey()); + dest.writeParcelable(entry.getValue(), flags); + } + } else { + dest.writeInt(-1); + } + dest.writeString(this.model); + dest.writeString(this.manufacturer); + dest.writeValue(this.manufacturerId); + dest.writeValue(this.lastActivityTime); + } + + public HouseholdDevice(Parcel in) { + super(in); + this.householdId = (Integer)in.readValue(Integer.class.getClassLoader()); + this.udid = in.readString(); + this.name = in.readString(); + this.brandId = (Integer)in.readValue(Integer.class.getClassLoader()); + this.activatedOn = (Long)in.readValue(Long.class.getClassLoader()); + int tmpStatus = in.readInt(); + this.status = tmpStatus == -1 ? null : DeviceStatus.values()[tmpStatus]; + this.deviceFamilyId = (Long)in.readValue(Long.class.getClassLoader()); + this.drm = in.readParcelable(CustomDrmPlaybackPluginData.class.getClassLoader()); + this.externalId = in.readString(); + this.macAddress = in.readString(); + int dynamicDataSize = in.readInt(); + if( dynamicDataSize > -1) { + this.dynamicData = new HashMap<>(); + for (int i = 0; i < dynamicDataSize; i++) { + String key = in.readString(); + StringValue value = in.readParcelable(StringValue.class.getClassLoader()); + this.dynamicData.put(key, value); + } + } + this.model = in.readString(); + this.manufacturer = in.readString(); + this.manufacturerId = (Long)in.readValue(Long.class.getClassLoader()); + this.lastActivityTime = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/HouseholdDeviceFamilyLimitations.java b/KalturaClient/src/main/java/com/kaltura/client/types/HouseholdDeviceFamilyLimitations.java new file mode 100644 index 000000000..af8c1ce3a --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/HouseholdDeviceFamilyLimitations.java @@ -0,0 +1,183 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Device family limitations details + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(HouseholdDeviceFamilyLimitations.Tokenizer.class) +public class HouseholdDeviceFamilyLimitations extends DeviceFamilyBase { + + public interface Tokenizer extends DeviceFamilyBase.Tokenizer { + String frequency(); + String deviceLimit(); + String concurrentLimit(); + String isDefaultDeviceLimit(); + String isDefaultConcurrentLimit(); + } + + /** + * Allowed device change frequency code + */ + private Integer frequency; + /** + * Max number of devices allowed for this family + */ + private Integer deviceLimit; + /** + * Max number of streams allowed for this family + */ + private Integer concurrentLimit; + /** + * Is the Max number of devices allowed for this family is default value or not + */ + private Boolean isDefaultDeviceLimit; + /** + * Is the Max number of streams allowed for this family is default value or not + */ + private Boolean isDefaultConcurrentLimit; + + // frequency: + public Integer getFrequency(){ + return this.frequency; + } + public void setFrequency(Integer frequency){ + this.frequency = frequency; + } + + public void frequency(String multirequestToken){ + setToken("frequency", multirequestToken); + } + + // deviceLimit: + public Integer getDeviceLimit(){ + return this.deviceLimit; + } + public void setDeviceLimit(Integer deviceLimit){ + this.deviceLimit = deviceLimit; + } + + public void deviceLimit(String multirequestToken){ + setToken("deviceLimit", multirequestToken); + } + + // concurrentLimit: + public Integer getConcurrentLimit(){ + return this.concurrentLimit; + } + public void setConcurrentLimit(Integer concurrentLimit){ + this.concurrentLimit = concurrentLimit; + } + + public void concurrentLimit(String multirequestToken){ + setToken("concurrentLimit", multirequestToken); + } + + // isDefaultDeviceLimit: + public Boolean getIsDefaultDeviceLimit(){ + return this.isDefaultDeviceLimit; + } + // isDefaultConcurrentLimit: + public Boolean getIsDefaultConcurrentLimit(){ + return this.isDefaultConcurrentLimit; + } + + public HouseholdDeviceFamilyLimitations() { + super(); + } + + public HouseholdDeviceFamilyLimitations(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + frequency = GsonParser.parseInt(jsonObject.get("frequency")); + deviceLimit = GsonParser.parseInt(jsonObject.get("deviceLimit")); + concurrentLimit = GsonParser.parseInt(jsonObject.get("concurrentLimit")); + isDefaultDeviceLimit = GsonParser.parseBoolean(jsonObject.get("isDefaultDeviceLimit")); + isDefaultConcurrentLimit = GsonParser.parseBoolean(jsonObject.get("isDefaultConcurrentLimit")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaHouseholdDeviceFamilyLimitations"); + kparams.add("frequency", this.frequency); + kparams.add("deviceLimit", this.deviceLimit); + kparams.add("concurrentLimit", this.concurrentLimit); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public HouseholdDeviceFamilyLimitations createFromParcel(Parcel source) { + return new HouseholdDeviceFamilyLimitations(source); + } + + @Override + public HouseholdDeviceFamilyLimitations[] newArray(int size) { + return new HouseholdDeviceFamilyLimitations[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.frequency); + dest.writeValue(this.deviceLimit); + dest.writeValue(this.concurrentLimit); + dest.writeValue(this.isDefaultDeviceLimit); + dest.writeValue(this.isDefaultConcurrentLimit); + } + + public HouseholdDeviceFamilyLimitations(Parcel in) { + super(in); + this.frequency = (Integer)in.readValue(Integer.class.getClassLoader()); + this.deviceLimit = (Integer)in.readValue(Integer.class.getClassLoader()); + this.concurrentLimit = (Integer)in.readValue(Integer.class.getClassLoader()); + this.isDefaultDeviceLimit = (Boolean)in.readValue(Boolean.class.getClassLoader()); + this.isDefaultConcurrentLimit = (Boolean)in.readValue(Boolean.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/HouseholdDeviceFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/HouseholdDeviceFilter.java new file mode 100644 index 000000000..f6f033da5 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/HouseholdDeviceFilter.java @@ -0,0 +1,156 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(HouseholdDeviceFilter.Tokenizer.class) +public class HouseholdDeviceFilter extends Filter { + + public interface Tokenizer extends Filter.Tokenizer { + String householdIdEqual(); + String deviceFamilyIdIn(); + String externalIdEqual(); + } + + /** + * The identifier of the household + */ + private Integer householdIdEqual; + /** + * Device family Ids + */ + private String deviceFamilyIdIn; + /** + * External Id + */ + private String externalIdEqual; + + // householdIdEqual: + public Integer getHouseholdIdEqual(){ + return this.householdIdEqual; + } + public void setHouseholdIdEqual(Integer householdIdEqual){ + this.householdIdEqual = householdIdEqual; + } + + public void householdIdEqual(String multirequestToken){ + setToken("householdIdEqual", multirequestToken); + } + + // deviceFamilyIdIn: + public String getDeviceFamilyIdIn(){ + return this.deviceFamilyIdIn; + } + public void setDeviceFamilyIdIn(String deviceFamilyIdIn){ + this.deviceFamilyIdIn = deviceFamilyIdIn; + } + + public void deviceFamilyIdIn(String multirequestToken){ + setToken("deviceFamilyIdIn", multirequestToken); + } + + // externalIdEqual: + public String getExternalIdEqual(){ + return this.externalIdEqual; + } + public void setExternalIdEqual(String externalIdEqual){ + this.externalIdEqual = externalIdEqual; + } + + public void externalIdEqual(String multirequestToken){ + setToken("externalIdEqual", multirequestToken); + } + + + public HouseholdDeviceFilter() { + super(); + } + + public HouseholdDeviceFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + householdIdEqual = GsonParser.parseInt(jsonObject.get("householdIdEqual")); + deviceFamilyIdIn = GsonParser.parseString(jsonObject.get("deviceFamilyIdIn")); + externalIdEqual = GsonParser.parseString(jsonObject.get("externalIdEqual")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaHouseholdDeviceFilter"); + kparams.add("householdIdEqual", this.householdIdEqual); + kparams.add("deviceFamilyIdIn", this.deviceFamilyIdIn); + kparams.add("externalIdEqual", this.externalIdEqual); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public HouseholdDeviceFilter createFromParcel(Parcel source) { + return new HouseholdDeviceFilter(source); + } + + @Override + public HouseholdDeviceFilter[] newArray(int size) { + return new HouseholdDeviceFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.householdIdEqual); + dest.writeString(this.deviceFamilyIdIn); + dest.writeString(this.externalIdEqual); + } + + public HouseholdDeviceFilter(Parcel in) { + super(in); + this.householdIdEqual = (Integer)in.readValue(Integer.class.getClassLoader()); + this.deviceFamilyIdIn = in.readString(); + this.externalIdEqual = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/HouseholdFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/HouseholdFilter.java new file mode 100644 index 000000000..7bd5a40d4 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/HouseholdFilter.java @@ -0,0 +1,117 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Household details + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(HouseholdFilter.Tokenizer.class) +public class HouseholdFilter extends Filter { + + public interface Tokenizer extends Filter.Tokenizer { + String externalIdEqual(); + } + + /** + * Household external identifier to search by + */ + private String externalIdEqual; + + // externalIdEqual: + public String getExternalIdEqual(){ + return this.externalIdEqual; + } + public void setExternalIdEqual(String externalIdEqual){ + this.externalIdEqual = externalIdEqual; + } + + public void externalIdEqual(String multirequestToken){ + setToken("externalIdEqual", multirequestToken); + } + + + public HouseholdFilter() { + super(); + } + + public HouseholdFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + externalIdEqual = GsonParser.parseString(jsonObject.get("externalIdEqual")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaHouseholdFilter"); + kparams.add("externalIdEqual", this.externalIdEqual); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public HouseholdFilter createFromParcel(Parcel source) { + return new HouseholdFilter(source); + } + + @Override + public HouseholdFilter[] newArray(int size) { + return new HouseholdFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.externalIdEqual); + } + + public HouseholdFilter(Parcel in) { + super(in); + this.externalIdEqual = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/HouseholdLimitations.java b/KalturaClient/src/main/java/com/kaltura/client/types/HouseholdLimitations.java new file mode 100644 index 000000000..615cfd2c3 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/HouseholdLimitations.java @@ -0,0 +1,342 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.ArrayList; +import java.util.List; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Household limitations details + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(HouseholdLimitations.Tokenizer.class) +public class HouseholdLimitations extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String id(); + String name(); + String concurrentLimit(); + String deviceLimit(); + String deviceFrequency(); + String deviceFrequencyDescription(); + String userFrequency(); + String userFrequencyDescription(); + String npvrQuotaInSeconds(); + String usersLimit(); + RequestBuilder.ListTokenizer deviceFamiliesLimitations(); + String description(); + String associatedDeviceFamiliesIdsIn(); + } + + /** + * Household limitation module identifier + */ + private Integer id; + /** + * Household limitation module name + */ + private String name; + /** + * Max number of streams allowed for the household + */ + private Integer concurrentLimit; + /** + * Max number of devices allowed for the household + */ + private Integer deviceLimit; + /** + * Allowed device change frequency code + */ + private Integer deviceFrequency; + /** + * Allowed device change frequency description + */ + private String deviceFrequencyDescription; + /** + * Allowed user change frequency code + */ + private Integer userFrequency; + /** + * Allowed user change frequency description + */ + private String userFrequencyDescription; + /** + * Allowed NPVR Quota in Seconds + */ + private Integer npvrQuotaInSeconds; + /** + * Max number of users allowed for the household + */ + private Integer usersLimit; + /** + * Device families limitations + */ + private List deviceFamiliesLimitations; + /** + * Allowed device change frequency description + */ + private String description; + /** + * Associated Device Families ids + */ + private String associatedDeviceFamiliesIdsIn; + + // id: + public Integer getId(){ + return this.id; + } + // name: + public String getName(){ + return this.name; + } + public void setName(String name){ + this.name = name; + } + + public void name(String multirequestToken){ + setToken("name", multirequestToken); + } + + // concurrentLimit: + public Integer getConcurrentLimit(){ + return this.concurrentLimit; + } + public void setConcurrentLimit(Integer concurrentLimit){ + this.concurrentLimit = concurrentLimit; + } + + public void concurrentLimit(String multirequestToken){ + setToken("concurrentLimit", multirequestToken); + } + + // deviceLimit: + public Integer getDeviceLimit(){ + return this.deviceLimit; + } + public void setDeviceLimit(Integer deviceLimit){ + this.deviceLimit = deviceLimit; + } + + public void deviceLimit(String multirequestToken){ + setToken("deviceLimit", multirequestToken); + } + + // deviceFrequency: + public Integer getDeviceFrequency(){ + return this.deviceFrequency; + } + public void setDeviceFrequency(Integer deviceFrequency){ + this.deviceFrequency = deviceFrequency; + } + + public void deviceFrequency(String multirequestToken){ + setToken("deviceFrequency", multirequestToken); + } + + // deviceFrequencyDescription: + public String getDeviceFrequencyDescription(){ + return this.deviceFrequencyDescription; + } + // userFrequency: + public Integer getUserFrequency(){ + return this.userFrequency; + } + public void setUserFrequency(Integer userFrequency){ + this.userFrequency = userFrequency; + } + + public void userFrequency(String multirequestToken){ + setToken("userFrequency", multirequestToken); + } + + // userFrequencyDescription: + public String getUserFrequencyDescription(){ + return this.userFrequencyDescription; + } + // npvrQuotaInSeconds: + public Integer getNpvrQuotaInSeconds(){ + return this.npvrQuotaInSeconds; + } + // usersLimit: + public Integer getUsersLimit(){ + return this.usersLimit; + } + public void setUsersLimit(Integer usersLimit){ + this.usersLimit = usersLimit; + } + + public void usersLimit(String multirequestToken){ + setToken("usersLimit", multirequestToken); + } + + // deviceFamiliesLimitations: + public List getDeviceFamiliesLimitations(){ + return this.deviceFamiliesLimitations; + } + public void setDeviceFamiliesLimitations(List deviceFamiliesLimitations){ + this.deviceFamiliesLimitations = deviceFamiliesLimitations; + } + + // description: + public String getDescription(){ + return this.description; + } + public void setDescription(String description){ + this.description = description; + } + + public void description(String multirequestToken){ + setToken("description", multirequestToken); + } + + // associatedDeviceFamiliesIdsIn: + public String getAssociatedDeviceFamiliesIdsIn(){ + return this.associatedDeviceFamiliesIdsIn; + } + public void setAssociatedDeviceFamiliesIdsIn(String associatedDeviceFamiliesIdsIn){ + this.associatedDeviceFamiliesIdsIn = associatedDeviceFamiliesIdsIn; + } + + public void associatedDeviceFamiliesIdsIn(String multirequestToken){ + setToken("associatedDeviceFamiliesIdsIn", multirequestToken); + } + + + public HouseholdLimitations() { + super(); + } + + public HouseholdLimitations(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + id = GsonParser.parseInt(jsonObject.get("id")); + name = GsonParser.parseString(jsonObject.get("name")); + concurrentLimit = GsonParser.parseInt(jsonObject.get("concurrentLimit")); + deviceLimit = GsonParser.parseInt(jsonObject.get("deviceLimit")); + deviceFrequency = GsonParser.parseInt(jsonObject.get("deviceFrequency")); + deviceFrequencyDescription = GsonParser.parseString(jsonObject.get("deviceFrequencyDescription")); + userFrequency = GsonParser.parseInt(jsonObject.get("userFrequency")); + userFrequencyDescription = GsonParser.parseString(jsonObject.get("userFrequencyDescription")); + npvrQuotaInSeconds = GsonParser.parseInt(jsonObject.get("npvrQuotaInSeconds")); + usersLimit = GsonParser.parseInt(jsonObject.get("usersLimit")); + deviceFamiliesLimitations = GsonParser.parseArray(jsonObject.getAsJsonArray("deviceFamiliesLimitations"), HouseholdDeviceFamilyLimitations.class); + description = GsonParser.parseString(jsonObject.get("description")); + associatedDeviceFamiliesIdsIn = GsonParser.parseString(jsonObject.get("associatedDeviceFamiliesIdsIn")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaHouseholdLimitations"); + kparams.add("name", this.name); + kparams.add("concurrentLimit", this.concurrentLimit); + kparams.add("deviceLimit", this.deviceLimit); + kparams.add("deviceFrequency", this.deviceFrequency); + kparams.add("userFrequency", this.userFrequency); + kparams.add("usersLimit", this.usersLimit); + kparams.add("deviceFamiliesLimitations", this.deviceFamiliesLimitations); + kparams.add("description", this.description); + kparams.add("associatedDeviceFamiliesIdsIn", this.associatedDeviceFamiliesIdsIn); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public HouseholdLimitations createFromParcel(Parcel source) { + return new HouseholdLimitations(source); + } + + @Override + public HouseholdLimitations[] newArray(int size) { + return new HouseholdLimitations[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.id); + dest.writeString(this.name); + dest.writeValue(this.concurrentLimit); + dest.writeValue(this.deviceLimit); + dest.writeValue(this.deviceFrequency); + dest.writeString(this.deviceFrequencyDescription); + dest.writeValue(this.userFrequency); + dest.writeString(this.userFrequencyDescription); + dest.writeValue(this.npvrQuotaInSeconds); + dest.writeValue(this.usersLimit); + if(this.deviceFamiliesLimitations != null) { + dest.writeInt(this.deviceFamiliesLimitations.size()); + dest.writeList(this.deviceFamiliesLimitations); + } else { + dest.writeInt(-1); + } + dest.writeString(this.description); + dest.writeString(this.associatedDeviceFamiliesIdsIn); + } + + public HouseholdLimitations(Parcel in) { + super(in); + this.id = (Integer)in.readValue(Integer.class.getClassLoader()); + this.name = in.readString(); + this.concurrentLimit = (Integer)in.readValue(Integer.class.getClassLoader()); + this.deviceLimit = (Integer)in.readValue(Integer.class.getClassLoader()); + this.deviceFrequency = (Integer)in.readValue(Integer.class.getClassLoader()); + this.deviceFrequencyDescription = in.readString(); + this.userFrequency = (Integer)in.readValue(Integer.class.getClassLoader()); + this.userFrequencyDescription = in.readString(); + this.npvrQuotaInSeconds = (Integer)in.readValue(Integer.class.getClassLoader()); + this.usersLimit = (Integer)in.readValue(Integer.class.getClassLoader()); + int deviceFamiliesLimitationsSize = in.readInt(); + if( deviceFamiliesLimitationsSize > -1) { + this.deviceFamiliesLimitations = new ArrayList<>(); + in.readList(this.deviceFamiliesLimitations, HouseholdDeviceFamilyLimitations.class.getClassLoader()); + } + this.description = in.readString(); + this.associatedDeviceFamiliesIdsIn = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/HouseholdPaymentGateway.java b/KalturaClient/src/main/java/com/kaltura/client/types/HouseholdPaymentGateway.java new file mode 100644 index 000000000..c243cc33f --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/HouseholdPaymentGateway.java @@ -0,0 +1,184 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.HouseholdPaymentGatewaySelectedBy; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.types.SuspendSettings; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(HouseholdPaymentGateway.Tokenizer.class) +public class HouseholdPaymentGateway extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String id(); + String name(); + String isDefault(); + String selectedBy(); + SuspendSettings.Tokenizer suspendSettings(); + } + + /** + * payment gateway id + */ + private Integer id; + /** + * payment gateway name + */ + private String name; + /** + * Payment gateway default (true/false) + */ + private Boolean isDefault; + /** + * distinction payment gateway selected by account or household + */ + private HouseholdPaymentGatewaySelectedBy selectedBy; + /** + * suspend settings + */ + private SuspendSettings suspendSettings; + + // id: + public Integer getId(){ + return this.id; + } + // name: + public String getName(){ + return this.name; + } + public void setName(String name){ + this.name = name; + } + + public void name(String multirequestToken){ + setToken("name", multirequestToken); + } + + // isDefault: + public Boolean getIsDefault(){ + return this.isDefault; + } + public void setIsDefault(Boolean isDefault){ + this.isDefault = isDefault; + } + + public void isDefault(String multirequestToken){ + setToken("isDefault", multirequestToken); + } + + // selectedBy: + public HouseholdPaymentGatewaySelectedBy getSelectedBy(){ + return this.selectedBy; + } + public void setSelectedBy(HouseholdPaymentGatewaySelectedBy selectedBy){ + this.selectedBy = selectedBy; + } + + public void selectedBy(String multirequestToken){ + setToken("selectedBy", multirequestToken); + } + + // suspendSettings: + public SuspendSettings getSuspendSettings(){ + return this.suspendSettings; + } + + public HouseholdPaymentGateway() { + super(); + } + + public HouseholdPaymentGateway(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + id = GsonParser.parseInt(jsonObject.get("id")); + name = GsonParser.parseString(jsonObject.get("name")); + isDefault = GsonParser.parseBoolean(jsonObject.get("isDefault")); + selectedBy = HouseholdPaymentGatewaySelectedBy.get(GsonParser.parseString(jsonObject.get("selectedBy"))); + suspendSettings = GsonParser.parseObject(jsonObject.getAsJsonObject("suspendSettings"), SuspendSettings.class); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaHouseholdPaymentGateway"); + kparams.add("name", this.name); + kparams.add("isDefault", this.isDefault); + kparams.add("selectedBy", this.selectedBy); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public HouseholdPaymentGateway createFromParcel(Parcel source) { + return new HouseholdPaymentGateway(source); + } + + @Override + public HouseholdPaymentGateway[] newArray(int size) { + return new HouseholdPaymentGateway[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.id); + dest.writeString(this.name); + dest.writeValue(this.isDefault); + dest.writeInt(this.selectedBy == null ? -1 : this.selectedBy.ordinal()); + dest.writeParcelable(this.suspendSettings, flags); + } + + public HouseholdPaymentGateway(Parcel in) { + super(in); + this.id = (Integer)in.readValue(Integer.class.getClassLoader()); + this.name = in.readString(); + this.isDefault = (Boolean)in.readValue(Boolean.class.getClassLoader()); + int tmpSelectedBy = in.readInt(); + this.selectedBy = tmpSelectedBy == -1 ? null : HouseholdPaymentGatewaySelectedBy.values()[tmpSelectedBy]; + this.suspendSettings = in.readParcelable(SuspendSettings.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/HouseholdPaymentMethod.java b/KalturaClient/src/main/java/com/kaltura/client/types/HouseholdPaymentMethod.java new file mode 100644 index 000000000..ebef26abf --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/HouseholdPaymentMethod.java @@ -0,0 +1,202 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(HouseholdPaymentMethod.Tokenizer.class) +public class HouseholdPaymentMethod extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String id(); + String externalId(); + String paymentGatewayId(); + String details(); + String isDefault(); + String paymentMethodProfileId(); + } + + /** + * Household payment method identifier (internal) + */ + private Integer id; + /** + * External identifier for the household payment method + */ + private String externalId; + /** + * Payment-gateway identifier + */ + private Integer paymentGatewayId; + /** + * Description of the payment method details + */ + private String details; + /** + * indicates whether the payment method is set as default for the household + */ + private Boolean isDefault; + /** + * Payment method profile identifier + */ + private Integer paymentMethodProfileId; + + // id: + public Integer getId(){ + return this.id; + } + // externalId: + public String getExternalId(){ + return this.externalId; + } + public void setExternalId(String externalId){ + this.externalId = externalId; + } + + public void externalId(String multirequestToken){ + setToken("externalId", multirequestToken); + } + + // paymentGatewayId: + public Integer getPaymentGatewayId(){ + return this.paymentGatewayId; + } + public void setPaymentGatewayId(Integer paymentGatewayId){ + this.paymentGatewayId = paymentGatewayId; + } + + public void paymentGatewayId(String multirequestToken){ + setToken("paymentGatewayId", multirequestToken); + } + + // details: + public String getDetails(){ + return this.details; + } + public void setDetails(String details){ + this.details = details; + } + + public void details(String multirequestToken){ + setToken("details", multirequestToken); + } + + // isDefault: + public Boolean getIsDefault(){ + return this.isDefault; + } + // paymentMethodProfileId: + public Integer getPaymentMethodProfileId(){ + return this.paymentMethodProfileId; + } + public void setPaymentMethodProfileId(Integer paymentMethodProfileId){ + this.paymentMethodProfileId = paymentMethodProfileId; + } + + public void paymentMethodProfileId(String multirequestToken){ + setToken("paymentMethodProfileId", multirequestToken); + } + + + public HouseholdPaymentMethod() { + super(); + } + + public HouseholdPaymentMethod(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + id = GsonParser.parseInt(jsonObject.get("id")); + externalId = GsonParser.parseString(jsonObject.get("externalId")); + paymentGatewayId = GsonParser.parseInt(jsonObject.get("paymentGatewayId")); + details = GsonParser.parseString(jsonObject.get("details")); + isDefault = GsonParser.parseBoolean(jsonObject.get("isDefault")); + paymentMethodProfileId = GsonParser.parseInt(jsonObject.get("paymentMethodProfileId")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaHouseholdPaymentMethod"); + kparams.add("externalId", this.externalId); + kparams.add("paymentGatewayId", this.paymentGatewayId); + kparams.add("details", this.details); + kparams.add("paymentMethodProfileId", this.paymentMethodProfileId); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public HouseholdPaymentMethod createFromParcel(Parcel source) { + return new HouseholdPaymentMethod(source); + } + + @Override + public HouseholdPaymentMethod[] newArray(int size) { + return new HouseholdPaymentMethod[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.id); + dest.writeString(this.externalId); + dest.writeValue(this.paymentGatewayId); + dest.writeString(this.details); + dest.writeValue(this.isDefault); + dest.writeValue(this.paymentMethodProfileId); + } + + public HouseholdPaymentMethod(Parcel in) { + super(in); + this.id = (Integer)in.readValue(Integer.class.getClassLoader()); + this.externalId = in.readString(); + this.paymentGatewayId = (Integer)in.readValue(Integer.class.getClassLoader()); + this.details = in.readString(); + this.isDefault = (Boolean)in.readValue(Boolean.class.getClassLoader()); + this.paymentMethodProfileId = (Integer)in.readValue(Integer.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/HouseholdPremiumService.java b/KalturaClient/src/main/java/com/kaltura/client/types/HouseholdPremiumService.java new file mode 100644 index 000000000..6bb0270b3 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/HouseholdPremiumService.java @@ -0,0 +1,85 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Houshold premium service + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(HouseholdPremiumService.Tokenizer.class) +public class HouseholdPremiumService extends PremiumService { + + public interface Tokenizer extends PremiumService.Tokenizer { + } + + + + public HouseholdPremiumService() { + super(); + } + + public HouseholdPremiumService(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaHouseholdPremiumService"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public HouseholdPremiumService createFromParcel(Parcel source) { + return new HouseholdPremiumService(source); + } + + @Override + public HouseholdPremiumService[] newArray(int size) { + return new HouseholdPremiumService[size]; + } + }; + + public HouseholdPremiumService(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/HouseholdQuota.java b/KalturaClient/src/main/java/com/kaltura/client/types/HouseholdQuota.java new file mode 100644 index 000000000..752a0a0fa --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/HouseholdQuota.java @@ -0,0 +1,130 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(HouseholdQuota.Tokenizer.class) +public class HouseholdQuota extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String householdId(); + String totalQuota(); + String availableQuota(); + } + + /** + * Household identifier + */ + private Long householdId; + /** + * Total quota that is allocated to the household + */ + private Integer totalQuota; + /** + * Available quota that household has remaining + */ + private Integer availableQuota; + + // householdId: + public Long getHouseholdId(){ + return this.householdId; + } + // totalQuota: + public Integer getTotalQuota(){ + return this.totalQuota; + } + // availableQuota: + public Integer getAvailableQuota(){ + return this.availableQuota; + } + + public HouseholdQuota() { + super(); + } + + public HouseholdQuota(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + householdId = GsonParser.parseLong(jsonObject.get("householdId")); + totalQuota = GsonParser.parseInt(jsonObject.get("totalQuota")); + availableQuota = GsonParser.parseInt(jsonObject.get("availableQuota")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaHouseholdQuota"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public HouseholdQuota createFromParcel(Parcel source) { + return new HouseholdQuota(source); + } + + @Override + public HouseholdQuota[] newArray(int size) { + return new HouseholdQuota[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.householdId); + dest.writeValue(this.totalQuota); + dest.writeValue(this.availableQuota); + } + + public HouseholdQuota(Parcel in) { + super(in); + this.householdId = (Long)in.readValue(Long.class.getClassLoader()); + this.totalQuota = (Integer)in.readValue(Integer.class.getClassLoader()); + this.availableQuota = (Integer)in.readValue(Integer.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/HouseholdSegment.java b/KalturaClient/src/main/java/com/kaltura/client/types/HouseholdSegment.java new file mode 100644 index 000000000..06518dbab --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/HouseholdSegment.java @@ -0,0 +1,138 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Indicates a segment of a household + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(HouseholdSegment.Tokenizer.class) +public class HouseholdSegment extends OTTObjectSupportNullable { + + public interface Tokenizer extends OTTObjectSupportNullable.Tokenizer { + String segmentId(); + String householdId(); + } + + /** + * Segment Id + */ + private Long segmentId; + /** + * Segment Id + */ + private Long householdId; + + // segmentId: + public Long getSegmentId(){ + return this.segmentId; + } + public void setSegmentId(Long segmentId){ + this.segmentId = segmentId; + } + + public void segmentId(String multirequestToken){ + setToken("segmentId", multirequestToken); + } + + // householdId: + public Long getHouseholdId(){ + return this.householdId; + } + public void setHouseholdId(Long householdId){ + this.householdId = householdId; + } + + public void householdId(String multirequestToken){ + setToken("householdId", multirequestToken); + } + + + public HouseholdSegment() { + super(); + } + + public HouseholdSegment(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + segmentId = GsonParser.parseLong(jsonObject.get("segmentId")); + householdId = GsonParser.parseLong(jsonObject.get("householdId")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaHouseholdSegment"); + kparams.add("segmentId", this.segmentId); + kparams.add("householdId", this.householdId); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public HouseholdSegment createFromParcel(Parcel source) { + return new HouseholdSegment(source); + } + + @Override + public HouseholdSegment[] newArray(int size) { + return new HouseholdSegment[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.segmentId); + dest.writeValue(this.householdId); + } + + public HouseholdSegment(Parcel in) { + super(in); + this.segmentId = (Long)in.readValue(Long.class.getClassLoader()); + this.householdId = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/HouseholdSegmentFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/HouseholdSegmentFilter.java new file mode 100644 index 000000000..1bf657318 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/HouseholdSegmentFilter.java @@ -0,0 +1,114 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(HouseholdSegmentFilter.Tokenizer.class) +public class HouseholdSegmentFilter extends Filter { + + public interface Tokenizer extends Filter.Tokenizer { + String kSql(); + } + + /** + * KSQL expression + */ + private String kSql; + + // kSql: + public String getKSql(){ + return this.kSql; + } + public void setKSql(String kSql){ + this.kSql = kSql; + } + + public void kSql(String multirequestToken){ + setToken("kSql", multirequestToken); + } + + + public HouseholdSegmentFilter() { + super(); + } + + public HouseholdSegmentFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + kSql = GsonParser.parseString(jsonObject.get("kSql")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaHouseholdSegmentFilter"); + kparams.add("kSql", this.kSql); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public HouseholdSegmentFilter createFromParcel(Parcel source) { + return new HouseholdSegmentFilter(source); + } + + @Override + public HouseholdSegmentFilter[] newArray(int size) { + return new HouseholdSegmentFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.kSql); + } + + public HouseholdSegmentFilter(Parcel in) { + super(in); + this.kSql = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/HouseholdUser.java b/KalturaClient/src/main/java/com/kaltura/client/types/HouseholdUser.java new file mode 100644 index 000000000..d23f3ea7c --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/HouseholdUser.java @@ -0,0 +1,208 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.HouseholdUserStatus; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Household user + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(HouseholdUser.Tokenizer.class) +public class HouseholdUser extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String householdId(); + String userId(); + String isMaster(); + String householdMasterUsername(); + String status(); + String isDefault(); + } + + /** + * The identifier of the household + */ + private Integer householdId; + /** + * The identifier of the user + */ + private String userId; + /** + * True if the user added as master use + */ + private Boolean isMaster; + /** + * The username of the household master for adding a user in status pending for the + household master to approve + */ + private String householdMasterUsername; + /** + * The status of the user in the household + */ + private HouseholdUserStatus status; + /** + * True if the user is a default user + */ + private Boolean isDefault; + + // householdId: + public Integer getHouseholdId(){ + return this.householdId; + } + public void setHouseholdId(Integer householdId){ + this.householdId = householdId; + } + + public void householdId(String multirequestToken){ + setToken("householdId", multirequestToken); + } + + // userId: + public String getUserId(){ + return this.userId; + } + public void setUserId(String userId){ + this.userId = userId; + } + + public void userId(String multirequestToken){ + setToken("userId", multirequestToken); + } + + // isMaster: + public Boolean getIsMaster(){ + return this.isMaster; + } + public void setIsMaster(Boolean isMaster){ + this.isMaster = isMaster; + } + + public void isMaster(String multirequestToken){ + setToken("isMaster", multirequestToken); + } + + // householdMasterUsername: + public String getHouseholdMasterUsername(){ + return this.householdMasterUsername; + } + public void setHouseholdMasterUsername(String householdMasterUsername){ + this.householdMasterUsername = householdMasterUsername; + } + + public void householdMasterUsername(String multirequestToken){ + setToken("householdMasterUsername", multirequestToken); + } + + // status: + public HouseholdUserStatus getStatus(){ + return this.status; + } + // isDefault: + public Boolean getIsDefault(){ + return this.isDefault; + } + + public HouseholdUser() { + super(); + } + + public HouseholdUser(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + householdId = GsonParser.parseInt(jsonObject.get("householdId")); + userId = GsonParser.parseString(jsonObject.get("userId")); + isMaster = GsonParser.parseBoolean(jsonObject.get("isMaster")); + householdMasterUsername = GsonParser.parseString(jsonObject.get("householdMasterUsername")); + status = HouseholdUserStatus.get(GsonParser.parseString(jsonObject.get("status"))); + isDefault = GsonParser.parseBoolean(jsonObject.get("isDefault")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaHouseholdUser"); + kparams.add("householdId", this.householdId); + kparams.add("userId", this.userId); + kparams.add("isMaster", this.isMaster); + kparams.add("householdMasterUsername", this.householdMasterUsername); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public HouseholdUser createFromParcel(Parcel source) { + return new HouseholdUser(source); + } + + @Override + public HouseholdUser[] newArray(int size) { + return new HouseholdUser[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.householdId); + dest.writeString(this.userId); + dest.writeValue(this.isMaster); + dest.writeString(this.householdMasterUsername); + dest.writeInt(this.status == null ? -1 : this.status.ordinal()); + dest.writeValue(this.isDefault); + } + + public HouseholdUser(Parcel in) { + super(in); + this.householdId = (Integer)in.readValue(Integer.class.getClassLoader()); + this.userId = in.readString(); + this.isMaster = (Boolean)in.readValue(Boolean.class.getClassLoader()); + this.householdMasterUsername = in.readString(); + int tmpStatus = in.readInt(); + this.status = tmpStatus == -1 ? null : HouseholdUserStatus.values()[tmpStatus]; + this.isDefault = (Boolean)in.readValue(Boolean.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/HouseholdUserFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/HouseholdUserFilter.java new file mode 100644 index 000000000..4d5fcb341 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/HouseholdUserFilter.java @@ -0,0 +1,114 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(HouseholdUserFilter.Tokenizer.class) +public class HouseholdUserFilter extends Filter { + + public interface Tokenizer extends Filter.Tokenizer { + String householdIdEqual(); + } + + /** + * The identifier of the household + */ + private Integer householdIdEqual; + + // householdIdEqual: + public Integer getHouseholdIdEqual(){ + return this.householdIdEqual; + } + public void setHouseholdIdEqual(Integer householdIdEqual){ + this.householdIdEqual = householdIdEqual; + } + + public void householdIdEqual(String multirequestToken){ + setToken("householdIdEqual", multirequestToken); + } + + + public HouseholdUserFilter() { + super(); + } + + public HouseholdUserFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + householdIdEqual = GsonParser.parseInt(jsonObject.get("householdIdEqual")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaHouseholdUserFilter"); + kparams.add("householdIdEqual", this.householdIdEqual); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public HouseholdUserFilter createFromParcel(Parcel source) { + return new HouseholdUserFilter(source); + } + + @Override + public HouseholdUserFilter[] newArray(int size) { + return new HouseholdUserFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.householdIdEqual); + } + + public HouseholdUserFilter(Parcel in) { + super(in); + this.householdIdEqual = (Integer)in.readValue(Integer.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/Image.java b/KalturaClient/src/main/java/com/kaltura/client/types/Image.java new file mode 100644 index 000000000..060a4d1d0 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/Image.java @@ -0,0 +1,254 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.ImageObjectType; +import com.kaltura.client.enums.ImageStatus; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(Image.Tokenizer.class) +public class Image extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String id(); + String version(); + String imageTypeId(); + String imageTypeName(); + String imageObjectId(); + String imageObjectType(); + String status(); + String url(); + String contentId(); + String isDefault(); + } + + /** + * Image ID + */ + private Long id; + /** + * Image version + */ + private String version; + /** + * Image type ID + */ + private Long imageTypeId; + /** + * Image type Name + */ + private String imageTypeName; + /** + * ID of the object the image is related to + */ + private Long imageObjectId; + /** + * Type of the object the image is related to + */ + private ImageObjectType imageObjectType; + /** + * Image content status + */ + private ImageStatus status; + /** + * Image URL + */ + private String url; + /** + * Image content ID + */ + private String contentId; + /** + * Specifies if the image is default for atleast one image type. + */ + private Boolean isDefault; + + // id: + public Long getId(){ + return this.id; + } + // version: + public String getVersion(){ + return this.version; + } + // imageTypeId: + public Long getImageTypeId(){ + return this.imageTypeId; + } + public void setImageTypeId(Long imageTypeId){ + this.imageTypeId = imageTypeId; + } + + public void imageTypeId(String multirequestToken){ + setToken("imageTypeId", multirequestToken); + } + + // imageTypeName: + public String getImageTypeName(){ + return this.imageTypeName; + } + public void setImageTypeName(String imageTypeName){ + this.imageTypeName = imageTypeName; + } + + public void imageTypeName(String multirequestToken){ + setToken("imageTypeName", multirequestToken); + } + + // imageObjectId: + public Long getImageObjectId(){ + return this.imageObjectId; + } + public void setImageObjectId(Long imageObjectId){ + this.imageObjectId = imageObjectId; + } + + public void imageObjectId(String multirequestToken){ + setToken("imageObjectId", multirequestToken); + } + + // imageObjectType: + public ImageObjectType getImageObjectType(){ + return this.imageObjectType; + } + public void setImageObjectType(ImageObjectType imageObjectType){ + this.imageObjectType = imageObjectType; + } + + public void imageObjectType(String multirequestToken){ + setToken("imageObjectType", multirequestToken); + } + + // status: + public ImageStatus getStatus(){ + return this.status; + } + // url: + public String getUrl(){ + return this.url; + } + // contentId: + public String getContentId(){ + return this.contentId; + } + // isDefault: + public Boolean getIsDefault(){ + return this.isDefault; + } + + public Image() { + super(); + } + + public Image(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + id = GsonParser.parseLong(jsonObject.get("id")); + version = GsonParser.parseString(jsonObject.get("version")); + imageTypeId = GsonParser.parseLong(jsonObject.get("imageTypeId")); + imageTypeName = GsonParser.parseString(jsonObject.get("imageTypeName")); + imageObjectId = GsonParser.parseLong(jsonObject.get("imageObjectId")); + imageObjectType = ImageObjectType.get(GsonParser.parseString(jsonObject.get("imageObjectType"))); + status = ImageStatus.get(GsonParser.parseString(jsonObject.get("status"))); + url = GsonParser.parseString(jsonObject.get("url")); + contentId = GsonParser.parseString(jsonObject.get("contentId")); + isDefault = GsonParser.parseBoolean(jsonObject.get("isDefault")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaImage"); + kparams.add("imageTypeId", this.imageTypeId); + kparams.add("imageTypeName", this.imageTypeName); + kparams.add("imageObjectId", this.imageObjectId); + kparams.add("imageObjectType", this.imageObjectType); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public Image createFromParcel(Parcel source) { + return new Image(source); + } + + @Override + public Image[] newArray(int size) { + return new Image[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.id); + dest.writeString(this.version); + dest.writeValue(this.imageTypeId); + dest.writeString(this.imageTypeName); + dest.writeValue(this.imageObjectId); + dest.writeInt(this.imageObjectType == null ? -1 : this.imageObjectType.ordinal()); + dest.writeInt(this.status == null ? -1 : this.status.ordinal()); + dest.writeString(this.url); + dest.writeString(this.contentId); + dest.writeValue(this.isDefault); + } + + public Image(Parcel in) { + super(in); + this.id = (Long)in.readValue(Long.class.getClassLoader()); + this.version = in.readString(); + this.imageTypeId = (Long)in.readValue(Long.class.getClassLoader()); + this.imageTypeName = in.readString(); + this.imageObjectId = (Long)in.readValue(Long.class.getClassLoader()); + int tmpImageObjectType = in.readInt(); + this.imageObjectType = tmpImageObjectType == -1 ? null : ImageObjectType.values()[tmpImageObjectType]; + int tmpStatus = in.readInt(); + this.status = tmpStatus == -1 ? null : ImageStatus.values()[tmpStatus]; + this.url = in.readString(); + this.contentId = in.readString(); + this.isDefault = (Boolean)in.readValue(Boolean.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ImageFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/ImageFilter.java new file mode 100644 index 000000000..0f546908b --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ImageFilter.java @@ -0,0 +1,200 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.ImageObjectType; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ImageFilter.Tokenizer.class) +public class ImageFilter extends Filter { + + public interface Tokenizer extends Filter.Tokenizer { + String idIn(); + String imageObjectIdEqual(); + String imageObjectTypeEqual(); + String isDefaultEqual(); + String imageObjectIdIn(); + } + + /** + * IDs to filter by + */ + private String idIn; + /** + * ID of the object the is related to, to filter by + */ + private Long imageObjectIdEqual; + /** + * Type of the object the image is related to, to filter by + */ + private ImageObjectType imageObjectTypeEqual; + /** + * Filter images that are default on at least on image type or not default at any + */ + private Boolean isDefaultEqual; + /** + * Comma separated imageObject ids list + */ + private String imageObjectIdIn; + + // idIn: + public String getIdIn(){ + return this.idIn; + } + public void setIdIn(String idIn){ + this.idIn = idIn; + } + + public void idIn(String multirequestToken){ + setToken("idIn", multirequestToken); + } + + // imageObjectIdEqual: + public Long getImageObjectIdEqual(){ + return this.imageObjectIdEqual; + } + public void setImageObjectIdEqual(Long imageObjectIdEqual){ + this.imageObjectIdEqual = imageObjectIdEqual; + } + + public void imageObjectIdEqual(String multirequestToken){ + setToken("imageObjectIdEqual", multirequestToken); + } + + // imageObjectTypeEqual: + public ImageObjectType getImageObjectTypeEqual(){ + return this.imageObjectTypeEqual; + } + public void setImageObjectTypeEqual(ImageObjectType imageObjectTypeEqual){ + this.imageObjectTypeEqual = imageObjectTypeEqual; + } + + public void imageObjectTypeEqual(String multirequestToken){ + setToken("imageObjectTypeEqual", multirequestToken); + } + + // isDefaultEqual: + public Boolean getIsDefaultEqual(){ + return this.isDefaultEqual; + } + public void setIsDefaultEqual(Boolean isDefaultEqual){ + this.isDefaultEqual = isDefaultEqual; + } + + public void isDefaultEqual(String multirequestToken){ + setToken("isDefaultEqual", multirequestToken); + } + + // imageObjectIdIn: + public String getImageObjectIdIn(){ + return this.imageObjectIdIn; + } + public void setImageObjectIdIn(String imageObjectIdIn){ + this.imageObjectIdIn = imageObjectIdIn; + } + + public void imageObjectIdIn(String multirequestToken){ + setToken("imageObjectIdIn", multirequestToken); + } + + + public ImageFilter() { + super(); + } + + public ImageFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + idIn = GsonParser.parseString(jsonObject.get("idIn")); + imageObjectIdEqual = GsonParser.parseLong(jsonObject.get("imageObjectIdEqual")); + imageObjectTypeEqual = ImageObjectType.get(GsonParser.parseString(jsonObject.get("imageObjectTypeEqual"))); + isDefaultEqual = GsonParser.parseBoolean(jsonObject.get("isDefaultEqual")); + imageObjectIdIn = GsonParser.parseString(jsonObject.get("imageObjectIdIn")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaImageFilter"); + kparams.add("idIn", this.idIn); + kparams.add("imageObjectIdEqual", this.imageObjectIdEqual); + kparams.add("imageObjectTypeEqual", this.imageObjectTypeEqual); + kparams.add("isDefaultEqual", this.isDefaultEqual); + kparams.add("imageObjectIdIn", this.imageObjectIdIn); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public ImageFilter createFromParcel(Parcel source) { + return new ImageFilter(source); + } + + @Override + public ImageFilter[] newArray(int size) { + return new ImageFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.idIn); + dest.writeValue(this.imageObjectIdEqual); + dest.writeInt(this.imageObjectTypeEqual == null ? -1 : this.imageObjectTypeEqual.ordinal()); + dest.writeValue(this.isDefaultEqual); + dest.writeString(this.imageObjectIdIn); + } + + public ImageFilter(Parcel in) { + super(in); + this.idIn = in.readString(); + this.imageObjectIdEqual = (Long)in.readValue(Long.class.getClassLoader()); + int tmpImageObjectTypeEqual = in.readInt(); + this.imageObjectTypeEqual = tmpImageObjectTypeEqual == -1 ? null : ImageObjectType.values()[tmpImageObjectTypeEqual]; + this.isDefaultEqual = (Boolean)in.readValue(Boolean.class.getClassLoader()); + this.imageObjectIdIn = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ImageType.java b/KalturaClient/src/main/java/com/kaltura/client/types/ImageType.java new file mode 100644 index 000000000..da6732d70 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ImageType.java @@ -0,0 +1,214 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Image type + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ImageType.Tokenizer.class) +public class ImageType extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String id(); + String name(); + String systemName(); + String ratioId(); + String helpText(); + String defaultImageId(); + } + + /** + * Image type ID + */ + private Long id; + /** + * Name + */ + private String name; + /** + * System name + */ + private String systemName; + /** + * Ration ID + */ + private Long ratioId; + /** + * Help text + */ + private String helpText; + /** + * Default image ID + */ + private Long defaultImageId; + + // id: + public Long getId(){ + return this.id; + } + // name: + public String getName(){ + return this.name; + } + public void setName(String name){ + this.name = name; + } + + public void name(String multirequestToken){ + setToken("name", multirequestToken); + } + + // systemName: + public String getSystemName(){ + return this.systemName; + } + public void setSystemName(String systemName){ + this.systemName = systemName; + } + + public void systemName(String multirequestToken){ + setToken("systemName", multirequestToken); + } + + // ratioId: + public Long getRatioId(){ + return this.ratioId; + } + public void setRatioId(Long ratioId){ + this.ratioId = ratioId; + } + + public void ratioId(String multirequestToken){ + setToken("ratioId", multirequestToken); + } + + // helpText: + public String getHelpText(){ + return this.helpText; + } + public void setHelpText(String helpText){ + this.helpText = helpText; + } + + public void helpText(String multirequestToken){ + setToken("helpText", multirequestToken); + } + + // defaultImageId: + public Long getDefaultImageId(){ + return this.defaultImageId; + } + public void setDefaultImageId(Long defaultImageId){ + this.defaultImageId = defaultImageId; + } + + public void defaultImageId(String multirequestToken){ + setToken("defaultImageId", multirequestToken); + } + + + public ImageType() { + super(); + } + + public ImageType(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + id = GsonParser.parseLong(jsonObject.get("id")); + name = GsonParser.parseString(jsonObject.get("name")); + systemName = GsonParser.parseString(jsonObject.get("systemName")); + ratioId = GsonParser.parseLong(jsonObject.get("ratioId")); + helpText = GsonParser.parseString(jsonObject.get("helpText")); + defaultImageId = GsonParser.parseLong(jsonObject.get("defaultImageId")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaImageType"); + kparams.add("name", this.name); + kparams.add("systemName", this.systemName); + kparams.add("ratioId", this.ratioId); + kparams.add("helpText", this.helpText); + kparams.add("defaultImageId", this.defaultImageId); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public ImageType createFromParcel(Parcel source) { + return new ImageType(source); + } + + @Override + public ImageType[] newArray(int size) { + return new ImageType[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.id); + dest.writeString(this.name); + dest.writeString(this.systemName); + dest.writeValue(this.ratioId); + dest.writeString(this.helpText); + dest.writeValue(this.defaultImageId); + } + + public ImageType(Parcel in) { + super(in); + this.id = (Long)in.readValue(Long.class.getClassLoader()); + this.name = in.readString(); + this.systemName = in.readString(); + this.ratioId = (Long)in.readValue(Long.class.getClassLoader()); + this.helpText = in.readString(); + this.defaultImageId = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ImageTypeFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/ImageTypeFilter.java new file mode 100644 index 000000000..37c5b9c5a --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ImageTypeFilter.java @@ -0,0 +1,135 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ImageTypeFilter.Tokenizer.class) +public class ImageTypeFilter extends Filter { + + public interface Tokenizer extends Filter.Tokenizer { + String idIn(); + String ratioIdIn(); + } + + /** + * IDs to filter by + */ + private String idIn; + /** + * Ratio IDs to filter by + */ + private String ratioIdIn; + + // idIn: + public String getIdIn(){ + return this.idIn; + } + public void setIdIn(String idIn){ + this.idIn = idIn; + } + + public void idIn(String multirequestToken){ + setToken("idIn", multirequestToken); + } + + // ratioIdIn: + public String getRatioIdIn(){ + return this.ratioIdIn; + } + public void setRatioIdIn(String ratioIdIn){ + this.ratioIdIn = ratioIdIn; + } + + public void ratioIdIn(String multirequestToken){ + setToken("ratioIdIn", multirequestToken); + } + + + public ImageTypeFilter() { + super(); + } + + public ImageTypeFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + idIn = GsonParser.parseString(jsonObject.get("idIn")); + ratioIdIn = GsonParser.parseString(jsonObject.get("ratioIdIn")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaImageTypeFilter"); + kparams.add("idIn", this.idIn); + kparams.add("ratioIdIn", this.ratioIdIn); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public ImageTypeFilter createFromParcel(Parcel source) { + return new ImageTypeFilter(source); + } + + @Override + public ImageTypeFilter[] newArray(int size) { + return new ImageTypeFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.idIn); + dest.writeString(this.ratioIdIn); + } + + public ImageTypeFilter(Parcel in) { + super(in); + this.idIn = in.readString(); + this.ratioIdIn = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/ImmediateRecording.java b/KalturaClient/src/main/java/com/kaltura/client/types/ImmediateRecording.java new file mode 100644 index 000000000..288d3cc16 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/ImmediateRecording.java @@ -0,0 +1,139 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(ImmediateRecording.Tokenizer.class) +public class ImmediateRecording extends Recording { + + public interface Tokenizer extends Recording.Tokenizer { + String endPadding(); + String absoluteStart(); + String absoluteEnd(); + } + + /** + * Household specific end padding of the recording + */ + private Integer endPadding; + /** + * Household absolute start time of the immediate recording + */ + private Long absoluteStart; + /** + * Household absolute end time of the immediate recording, empty if till end of + program + */ + private Long absoluteEnd; + + // endPadding: + public Integer getEndPadding(){ + return this.endPadding; + } + public void setEndPadding(Integer endPadding){ + this.endPadding = endPadding; + } + + public void endPadding(String multirequestToken){ + setToken("endPadding", multirequestToken); + } + + // absoluteStart: + public Long getAbsoluteStart(){ + return this.absoluteStart; + } + // absoluteEnd: + public Long getAbsoluteEnd(){ + return this.absoluteEnd; + } + + public ImmediateRecording() { + super(); + } + + public ImmediateRecording(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + endPadding = GsonParser.parseInt(jsonObject.get("endPadding")); + absoluteStart = GsonParser.parseLong(jsonObject.get("absoluteStart")); + absoluteEnd = GsonParser.parseLong(jsonObject.get("absoluteEnd")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaImmediateRecording"); + kparams.add("endPadding", this.endPadding); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public ImmediateRecording createFromParcel(Parcel source) { + return new ImmediateRecording(source); + } + + @Override + public ImmediateRecording[] newArray(int size) { + return new ImmediateRecording[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.endPadding); + dest.writeValue(this.absoluteStart); + dest.writeValue(this.absoluteEnd); + } + + public ImmediateRecording(Parcel in) { + super(in); + this.endPadding = (Integer)in.readValue(Integer.class.getClassLoader()); + this.absoluteStart = (Long)in.readValue(Long.class.getClassLoader()); + this.absoluteEnd = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/InboxMessage.java b/KalturaClient/src/main/java/com/kaltura/client/types/InboxMessage.java new file mode 100644 index 000000000..14e4985ce --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/InboxMessage.java @@ -0,0 +1,209 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.InboxMessageStatus; +import com.kaltura.client.enums.InboxMessageType; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(InboxMessage.Tokenizer.class) +public class InboxMessage extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String id(); + String message(); + String status(); + String type(); + String createdAt(); + String url(); + String campaignId(); + } + + /** + * message id + */ + private String id; + /** + * message + */ + private String message; + /** + * Status + */ + private InboxMessageStatus status; + /** + * Type + */ + private InboxMessageType type; + /** + * Created at + */ + private Long createdAt; + /** + * url + */ + private String url; + /** + * campaignId + */ + private Long campaignId; + + // id: + public String getId(){ + return this.id; + } + // message: + public String getMessage(){ + return this.message; + } + public void setMessage(String message){ + this.message = message; + } + + public void message(String multirequestToken){ + setToken("message", multirequestToken); + } + + // status: + public InboxMessageStatus getStatus(){ + return this.status; + } + // type: + public InboxMessageType getType(){ + return this.type; + } + public void setType(InboxMessageType type){ + this.type = type; + } + + public void type(String multirequestToken){ + setToken("type", multirequestToken); + } + + // createdAt: + public Long getCreatedAt(){ + return this.createdAt; + } + // url: + public String getUrl(){ + return this.url; + } + public void setUrl(String url){ + this.url = url; + } + + public void url(String multirequestToken){ + setToken("url", multirequestToken); + } + + // campaignId: + public Long getCampaignId(){ + return this.campaignId; + } + + public InboxMessage() { + super(); + } + + public InboxMessage(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + id = GsonParser.parseString(jsonObject.get("id")); + message = GsonParser.parseString(jsonObject.get("message")); + status = InboxMessageStatus.get(GsonParser.parseString(jsonObject.get("status"))); + type = InboxMessageType.get(GsonParser.parseString(jsonObject.get("type"))); + createdAt = GsonParser.parseLong(jsonObject.get("createdAt")); + url = GsonParser.parseString(jsonObject.get("url")); + campaignId = GsonParser.parseLong(jsonObject.get("campaignId")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaInboxMessage"); + kparams.add("message", this.message); + kparams.add("type", this.type); + kparams.add("url", this.url); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public InboxMessage createFromParcel(Parcel source) { + return new InboxMessage(source); + } + + @Override + public InboxMessage[] newArray(int size) { + return new InboxMessage[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.id); + dest.writeString(this.message); + dest.writeInt(this.status == null ? -1 : this.status.ordinal()); + dest.writeInt(this.type == null ? -1 : this.type.ordinal()); + dest.writeValue(this.createdAt); + dest.writeString(this.url); + dest.writeValue(this.campaignId); + } + + public InboxMessage(Parcel in) { + super(in); + this.id = in.readString(); + this.message = in.readString(); + int tmpStatus = in.readInt(); + this.status = tmpStatus == -1 ? null : InboxMessageStatus.values()[tmpStatus]; + int tmpType = in.readInt(); + this.type = tmpType == -1 ? null : InboxMessageType.values()[tmpType]; + this.createdAt = (Long)in.readValue(Long.class.getClassLoader()); + this.url = in.readString(); + this.campaignId = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/InboxMessageFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/InboxMessageFilter.java new file mode 100644 index 000000000..9aff357d3 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/InboxMessageFilter.java @@ -0,0 +1,156 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(InboxMessageFilter.Tokenizer.class) +public class InboxMessageFilter extends Filter { + + public interface Tokenizer extends Filter.Tokenizer { + String typeIn(); + String createdAtGreaterThanOrEqual(); + String createdAtLessThanOrEqual(); + } + + /** + * List of inbox message types to search within. + */ + private String typeIn; + /** + * createdAtGreaterThanOrEqual + */ + private Long createdAtGreaterThanOrEqual; + /** + * createdAtLessThanOrEqual + */ + private Long createdAtLessThanOrEqual; + + // typeIn: + public String getTypeIn(){ + return this.typeIn; + } + public void setTypeIn(String typeIn){ + this.typeIn = typeIn; + } + + public void typeIn(String multirequestToken){ + setToken("typeIn", multirequestToken); + } + + // createdAtGreaterThanOrEqual: + public Long getCreatedAtGreaterThanOrEqual(){ + return this.createdAtGreaterThanOrEqual; + } + public void setCreatedAtGreaterThanOrEqual(Long createdAtGreaterThanOrEqual){ + this.createdAtGreaterThanOrEqual = createdAtGreaterThanOrEqual; + } + + public void createdAtGreaterThanOrEqual(String multirequestToken){ + setToken("createdAtGreaterThanOrEqual", multirequestToken); + } + + // createdAtLessThanOrEqual: + public Long getCreatedAtLessThanOrEqual(){ + return this.createdAtLessThanOrEqual; + } + public void setCreatedAtLessThanOrEqual(Long createdAtLessThanOrEqual){ + this.createdAtLessThanOrEqual = createdAtLessThanOrEqual; + } + + public void createdAtLessThanOrEqual(String multirequestToken){ + setToken("createdAtLessThanOrEqual", multirequestToken); + } + + + public InboxMessageFilter() { + super(); + } + + public InboxMessageFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + typeIn = GsonParser.parseString(jsonObject.get("typeIn")); + createdAtGreaterThanOrEqual = GsonParser.parseLong(jsonObject.get("createdAtGreaterThanOrEqual")); + createdAtLessThanOrEqual = GsonParser.parseLong(jsonObject.get("createdAtLessThanOrEqual")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaInboxMessageFilter"); + kparams.add("typeIn", this.typeIn); + kparams.add("createdAtGreaterThanOrEqual", this.createdAtGreaterThanOrEqual); + kparams.add("createdAtLessThanOrEqual", this.createdAtLessThanOrEqual); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public InboxMessageFilter createFromParcel(Parcel source) { + return new InboxMessageFilter(source); + } + + @Override + public InboxMessageFilter[] newArray(int size) { + return new InboxMessageFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.typeIn); + dest.writeValue(this.createdAtGreaterThanOrEqual); + dest.writeValue(this.createdAtLessThanOrEqual); + } + + public InboxMessageFilter(Parcel in) { + super(in); + this.typeIn = in.readString(); + this.createdAtGreaterThanOrEqual = (Long)in.readValue(Long.class.getClassLoader()); + this.createdAtLessThanOrEqual = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/IngestByCompoundFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/IngestByCompoundFilter.java new file mode 100644 index 000000000..df0f46f41 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/IngestByCompoundFilter.java @@ -0,0 +1,199 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(IngestByCompoundFilter.Tokenizer.class) +public class IngestByCompoundFilter extends Filter { + + public interface Tokenizer extends Filter.Tokenizer { + String ingestNameContains(); + String ingestedByUserIdIn(); + String ingestStatusIn(); + String createdDateGreaterThan(); + String createdDateSmallerThan(); + } + + /** + * A string that is included in the ingest file name + */ + private String ingestNameContains; + /** + * Comma seperated user ids + */ + private String ingestedByUserIdIn; + /** + * Comma seperated valid stutuses + */ + private String ingestStatusIn; + /** + * Ingest created date greater then this value. . Date and time represented as + epoch. + */ + private Long createdDateGreaterThan; + /** + * Ingest created date smaller than this value. Date and time represented as epoch. + */ + private Long createdDateSmallerThan; + + // ingestNameContains: + public String getIngestNameContains(){ + return this.ingestNameContains; + } + public void setIngestNameContains(String ingestNameContains){ + this.ingestNameContains = ingestNameContains; + } + + public void ingestNameContains(String multirequestToken){ + setToken("ingestNameContains", multirequestToken); + } + + // ingestedByUserIdIn: + public String getIngestedByUserIdIn(){ + return this.ingestedByUserIdIn; + } + public void setIngestedByUserIdIn(String ingestedByUserIdIn){ + this.ingestedByUserIdIn = ingestedByUserIdIn; + } + + public void ingestedByUserIdIn(String multirequestToken){ + setToken("ingestedByUserIdIn", multirequestToken); + } + + // ingestStatusIn: + public String getIngestStatusIn(){ + return this.ingestStatusIn; + } + public void setIngestStatusIn(String ingestStatusIn){ + this.ingestStatusIn = ingestStatusIn; + } + + public void ingestStatusIn(String multirequestToken){ + setToken("ingestStatusIn", multirequestToken); + } + + // createdDateGreaterThan: + public Long getCreatedDateGreaterThan(){ + return this.createdDateGreaterThan; + } + public void setCreatedDateGreaterThan(Long createdDateGreaterThan){ + this.createdDateGreaterThan = createdDateGreaterThan; + } + + public void createdDateGreaterThan(String multirequestToken){ + setToken("createdDateGreaterThan", multirequestToken); + } + + // createdDateSmallerThan: + public Long getCreatedDateSmallerThan(){ + return this.createdDateSmallerThan; + } + public void setCreatedDateSmallerThan(Long createdDateSmallerThan){ + this.createdDateSmallerThan = createdDateSmallerThan; + } + + public void createdDateSmallerThan(String multirequestToken){ + setToken("createdDateSmallerThan", multirequestToken); + } + + + public IngestByCompoundFilter() { + super(); + } + + public IngestByCompoundFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + ingestNameContains = GsonParser.parseString(jsonObject.get("ingestNameContains")); + ingestedByUserIdIn = GsonParser.parseString(jsonObject.get("ingestedByUserIdIn")); + ingestStatusIn = GsonParser.parseString(jsonObject.get("ingestStatusIn")); + createdDateGreaterThan = GsonParser.parseLong(jsonObject.get("createdDateGreaterThan")); + createdDateSmallerThan = GsonParser.parseLong(jsonObject.get("createdDateSmallerThan")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaIngestByCompoundFilter"); + kparams.add("ingestNameContains", this.ingestNameContains); + kparams.add("ingestedByUserIdIn", this.ingestedByUserIdIn); + kparams.add("ingestStatusIn", this.ingestStatusIn); + kparams.add("createdDateGreaterThan", this.createdDateGreaterThan); + kparams.add("createdDateSmallerThan", this.createdDateSmallerThan); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public IngestByCompoundFilter createFromParcel(Parcel source) { + return new IngestByCompoundFilter(source); + } + + @Override + public IngestByCompoundFilter[] newArray(int size) { + return new IngestByCompoundFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.ingestNameContains); + dest.writeString(this.ingestedByUserIdIn); + dest.writeString(this.ingestStatusIn); + dest.writeValue(this.createdDateGreaterThan); + dest.writeValue(this.createdDateSmallerThan); + } + + public IngestByCompoundFilter(Parcel in) { + super(in); + this.ingestNameContains = in.readString(); + this.ingestedByUserIdIn = in.readString(); + this.ingestStatusIn = in.readString(); + this.createdDateGreaterThan = (Long)in.readValue(Long.class.getClassLoader()); + this.createdDateSmallerThan = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/IngestByIdsFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/IngestByIdsFilter.java new file mode 100644 index 000000000..dd26b42d7 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/IngestByIdsFilter.java @@ -0,0 +1,114 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(IngestByIdsFilter.Tokenizer.class) +public class IngestByIdsFilter extends Filter { + + public interface Tokenizer extends Filter.Tokenizer { + String ingestIdIn(); + } + + /** + * Comma seperated ingest profile ids + */ + private String ingestIdIn; + + // ingestIdIn: + public String getIngestIdIn(){ + return this.ingestIdIn; + } + public void setIngestIdIn(String ingestIdIn){ + this.ingestIdIn = ingestIdIn; + } + + public void ingestIdIn(String multirequestToken){ + setToken("ingestIdIn", multirequestToken); + } + + + public IngestByIdsFilter() { + super(); + } + + public IngestByIdsFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + ingestIdIn = GsonParser.parseString(jsonObject.get("ingestIdIn")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaIngestByIdsFilter"); + kparams.add("ingestIdIn", this.ingestIdIn); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public IngestByIdsFilter createFromParcel(Parcel source) { + return new IngestByIdsFilter(source); + } + + @Override + public IngestByIdsFilter[] newArray(int size) { + return new IngestByIdsFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.ingestIdIn); + } + + public IngestByIdsFilter(Parcel in) { + super(in); + this.ingestIdIn = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/IngestEpg.java b/KalturaClient/src/main/java/com/kaltura/client/types/IngestEpg.java new file mode 100644 index 000000000..cbe01ce0f --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/IngestEpg.java @@ -0,0 +1,255 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.IngestStatus; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(IngestEpg.Tokenizer.class) +public class IngestEpg extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String ingestId(); + String ingestName(); + String ingestFilenameExtension(); + String createdDate(); + String ingestedByUserId(); + String completedDate(); + String ingestProfileId(); + String status(); + } + + /** + * Unique id of the ingest job in question + */ + private Long ingestId; + /** + * The ingested file name without its extention + */ + private String ingestName; + /** + * The ingested file name extention + */ + private String ingestFilenameExtension; + /** + * The ingest job created date and time. Date and time represented as epoch. + */ + private Long createdDate; + /** + * The user id of the addFromBulkUpload caller. + */ + private Long ingestedByUserId; + /** + * The ingest job completed date and time. Date and time represented as epoch. + */ + private Long completedDate; + /** + * The ingest profile id that of the ingest job. + */ + private Long ingestProfileId; + /** + * The ingest profile id that of the ingest job. + */ + private IngestStatus status; + + // ingestId: + public Long getIngestId(){ + return this.ingestId; + } + // ingestName: + public String getIngestName(){ + return this.ingestName; + } + public void setIngestName(String ingestName){ + this.ingestName = ingestName; + } + + public void ingestName(String multirequestToken){ + setToken("ingestName", multirequestToken); + } + + // ingestFilenameExtension: + public String getIngestFilenameExtension(){ + return this.ingestFilenameExtension; + } + public void setIngestFilenameExtension(String ingestFilenameExtension){ + this.ingestFilenameExtension = ingestFilenameExtension; + } + + public void ingestFilenameExtension(String multirequestToken){ + setToken("ingestFilenameExtension", multirequestToken); + } + + // createdDate: + public Long getCreatedDate(){ + return this.createdDate; + } + public void setCreatedDate(Long createdDate){ + this.createdDate = createdDate; + } + + public void createdDate(String multirequestToken){ + setToken("createdDate", multirequestToken); + } + + // ingestedByUserId: + public Long getIngestedByUserId(){ + return this.ingestedByUserId; + } + public void setIngestedByUserId(Long ingestedByUserId){ + this.ingestedByUserId = ingestedByUserId; + } + + public void ingestedByUserId(String multirequestToken){ + setToken("ingestedByUserId", multirequestToken); + } + + // completedDate: + public Long getCompletedDate(){ + return this.completedDate; + } + public void setCompletedDate(Long completedDate){ + this.completedDate = completedDate; + } + + public void completedDate(String multirequestToken){ + setToken("completedDate", multirequestToken); + } + + // ingestProfileId: + public Long getIngestProfileId(){ + return this.ingestProfileId; + } + public void setIngestProfileId(Long ingestProfileId){ + this.ingestProfileId = ingestProfileId; + } + + public void ingestProfileId(String multirequestToken){ + setToken("ingestProfileId", multirequestToken); + } + + // status: + public IngestStatus getStatus(){ + return this.status; + } + public void setStatus(IngestStatus status){ + this.status = status; + } + + public void status(String multirequestToken){ + setToken("status", multirequestToken); + } + + + public IngestEpg() { + super(); + } + + public IngestEpg(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + ingestId = GsonParser.parseLong(jsonObject.get("ingestId")); + ingestName = GsonParser.parseString(jsonObject.get("ingestName")); + ingestFilenameExtension = GsonParser.parseString(jsonObject.get("ingestFilenameExtension")); + createdDate = GsonParser.parseLong(jsonObject.get("createdDate")); + ingestedByUserId = GsonParser.parseLong(jsonObject.get("ingestedByUserId")); + completedDate = GsonParser.parseLong(jsonObject.get("completedDate")); + ingestProfileId = GsonParser.parseLong(jsonObject.get("ingestProfileId")); + status = IngestStatus.get(GsonParser.parseString(jsonObject.get("status"))); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaIngestEpg"); + kparams.add("ingestName", this.ingestName); + kparams.add("ingestFilenameExtension", this.ingestFilenameExtension); + kparams.add("createdDate", this.createdDate); + kparams.add("ingestedByUserId", this.ingestedByUserId); + kparams.add("completedDate", this.completedDate); + kparams.add("ingestProfileId", this.ingestProfileId); + kparams.add("status", this.status); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public IngestEpg createFromParcel(Parcel source) { + return new IngestEpg(source); + } + + @Override + public IngestEpg[] newArray(int size) { + return new IngestEpg[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.ingestId); + dest.writeString(this.ingestName); + dest.writeString(this.ingestFilenameExtension); + dest.writeValue(this.createdDate); + dest.writeValue(this.ingestedByUserId); + dest.writeValue(this.completedDate); + dest.writeValue(this.ingestProfileId); + dest.writeInt(this.status == null ? -1 : this.status.ordinal()); + } + + public IngestEpg(Parcel in) { + super(in); + this.ingestId = (Long)in.readValue(Long.class.getClassLoader()); + this.ingestName = in.readString(); + this.ingestFilenameExtension = in.readString(); + this.createdDate = (Long)in.readValue(Long.class.getClassLoader()); + this.ingestedByUserId = (Long)in.readValue(Long.class.getClassLoader()); + this.completedDate = (Long)in.readValue(Long.class.getClassLoader()); + this.ingestProfileId = (Long)in.readValue(Long.class.getClassLoader()); + int tmpStatus = in.readInt(); + this.status = tmpStatus == -1 ? null : IngestStatus.values()[tmpStatus]; + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/IngestEpgDetails.java b/KalturaClient/src/main/java/com/kaltura/client/types/IngestEpgDetails.java new file mode 100644 index 000000000..5841881e8 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/IngestEpgDetails.java @@ -0,0 +1,140 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.IngestEpgDetailsAggregation; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.ArrayList; +import java.util.List; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(IngestEpgDetails.Tokenizer.class) +public class IngestEpgDetails extends IngestEpg { + + public interface Tokenizer extends IngestEpg.Tokenizer { + RequestBuilder.ListTokenizer errors(); + IngestEpgDetailsAggregation.Tokenizer aggregations(); + } + + /** + * Errors + */ + private List errors; + /** + * Aggregated counters + */ + private IngestEpgDetailsAggregation aggregations; + + // errors: + public List getErrors(){ + return this.errors; + } + public void setErrors(List errors){ + this.errors = errors; + } + + // aggregations: + public IngestEpgDetailsAggregation getAggregations(){ + return this.aggregations; + } + public void setAggregations(IngestEpgDetailsAggregation aggregations){ + this.aggregations = aggregations; + } + + + public IngestEpgDetails() { + super(); + } + + public IngestEpgDetails(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + errors = GsonParser.parseArray(jsonObject.getAsJsonArray("errors"), EpgIngestErrorMessage.class); + aggregations = GsonParser.parseObject(jsonObject.getAsJsonObject("aggregations"), IngestEpgDetailsAggregation.class); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaIngestEpgDetails"); + kparams.add("errors", this.errors); + kparams.add("aggregations", this.aggregations); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public IngestEpgDetails createFromParcel(Parcel source) { + return new IngestEpgDetails(source); + } + + @Override + public IngestEpgDetails[] newArray(int size) { + return new IngestEpgDetails[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + if(this.errors != null) { + dest.writeInt(this.errors.size()); + dest.writeList(this.errors); + } else { + dest.writeInt(-1); + } + dest.writeParcelable(this.aggregations, flags); + } + + public IngestEpgDetails(Parcel in) { + super(in); + int errorsSize = in.readInt(); + if( errorsSize > -1) { + this.errors = new ArrayList<>(); + in.readList(this.errors, EpgIngestErrorMessage.class.getClassLoader()); + } + this.aggregations = in.readParcelable(IngestEpgDetailsAggregation.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/IngestEpgDetailsAggregation.java b/KalturaClient/src/main/java/com/kaltura/client/types/IngestEpgDetailsAggregation.java new file mode 100644 index 000000000..687c6c9ad --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/IngestEpgDetailsAggregation.java @@ -0,0 +1,169 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.AggregatedIngestInfo; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.ArrayList; +import java.util.List; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(IngestEpgDetailsAggregation.Tokenizer.class) +public class IngestEpgDetailsAggregation extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + RequestBuilder.ListTokenizer linearChannels(); + RequestBuilder.ListTokenizer dates(); + AggregatedIngestInfo.Tokenizer all(); + } + + /** + * Array of aggregated information per channel that included in the ingest job in + question + */ + private List linearChannels; + /** + * Array of aggregated information per date that included in the ingest job in + question + */ + private List dates; + /** + * All aggregated counters + */ + private AggregatedIngestInfo all; + + // linearChannels: + public List getLinearChannels(){ + return this.linearChannels; + } + public void setLinearChannels(List linearChannels){ + this.linearChannels = linearChannels; + } + + // dates: + public List getDates(){ + return this.dates; + } + public void setDates(List dates){ + this.dates = dates; + } + + // all: + public AggregatedIngestInfo getAll(){ + return this.all; + } + public void setAll(AggregatedIngestInfo all){ + this.all = all; + } + + + public IngestEpgDetailsAggregation() { + super(); + } + + public IngestEpgDetailsAggregation(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + linearChannels = GsonParser.parseArray(jsonObject.getAsJsonArray("linearChannels"), ChannelAggregatedIngestInfo.class); + dates = GsonParser.parseArray(jsonObject.getAsJsonArray("dates"), DateAggregatedIngestInfo.class); + all = GsonParser.parseObject(jsonObject.getAsJsonObject("all"), AggregatedIngestInfo.class); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaIngestEpgDetailsAggregation"); + kparams.add("linearChannels", this.linearChannels); + kparams.add("dates", this.dates); + kparams.add("all", this.all); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public IngestEpgDetailsAggregation createFromParcel(Parcel source) { + return new IngestEpgDetailsAggregation(source); + } + + @Override + public IngestEpgDetailsAggregation[] newArray(int size) { + return new IngestEpgDetailsAggregation[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + if(this.linearChannels != null) { + dest.writeInt(this.linearChannels.size()); + dest.writeList(this.linearChannels); + } else { + dest.writeInt(-1); + } + if(this.dates != null) { + dest.writeInt(this.dates.size()); + dest.writeList(this.dates); + } else { + dest.writeInt(-1); + } + dest.writeParcelable(this.all, flags); + } + + public IngestEpgDetailsAggregation(Parcel in) { + super(in); + int linearChannelsSize = in.readInt(); + if( linearChannelsSize > -1) { + this.linearChannels = new ArrayList<>(); + in.readList(this.linearChannels, ChannelAggregatedIngestInfo.class.getClassLoader()); + } + int datesSize = in.readInt(); + if( datesSize > -1) { + this.dates = new ArrayList<>(); + in.readList(this.dates, DateAggregatedIngestInfo.class.getClassLoader()); + } + this.all = in.readParcelable(AggregatedIngestInfo.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/IngestEpgProgramResult.java b/KalturaClient/src/main/java/com/kaltura/client/types/IngestEpgProgramResult.java new file mode 100644 index 000000000..70d314234 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/IngestEpgProgramResult.java @@ -0,0 +1,299 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.IngestEpgProgramStatus; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.ArrayList; +import java.util.List; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(IngestEpgProgramResult.Tokenizer.class) +public class IngestEpgProgramResult extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String programId(); + String externalProgramId(); + String linearChannelId(); + String indexInFile(); + String startDate(); + String endDate(); + String status(); + RequestBuilder.ListTokenizer errors(); + RequestBuilder.ListTokenizer warnings(); + } + + /** + * The unique ingested program id + */ + private Long programId; + /** + * An external program id + */ + private String externalProgramId; + /** + * The id of the linear channel asset that the program belongs to + */ + private Long linearChannelId; + /** + * The index of the program in the ingested file + */ + private Long indexInFile; + /** + * Program EPG start date. Date and time represented as epoch + */ + private Long startDate; + /** + * Program EPG end date. Date and time represented as epoch + */ + private Long endDate; + /** + * The program status + */ + private IngestEpgProgramStatus status; + /** + * List of errors. Note: error cause the data in question or the whole ingest to + fail + */ + private List errors; + /** + * List of warnings. Note: warning cause no failure + */ + private List warnings; + + // programId: + public Long getProgramId(){ + return this.programId; + } + public void setProgramId(Long programId){ + this.programId = programId; + } + + public void programId(String multirequestToken){ + setToken("programId", multirequestToken); + } + + // externalProgramId: + public String getExternalProgramId(){ + return this.externalProgramId; + } + public void setExternalProgramId(String externalProgramId){ + this.externalProgramId = externalProgramId; + } + + public void externalProgramId(String multirequestToken){ + setToken("externalProgramId", multirequestToken); + } + + // linearChannelId: + public Long getLinearChannelId(){ + return this.linearChannelId; + } + public void setLinearChannelId(Long linearChannelId){ + this.linearChannelId = linearChannelId; + } + + public void linearChannelId(String multirequestToken){ + setToken("linearChannelId", multirequestToken); + } + + // indexInFile: + public Long getIndexInFile(){ + return this.indexInFile; + } + public void setIndexInFile(Long indexInFile){ + this.indexInFile = indexInFile; + } + + public void indexInFile(String multirequestToken){ + setToken("indexInFile", multirequestToken); + } + + // startDate: + public Long getStartDate(){ + return this.startDate; + } + public void setStartDate(Long startDate){ + this.startDate = startDate; + } + + public void startDate(String multirequestToken){ + setToken("startDate", multirequestToken); + } + + // endDate: + public Long getEndDate(){ + return this.endDate; + } + public void setEndDate(Long endDate){ + this.endDate = endDate; + } + + public void endDate(String multirequestToken){ + setToken("endDate", multirequestToken); + } + + // status: + public IngestEpgProgramStatus getStatus(){ + return this.status; + } + public void setStatus(IngestEpgProgramStatus status){ + this.status = status; + } + + public void status(String multirequestToken){ + setToken("status", multirequestToken); + } + + // errors: + public List getErrors(){ + return this.errors; + } + public void setErrors(List errors){ + this.errors = errors; + } + + // warnings: + public List getWarnings(){ + return this.warnings; + } + public void setWarnings(List warnings){ + this.warnings = warnings; + } + + + public IngestEpgProgramResult() { + super(); + } + + public IngestEpgProgramResult(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + programId = GsonParser.parseLong(jsonObject.get("programId")); + externalProgramId = GsonParser.parseString(jsonObject.get("externalProgramId")); + linearChannelId = GsonParser.parseLong(jsonObject.get("linearChannelId")); + indexInFile = GsonParser.parseLong(jsonObject.get("indexInFile")); + startDate = GsonParser.parseLong(jsonObject.get("startDate")); + endDate = GsonParser.parseLong(jsonObject.get("endDate")); + status = IngestEpgProgramStatus.get(GsonParser.parseString(jsonObject.get("status"))); + errors = GsonParser.parseArray(jsonObject.getAsJsonArray("errors"), EpgIngestErrorMessage.class); + warnings = GsonParser.parseArray(jsonObject.getAsJsonArray("warnings"), Message.class); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaIngestEpgProgramResult"); + kparams.add("programId", this.programId); + kparams.add("externalProgramId", this.externalProgramId); + kparams.add("linearChannelId", this.linearChannelId); + kparams.add("indexInFile", this.indexInFile); + kparams.add("startDate", this.startDate); + kparams.add("endDate", this.endDate); + kparams.add("status", this.status); + kparams.add("errors", this.errors); + kparams.add("warnings", this.warnings); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public IngestEpgProgramResult createFromParcel(Parcel source) { + return new IngestEpgProgramResult(source); + } + + @Override + public IngestEpgProgramResult[] newArray(int size) { + return new IngestEpgProgramResult[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.programId); + dest.writeString(this.externalProgramId); + dest.writeValue(this.linearChannelId); + dest.writeValue(this.indexInFile); + dest.writeValue(this.startDate); + dest.writeValue(this.endDate); + dest.writeInt(this.status == null ? -1 : this.status.ordinal()); + if(this.errors != null) { + dest.writeInt(this.errors.size()); + dest.writeList(this.errors); + } else { + dest.writeInt(-1); + } + if(this.warnings != null) { + dest.writeInt(this.warnings.size()); + dest.writeList(this.warnings); + } else { + dest.writeInt(-1); + } + } + + public IngestEpgProgramResult(Parcel in) { + super(in); + this.programId = (Long)in.readValue(Long.class.getClassLoader()); + this.externalProgramId = in.readString(); + this.linearChannelId = (Long)in.readValue(Long.class.getClassLoader()); + this.indexInFile = (Long)in.readValue(Long.class.getClassLoader()); + this.startDate = (Long)in.readValue(Long.class.getClassLoader()); + this.endDate = (Long)in.readValue(Long.class.getClassLoader()); + int tmpStatus = in.readInt(); + this.status = tmpStatus == -1 ? null : IngestEpgProgramStatus.values()[tmpStatus]; + int errorsSize = in.readInt(); + if( errorsSize > -1) { + this.errors = new ArrayList<>(); + in.readList(this.errors, EpgIngestErrorMessage.class.getClassLoader()); + } + int warningsSize = in.readInt(); + if( warningsSize > -1) { + this.warnings = new ArrayList<>(); + in.readList(this.warnings, Message.class.getClassLoader()); + } + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/IngestEpgProgramResultFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/IngestEpgProgramResultFilter.java new file mode 100644 index 000000000..4a6ac1c27 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/IngestEpgProgramResultFilter.java @@ -0,0 +1,82 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(IngestEpgProgramResultFilter.Tokenizer.class) +public class IngestEpgProgramResultFilter extends Filter { + + public interface Tokenizer extends Filter.Tokenizer { + } + + + + public IngestEpgProgramResultFilter() { + super(); + } + + public IngestEpgProgramResultFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaIngestEpgProgramResultFilter"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public IngestEpgProgramResultFilter createFromParcel(Parcel source) { + return new IngestEpgProgramResultFilter(source); + } + + @Override + public IngestEpgProgramResultFilter[] newArray(int size) { + return new IngestEpgProgramResultFilter[size]; + } + }; + + public IngestEpgProgramResultFilter(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/IngestProfile.java b/KalturaClient/src/main/java/com/kaltura/client/types/IngestProfile.java new file mode 100644 index 000000000..9014c954d --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/IngestProfile.java @@ -0,0 +1,317 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.IngestProfileAutofillPolicy; +import com.kaltura.client.enums.IngestProfileOverlapPolicy; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.HashMap; +import java.util.Map; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Ingest profile + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(IngestProfile.Tokenizer.class) +public class IngestProfile extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String id(); + String name(); + String externalId(); + String assetTypeId(); + String transformationAdapterUrl(); + RequestBuilder.MapTokenizer transformationAdapterSettings(); + String transformationAdapterSharedSecret(); + String defaultAutoFillPolicy(); + String defaultOverlapPolicy(); + String overlapChannels(); + } + + /** + * Ingest profile identifier + */ + private Integer id; + /** + * Ingest profile name + */ + private String name; + /** + * Ingest profile externalId + */ + private String externalId; + /** + * Type of assets that this profile suppose to ingest: 0 - EPG, 1 - MEDIA + */ + private Integer assetTypeId; + /** + * Transformation Adapter URL + */ + private String transformationAdapterUrl; + /** + * Transformation Adapter settings + */ + private Map transformationAdapterSettings; + /** + * Transformation Adapter shared secret + */ + private String transformationAdapterSharedSecret; + /** + * Ingest profile default Auto-fill policy + */ + private IngestProfileAutofillPolicy defaultAutoFillPolicy; + /** + * Ingest profile default Overlap policy + */ + private IngestProfileOverlapPolicy defaultOverlapPolicy; + /** + * Ingest profile overlap channels + */ + private String overlapChannels; + + // id: + public Integer getId(){ + return this.id; + } + // name: + public String getName(){ + return this.name; + } + public void setName(String name){ + this.name = name; + } + + public void name(String multirequestToken){ + setToken("name", multirequestToken); + } + + // externalId: + public String getExternalId(){ + return this.externalId; + } + public void setExternalId(String externalId){ + this.externalId = externalId; + } + + public void externalId(String multirequestToken){ + setToken("externalId", multirequestToken); + } + + // assetTypeId: + public Integer getAssetTypeId(){ + return this.assetTypeId; + } + public void setAssetTypeId(Integer assetTypeId){ + this.assetTypeId = assetTypeId; + } + + public void assetTypeId(String multirequestToken){ + setToken("assetTypeId", multirequestToken); + } + + // transformationAdapterUrl: + public String getTransformationAdapterUrl(){ + return this.transformationAdapterUrl; + } + public void setTransformationAdapterUrl(String transformationAdapterUrl){ + this.transformationAdapterUrl = transformationAdapterUrl; + } + + public void transformationAdapterUrl(String multirequestToken){ + setToken("transformationAdapterUrl", multirequestToken); + } + + // transformationAdapterSettings: + public Map getTransformationAdapterSettings(){ + return this.transformationAdapterSettings; + } + public void setTransformationAdapterSettings(Map transformationAdapterSettings){ + this.transformationAdapterSettings = transformationAdapterSettings; + } + + // transformationAdapterSharedSecret: + public String getTransformationAdapterSharedSecret(){ + return this.transformationAdapterSharedSecret; + } + public void setTransformationAdapterSharedSecret(String transformationAdapterSharedSecret){ + this.transformationAdapterSharedSecret = transformationAdapterSharedSecret; + } + + public void transformationAdapterSharedSecret(String multirequestToken){ + setToken("transformationAdapterSharedSecret", multirequestToken); + } + + // defaultAutoFillPolicy: + public IngestProfileAutofillPolicy getDefaultAutoFillPolicy(){ + return this.defaultAutoFillPolicy; + } + public void setDefaultAutoFillPolicy(IngestProfileAutofillPolicy defaultAutoFillPolicy){ + this.defaultAutoFillPolicy = defaultAutoFillPolicy; + } + + public void defaultAutoFillPolicy(String multirequestToken){ + setToken("defaultAutoFillPolicy", multirequestToken); + } + + // defaultOverlapPolicy: + public IngestProfileOverlapPolicy getDefaultOverlapPolicy(){ + return this.defaultOverlapPolicy; + } + public void setDefaultOverlapPolicy(IngestProfileOverlapPolicy defaultOverlapPolicy){ + this.defaultOverlapPolicy = defaultOverlapPolicy; + } + + public void defaultOverlapPolicy(String multirequestToken){ + setToken("defaultOverlapPolicy", multirequestToken); + } + + // overlapChannels: + public String getOverlapChannels(){ + return this.overlapChannels; + } + public void setOverlapChannels(String overlapChannels){ + this.overlapChannels = overlapChannels; + } + + public void overlapChannels(String multirequestToken){ + setToken("overlapChannels", multirequestToken); + } + + + public IngestProfile() { + super(); + } + + public IngestProfile(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + id = GsonParser.parseInt(jsonObject.get("id")); + name = GsonParser.parseString(jsonObject.get("name")); + externalId = GsonParser.parseString(jsonObject.get("externalId")); + assetTypeId = GsonParser.parseInt(jsonObject.get("assetTypeId")); + transformationAdapterUrl = GsonParser.parseString(jsonObject.get("transformationAdapterUrl")); + transformationAdapterSettings = GsonParser.parseMap(jsonObject.getAsJsonObject("transformationAdapterSettings"), StringValue.class); + transformationAdapterSharedSecret = GsonParser.parseString(jsonObject.get("transformationAdapterSharedSecret")); + defaultAutoFillPolicy = IngestProfileAutofillPolicy.get(GsonParser.parseString(jsonObject.get("defaultAutoFillPolicy"))); + defaultOverlapPolicy = IngestProfileOverlapPolicy.get(GsonParser.parseString(jsonObject.get("defaultOverlapPolicy"))); + overlapChannels = GsonParser.parseString(jsonObject.get("overlapChannels")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaIngestProfile"); + kparams.add("name", this.name); + kparams.add("externalId", this.externalId); + kparams.add("assetTypeId", this.assetTypeId); + kparams.add("transformationAdapterUrl", this.transformationAdapterUrl); + kparams.add("transformationAdapterSettings", this.transformationAdapterSettings); + kparams.add("transformationAdapterSharedSecret", this.transformationAdapterSharedSecret); + kparams.add("defaultAutoFillPolicy", this.defaultAutoFillPolicy); + kparams.add("defaultOverlapPolicy", this.defaultOverlapPolicy); + kparams.add("overlapChannels", this.overlapChannels); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public IngestProfile createFromParcel(Parcel source) { + return new IngestProfile(source); + } + + @Override + public IngestProfile[] newArray(int size) { + return new IngestProfile[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.id); + dest.writeString(this.name); + dest.writeString(this.externalId); + dest.writeValue(this.assetTypeId); + dest.writeString(this.transformationAdapterUrl); + if(this.transformationAdapterSettings != null) { + dest.writeInt(this.transformationAdapterSettings.size()); + for (Map.Entry entry : this.transformationAdapterSettings.entrySet()) { + dest.writeString(entry.getKey()); + dest.writeParcelable(entry.getValue(), flags); + } + } else { + dest.writeInt(-1); + } + dest.writeString(this.transformationAdapterSharedSecret); + dest.writeInt(this.defaultAutoFillPolicy == null ? -1 : this.defaultAutoFillPolicy.ordinal()); + dest.writeInt(this.defaultOverlapPolicy == null ? -1 : this.defaultOverlapPolicy.ordinal()); + dest.writeString(this.overlapChannels); + } + + public IngestProfile(Parcel in) { + super(in); + this.id = (Integer)in.readValue(Integer.class.getClassLoader()); + this.name = in.readString(); + this.externalId = in.readString(); + this.assetTypeId = (Integer)in.readValue(Integer.class.getClassLoader()); + this.transformationAdapterUrl = in.readString(); + int transformationAdapterSettingsSize = in.readInt(); + if( transformationAdapterSettingsSize > -1) { + this.transformationAdapterSettings = new HashMap<>(); + for (int i = 0; i < transformationAdapterSettingsSize; i++) { + String key = in.readString(); + StringValue value = in.readParcelable(StringValue.class.getClassLoader()); + this.transformationAdapterSettings.put(key, value); + } + } + this.transformationAdapterSharedSecret = in.readString(); + int tmpDefaultAutoFillPolicy = in.readInt(); + this.defaultAutoFillPolicy = tmpDefaultAutoFillPolicy == -1 ? null : IngestProfileAutofillPolicy.values()[tmpDefaultAutoFillPolicy]; + int tmpDefaultOverlapPolicy = in.readInt(); + this.defaultOverlapPolicy = tmpDefaultOverlapPolicy == -1 ? null : IngestProfileOverlapPolicy.values()[tmpDefaultOverlapPolicy]; + this.overlapChannels = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/IngestProgramResultsByCombinedFieldsFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/IngestProgramResultsByCombinedFieldsFilter.java new file mode 100644 index 000000000..a8974056f --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/IngestProgramResultsByCombinedFieldsFilter.java @@ -0,0 +1,115 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(IngestProgramResultsByCombinedFieldsFilter.Tokenizer.class) +public class IngestProgramResultsByCombinedFieldsFilter extends IngestProgramResultsByRefineFilter { + + public interface Tokenizer extends IngestProgramResultsByRefineFilter.Tokenizer { + String combinedFieldsValue(); + } + + /** + * String value to substring search by ProgramID or ExternalProgramID or + LinearChannelID. Up to 20 ids are allowed. + */ + private String combinedFieldsValue; + + // combinedFieldsValue: + public String getCombinedFieldsValue(){ + return this.combinedFieldsValue; + } + public void setCombinedFieldsValue(String combinedFieldsValue){ + this.combinedFieldsValue = combinedFieldsValue; + } + + public void combinedFieldsValue(String multirequestToken){ + setToken("combinedFieldsValue", multirequestToken); + } + + + public IngestProgramResultsByCombinedFieldsFilter() { + super(); + } + + public IngestProgramResultsByCombinedFieldsFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + combinedFieldsValue = GsonParser.parseString(jsonObject.get("combinedFieldsValue")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaIngestProgramResultsByCombinedFieldsFilter"); + kparams.add("combinedFieldsValue", this.combinedFieldsValue); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public IngestProgramResultsByCombinedFieldsFilter createFromParcel(Parcel source) { + return new IngestProgramResultsByCombinedFieldsFilter(source); + } + + @Override + public IngestProgramResultsByCombinedFieldsFilter[] newArray(int size) { + return new IngestProgramResultsByCombinedFieldsFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.combinedFieldsValue); + } + + public IngestProgramResultsByCombinedFieldsFilter(Parcel in) { + super(in); + this.combinedFieldsValue = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/IngestProgramResultsByCompoundFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/IngestProgramResultsByCompoundFilter.java new file mode 100644 index 000000000..db1b54c58 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/IngestProgramResultsByCompoundFilter.java @@ -0,0 +1,115 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(IngestProgramResultsByCompoundFilter.Tokenizer.class) +public class IngestProgramResultsByCompoundFilter extends IngestProgramResultsByRefineFilter { + + public interface Tokenizer extends IngestProgramResultsByRefineFilter.Tokenizer { + String linearChannelIdIn(); + } + + /** + * Comma seperated channel id (the id of the linear channel asset that the program + belongs to). Up to 20 ids are allowed. + */ + private String linearChannelIdIn; + + // linearChannelIdIn: + public String getLinearChannelIdIn(){ + return this.linearChannelIdIn; + } + public void setLinearChannelIdIn(String linearChannelIdIn){ + this.linearChannelIdIn = linearChannelIdIn; + } + + public void linearChannelIdIn(String multirequestToken){ + setToken("linearChannelIdIn", multirequestToken); + } + + + public IngestProgramResultsByCompoundFilter() { + super(); + } + + public IngestProgramResultsByCompoundFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + linearChannelIdIn = GsonParser.parseString(jsonObject.get("linearChannelIdIn")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaIngestProgramResultsByCompoundFilter"); + kparams.add("linearChannelIdIn", this.linearChannelIdIn); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public IngestProgramResultsByCompoundFilter createFromParcel(Parcel source) { + return new IngestProgramResultsByCompoundFilter(source); + } + + @Override + public IngestProgramResultsByCompoundFilter[] newArray(int size) { + return new IngestProgramResultsByCompoundFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.linearChannelIdIn); + } + + public IngestProgramResultsByCompoundFilter(Parcel in) { + super(in); + this.linearChannelIdIn = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/IngestProgramResultsByExternalIdsFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/IngestProgramResultsByExternalIdsFilter.java new file mode 100644 index 000000000..3da32e7f5 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/IngestProgramResultsByExternalIdsFilter.java @@ -0,0 +1,114 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(IngestProgramResultsByExternalIdsFilter.Tokenizer.class) +public class IngestProgramResultsByExternalIdsFilter extends IngestEpgProgramResultFilter { + + public interface Tokenizer extends IngestEpgProgramResultFilter.Tokenizer { + String externalProgramIdIn(); + } + + /** + * Comma seperated external program id. Up to 20 ids are allowed. + */ + private String externalProgramIdIn; + + // externalProgramIdIn: + public String getExternalProgramIdIn(){ + return this.externalProgramIdIn; + } + public void setExternalProgramIdIn(String externalProgramIdIn){ + this.externalProgramIdIn = externalProgramIdIn; + } + + public void externalProgramIdIn(String multirequestToken){ + setToken("externalProgramIdIn", multirequestToken); + } + + + public IngestProgramResultsByExternalIdsFilter() { + super(); + } + + public IngestProgramResultsByExternalIdsFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + externalProgramIdIn = GsonParser.parseString(jsonObject.get("externalProgramIdIn")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaIngestProgramResultsByExternalIdsFilter"); + kparams.add("externalProgramIdIn", this.externalProgramIdIn); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public IngestProgramResultsByExternalIdsFilter createFromParcel(Parcel source) { + return new IngestProgramResultsByExternalIdsFilter(source); + } + + @Override + public IngestProgramResultsByExternalIdsFilter[] newArray(int size) { + return new IngestProgramResultsByExternalIdsFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.externalProgramIdIn); + } + + public IngestProgramResultsByExternalIdsFilter(Parcel in) { + super(in); + this.externalProgramIdIn = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/IngestProgramResultsByProgramIdsFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/IngestProgramResultsByProgramIdsFilter.java new file mode 100644 index 000000000..98a76c802 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/IngestProgramResultsByProgramIdsFilter.java @@ -0,0 +1,115 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(IngestProgramResultsByProgramIdsFilter.Tokenizer.class) +public class IngestProgramResultsByProgramIdsFilter extends IngestEpgProgramResultFilter { + + public interface Tokenizer extends IngestEpgProgramResultFilter.Tokenizer { + String programIdIn(); + } + + /** + * Comma seperated program id (the unique ingested program id as it determined by + Kaltura BE). Up to 20 ids are allowed. + */ + private String programIdIn; + + // programIdIn: + public String getProgramIdIn(){ + return this.programIdIn; + } + public void setProgramIdIn(String programIdIn){ + this.programIdIn = programIdIn; + } + + public void programIdIn(String multirequestToken){ + setToken("programIdIn", multirequestToken); + } + + + public IngestProgramResultsByProgramIdsFilter() { + super(); + } + + public IngestProgramResultsByProgramIdsFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + programIdIn = GsonParser.parseString(jsonObject.get("programIdIn")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaIngestProgramResultsByProgramIdsFilter"); + kparams.add("programIdIn", this.programIdIn); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public IngestProgramResultsByProgramIdsFilter createFromParcel(Parcel source) { + return new IngestProgramResultsByProgramIdsFilter(source); + } + + @Override + public IngestProgramResultsByProgramIdsFilter[] newArray(int size) { + return new IngestProgramResultsByProgramIdsFilter[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.programIdIn); + } + + public IngestProgramResultsByProgramIdsFilter(Parcel in) { + super(in); + this.programIdIn = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/IngestProgramResultsByRefineFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/IngestProgramResultsByRefineFilter.java new file mode 100644 index 000000000..6fda44160 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/IngestProgramResultsByRefineFilter.java @@ -0,0 +1,148 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(IngestProgramResultsByRefineFilter.Tokenizer.class) +public abstract class IngestProgramResultsByRefineFilter extends IngestEpgProgramResultFilter { + + public interface Tokenizer extends IngestEpgProgramResultFilter.Tokenizer { + String ingestStatusIn(); + String startDateGreaterThan(); + String startDateSmallerThan(); + } + + /** + * Comma seperated valid statuses - only &#39;FAILURE&#39;, + &#39;WARNING&#39; and &#39;SUCCESS&#39; are valid strings. No + repetitions are allowed. + */ + private String ingestStatusIn; + /** + * Program EPG start date greater then this value. Date and time represented as + epoch. + */ + private Long startDateGreaterThan; + /** + * Program EPG start date smaller than this value. Date and time represented as + epoch. + */ + private Long startDateSmallerThan; + + // ingestStatusIn: + public String getIngestStatusIn(){ + return this.ingestStatusIn; + } + public void setIngestStatusIn(String ingestStatusIn){ + this.ingestStatusIn = ingestStatusIn; + } + + public void ingestStatusIn(String multirequestToken){ + setToken("ingestStatusIn", multirequestToken); + } + + // startDateGreaterThan: + public Long getStartDateGreaterThan(){ + return this.startDateGreaterThan; + } + public void setStartDateGreaterThan(Long startDateGreaterThan){ + this.startDateGreaterThan = startDateGreaterThan; + } + + public void startDateGreaterThan(String multirequestToken){ + setToken("startDateGreaterThan", multirequestToken); + } + + // startDateSmallerThan: + public Long getStartDateSmallerThan(){ + return this.startDateSmallerThan; + } + public void setStartDateSmallerThan(Long startDateSmallerThan){ + this.startDateSmallerThan = startDateSmallerThan; + } + + public void startDateSmallerThan(String multirequestToken){ + setToken("startDateSmallerThan", multirequestToken); + } + + + public IngestProgramResultsByRefineFilter() { + super(); + } + + public IngestProgramResultsByRefineFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + ingestStatusIn = GsonParser.parseString(jsonObject.get("ingestStatusIn")); + startDateGreaterThan = GsonParser.parseLong(jsonObject.get("startDateGreaterThan")); + startDateSmallerThan = GsonParser.parseLong(jsonObject.get("startDateSmallerThan")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaIngestProgramResultsByRefineFilter"); + kparams.add("ingestStatusIn", this.ingestStatusIn); + kparams.add("startDateGreaterThan", this.startDateGreaterThan); + kparams.add("startDateSmallerThan", this.startDateSmallerThan); + return kparams; + } + + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.ingestStatusIn); + dest.writeValue(this.startDateGreaterThan); + dest.writeValue(this.startDateSmallerThan); + } + + public IngestProgramResultsByRefineFilter(Parcel in) { + super(in); + this.ingestStatusIn = in.readString(); + this.startDateGreaterThan = (Long)in.readValue(Long.class.getClassLoader()); + this.startDateSmallerThan = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/IngestStatusEpgConfiguration.java b/KalturaClient/src/main/java/com/kaltura/client/types/IngestStatusEpgConfiguration.java new file mode 100644 index 000000000..cd1231665 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/IngestStatusEpgConfiguration.java @@ -0,0 +1,137 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(IngestStatusEpgConfiguration.Tokenizer.class) +public class IngestStatusEpgConfiguration extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String isSupported(); + String retainingPeriod(); + } + + /** + * Defines whether partner in question enabled core ingest status service. + */ + private Boolean isSupported; + /** + * Defines the time in seconds that the service retain information about ingest + status. + */ + private Long retainingPeriod; + + // isSupported: + public Boolean getIsSupported(){ + return this.isSupported; + } + public void setIsSupported(Boolean isSupported){ + this.isSupported = isSupported; + } + + public void isSupported(String multirequestToken){ + setToken("isSupported", multirequestToken); + } + + // retainingPeriod: + public Long getRetainingPeriod(){ + return this.retainingPeriod; + } + public void setRetainingPeriod(Long retainingPeriod){ + this.retainingPeriod = retainingPeriod; + } + + public void retainingPeriod(String multirequestToken){ + setToken("retainingPeriod", multirequestToken); + } + + + public IngestStatusEpgConfiguration() { + super(); + } + + public IngestStatusEpgConfiguration(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + isSupported = GsonParser.parseBoolean(jsonObject.get("isSupported")); + retainingPeriod = GsonParser.parseLong(jsonObject.get("retainingPeriod")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaIngestStatusEpgConfiguration"); + kparams.add("isSupported", this.isSupported); + kparams.add("retainingPeriod", this.retainingPeriod); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public IngestStatusEpgConfiguration createFromParcel(Parcel source) { + return new IngestStatusEpgConfiguration(source); + } + + @Override + public IngestStatusEpgConfiguration[] newArray(int size) { + return new IngestStatusEpgConfiguration[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.isSupported); + dest.writeValue(this.retainingPeriod); + } + + public IngestStatusEpgConfiguration(Parcel in) { + super(in); + this.isSupported = (Boolean)in.readValue(Boolean.class.getClassLoader()); + this.retainingPeriod = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/IngestStatusPartnerConfiguration.java b/KalturaClient/src/main/java/com/kaltura/client/types/IngestStatusPartnerConfiguration.java new file mode 100644 index 000000000..433589da3 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/IngestStatusPartnerConfiguration.java @@ -0,0 +1,112 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.IngestStatusEpgConfiguration; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(IngestStatusPartnerConfiguration.Tokenizer.class) +public class IngestStatusPartnerConfiguration extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + IngestStatusEpgConfiguration.Tokenizer epg(); + } + + /** + * Defines the epg configuration of the partner. + */ + private IngestStatusEpgConfiguration epg; + + // epg: + public IngestStatusEpgConfiguration getEpg(){ + return this.epg; + } + public void setEpg(IngestStatusEpgConfiguration epg){ + this.epg = epg; + } + + + public IngestStatusPartnerConfiguration() { + super(); + } + + public IngestStatusPartnerConfiguration(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + epg = GsonParser.parseObject(jsonObject.getAsJsonObject("epg"), IngestStatusEpgConfiguration.class); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaIngestStatusPartnerConfiguration"); + kparams.add("epg", this.epg); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public IngestStatusPartnerConfiguration createFromParcel(Parcel source) { + return new IngestStatusPartnerConfiguration(source); + } + + @Override + public IngestStatusPartnerConfiguration[] newArray(int size) { + return new IngestStatusPartnerConfiguration[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeParcelable(this.epg, flags); + } + + public IngestStatusPartnerConfiguration(Parcel in) { + super(in); + this.epg = in.readParcelable(IngestStatusEpgConfiguration.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/IntegerValue.java b/KalturaClient/src/main/java/com/kaltura/client/types/IntegerValue.java new file mode 100644 index 000000000..c278375a3 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/IntegerValue.java @@ -0,0 +1,117 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * A string representation to return an array of ints + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(IntegerValue.Tokenizer.class) +public class IntegerValue extends Value { + + public interface Tokenizer extends Value.Tokenizer { + String value(); + } + + /** + * Value + */ + private Integer value; + + // value: + public Integer getValue(){ + return this.value; + } + public void setValue(Integer value){ + this.value = value; + } + + public void value(String multirequestToken){ + setToken("value", multirequestToken); + } + + + public IntegerValue() { + super(); + } + + public IntegerValue(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + value = GsonParser.parseInt(jsonObject.get("value")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaIntegerValue"); + kparams.add("value", this.value); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public IntegerValue createFromParcel(Parcel source) { + return new IntegerValue(source); + } + + @Override + public IntegerValue[] newArray(int size) { + return new IntegerValue[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeValue(this.value); + } + + public IntegerValue(Parcel in) { + super(in); + this.value = (Integer)in.readValue(Integer.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/Iot.java b/KalturaClient/src/main/java/com/kaltura/client/types/Iot.java new file mode 100644 index 000000000..0f30f9a75 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/Iot.java @@ -0,0 +1,348 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * IOT DEVICE + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(Iot.Tokenizer.class) +public class Iot extends OTTObjectSupportNullable { + + public interface Tokenizer extends OTTObjectSupportNullable.Tokenizer { + String udid(); + String accessKey(); + String accessSecretKey(); + String username(); + String userPassword(); + String identityId(); + String thingArn(); + String thingId(); + String principal(); + String endPoint(); + String extendedEndPoint(); + String identityPoolId(); + } + + /** + * id + */ + private String udid; + /** + * accessKey + */ + private String accessKey; + /** + * accessSecretKey + */ + private String accessSecretKey; + /** + * Username + */ + private String username; + /** + * UserPassword + */ + private String userPassword; + /** + * IdentityId + */ + private String identityId; + /** + * ThingArn + */ + private String thingArn; + /** + * ThingId + */ + private String thingId; + /** + * Principal + */ + private String principal; + /** + * EndPoint + */ + private String endPoint; + /** + * ExtendedEndPoint + */ + private String extendedEndPoint; + /** + * IdentityPoolId + */ + private String identityPoolId; + + // udid: + public String getUdid(){ + return this.udid; + } + public void setUdid(String udid){ + this.udid = udid; + } + + public void udid(String multirequestToken){ + setToken("udid", multirequestToken); + } + + // accessKey: + public String getAccessKey(){ + return this.accessKey; + } + public void setAccessKey(String accessKey){ + this.accessKey = accessKey; + } + + public void accessKey(String multirequestToken){ + setToken("accessKey", multirequestToken); + } + + // accessSecretKey: + public String getAccessSecretKey(){ + return this.accessSecretKey; + } + public void setAccessSecretKey(String accessSecretKey){ + this.accessSecretKey = accessSecretKey; + } + + public void accessSecretKey(String multirequestToken){ + setToken("accessSecretKey", multirequestToken); + } + + // username: + public String getUsername(){ + return this.username; + } + public void setUsername(String username){ + this.username = username; + } + + public void username(String multirequestToken){ + setToken("username", multirequestToken); + } + + // userPassword: + public String getUserPassword(){ + return this.userPassword; + } + public void setUserPassword(String userPassword){ + this.userPassword = userPassword; + } + + public void userPassword(String multirequestToken){ + setToken("userPassword", multirequestToken); + } + + // identityId: + public String getIdentityId(){ + return this.identityId; + } + public void setIdentityId(String identityId){ + this.identityId = identityId; + } + + public void identityId(String multirequestToken){ + setToken("identityId", multirequestToken); + } + + // thingArn: + public String getThingArn(){ + return this.thingArn; + } + public void setThingArn(String thingArn){ + this.thingArn = thingArn; + } + + public void thingArn(String multirequestToken){ + setToken("thingArn", multirequestToken); + } + + // thingId: + public String getThingId(){ + return this.thingId; + } + public void setThingId(String thingId){ + this.thingId = thingId; + } + + public void thingId(String multirequestToken){ + setToken("thingId", multirequestToken); + } + + // principal: + public String getPrincipal(){ + return this.principal; + } + public void setPrincipal(String principal){ + this.principal = principal; + } + + public void principal(String multirequestToken){ + setToken("principal", multirequestToken); + } + + // endPoint: + public String getEndPoint(){ + return this.endPoint; + } + public void setEndPoint(String endPoint){ + this.endPoint = endPoint; + } + + public void endPoint(String multirequestToken){ + setToken("endPoint", multirequestToken); + } + + // extendedEndPoint: + public String getExtendedEndPoint(){ + return this.extendedEndPoint; + } + public void setExtendedEndPoint(String extendedEndPoint){ + this.extendedEndPoint = extendedEndPoint; + } + + public void extendedEndPoint(String multirequestToken){ + setToken("extendedEndPoint", multirequestToken); + } + + // identityPoolId: + public String getIdentityPoolId(){ + return this.identityPoolId; + } + public void setIdentityPoolId(String identityPoolId){ + this.identityPoolId = identityPoolId; + } + + public void identityPoolId(String multirequestToken){ + setToken("identityPoolId", multirequestToken); + } + + + public Iot() { + super(); + } + + public Iot(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + udid = GsonParser.parseString(jsonObject.get("udid")); + accessKey = GsonParser.parseString(jsonObject.get("accessKey")); + accessSecretKey = GsonParser.parseString(jsonObject.get("accessSecretKey")); + username = GsonParser.parseString(jsonObject.get("username")); + userPassword = GsonParser.parseString(jsonObject.get("userPassword")); + identityId = GsonParser.parseString(jsonObject.get("identityId")); + thingArn = GsonParser.parseString(jsonObject.get("thingArn")); + thingId = GsonParser.parseString(jsonObject.get("thingId")); + principal = GsonParser.parseString(jsonObject.get("principal")); + endPoint = GsonParser.parseString(jsonObject.get("endPoint")); + extendedEndPoint = GsonParser.parseString(jsonObject.get("extendedEndPoint")); + identityPoolId = GsonParser.parseString(jsonObject.get("identityPoolId")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaIot"); + kparams.add("udid", this.udid); + kparams.add("accessKey", this.accessKey); + kparams.add("accessSecretKey", this.accessSecretKey); + kparams.add("username", this.username); + kparams.add("userPassword", this.userPassword); + kparams.add("identityId", this.identityId); + kparams.add("thingArn", this.thingArn); + kparams.add("thingId", this.thingId); + kparams.add("principal", this.principal); + kparams.add("endPoint", this.endPoint); + kparams.add("extendedEndPoint", this.extendedEndPoint); + kparams.add("identityPoolId", this.identityPoolId); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public Iot createFromParcel(Parcel source) { + return new Iot(source); + } + + @Override + public Iot[] newArray(int size) { + return new Iot[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.udid); + dest.writeString(this.accessKey); + dest.writeString(this.accessSecretKey); + dest.writeString(this.username); + dest.writeString(this.userPassword); + dest.writeString(this.identityId); + dest.writeString(this.thingArn); + dest.writeString(this.thingId); + dest.writeString(this.principal); + dest.writeString(this.endPoint); + dest.writeString(this.extendedEndPoint); + dest.writeString(this.identityPoolId); + } + + public Iot(Parcel in) { + super(in); + this.udid = in.readString(); + this.accessKey = in.readString(); + this.accessSecretKey = in.readString(); + this.username = in.readString(); + this.userPassword = in.readString(); + this.identityId = in.readString(); + this.thingArn = in.readString(); + this.thingId = in.readString(); + this.principal = in.readString(); + this.endPoint = in.readString(); + this.extendedEndPoint = in.readString(); + this.identityPoolId = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/IotClientConfiguration.java b/KalturaClient/src/main/java/com/kaltura/client/types/IotClientConfiguration.java new file mode 100644 index 000000000..54e2949c6 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/IotClientConfiguration.java @@ -0,0 +1,399 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.ArrayList; +import java.util.List; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Iot client Configuration + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(IotClientConfiguration.Tokenizer.class) +public class IotClientConfiguration extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String identityPoolId(); + String userPoolId(); + String awsRegion(); + String appClientId(); + String legacyEndPoint(); + String endPoint(); + String thingName(); + String thingArn(); + String thingId(); + String username(); + String password(); + RequestBuilder.ListTokenizer topics(); + String status(); + String message(); + } + + /** + * IdentityPoolId + */ + private String identityPoolId; + /** + * UserPoolId + */ + private String userPoolId; + /** + * AwsRegion + */ + private String awsRegion; + /** + * appClientId + */ + private String appClientId; + /** + * legacyEndPoint + */ + private String legacyEndPoint; + /** + * endPoint + */ + private String endPoint; + /** + * thingName + */ + private String thingName; + /** + * thingArn + */ + private String thingArn; + /** + * thingId + */ + private String thingId; + /** + * username + */ + private String username; + /** + * password + */ + private String password; + /** + * topics + */ + private List topics; + /** + * status + */ + private String status; + /** + * message + */ + private String message; + + // identityPoolId: + public String getIdentityPoolId(){ + return this.identityPoolId; + } + public void setIdentityPoolId(String identityPoolId){ + this.identityPoolId = identityPoolId; + } + + public void identityPoolId(String multirequestToken){ + setToken("identityPoolId", multirequestToken); + } + + // userPoolId: + public String getUserPoolId(){ + return this.userPoolId; + } + public void setUserPoolId(String userPoolId){ + this.userPoolId = userPoolId; + } + + public void userPoolId(String multirequestToken){ + setToken("userPoolId", multirequestToken); + } + + // awsRegion: + public String getAwsRegion(){ + return this.awsRegion; + } + public void setAwsRegion(String awsRegion){ + this.awsRegion = awsRegion; + } + + public void awsRegion(String multirequestToken){ + setToken("awsRegion", multirequestToken); + } + + // appClientId: + public String getAppClientId(){ + return this.appClientId; + } + public void setAppClientId(String appClientId){ + this.appClientId = appClientId; + } + + public void appClientId(String multirequestToken){ + setToken("appClientId", multirequestToken); + } + + // legacyEndPoint: + public String getLegacyEndPoint(){ + return this.legacyEndPoint; + } + public void setLegacyEndPoint(String legacyEndPoint){ + this.legacyEndPoint = legacyEndPoint; + } + + public void legacyEndPoint(String multirequestToken){ + setToken("legacyEndPoint", multirequestToken); + } + + // endPoint: + public String getEndPoint(){ + return this.endPoint; + } + public void setEndPoint(String endPoint){ + this.endPoint = endPoint; + } + + public void endPoint(String multirequestToken){ + setToken("endPoint", multirequestToken); + } + + // thingName: + public String getThingName(){ + return this.thingName; + } + public void setThingName(String thingName){ + this.thingName = thingName; + } + + public void thingName(String multirequestToken){ + setToken("thingName", multirequestToken); + } + + // thingArn: + public String getThingArn(){ + return this.thingArn; + } + public void setThingArn(String thingArn){ + this.thingArn = thingArn; + } + + public void thingArn(String multirequestToken){ + setToken("thingArn", multirequestToken); + } + + // thingId: + public String getThingId(){ + return this.thingId; + } + public void setThingId(String thingId){ + this.thingId = thingId; + } + + public void thingId(String multirequestToken){ + setToken("thingId", multirequestToken); + } + + // username: + public String getUsername(){ + return this.username; + } + public void setUsername(String username){ + this.username = username; + } + + public void username(String multirequestToken){ + setToken("username", multirequestToken); + } + + // password: + public String getPassword(){ + return this.password; + } + public void setPassword(String password){ + this.password = password; + } + + public void password(String multirequestToken){ + setToken("password", multirequestToken); + } + + // topics: + public List getTopics(){ + return this.topics; + } + public void setTopics(List topics){ + this.topics = topics; + } + + // status: + public String getStatus(){ + return this.status; + } + public void setStatus(String status){ + this.status = status; + } + + public void status(String multirequestToken){ + setToken("status", multirequestToken); + } + + // message: + public String getMessage(){ + return this.message; + } + public void setMessage(String message){ + this.message = message; + } + + public void message(String multirequestToken){ + setToken("message", multirequestToken); + } + + + public IotClientConfiguration() { + super(); + } + + public IotClientConfiguration(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + identityPoolId = GsonParser.parseString(jsonObject.get("identityPoolId")); + userPoolId = GsonParser.parseString(jsonObject.get("userPoolId")); + awsRegion = GsonParser.parseString(jsonObject.get("awsRegion")); + appClientId = GsonParser.parseString(jsonObject.get("appClientId")); + legacyEndPoint = GsonParser.parseString(jsonObject.get("legacyEndPoint")); + endPoint = GsonParser.parseString(jsonObject.get("endPoint")); + thingName = GsonParser.parseString(jsonObject.get("thingName")); + thingArn = GsonParser.parseString(jsonObject.get("thingArn")); + thingId = GsonParser.parseString(jsonObject.get("thingId")); + username = GsonParser.parseString(jsonObject.get("username")); + password = GsonParser.parseString(jsonObject.get("password")); + topics = GsonParser.parseArray(jsonObject.getAsJsonArray("topics"), KeyValue.class); + status = GsonParser.parseString(jsonObject.get("status")); + message = GsonParser.parseString(jsonObject.get("message")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaIotClientConfiguration"); + kparams.add("identityPoolId", this.identityPoolId); + kparams.add("userPoolId", this.userPoolId); + kparams.add("awsRegion", this.awsRegion); + kparams.add("appClientId", this.appClientId); + kparams.add("legacyEndPoint", this.legacyEndPoint); + kparams.add("endPoint", this.endPoint); + kparams.add("thingName", this.thingName); + kparams.add("thingArn", this.thingArn); + kparams.add("thingId", this.thingId); + kparams.add("username", this.username); + kparams.add("password", this.password); + kparams.add("topics", this.topics); + kparams.add("status", this.status); + kparams.add("message", this.message); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public IotClientConfiguration createFromParcel(Parcel source) { + return new IotClientConfiguration(source); + } + + @Override + public IotClientConfiguration[] newArray(int size) { + return new IotClientConfiguration[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.identityPoolId); + dest.writeString(this.userPoolId); + dest.writeString(this.awsRegion); + dest.writeString(this.appClientId); + dest.writeString(this.legacyEndPoint); + dest.writeString(this.endPoint); + dest.writeString(this.thingName); + dest.writeString(this.thingArn); + dest.writeString(this.thingId); + dest.writeString(this.username); + dest.writeString(this.password); + if(this.topics != null) { + dest.writeInt(this.topics.size()); + dest.writeList(this.topics); + } else { + dest.writeInt(-1); + } + dest.writeString(this.status); + dest.writeString(this.message); + } + + public IotClientConfiguration(Parcel in) { + super(in); + this.identityPoolId = in.readString(); + this.userPoolId = in.readString(); + this.awsRegion = in.readString(); + this.appClientId = in.readString(); + this.legacyEndPoint = in.readString(); + this.endPoint = in.readString(); + this.thingName = in.readString(); + this.thingArn = in.readString(); + this.thingId = in.readString(); + this.username = in.readString(); + this.password = in.readString(); + int topicsSize = in.readInt(); + if( topicsSize > -1) { + this.topics = new ArrayList<>(); + in.readList(this.topics, KeyValue.class.getClassLoader()); + } + this.status = in.readString(); + this.message = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/IotFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/IotFilter.java new file mode 100644 index 000000000..86842d1b3 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/IotFilter.java @@ -0,0 +1,85 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Iot settings filter + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(IotFilter.Tokenizer.class) +public class IotFilter extends Filter { + + public interface Tokenizer extends Filter.Tokenizer { + } + + + + public IotFilter() { + super(); + } + + public IotFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaIotFilter"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public IotFilter createFromParcel(Parcel source) { + return new IotFilter(source); + } + + @Override + public IotFilter[] newArray(int size) { + return new IotFilter[size]; + } + }; + + public IotFilter(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/IotProfileAws.java b/KalturaClient/src/main/java/com/kaltura/client/types/IotProfileAws.java new file mode 100644 index 000000000..17ba3f60b --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/IotProfileAws.java @@ -0,0 +1,264 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * kalturaIotProfileAws + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(IotProfileAws.Tokenizer.class) +public class IotProfileAws extends OTTObjectSupportNullable { + + public interface Tokenizer extends OTTObjectSupportNullable.Tokenizer { + String iotEndPoint(); + String accessKeyId(); + String secretAccessKey(); + String userPoolId(); + String clientId(); + String identityPoolId(); + String region(); + String updateDate(); + } + + /** + * iotEndPoint + */ + private String iotEndPoint; + /** + * accessKeyId + */ + private String accessKeyId; + /** + * secretAccessKey + */ + private String secretAccessKey; + /** + * userPoolId + */ + private String userPoolId; + /** + * clientId + */ + private String clientId; + /** + * identityPoolId + */ + private String identityPoolId; + /** + * region + */ + private String region; + /** + * updateDate + */ + private Long updateDate; + + // iotEndPoint: + public String getIotEndPoint(){ + return this.iotEndPoint; + } + public void setIotEndPoint(String iotEndPoint){ + this.iotEndPoint = iotEndPoint; + } + + public void iotEndPoint(String multirequestToken){ + setToken("iotEndPoint", multirequestToken); + } + + // accessKeyId: + public String getAccessKeyId(){ + return this.accessKeyId; + } + public void setAccessKeyId(String accessKeyId){ + this.accessKeyId = accessKeyId; + } + + public void accessKeyId(String multirequestToken){ + setToken("accessKeyId", multirequestToken); + } + + // secretAccessKey: + public String getSecretAccessKey(){ + return this.secretAccessKey; + } + public void setSecretAccessKey(String secretAccessKey){ + this.secretAccessKey = secretAccessKey; + } + + public void secretAccessKey(String multirequestToken){ + setToken("secretAccessKey", multirequestToken); + } + + // userPoolId: + public String getUserPoolId(){ + return this.userPoolId; + } + public void setUserPoolId(String userPoolId){ + this.userPoolId = userPoolId; + } + + public void userPoolId(String multirequestToken){ + setToken("userPoolId", multirequestToken); + } + + // clientId: + public String getClientId(){ + return this.clientId; + } + public void setClientId(String clientId){ + this.clientId = clientId; + } + + public void clientId(String multirequestToken){ + setToken("clientId", multirequestToken); + } + + // identityPoolId: + public String getIdentityPoolId(){ + return this.identityPoolId; + } + public void setIdentityPoolId(String identityPoolId){ + this.identityPoolId = identityPoolId; + } + + public void identityPoolId(String multirequestToken){ + setToken("identityPoolId", multirequestToken); + } + + // region: + public String getRegion(){ + return this.region; + } + public void setRegion(String region){ + this.region = region; + } + + public void region(String multirequestToken){ + setToken("region", multirequestToken); + } + + // updateDate: + public Long getUpdateDate(){ + return this.updateDate; + } + public void setUpdateDate(Long updateDate){ + this.updateDate = updateDate; + } + + public void updateDate(String multirequestToken){ + setToken("updateDate", multirequestToken); + } + + + public IotProfileAws() { + super(); + } + + public IotProfileAws(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + iotEndPoint = GsonParser.parseString(jsonObject.get("iotEndPoint")); + accessKeyId = GsonParser.parseString(jsonObject.get("accessKeyId")); + secretAccessKey = GsonParser.parseString(jsonObject.get("secretAccessKey")); + userPoolId = GsonParser.parseString(jsonObject.get("userPoolId")); + clientId = GsonParser.parseString(jsonObject.get("clientId")); + identityPoolId = GsonParser.parseString(jsonObject.get("identityPoolId")); + region = GsonParser.parseString(jsonObject.get("region")); + updateDate = GsonParser.parseLong(jsonObject.get("updateDate")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaIotProfileAws"); + kparams.add("iotEndPoint", this.iotEndPoint); + kparams.add("accessKeyId", this.accessKeyId); + kparams.add("secretAccessKey", this.secretAccessKey); + kparams.add("userPoolId", this.userPoolId); + kparams.add("clientId", this.clientId); + kparams.add("identityPoolId", this.identityPoolId); + kparams.add("region", this.region); + kparams.add("updateDate", this.updateDate); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public IotProfileAws createFromParcel(Parcel source) { + return new IotProfileAws(source); + } + + @Override + public IotProfileAws[] newArray(int size) { + return new IotProfileAws[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.iotEndPoint); + dest.writeString(this.accessKeyId); + dest.writeString(this.secretAccessKey); + dest.writeString(this.userPoolId); + dest.writeString(this.clientId); + dest.writeString(this.identityPoolId); + dest.writeString(this.region); + dest.writeValue(this.updateDate); + } + + public IotProfileAws(Parcel in) { + super(in); + this.iotEndPoint = in.readString(); + this.accessKeyId = in.readString(); + this.secretAccessKey = in.readString(); + this.userPoolId = in.readString(); + this.clientId = in.readString(); + this.identityPoolId = in.readString(); + this.region = in.readString(); + this.updateDate = (Long)in.readValue(Long.class.getClassLoader()); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/IotProfileFilter.java b/KalturaClient/src/main/java/com/kaltura/client/types/IotProfileFilter.java new file mode 100644 index 000000000..66097aaae --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/IotProfileFilter.java @@ -0,0 +1,85 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Iot settings filter + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(IotProfileFilter.Tokenizer.class) +public class IotProfileFilter extends Filter { + + public interface Tokenizer extends Filter.Tokenizer { + } + + + + public IotProfileFilter() { + super(); + } + + public IotProfileFilter(JsonObject jsonObject) throws APIException { + super(jsonObject); + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaIotProfileFilter"); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public IotProfileFilter createFromParcel(Parcel source) { + return new IotProfileFilter(source); + } + + @Override + public IotProfileFilter[] newArray(int size) { + return new IotProfileFilter[size]; + } + }; + + public IotProfileFilter(Parcel in) { + super(in); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/IpRangeCondition.java b/KalturaClient/src/main/java/com/kaltura/client/types/IpRangeCondition.java new file mode 100644 index 000000000..da46c6f7f --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/IpRangeCondition.java @@ -0,0 +1,138 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * IP range condition + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(IpRangeCondition.Tokenizer.class) +public class IpRangeCondition extends Condition { + + public interface Tokenizer extends Condition.Tokenizer { + String fromIP(); + String toIP(); + } + + /** + * From IP address range + */ + private String fromIP; + /** + * TO IP address range + */ + private String toIP; + + // fromIP: + public String getFromIP(){ + return this.fromIP; + } + public void setFromIP(String fromIP){ + this.fromIP = fromIP; + } + + public void fromIP(String multirequestToken){ + setToken("fromIP", multirequestToken); + } + + // toIP: + public String getToIP(){ + return this.toIP; + } + public void setToIP(String toIP){ + this.toIP = toIP; + } + + public void toIP(String multirequestToken){ + setToken("toIP", multirequestToken); + } + + + public IpRangeCondition() { + super(); + } + + public IpRangeCondition(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + fromIP = GsonParser.parseString(jsonObject.get("fromIP")); + toIP = GsonParser.parseString(jsonObject.get("toIP")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaIpRangeCondition"); + kparams.add("fromIP", this.fromIP); + kparams.add("toIP", this.toIP); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public IpRangeCondition createFromParcel(Parcel source) { + return new IpRangeCondition(source); + } + + @Override + public IpRangeCondition[] newArray(int size) { + return new IpRangeCondition[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.fromIP); + dest.writeString(this.toIP); + } + + public IpRangeCondition(Parcel in) { + super(in); + this.fromIP = in.readString(); + this.toIP = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/IpV6RangeCondition.java b/KalturaClient/src/main/java/com/kaltura/client/types/IpV6RangeCondition.java new file mode 100644 index 000000000..dd75c9d93 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/IpV6RangeCondition.java @@ -0,0 +1,138 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * IP V6 range condition + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(IpV6RangeCondition.Tokenizer.class) +public class IpV6RangeCondition extends Condition { + + public interface Tokenizer extends Condition.Tokenizer { + String fromIP(); + String toIP(); + } + + /** + * From IP address range + */ + private String fromIP; + /** + * TO IP address range + */ + private String toIP; + + // fromIP: + public String getFromIP(){ + return this.fromIP; + } + public void setFromIP(String fromIP){ + this.fromIP = fromIP; + } + + public void fromIP(String multirequestToken){ + setToken("fromIP", multirequestToken); + } + + // toIP: + public String getToIP(){ + return this.toIP; + } + public void setToIP(String toIP){ + this.toIP = toIP; + } + + public void toIP(String multirequestToken){ + setToken("toIP", multirequestToken); + } + + + public IpV6RangeCondition() { + super(); + } + + public IpV6RangeCondition(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + fromIP = GsonParser.parseString(jsonObject.get("fromIP")); + toIP = GsonParser.parseString(jsonObject.get("toIP")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaIpV6RangeCondition"); + kparams.add("fromIP", this.fromIP); + kparams.add("toIP", this.toIP); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public IpV6RangeCondition createFromParcel(Parcel source) { + return new IpV6RangeCondition(source); + } + + @Override + public IpV6RangeCondition[] newArray(int size) { + return new IpV6RangeCondition[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.fromIP); + dest.writeString(this.toIP); + } + + public IpV6RangeCondition(Parcel in) { + super(in); + this.fromIP = in.readString(); + this.toIP = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/KeyValue.java b/KalturaClient/src/main/java/com/kaltura/client/types/KeyValue.java new file mode 100644 index 000000000..f65464e74 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/KeyValue.java @@ -0,0 +1,136 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(KeyValue.Tokenizer.class) +public class KeyValue extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String key(); + String value(); + } + + /** + * Key + */ + private String key; + /** + * Value + */ + private String value; + + // key: + public String getKey(){ + return this.key; + } + public void setKey(String key){ + this.key = key; + } + + public void key(String multirequestToken){ + setToken("key", multirequestToken); + } + + // value: + public String getValue(){ + return this.value; + } + public void setValue(String value){ + this.value = value; + } + + public void value(String multirequestToken){ + setToken("value", multirequestToken); + } + + + public KeyValue() { + super(); + } + + public KeyValue(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + key = GsonParser.parseString(jsonObject.get("key")); + value = GsonParser.parseString(jsonObject.get("value")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaKeyValue"); + kparams.add("key", this.key); + kparams.add("value", this.value); + return kparams; + } + + + public static final Creator CREATOR = new Creator() { + @Override + public KeyValue createFromParcel(Parcel source) { + return new KeyValue(source); + } + + @Override + public KeyValue[] newArray(int size) { + return new KeyValue[size]; + } + }; + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.key); + dest.writeString(this.value); + } + + public KeyValue(Parcel in) { + super(in); + this.key = in.readString(); + this.value = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/KsqlSegmentAction.java b/KalturaClient/src/main/java/com/kaltura/client/types/KsqlSegmentAction.java new file mode 100644 index 000000000..8713f0648 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/KsqlSegmentAction.java @@ -0,0 +1,105 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** + * Segment action with ksql + */ +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(KsqlSegmentAction.Tokenizer.class) +public abstract class KsqlSegmentAction extends BaseSegmentAction { + + public interface Tokenizer extends BaseSegmentAction.Tokenizer { + String ksql(); + } + + /** + * KSQL + */ + private String ksql; + + // ksql: + public String getKsql(){ + return this.ksql; + } + public void setKsql(String ksql){ + this.ksql = ksql; + } + + public void ksql(String multirequestToken){ + setToken("ksql", multirequestToken); + } + + + public KsqlSegmentAction() { + super(); + } + + public KsqlSegmentAction(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + ksql = GsonParser.parseString(jsonObject.get("ksql")); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaKsqlSegmentAction"); + kparams.add("ksql", this.ksql); + return kparams; + } + + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeString(this.ksql); + } + + public KsqlSegmentAction(Parcel in) { + super(in); + this.ksql = in.readString(); + } +} + diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/Label.java b/KalturaClient/src/main/java/com/kaltura/client/types/Label.java new file mode 100644 index 000000000..ff9fb48e8 --- /dev/null +++ b/KalturaClient/src/main/java/com/kaltura/client/types/Label.java @@ -0,0 +1,150 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +package com.kaltura.client.types; + +import android.os.Parcel; +import com.google.gson.JsonObject; +import com.kaltura.client.Params; +import com.kaltura.client.enums.EntityAttribute; +import com.kaltura.client.types.ObjectBase; +import com.kaltura.client.utils.GsonParser; +import com.kaltura.client.utils.request.MultiRequestBuilder; + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@SuppressWarnings("serial") +@MultiRequestBuilder.Tokenizer(Label.Tokenizer.class) +public class Label extends ObjectBase { + + public interface Tokenizer extends ObjectBase.Tokenizer { + String id(); + String value(); + String entityAttribute(); + } + + /** + * Label identifier + */ + private Long id; + /** + * Label value. It must be unique in the context of entityAttribute + */ + private String value; + /** + * Identifier of entity to which label belongs + */ + private EntityAttribute entityAttribute; + + // id: + public Long getId(){ + return this.id; + } + // value: + public String getValue(){ + return this.value; + } + public void setValue(String value){ + this.value = value; + } + + public void value(String multirequestToken){ + setToken("value", multirequestToken); + } + + // entityAttribute: + public EntityAttribute getEntityAttribute(){ + return this.entityAttribute; + } + public void setEntityAttribute(EntityAttribute entityAttribute){ + this.entityAttribute = entityAttribute; + } + + public void entityAttribute(String multirequestToken){ + setToken("entityAttribute", multirequestToken); + } + + + public Label() { + super(); + } + + public Label(JsonObject jsonObject) throws APIException { + super(jsonObject); + + if(jsonObject == null) return; + + // set members values: + id = GsonParser.parseLong(jsonObject.get("id")); + value = GsonParser.parseString(jsonObject.get("value")); + entityAttribute = EntityAttribute.get(GsonParser.parseString(jsonObject.get("entityAttribute"))); + + } + + public Params toParams() { + Params kparams = super.toParams(); + kparams.add("objectType", "KalturaLabel"); + kparams.add("value", this.value); + kparams.add("entityAttribute", this.entityAttribute); + return kparams; + } + + + public static final Creator