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

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

Go to download

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

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

import com.kaltura.client.enums.NotificationType;
import com.kaltura.client.types.RegistryResponse;
import com.kaltura.client.utils.request.RequestBuilder;

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

public class 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 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);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy