org.telegram.telegraph.jsonutilities.NodeTextSerializer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of telegraph-meta Show documentation
Show all versions of telegraph-meta Show documentation
Easy to use library to interact with Telegra.ph
The newest version!
package org.telegram.telegraph.jsonutilities;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.SerializerProvider;
import com.fasterxml.jackson.databind.ser.std.StdSerializer;
import org.telegram.telegraph.api.objects.NodeText;
import java.io.IOException;
/**
* @author Ruben Bermudez
* @version 1.0
*/
public class NodeTextSerializer extends StdSerializer {
public NodeTextSerializer() {
super(NodeText.class);
}
@Override
public void serialize(NodeText value, JsonGenerator gen, SerializerProvider provider) throws IOException {
gen.writeString(value.getContent());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy