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

com.unblu.webapi.model.v3.EMessageOrderByField Maven / Gradle / Ivy

The newest version!

package com.unblu.webapi.model.v3;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * Gets or Sets EMessageOrderByField
 */
public enum EMessageOrderByField {

	/**
	 * ID: Sort by the 'id' attribute
	 */
	ID("ID"),

	/**
	 * CONVERSATION_ID: Sort by the 'conversationId' attribute
	 */
	CONVERSATION_ID("CONVERSATION_ID"),

	/**
	 * SEND_TIMESTAMP: Sort by the 'sendTimestamp' attribute
	 */
	SEND_TIMESTAMP("SEND_TIMESTAMP"),

	/**
	 * SERVER_TIMESTAMP: Sort by the 'serverTimestamp' attribute
	 */
	SERVER_TIMESTAMP("SERVER_TIMESTAMP"),

	/**
	 * SENDER_PERSON_ID: Sort by the 'senderPersonId' attribute
	 */
	SENDER_PERSON_ID("SENDER_PERSON_ID"),

	/**
	 * TYPE: Sort by the 'type' attribute
	 */
	TYPE("TYPE"),

	/**
	 * TEXT: Sort by the 'text' attribute
	 */
	TEXT("TEXT");

	private String value;

	EMessageOrderByField(String value) {
		this.value = value;
	}

	@JsonValue
	public String getValue() {
		return value;
	}

	@Override
	public String toString() {
		return String.valueOf(value);
	}

	@JsonCreator
	public static EMessageOrderByField fromValue(String value) {
		for (EMessageOrderByField b : EMessageOrderByField.values()) {
			if (b.value.equals(value)) {
				return b;
			}
		}
		throw new IllegalArgumentException("Unexpected value '" + value + "'");
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy