com.unblu.webapi.model.v3.EPersonSource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of models-v3 Show documentation
Show all versions of models-v3 Show documentation
Java classes corresponding to the JSON bodies
The newest version!
package com.unblu.webapi.model.v3;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
/**
* The source type of a person (participant of a conversation)
*/
public enum EPersonSource {
/**
* USER_DB: The source of the person is the ${link User} entity, so the `Person` is considered to be physical
*/
USER_DB("USER_DB"),
/**
* VIRTUAL: The source of the person is virtual, that is, the individual is either anonymous or their identity was propagated by a single sign-on (SSO)
* mechanism.
*/
VIRTUAL("VIRTUAL");
private String value;
EPersonSource(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static EPersonSource fromValue(String value) {
for (EPersonSource b : EPersonSource.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}