Class NationalityMapper
- java.lang.Object
-
- com.yoti.mobile.android.common.ui.components.utils.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.INationalityMapperDeprecated.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
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.StringTAGDeprecated.
-
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.StringgetNationality(java.lang.String iso3Code, java.util.Locale locale)Deprecated.return the nationality for a country
-
-
-
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:
getNationalityin interfacecom.yoti.mobile.android.common.ui.widgets.utils.INationalityMapper- Parameters:
iso3Code- the iso3 country codelocale- the desired localised version of the nationality - ignored for now- Returns:
- Nationality as string
-
-