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

com.kaltura.client.enums.SocialStatus 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.enums;

/**
 * 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 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;
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy