本文主要是介绍币种枚举类,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
进行汇率转化需要币种的枚举类,根据中国银行的接口整理的枚举类如下,便于应用
enum class CurrencyType(val curNo: Int,val curNm:String,val curNmEn:String) {AUD(1,"澳大利亚元","AUD, Australian Dollar"),CAD(2,"加拿大元","CAD, Canadian Dollar"),CHF(3,"瑞士法郎","CHF, Swiss Franc"),DKK(4,"丹麦克朗","DKK, Danish Krone"),EUR(5, "欧元","EUR, Euro"),GBP(6,"英镑","GBP, Pound Sterling"),HKD(7,"港币","HKD, Hong Kong Dollar"),JPY(8,"日元","JPY, Yen"),KRW(9,"韩国元","KRW, Won"),KZT(10,"哈萨克斯坦坚戈","KZT, Tenge"),MOP(11,"澳门币","MOP, Pataca"),MYR(12,"马来西亚林吉特","MYR, Malaysian Ringgit"),NOK(13,"挪威克朗","NOK, Norwegian Krone"),NZD(14,"新西兰元","NZD, New Zealand Dollar"),PKR(15,"巴基斯坦卢比","PKR, Pakistan Rupee"),RUB(16,"俄罗斯卢布","RUB, Russian Ruble"),SEK(17, "瑞典克朗","SEK, Swedish Krona"),SGD(19,"新加坡元","SGD, Singapore Dollar"),THB(20,"泰铢","THB, Baht"),USD(21,"美元","USD, U.S.Dollar"),ZAR(22,"南非兰特","ZAR, Rand"),PHP(23,"菲律宾比索","PHP, Philippine Peso"),CNY(24,"中国人民币","CNY,Chinese Yuan")
}
这篇关于币种枚举类的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!