//removes a loan //returns the advertisement for the airline for a specific type public AdvertisementType GetAirlineAdvertisement(AdvertisementType.AirlineAdvertisementType type) { return Advertisements[type]; }
public void SetAirlineAdvertisement(AdvertisementType type) { if (!Advertisements.ContainsKey(type.Type)) { Advertisements.Add(type.Type, type); } else { Advertisements[type.Type] = type; } }
public AirlineAdvertisementMVVM(AdvertisementType.AirlineAdvertisementType type) { Type = type; }
public static void AddAdvertisementType(AdvertisementType type) { Advertisements.Add(type); }
/*!returns the advertisement types for a specific type */ public static List<AdvertisementType> GetTypes(AdvertisementType.AirlineAdvertisementType type) { return Advertisements.FindAll((t => t.Type == type)); }
public static AdvertisementType GetType(AdvertisementType.AirlineAdvertisementType type, string name) { return GetTypes(type).Find((t => t.Name == name)); }
public static AdvertisementType GetBasicType(AdvertisementType.AirlineAdvertisementType type) { return GetTypes(type).Find((t => t.ReputationLevel == 0)); }