Class Country

    • Method Detail

      • reader

        public static CountryReader reader()
        Create a CountryReader to execute read.
        Returns:
        CountryReader capable of executing the read
      • fetcher

        public static CountryFetcher fetcher​(String pathIsoCountry)
        Create a CountryFetcher to execute fetch.
        Parameters:
        pathIsoCountry - The ISO country code
        Returns:
        CountryFetcher capable of executing the fetch
      • fromJson

        public static Country fromJson​(String json,
                                       com.fasterxml.jackson.databind.ObjectMapper objectMapper)
        Converts a JSON String into a Country object using the provided ObjectMapper.
        Parameters:
        json - Raw JSON String
        objectMapper - Jackson ObjectMapper
        Returns:
        Country object represented by the provided JSON
      • fromJson

        public static Country fromJson​(InputStream json,
                                       com.fasterxml.jackson.databind.ObjectMapper objectMapper)
        Converts a JSON InputStream into a Country object using the provided ObjectMapper.
        Parameters:
        json - Raw JSON InputStream
        objectMapper - Jackson ObjectMapper
        Returns:
        Country object represented by the provided JSON
      • getCountry

        public final String getCountry()
        Returns The The name of the country.
        Returns:
        The name of the country
      • getIsoCountry

        public final String getIsoCountry()
        Returns The The ISO country code.
        Returns:
        The ISO country code
      • getOutboundSmsPrices

        public final List<OutboundSmsPrice> getOutboundSmsPrices()
        Returns The The list of OutboundSMSPrice records.
        Returns:
        The list of OutboundSMSPrice records
      • getInboundSmsPrices

        public final List<InboundSmsPrice> getInboundSmsPrices()
        Returns The The list of InboundPrice records.
        Returns:
        The list of InboundPrice records
      • getPriceUnit

        public final Currency getPriceUnit()
        Returns The The currency in which prices are measured, in ISO 4127 format (e.g. usd, eur, jpy).
        Returns:
        The currency in which prices are measured, in ISO 4127 format (e.g. usd, eur, jpy)
      • getUrl

        public final URI getUrl()
        Returns The The absolute URL of the resource.
        Returns:
        The absolute URL of the resource
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object