All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mailersend.sdk.sms.phonenumbers.PhoneNumber Maven / Gradle / Ivy

/*************************************************
 * MailerSend Java SDK
 * https://github.com/mailersend/mailersend-java
 * 
 * @author MailerSend 
 * https://mailersend.com
 **************************************************/
package com.mailersend.sdk.sms.phonenumbers;

import java.time.Instant;
import java.time.format.DateTimeFormatter;
import java.time.temporal.TemporalAccessor;
import java.util.Date;

import com.google.gson.annotations.SerializedName;

/**
 * 

PhoneNumber class.

* * @author mailersend * @version $Id: $Id */ public class PhoneNumber { @SerializedName("id") public String id; @SerializedName("telephone_number") public String telephoneNumber; @SerializedName("paused") public boolean paused; @SerializedName("created_at") private String createdAtStr; public Date createdAt; /** *

postDeserialize.

*/ public void postDeserialize() { if (createdAtStr != null && !createdAtStr.isBlank()) { TemporalAccessor ta; Instant instant; ta = DateTimeFormatter.ISO_INSTANT.parse(createdAtStr); instant = Instant.from(ta); createdAt = Date.from(instant); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy