-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
03cf1b2
commit e581dff
Showing
3 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
String getCoinFullName(String code) { | ||
Map<String, String> coinMap = { | ||
'GERAMI': 'GRAM COIN', | ||
'ROB': 'QUARTER COIN', | ||
'NIM': 'HALF COIN', | ||
'SEKEB': 'BAHAR COIN', | ||
'SEKEE': 'IMAMI COIN', | ||
}; | ||
|
||
return coinMap[code.toUpperCase()] ?? 'Unknown Coin Code'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
String getCurrencyFullName(String code) { | ||
Map<String, String> currencyMap = { | ||
'DOLLAR': 'United States Dollar', | ||
'EUR': 'Euro', | ||
'AED': 'United Arab Emirates Dirham', | ||
'GBP': 'Pound sterling', | ||
'TRY': 'Turkish lira', | ||
'CAD': 'Canadian Dollar', | ||
'AUD': 'Australian Dollar' | ||
}; | ||
|
||
return currencyMap[code.toUpperCase()] ?? 'Unknown Currency Code'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
String getGoldFullName(String code) { | ||
Map<String, String> goldMap = { | ||
'GERAM24': '24K GOLD', | ||
'GERAM18': '18K GOLD', | ||
'DASTE_DOOM': '2ND CLASS GOLD', | ||
'MESGHAL': 'GOLD BULLION', | ||
'AB_SHODE': 'MELTED GOLD', | ||
'ONS': 'GOLD PRICE PER OUNCE', | ||
'SILVER': 'SILVER', | ||
'PLATINUM': 'PLATINUM', | ||
'PALLADIUM': 'PALLADIUM', | ||
}; | ||
|
||
return goldMap[code.toUpperCase()] ?? 'Unknown Gold Code'; | ||
} |