com.kaltura.client.enums.MixEntryOrderBy 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 MixEntryOrderBy implements EnumAsString {
CREATED_AT_ASC("+createdAt"),
DURATION_ASC("+duration"),
END_DATE_ASC("+endDate"),
LAST_PLAYED_AT_ASC("+lastPlayedAt"),
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"),
LAST_PLAYED_AT_DESC("-lastPlayedAt"),
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;
MixEntryOrderBy(String value) {
this.value = value;
}
@Override
public String getValue() {
return this.value;
}
public void setValue(String value) {
this.value = value;
}
public static MixEntryOrderBy get(String value) {
if(value == null)
{
return null;
}
// goes over MixEntryOrderBy defined values and compare the inner value with the given one:
for(MixEntryOrderBy 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 MixEntryOrderBy.values().length > 0 ? MixEntryOrderBy.values()[0]: null;
}
}