com.zipwhip.util.SignalContentConverter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zipwhip-api Show documentation
Show all versions of zipwhip-api Show documentation
Java client to support applications powered by the Zipwhip Cloud
The newest version!
package com.zipwhip.util;
import com.zipwhip.api.signals.Signal;
/**
* Created with IntelliJ IDEA.
* User: Michael
* Date: 10/3/12
* Time: 1:37 PM
*
* Use when u want to convert the signal
*/
public class SignalContentConverter implements Converter{
private static final SignalContentConverter INSTANCE = new SignalContentConverter();
@Override
public T convert(Signal signal) throws Exception {
return (T)signal.getContent();
}
@Override
public Signal restore(T t) throws Exception {
return null;
}
public static SignalContentConverter getInstance() {
return INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy