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

com.plivo.api.models.lookup.Carrier Maven / Gradle / Ivy

Go to download

A Java SDK to make voice calls & send SMS using Plivo and to generate Plivo XML

There is a newer version: 5.44.3
Show newest version
package com.plivo.api.models.lookup;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.core.JsonProcessingException;


public class Carrier{
    private String mobileCountryCode;
    private String mobileNetworkCode;
    private String name;
    private String ported;
    private String type;

    @JsonProperty("name")
    public String getName() {
	    return name;
    }

    @JsonProperty("type")
    public String getType() {
	    return type;
    }

    @JsonProperty("mobile_country_code")
    public String getMobileCountryCode() {
	    return mobileCountryCode;
    }

    @JsonProperty("mobile_network_code")
    public String getMobileNetworkCode() {
	    return mobileNetworkCode;
    }

    @JsonProperty("ported")
    public String getPorted() {
	    return ported;
    }

    @Override
    public String toString() {
        try {
            return new ObjectMapper().writerWithDefaultPrettyPrinter().writeValueAsString(this);
        } catch (com.fasterxml.jackson.core.JsonProcessingException e) {
            e.printStackTrace();
        } catch (Exception e) {
           e.printStackTrace();
        }

        return null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy