All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.kaltura.client.enums.LiveEntryOrderBy Maven / Gradle / Ivy
// ===================================================================================================
// _ __ _ _
// | |/ /__ _| | |_ _ _ _ _ __ _
// | ' .
//
// @ignore
// ===================================================================================================
package com.kaltura.client.enums;
/**
* This class was generated using generate.php
* against an XML schema provided by Kaltura.
*
* MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN.
*/
public enum LiveEntryOrderBy implements EnumAsString {
CREATED_AT_ASC("+createdAt"),
DURATION_ASC("+duration"),
END_DATE_ASC("+endDate"),
FIRST_BROADCAST_ASC("+firstBroadcast"),
LAST_BROADCAST_ASC("+lastBroadcast"),
LAST_PLAYED_AT_ASC("+lastPlayedAt"),
MEDIA_TYPE_ASC("+mediaType"),
MODERATION_COUNT_ASC("+moderationCount"),
NAME_ASC("+name"),
PARTNER_SORT_VALUE_ASC("+partnerSortValue"),
PLAYS_ASC("+plays"),
RANK_ASC("+rank"),
RECENT_ASC("+recent"),
START_DATE_ASC("+startDate"),
TOTAL_RANK_ASC("+totalRank"),
UPDATED_AT_ASC("+updatedAt"),
VIEWS_ASC("+views"),
WEIGHT_ASC("+weight"),
CREATED_AT_DESC("-createdAt"),
DURATION_DESC("-duration"),
END_DATE_DESC("-endDate"),
FIRST_BROADCAST_DESC("-firstBroadcast"),
LAST_BROADCAST_DESC("-lastBroadcast"),
LAST_PLAYED_AT_DESC("-lastPlayedAt"),
MEDIA_TYPE_DESC("-mediaType"),
MODERATION_COUNT_DESC("-moderationCount"),
NAME_DESC("-name"),
PARTNER_SORT_VALUE_DESC("-partnerSortValue"),
PLAYS_DESC("-plays"),
RANK_DESC("-rank"),
RECENT_DESC("-recent"),
START_DATE_DESC("-startDate"),
TOTAL_RANK_DESC("-totalRank"),
UPDATED_AT_DESC("-updatedAt"),
VIEWS_DESC("-views"),
WEIGHT_DESC("-weight");
private String value;
LiveEntryOrderBy(String value) {
this.value = value;
}
@Override
public String getValue() {
return this.value;
}
public void setValue(String value) {
this.value = value;
}
public static LiveEntryOrderBy get(String value) {
if(value == null)
{
return null;
}
// goes over LiveEntryOrderBy defined values and compare the inner value with the given one:
for(LiveEntryOrderBy 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 LiveEntryOrderBy.values().length > 0 ? LiveEntryOrderBy.values()[0]: null;
}
}