package tripvisModel { public class Currency { public static const EUR: Currency = new Currency('EUR', 'Euro', '€', 1); public static const USD: Currency = new Currency('USD', 'American Dollar', '$', 0.749625); public static const GBP: Currency = new Currency('GBP', 'British Pound','£', 1.13785 ); // de default currency moet een rate van 1 hebben public static const DEFAULT_CURRENCY: Currency = EUR; // lijst met alle currencies: public static const ALL_CURRENCIES: Array = [EUR, USD, GBP]; public var shortName: String; public var longName: String; public var sign: String; public var rate: Number; public function Currency(shortName: String, longName: String, sign: String, rate: Number): void { this.shortName = shortName; this.longName = longName; this.sign = sign; this.rate = rate; } } }