Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import java.util.*
import android.telephony.TelephonyManager
class Country(
val nameCode: String,
val code: String,
val fullName: String
) {}
fun getFlagEmojiFor(countryCode: String): String {
return when (countryCode.lowercase()) {
"ad" -> "๐Ÿ‡ฆ๐Ÿ‡ฉ"
"ae" -> "๐Ÿ‡ฆ๐Ÿ‡ช"
"af" -> "๐Ÿ‡ฆ๐Ÿ‡ซ"
"ag" -> "๐Ÿ‡ฆ๐Ÿ‡ฌ"
"ai" -> "๐Ÿ‡ฆ๐Ÿ‡ฎ"
"al" -> "๐Ÿ‡ฆ๐Ÿ‡ฑ"
"am" -> "๐Ÿ‡ฆ๐Ÿ‡ฒ"
"ao" -> "๐Ÿ‡ฆ๐Ÿ‡ด"
"aq" -> "๐Ÿ‡ฆ๐Ÿ‡ถ"
"ar" -> "๐Ÿ‡ฆ๐Ÿ‡ท"
"as" -> "๐Ÿ‡ฆ๐Ÿ‡ธ"
"at" -> "๐Ÿ‡ฆ๐Ÿ‡น"
"au" -> "๐Ÿ‡ฆ๐Ÿ‡บ"
"aw" -> "๐Ÿ‡ฆ๐Ÿ‡ผ"
"ax" -> "๐Ÿ‡ฆ๐Ÿ‡ฝ"
"az" -> "๐Ÿ‡ฆ๐Ÿ‡ฟ"
"ba" -> "๐Ÿ‡ง๐Ÿ‡ฆ"
"bb" -> "๐Ÿ‡ง๐Ÿ‡ง"
"bd" -> "๐Ÿ‡ง๐Ÿ‡ฉ"
"be" -> "๐Ÿ‡ง๐Ÿ‡ช"
"bf" -> "๐Ÿ‡ง๐Ÿ‡ซ"
"bg" -> "๐Ÿ‡ง๐Ÿ‡ฌ"
"bh" -> "๐Ÿ‡ง๐Ÿ‡ญ"
"bi" -> "๐Ÿ‡ง๐Ÿ‡ฎ"
"bj" -> "๐Ÿ‡ง๐Ÿ‡ฏ"
"bl" -> "๐Ÿ‡ง๐Ÿ‡ฑ"
"bm" -> "๐Ÿ‡ง๐Ÿ‡ฒ"
"bn" -> "๐Ÿ‡ง๐Ÿ‡ณ"
"bo" -> "๐Ÿ‡ง๐Ÿ‡ด"
"bq" -> "๐Ÿ‡ง๐Ÿ‡ถ"
"br" -> "๐Ÿ‡ง๐Ÿ‡ท"
"bs" -> "๐Ÿ‡ง๐Ÿ‡ธ"
"bt" -> "๐Ÿ‡ง๐Ÿ‡น"
"bv" -> "๐Ÿ‡ง๐Ÿ‡ป"
"bw" -> "๐Ÿ‡ง๐Ÿ‡ผ"
"by" -> "๐Ÿ‡ง๐Ÿ‡พ"
"bz" -> "๐Ÿ‡ง๐Ÿ‡ฟ"
"ca" -> "๐Ÿ‡จ๐Ÿ‡ฆ"
"cc" -> "๐Ÿ‡จ๐Ÿ‡จ"
"cd" -> "๐Ÿ‡จ๐Ÿ‡ฉ"
"cf" -> "๐Ÿ‡จ๐Ÿ‡ซ"
"cg" -> "๐Ÿ‡จ๐Ÿ‡ฌ"
"ch" -> "๐Ÿ‡จ๐Ÿ‡ญ"
"ci" -> "๐Ÿ‡จ๐Ÿ‡ฎ"
"ck" -> "๐Ÿ‡จ๐Ÿ‡ฐ"
"cl" -> "๐Ÿ‡จ๐Ÿ‡ฑ"
"cm" -> "๐Ÿ‡จ๐Ÿ‡ฒ"
"cn" -> "๐Ÿ‡จ๐Ÿ‡ณ"
"co" -> "๐Ÿ‡จ๐Ÿ‡ด"
"cr" -> "๐Ÿ‡จ๐Ÿ‡ท"
"cu" -> "๐Ÿ‡จ๐Ÿ‡บ"
"cv" -> "๐Ÿ‡จ๐Ÿ‡ป"
"cw" -> "๐Ÿ‡จ๐Ÿ‡ผ"
"cx" -> "๐Ÿ‡จ๐Ÿ‡ฝ"
"cy" -> "๐Ÿ‡จ๐Ÿ‡พ"
"cz" -> "๐Ÿ‡จ๐Ÿ‡ฟ"
"de" -> "๐Ÿ‡ฉ๐Ÿ‡ช"
"dj" -> "๐Ÿ‡ฉ๐Ÿ‡ฏ"
"dk" -> "๐Ÿ‡ฉ๐Ÿ‡ฐ"
"dm" -> "๐Ÿ‡ฉ๐Ÿ‡ฒ"
"do" -> "๐Ÿ‡ฉ๐Ÿ‡ด"
"dz" -> "๐Ÿ‡ฉ๐Ÿ‡ฟ"
"ec" -> "๐Ÿ‡ช๐Ÿ‡จ"
"ee" -> "๐Ÿ‡ช๐Ÿ‡ช"
"eg" -> "๐Ÿ‡ช๐Ÿ‡ฌ"
"eh" -> "๐Ÿ‡ช๐Ÿ‡ญ"
"er" -> "๐Ÿ‡ช๐Ÿ‡ท"
"es" -> "๐Ÿ‡ช๐Ÿ‡ธ"
"et" -> "๐Ÿ‡ช๐Ÿ‡น"
"fi" -> "๐Ÿ‡ซ๐Ÿ‡ฎ"
"fj" -> "๐Ÿ‡ซ๐Ÿ‡ฏ"
"fk" -> "๐Ÿ‡ซ๐Ÿ‡ฐ"
"fm" -> "๐Ÿ‡ซ๐Ÿ‡ฒ"
"fo" -> "๐Ÿ‡ซ๐Ÿ‡ด"
"fr" -> "๐Ÿ‡ซ๐Ÿ‡ท"
"ga" -> "๐Ÿ‡ฌ๐Ÿ‡ฆ"
"gb" -> "๐Ÿ‡ฌ๐Ÿ‡ง"
"gd" -> "๐Ÿ‡ฌ๐Ÿ‡ฉ"
"ge" -> "๐Ÿ‡ฌ๐Ÿ‡ช"
"gf" -> "๐Ÿ‡ฌ๐Ÿ‡ซ"
"gg" -> "๐Ÿ‡ฌ๐Ÿ‡ฌ"
"gh" -> "๐Ÿ‡ฌ๐Ÿ‡ญ"
"gi" -> "๐Ÿ‡ฌ๐Ÿ‡ฎ"
"gl" -> "๐Ÿ‡ฌ๐Ÿ‡ฑ"
"gm" -> "๐Ÿ‡ฌ๐Ÿ‡ฒ"
"gn" -> "๐Ÿ‡ฌ๐Ÿ‡ณ"
"gp" -> "๐Ÿ‡ฌ๐Ÿ‡ต"
"gq" -> "๐Ÿ‡ฌ๐Ÿ‡ถ"
"gr" -> "๐Ÿ‡ฌ๐Ÿ‡ท"
"gs" -> "๐Ÿ‡ฌ๐Ÿ‡ธ"
"gt" -> "๐Ÿ‡ฌ๐Ÿ‡น"
"gu" -> "๐Ÿ‡ฌ๐Ÿ‡บ"
"gw" -> "๐Ÿ‡ฌ๐Ÿ‡ผ"
"gy" -> "๐Ÿ‡ฌ๐Ÿ‡พ"
"hk" -> "๐Ÿ‡ญ๐Ÿ‡ฐ"
"hm" -> "๐Ÿ‡ญ๐Ÿ‡ฒ"
"hn" -> "๐Ÿ‡ญ๐Ÿ‡ณ"
"hr" -> "๐Ÿ‡ญ๐Ÿ‡ท"
"ht" -> "๐Ÿ‡ญ๐Ÿ‡น"
"hu" -> "๐Ÿ‡ญ๐Ÿ‡บ"
"id" -> "๐Ÿ‡ฎ๐Ÿ‡ฉ"
"ie" -> "๐Ÿ‡ฎ๐Ÿ‡ช"
"il" -> "๐Ÿ‡ฎ๐Ÿ‡ฑ"
"im" -> "๐Ÿ‡ฎ๐Ÿ‡ฒ"
"in" -> "๐Ÿ‡ฎ๐Ÿ‡ณ"
"io" -> "๐Ÿ‡ฎ๐Ÿ‡ด"
"iq" -> "๐Ÿ‡ฎ๐Ÿ‡ถ"
"ir" -> "๐Ÿ‡ฎ๐Ÿ‡ท"
"is" -> "๐Ÿ‡ฎ๐Ÿ‡ธ"
"it" -> "๐Ÿ‡ฎ๐Ÿ‡น"
"je" -> "๐Ÿ‡ฏ๐Ÿ‡ช"
"jm" -> "๐Ÿ‡ฏ๐Ÿ‡ฒ"
"jo" -> "๐Ÿ‡ฏ๐Ÿ‡ด"
"jp" -> "๐Ÿ‡ฏ๐Ÿ‡ต"
"ke" -> "๐Ÿ‡ฐ๐Ÿ‡ช"
"kg" -> "๐Ÿ‡ฐ๐Ÿ‡ฌ"
"kh" -> "๐Ÿ‡ฐ๐Ÿ‡ญ"
"ki" -> "๐Ÿ‡ฐ๐Ÿ‡ฎ"
"km" -> "๐Ÿ‡ฐ๐Ÿ‡ฒ"
"kn" -> "๐Ÿ‡ฐ๐Ÿ‡ณ"
"kp" -> "๐Ÿ‡ฐ๐Ÿ‡ต"
"kr" -> "๐Ÿ‡ฐ๐Ÿ‡ท"
"kw" -> "๐Ÿ‡ฐ๐Ÿ‡ผ"
"ky" -> "๐Ÿ‡ฐ๐Ÿ‡พ"
"kz" -> "๐Ÿ‡ฐ๐Ÿ‡ฟ"
"la" -> "๐Ÿ‡ฑ๐Ÿ‡ฆ"
"lb" -> "๐Ÿ‡ฑ๐Ÿ‡ง"
"lc" -> "๐Ÿ‡ฑ๐Ÿ‡จ"
"li" -> "๐Ÿ‡ฑ๐Ÿ‡ฎ"
"lk" -> "๐Ÿ‡ฑ๐Ÿ‡ฐ"
"lr" -> "๐Ÿ‡ฑ๐Ÿ‡ท"
"ls" -> "๐Ÿ‡ฑ๐Ÿ‡ธ"
"lt" -> "๐Ÿ‡ฑ๐Ÿ‡น"
"lu" -> "๐Ÿ‡ฑ๐Ÿ‡บ"
"lv" -> "๐Ÿ‡ฑ๐Ÿ‡ป"
"ly" -> "๐Ÿ‡ฑ๐Ÿ‡พ"
"ma" -> "๐Ÿ‡ฒ๐Ÿ‡ฆ"
"mc" -> "๐Ÿ‡ฒ๐Ÿ‡จ"
"md" -> "๐Ÿ‡ฒ๐Ÿ‡ฉ"
"me" -> "๐Ÿ‡ฒ๐Ÿ‡ช"
"mf" -> "๐Ÿ‡ฒ๐Ÿ‡ซ"
"mg" -> "๐Ÿ‡ฒ๐Ÿ‡ฌ"
"mh" -> "๐Ÿ‡ฒ๐Ÿ‡ญ"
"mk" -> "๐Ÿ‡ฒ๐Ÿ‡ฐ"
"ml" -> "๐Ÿ‡ฒ๐Ÿ‡ฑ"
"mm" -> "๐Ÿ‡ฒ๐Ÿ‡ฒ"
"mn" -> "๐Ÿ‡ฒ๐Ÿ‡ณ"
"mo" -> "๐Ÿ‡ฒ๐Ÿ‡ด"
"mp" -> "๐Ÿ‡ฒ๐Ÿ‡ต"
"mq" -> "๐Ÿ‡ฒ๐Ÿ‡ถ"
"mr" -> "๐Ÿ‡ฒ๐Ÿ‡ท"
"ms" -> "๐Ÿ‡ฒ๐Ÿ‡ธ"
"mt" -> "๐Ÿ‡ฒ๐Ÿ‡น"
"mu" -> "๐Ÿ‡ฒ๐Ÿ‡บ"
"mv" -> "๐Ÿ‡ฒ๐Ÿ‡ป"
"mw" -> "๐Ÿ‡ฒ๐Ÿ‡ผ"
"mx" -> "๐Ÿ‡ฒ๐Ÿ‡ฝ"
"my" -> "๐Ÿ‡ฒ๐Ÿ‡พ"
"mz" -> "๐Ÿ‡ฒ๐Ÿ‡ฟ"
"na" -> "๐Ÿ‡ณ๐Ÿ‡ฆ"
"nc" -> "๐Ÿ‡ณ๐Ÿ‡จ"
"ne" -> "๐Ÿ‡ณ๐Ÿ‡ช"
"nf" -> "๐Ÿ‡ณ๐Ÿ‡ซ"
"ng" -> "๐Ÿ‡ณ๐Ÿ‡ฌ"
"ni" -> "๐Ÿ‡ณ๐Ÿ‡ฎ"
"nl" -> "๐Ÿ‡ณ๐Ÿ‡ฑ"
"no" -> "๐Ÿ‡ณ๐Ÿ‡ด"
"np" -> "๐Ÿ‡ณ๐Ÿ‡ต"
"nr" -> "๐Ÿ‡ณ๐Ÿ‡ท"
"nu" -> "๐Ÿ‡ณ๐Ÿ‡บ"
"nz" -> "๐Ÿ‡ณ๐Ÿ‡ฟ"
"om" -> "๐Ÿ‡ด๐Ÿ‡ฒ"
"pa" -> "๐Ÿ‡ต๐Ÿ‡ฆ"
"pe" -> "๐Ÿ‡ต๐Ÿ‡ช"
"pf" -> "๐Ÿ‡ต๐Ÿ‡ซ"
"pg" -> "๐Ÿ‡ต๐Ÿ‡ฌ"
"ph" -> "๐Ÿ‡ต๐Ÿ‡ญ"
"pk" -> "๐Ÿ‡ต๐Ÿ‡ฐ"
"pl" -> "๐Ÿ‡ต๐Ÿ‡ฑ"
"pm" -> "๐Ÿ‡ต๐Ÿ‡ฒ"
"pn" -> "๐Ÿ‡ต๐Ÿ‡ณ"
"pr" -> "๐Ÿ‡ต๐Ÿ‡ท"
"ps" -> "๐Ÿ‡ต๐Ÿ‡ธ"
"pt" -> "๐Ÿ‡ต๐Ÿ‡น"
"pw" -> "๐Ÿ‡ต๐Ÿ‡ผ"
"py" -> "๐Ÿ‡ต๐Ÿ‡พ"
"qa" -> "๐Ÿ‡ถ๐Ÿ‡ฆ"
"re" -> "๐Ÿ‡ท๐Ÿ‡ช"
"ro" -> "๐Ÿ‡ท๐Ÿ‡ด"
"rs" -> "๐Ÿ‡ท๐Ÿ‡ธ"
"ru" -> "๐Ÿ‡ท๐Ÿ‡บ"
"rw" -> "๐Ÿ‡ท๐Ÿ‡ผ"
"sa" -> "๐Ÿ‡ธ๐Ÿ‡ฆ"
"sb" -> "๐Ÿ‡ธ๐Ÿ‡ง"
"sc" -> "๐Ÿ‡ธ๐Ÿ‡จ"
"sd" -> "๐Ÿ‡ธ๐Ÿ‡ฉ"
"se" -> "๐Ÿ‡ธ๐Ÿ‡ช"
"sg" -> "๐Ÿ‡ธ๐Ÿ‡ฌ"
"sh" -> "๐Ÿ‡ธ๐Ÿ‡ญ"
"si" -> "๐Ÿ‡ธ๐Ÿ‡ฎ"
"sj" -> "๐Ÿ‡ธ๐Ÿ‡ฏ"
"sk" -> "๐Ÿ‡ธ๐Ÿ‡ฐ"
"sl" -> "๐Ÿ‡ธ๐Ÿ‡ฑ"
"sm" -> "๐Ÿ‡ธ๐Ÿ‡ฒ"
"sn" -> "๐Ÿ‡ธ๐Ÿ‡ณ"
"so" -> "๐Ÿ‡ธ๐Ÿ‡ด"
"sr" -> "๐Ÿ‡ธ๐Ÿ‡ท"
"ss" -> "๐Ÿ‡ธ๐Ÿ‡ธ"
"st" -> "๐Ÿ‡ธ๐Ÿ‡น"
"sv" -> "๐Ÿ‡ธ๐Ÿ‡ป"
"sx" -> "๐Ÿ‡ธ๐Ÿ‡ฝ"
"sy" -> "๐Ÿ‡ธ๐Ÿ‡พ"
"sz" -> "๐Ÿ‡ธ๐Ÿ‡ฟ"
"tc" -> "๐Ÿ‡น๐Ÿ‡จ"
"td" -> "๐Ÿ‡น๐Ÿ‡ฉ"
"tf" -> "๐Ÿ‡น๐Ÿ‡ซ"
"tg" -> "๐Ÿ‡น๐Ÿ‡ฌ"
"th" -> "๐Ÿ‡น๐Ÿ‡ญ"
"tj" -> "๐Ÿ‡น๐Ÿ‡ฏ"
"tk" -> "๐Ÿ‡น๐Ÿ‡ฐ"
"tl" -> "๐Ÿ‡น๐Ÿ‡ฑ"
"tm" -> "๐Ÿ‡น๐Ÿ‡ฒ"
"tn" -> "๐Ÿ‡น๐Ÿ‡ณ"
"to" -> "๐Ÿ‡น๐Ÿ‡ด"
"tr" -> "๐Ÿ‡น๐Ÿ‡ท"
"tt" -> "๐Ÿ‡น๐Ÿ‡น"
"tv" -> "๐Ÿ‡น๐Ÿ‡ป"
"tw" -> "๐Ÿ‡น๐Ÿ‡ผ"
"tz" -> "๐Ÿ‡น๐Ÿ‡ฟ"
"ua" -> "๐Ÿ‡บ๐Ÿ‡ฆ"
"ug" -> "๐Ÿ‡บ๐Ÿ‡ฌ"
"um" -> "๐Ÿ‡บ๐Ÿ‡ฒ"
"us" -> "๐Ÿ‡บ๐Ÿ‡ธ"
"uy" -> "๐Ÿ‡บ๐Ÿ‡พ"
"uz" -> "๐Ÿ‡บ๐Ÿ‡ฟ"
"va" -> "๐Ÿ‡ป๐Ÿ‡ฆ"
"vc" -> "๐Ÿ‡ป๐Ÿ‡จ"
"ve" -> "๐Ÿ‡ป๐Ÿ‡ช"
"vg" -> "๐Ÿ‡ป๐Ÿ‡ฌ"
"vi" -> "๐Ÿ‡ป๐Ÿ‡ฎ"
"vn" -> "๐Ÿ‡ป๐Ÿ‡ณ"
"vu" -> "๐Ÿ‡ป๐Ÿ‡บ"
"wf" -> "๐Ÿ‡ผ๐Ÿ‡ซ"
"ws" -> "๐Ÿ‡ผ๐Ÿ‡ธ"
"xk" -> "๐Ÿ‡ฝ๐Ÿ‡ฐ"
"ye" -> "๐Ÿ‡พ๐Ÿ‡ช"
"yt" -> "๐Ÿ‡พ๐Ÿ‡น"
"za" -> "๐Ÿ‡ฟ๐Ÿ‡ฆ"
"zm" -> "๐Ÿ‡ฟ๐Ÿ‡ฒ"
"zw" -> "๐Ÿ‡ฟ๐Ÿ‡ผ"
else -> " "
}
}
fun getCountriesList(): List<Country> {
val countries = mutableListOf<Country>()
countries.add(Country("ad", "376", "Andorra"))
countries.add(Country("ae", "971", "United Arab Emirates (UAE))"))
countries.add(Country("af", "93", "Afghanistan"))
countries.add(Country("ag", "1", "Antigua and Barbuda"))
countries.add(Country("ai", "1", "Anguilla"))
countries.add(Country("al", "355", "Albania"))
countries.add(Country("am", "374", "Armenia"))
countries.add(Country("ao", "244", "Angola"))
countries.add(Country("aq", "672", "Antarctica"))
countries.add(Country("ar", "54", "Argentina"))
countries.add(Country("as", "1", "American Samoa"))
countries.add(Country("at", "43", "Austria"))
countries.add(Country("au", "61", "Australia"))
countries.add(Country("aw", "297", "Aruba"))
countries.add(Country("ax", "358", "ร…land Islands"))
countries.add(Country("az", "994", "Azerbaijan"))
countries.add(Country("ba", "387", "Bosnia And Herzegovina"))
countries.add(Country("bb", "1", "Barbados"))
countries.add(Country("bd", "880", "Bangladesh"))
countries.add(Country("be", "32", "Belgium"))
countries.add(Country("bf", "226", "Burkina Faso"))
countries.add(Country("bg", "359", "Bulgaria"))
countries.add(Country("bh", "973", "Bahrain"))
countries.add(Country("bi", "257", "Burundi"))
countries.add(Country("bj", "229", "Benin"))
countries.add(Country("bl", "590", "Saint Barthรฉlemy"))
countries.add(Country("bm", "1", "Bermuda"))
countries.add(Country("bn", "673", "Brunei Darussalam"))
countries.add(Country("bo", "591", "Bolivia, Plurinational State Of"))
countries.add(Country("br", "55", "Brazil"))
countries.add(Country("bs", "1", "Bahamas"))
countries.add(Country("bt", "975", "Bhutan"))
countries.add(Country("bw", "267", "Botswana"))
countries.add(Country("by", "375", "Belarus"))
countries.add(Country("bz", "501", "Belize"))
countries.add(Country("ca", "1", "Canada"))
countries.add(Country("cc", "61", "Cocos (keeling)) Islands"))
countries.add(Country("cd", "243", "Congo, The Democratic Republic Of The"))
countries.add(Country("cf", "236", "Central African Republic"))
countries.add(Country("cg", "242", "Congo"))
countries.add(Country("ch", "41", "Switzerland"))
countries.add(Country("ci", "225", "Cรดte D'ivoire"))
countries.add(Country("ck", "682", "Cook Islands"))
countries.add(Country("cl", "56", "Chile"))
countries.add(Country("cm", "237", "Cameroon"))
countries.add(Country("cn", "86", "China"))
countries.add(Country("co", "57", "Colombia"))
countries.add(Country("cr", "506", "Costa Rica"))
countries.add(Country("cu", "53", "Cuba"))
countries.add(Country("cv", "238", "Cape Verde"))
countries.add(Country("cw", "599", "Curaรงao"))
countries.add(Country("cx", "61", "Christmas Island"))
countries.add(Country("cy", "357", "Cyprus"))
countries.add(Country("cz", "420", "Czech Republic"))
countries.add(Country("de", "49", "Germany"))
countries.add(Country("dj", "253", "Djibouti"))
countries.add(Country("dk", "45", "Denmark"))
countries.add(Country("dm", "1", "Dominica"))
countries.add(Country("do", "1", "Dominican Republic"))
countries.add(Country("dz", "213", "Algeria"))
countries.add(Country("ec", "593", "Ecuador"))
countries.add(Country("ee", "372", "Estonia"))
countries.add(Country("eg", "20", "Egypt"))
countries.add(Country("er", "291", "Eritrea"))
countries.add(Country("es", "34", "Spain"))
countries.add(Country("et", "251", "Ethiopia"))
countries.add(Country("fi", "358", "Finland"))
countries.add(Country("fj", "679", "Fiji"))
countries.add(Country("fk", "500", "Falkland Islands (malvinas))"))
countries.add(Country("fm", "691", "Micronesia, Federated States Of"))
countries.add(Country("fo", "298", "Faroe Islands"))
countries.add(Country("fr", "33", "France"))
countries.add(Country("ga", "241", "Gabon"))
countries.add(Country("gb", "44", "United Kingdom"))
countries.add(Country("gd", "1", "Grenada"))
countries.add(Country("ge", "995", "Georgia"))
countries.add(Country("gf", "594", "French Guyana"))
countries.add(Country("gh", "233", "Ghana"))
countries.add(Country("gi", "350", "Gibraltar"))
countries.add(Country("gl", "299", "Greenland"))
countries.add(Country("gm", "220", "Gambia"))
countries.add(Country("gn", "224", "Guinea"))
countries.add(Country("gp", "450", "Guadeloupe"))
countries.add(Country("gq", "240", "Equatorial Guinea"))
countries.add(Country("gr", "30", "Greece"))
countries.add(Country("gt", "502", "Guatemala"))
countries.add(Country("gu", "1", "Guam"))
countries.add(Country("gw", "245", "Guinea-bissau"))
countries.add(Country("gy", "592", "Guyana"))
countries.add(Country("hk", "852", "Hong Kong"))
countries.add(Country("hn", "504", "Honduras"))
countries.add(Country("hr", "385", "Croatia"))
countries.add(Country("ht", "509", "Haiti"))
countries.add(Country("hu", "36", "Hungary"))
countries.add(Country("id", "62", "Indonesia"))
countries.add(Country("ie", "353", "Ireland"))
countries.add(Country("il", "972", "Israel"))
countries.add(Country("im", "44", "Isle Of Man"))
countries.add(Country("is", "354", "Iceland"))
countries.add(Country("in", "91", "India"))
countries.add(Country("io", "246", "British Indian Ocean Territory"))
countries.add(Country("iq", "964", "Iraq"))
countries.add(Country("ir", "98", "Iran, Islamic Republic Of"))
countries.add(Country("it", "39", "Italy"))
countries.add(Country("je", "44", "Jersey "))
countries.add(Country("jm", "1", "Jamaica"))
countries.add(Country("jo", "962", "Jordan"))
countries.add(Country("jp", "81", "Japan"))
countries.add(Country("ke", "254", "Kenya"))
countries.add(Country("kg", "996", "Kyrgyzstan"))
countries.add(Country("kh", "855", "Cambodia"))
countries.add(Country("ki", "686", "Kiribati"))
countries.add(Country("km", "269", "Comoros"))
countries.add(Country("kn", "1", "Saint Kitts and Nevis"))
countries.add(Country("kp", "850", "North Korea"))
countries.add(Country("kr", "82", "South Korea"))
countries.add(Country("kw", "965", "Kuwait"))
countries.add(Country("ky", "1", "Cayman Islands"))
countries.add(Country("kz", "7", "Kazakhstan"))
countries.add(Country("la", "856", "Lao People's Democratic Republic"))
countries.add(Country("lb", "961", "Lebanon"))
countries.add(Country("lc", "1", "Saint Lucia"))
countries.add(Country("li", "423", "Liechtenstein"))
countries.add(Country("lk", "94", "Sri Lanka"))
countries.add(Country("lr", "231", "Liberia"))
countries.add(Country("ls", "266", "Lesotho"))
countries.add(Country("lt", "370", "Lithuania"))
countries.add(Country("lu", "352", "Luxembourg"))
countries.add(Country("lv", "371", "Latvia"))
countries.add(Country("ly", "218", "Libya"))
countries.add(Country("ma", "212", "Morocco"))
countries.add(Country("mc", "377", "Monaco"))
countries.add(Country("md", "373", "Moldova, Republic Of"))
countries.add(Country("me", "382", "Montenegro"))
countries.add(Country("mf", "590", "Saint Martin"))
countries.add(Country("mg", "261", "Madagascar"))
countries.add(Country("mh", "692", "Marshall Islands"))
countries.add(Country("mk", "389", "Macedonia (FYROM))"))
countries.add(Country("ml", "223", "Mali"))
countries.add(Country("mm", "95", "Myanmar"))
countries.add(Country("mn", "976", "Mongolia"))
countries.add(Country("mo", "853", "Macau"))
countries.add(Country("mp", "1", "Northern Mariana Islands"))
countries.add(Country("mq", "596", "Martinique"))
countries.add(Country("mr", "222", "Mauritania"))
countries.add(Country("ms", "1", "Montserrat"))
countries.add(Country("mt", "356", "Malta"))
countries.add(Country("mu", "230", "Mauritius"))
countries.add(Country("mv", "960", "Maldives"))
countries.add(Country("mw", "265", "Malawi"))
countries.add(Country("mx", "52", "Mexico"))
countries.add(Country("my", "60", "Malaysia"))
countries.add(Country("mz", "258", "Mozambique"))
countries.add(Country("na", "264", "Namibia"))
countries.add(Country("nc", "687", "New Caledonia"))
countries.add(Country("ne", "227", "Niger"))
countries.add(Country("nf", "672", "Norfolk Islands"))
countries.add(Country("ng", "234", "Nigeria"))
countries.add(Country("ni", "505", "Nicaragua"))
countries.add(Country("nl", "31", "Netherlands"))
countries.add(Country("no", "47", "Norway"))
countries.add(Country("np", "977", "Nepal"))
countries.add(Country("nr", "674", "Nauru"))
countries.add(Country("nu", "683", "Niue"))
countries.add(Country("nz", "64", "New Zealand"))
countries.add(Country("om", "968", "Oman"))
countries.add(Country("pa", "507", "Panama"))
countries.add(Country("pe", "51", "Peru"))
countries.add(Country("pf", "689", "French Polynesia"))
countries.add(Country("pg", "675", "Papua New Guinea"))
countries.add(Country("ph", "63", "Philippines"))
countries.add(Country("pk", "92", "Pakistan"))
countries.add(Country("pl", "48", "Poland"))
countries.add(Country("pm", "508", "Saint Pierre And Miquelon"))
countries.add(Country("pn", "870", "Pitcairn Islands"))
countries.add(Country("pr", "1", "Puerto Rico"))
countries.add(Country("ps", "970", "Palestine"))
countries.add(Country("pt", "351", "Portugal"))
countries.add(Country("pw", "680", "Palau"))
countries.add(Country("py", "595", "Paraguay"))
countries.add(Country("qa", "974", "Qatar"))
countries.add(Country("re", "262", "Rรฉunion"))
countries.add(Country("ro", "40", "Romania"))
countries.add(Country("rs", "381", "Serbia"))
countries.add(Country("ru", "7", "Russian Federation"))
countries.add(Country("rw", "250", "Rwanda"))
countries.add(Country("sa", "966", "Saudi Arabia"))
countries.add(Country("sb", "677", "Solomon Islands"))
countries.add(Country("sc", "248", "Seychelles"))
countries.add(Country("sd", "249", "Sudan"))
countries.add(Country("se", "46", "Sweden"))
countries.add(Country("sg", "65", "Singapore"))
countries.add(Country("sh", "290", "Saint Helena, Ascension And Tristan Da Cunha"))
countries.add(Country("si", "386", "Slovenia"))
countries.add(Country("sk", "421", "Slovakia"))
countries.add(Country("sl", "232", "Sierra Leone"))
countries.add(Country("sm", "378", "San Marino"))
countries.add(Country("sn", "221", "Senegal"))
countries.add(Country("so", "252", "Somalia"))
countries.add(Country("sr", "597", "Suriname"))
countries.add(Country("ss", "211", "South Sudan"))
countries.add(Country("st", "239", "Sao Tome And Principe"))
countries.add(Country("sv", "503", "El Salvador"))
countries.add(Country("sx", "1", "Sint Maarten"))
countries.add(Country("sy", "963", "Syrian Arab Republic"))
countries.add(Country("sz", "268", "Swaziland"))
countries.add(Country("tc", "1", "Turks and Caicos Islands"))
countries.add(Country("td", "235", "Chad"))
countries.add(Country("tg", "228", "Togo"))
countries.add(Country("th", "66", "Thailand"))
countries.add(Country("tj", "992", "Tajikistan"))
countries.add(Country("tk", "690", "Tokelau"))
countries.add(Country("tl", "670", "Timor-leste"))
countries.add(Country("tm", "993", "Turkmenistan"))
countries.add(Country("tn", "216", "Tunisia"))
countries.add(Country("to", "676", "Tonga"))
countries.add(Country("tr", "90", "Turkey"))
countries.add(Country("tt", "1", "Trinidad &amp; Tobago"))
countries.add(Country("tv", "688", "Tuvalu"))
countries.add(Country("tw", "886", "Taiwan"))
countries.add(Country("tz", "255", "Tanzania, United Republic Of"))
countries.add(Country("ua", "380", "Ukraine"))
countries.add(Country("ug", "256", "Uganda"))
countries.add(Country("us", "1", "United States"))
countries.add(Country("uy", "598", "Uruguay"))
countries.add(Country("uz", "998", "Uzbekistan"))
countries.add(Country("va", "379", "Holy See (vatican City State))"))
countries.add(Country("vc", "1", "Saint Vincent &amp; The Grenadines"))
countries.add(Country("ve", "58", "Venezuela, Bolivarian Republic Of"))
countries.add(Country("vg", "1", "British Virgin Islands"))
countries.add(Country("vi", "1", "US Virgin Islands"))
countries.add(Country("vn", "84", "Vietnam"))
countries.add(Country("vu", "678", "Vanuatu"))
countries.add(Country("wf", "681", "Wallis And Futuna"))
countries.add(Country("ws", "685", "Samoa"))
countries.add(Country("xk", "383", "Kosovo"))
countries.add(Country("ye", "967", "Yemen"))
countries.add(Country("yt", "262", "Mayotte"))
countries.add(Country("za", "27", "South Africa"))
countries.add(Country("zm", "260", "Zambia"))
countries.add(Country("zw", "263", "Zimbabwe"))
return countries
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment