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

com.unblu.webapi.model.v4.EIdentifierSource Maven / Gradle / Ivy


package com.unblu.webapi.model.v4;

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

/**
 * The source of the identifier (for devices)
 */
public enum EIdentifierSource {

	/**
	 * COOKIE: Cookie from browser
	 */
	COOKIE("COOKIE"),

	/**
	 * DEVICE_ID: Device id of MobileSDK
	 */
	DEVICE_ID("DEVICE_ID");

	private String value;

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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy