protected Screen(int height, int width, ScreenType type, IUserInOut userInOut) { Height = height; Width = width; Type = type; this.userInOut = userInOut; }
public Battery(int capacity, int chargingTime, IUserInOut userInOut) { Capacity = capacity; ChargingTime = chargingTime; this.userInOut = userInOut; Charge = MaxCharge / 2; CanDischarge = true; }
private Battery GetBattery(ParallelType type, IUserInOut userInOut) { Battery battery; int capacity = 5000; int chargingTime = 60; if (type.Equals(ParallelType.Thread)) { battery = new BatteryThread(capacity, chargingTime, userInOut); } else { battery = new BatteryTask(capacity, chargingTime, userInOut); } return(battery); }
public SimCorpMobile(IUserInOut userInOut) : base(userInOut) { int micSensitivityRate = 70; string micBandwidth = "40 - 20k Hz"; vMicrophone = new Microphone(micSensitivityRate, micBandwidth, userInOut); int outputPower = 50; string speakerBandwidth = "20 - 18k Hz"; vSpeaker = new Speaker(outputPower, speakerBandwidth, userInOut); CellularType cellModuleType = CellularType.Lte; int workingDistance = 1000; vCellModule = new CellularModule(cellModuleType, workingDistance, userInOut); int screenHeight = 1920; int screenWidth = 1080; ScreenType screenType = ScreenType.Lcd; int brightness = 73; int contrast = 57; IScreenProfile screenProfile = new BasicScreenProfile(brightness, contrast); vScreen = new TuningScreen(screenHeight, screenWidth, screenType, screenProfile, userInOut); int controlHeght = 140; int controlWidth = 68; int touchSensitivityRate = 90; vMultiTouchPanel = new MultiTouchPanel(controlHeght, controlWidth, touchSensitivityRate, userInOut); vMessageStorage = new MessageStorage { Contacts = new List <Contact> { new Contact("John", 380101), new Contact("Nick", 380102), new Contact("Emma", 380103) } }; ParallelType type = ParallelType.Task; vSMSProvider = GetSMSProvider(type); vBattery = GetBattery(type, userInOut); }
public SamsungHeadphones(int soundImprovingRate, IUserInOut userInOut) { SoundImprovingRate = soundImprovingRate; this.userInOut = userInOut; }
public Charger(IUserInOut userInOut) { this.userInOut = userInOut; }
public HeadsetIPhone(IUserInOut userInOut) { this.userInOut = userInOut; }
public TuningScreen(int height, int width, ScreenType type, IScreenProfile profile, IUserInOut userInOut) : base(height, width, type, userInOut) { CurrentProfile = profile; this.userInOut = userInOut; }
public NoNameHeadset(IUserInOut userInOut) { this.userInOut = userInOut; }
public BatteryTask(int capacity, int chargingTime, IUserInOut userInOut) : base(capacity, chargingTime, userInOut) { }
public MultiTouchPanel(int height, int width, int sensitivityRate, IUserInOut userInOut) : base(height, width, sensitivityRate) { this.userInOut = userInOut; }
public UsbDisplay(IUserInOut userInOut) { this.userInOut = userInOut; }
protected Mobile(IUserInOut userInOut) { this.userInOut = userInOut; }
public PortableSpeaker(IUserInOut userInOut) { this.userInOut = userInOut; }
public CellularModule(CellularType moduleType, int workingDistance, IUserInOut userInOut) { ModuleType = moduleType; WorkingDistance = workingDistance; this.userInOut = userInOut; }
public Speaker(int outputPower, string bandwidth, IUserInOut userInOut) { OutputPower = outputPower; Bandwidth = bandwidth; this.userInOut = userInOut; }
public Keyboard(int height, int width, int buttonsNumber, IUserInOut userInOut) : base(height, width) { ButtonsNumber = buttonsNumber; this.userInOut = userInOut; }
public Microphone(int sensitivityRate, string bandwidth, IUserInOut userInOut) { SensitivityRate = sensitivityRate; Bandwidth = bandwidth; this.userInOut = userInOut; }
public FlashLight(IUserInOut userInOut) { this.userInOut = userInOut; }