com.thebund1st.daming.json.serializers.SmsVerificationCodeJsonSerializer Maven / Gradle / Ivy
package com.thebund1st.daming.json.serializers;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;
import com.thebund1st.daming.core.MobilePhoneNumber;
import com.thebund1st.daming.core.SmsVerification;
import com.thebund1st.daming.core.SmsVerificationCode;
import java.io.IOException;
public class SmsVerificationCodeJsonSerializer extends JsonSerializer {
@Override
public void serialize(SmsVerificationCode value, JsonGenerator gen, SerializerProvider serializers) throws IOException {
gen.writeString(value.getValue());
}
}