public SimCorpMobile(ScreenBase screen, BatteryBase battery, CPUBase cpu, MessageStorage messageStorage) : base(screen, battery, cpu, messageStorage) { Screen = screen; Battery = battery; CPU = cpu; SMSProviderInt = new SMSProviderInt(messageStorage); }
public SimCorpMobileThreadTask(ScreenBase screen, BatteryBase battery, CPUBase cpu, MessageStorage messageStorage) : base(screen, battery, cpu, messageStorage) { Screen = screen; Battery = battery; CPU = cpu; //Factory Pattern here: SMSProviderIntCreator sMSProviderIntCreator = new SMSProviderIntCreator(); SMSProviderIntThreadTask = sMSProviderIntCreator.GetSMSProvider(messageStorage, SMSProviderIntType.Task); }