com.bandwidth.voice.bxml.verbs.adapter.VoiceAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bandwidth-sdk Show documentation
Show all versions of bandwidth-sdk Show documentation
The official client SDK for Bandwidth's Voice, Messaging, MFA, and WebRTC APIs
package com.bandwidth.voice.bxml.verbs.adapter;
import com.bandwidth.voice.bxml.verbs.Voice;
import javax.xml.bind.annotation.adapters.XmlAdapter;
public class VoiceAdapter extends XmlAdapter {
@Override
public Voice unmarshal(String v) throws Exception {
return Voice.fromValue(v);
}
@Override
public String marshal(Voice v) throws Exception {
return v == null ? null : v.toString();
}
}