Class NationalityMapper

  • All Implemented Interfaces:
    com.yoti.mobile.android.common.ui.widgets.utils.INationalityMapper

    @Deprecated
    public class NationalityMapper
    extends java.lang.Object
    implements com.yoti.mobile.android.common.ui.widgets.utils.INationalityMapper
    Deprecated.
    there is no method to get nationality from Locale or android So for now we are getting the nationality for a country from our in house text file which contain the - iso3 country code - the country name (which we don't use anymore, we use Locale) - the nationality (in english)

    we will have to improve this class in the future to support more languages Deprecated: use DemonymMapper instead

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface com.yoti.mobile.android.common.ui.widgets.utils.INationalityMapper

        com.yoti.mobile.android.common.ui.widgets.utils.INationalityMapper.DefaultImpls
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String TAG
      Deprecated.
       
    • Constructor Summary

      Constructors 
      Constructor Description
      NationalityMapper​(android.content.res.Resources resources)
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      java.lang.String getNationality​(java.lang.String iso3Code, java.util.Locale locale)
      Deprecated.
      return the nationality for a country
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • TAG

        public final java.lang.String TAG
        Deprecated.
    • Constructor Detail

      • NationalityMapper

        public NationalityMapper​(android.content.res.Resources resources)
        Deprecated.
    • Method Detail

      • getNationality

        public java.lang.String getNationality​(@NonNull
                                               java.lang.String iso3Code,
                                               java.util.Locale locale)
        Deprecated.
        return the nationality for a country
        Specified by:
        getNationality in interface com.yoti.mobile.android.common.ui.widgets.utils.INationalityMapper
        Parameters:
        iso3Code - the iso3 country code
        locale - the desired localised version of the nationality - ignored for now
        Returns:
        Nationality as string