com.messagebird.objects.voicecalls.VoiceLegDirection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of messagebird-api Show documentation
Show all versions of messagebird-api Show documentation
The MessageBird API provides a API to the MessageBird SMS and voicemail services located at https://www.messagebird.com.
The newest version!
package com.messagebird.objects.voicecalls;
import com.fasterxml.jackson.annotation.JsonCreator;
public enum VoiceLegDirection {
Incoming, Outgoing;
@JsonCreator
public static VoiceLegDirection forValue(String value) {
switch (value) {
case "incoming": return Incoming;
case "outgoing": return Outgoing;
default: throw new IllegalArgumentException("Unknown leg direction: " + value);
}
}
}