Beispiel #1
0
 protected Screen(int height, int width, ScreenType type, IUserInOut userInOut)
 {
     Height         = height;
     Width          = width;
     Type           = type;
     this.userInOut = userInOut;
 }
Beispiel #2
0
 public Battery(int capacity, int chargingTime, IUserInOut userInOut)
 {
     Capacity       = capacity;
     ChargingTime   = chargingTime;
     this.userInOut = userInOut;
     Charge         = MaxCharge / 2;
     CanDischarge   = true;
 }
Beispiel #3
0
        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);
        }
Beispiel #4
0
        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);
        }
Beispiel #5
0
 public SamsungHeadphones(int soundImprovingRate, IUserInOut userInOut)
 {
     SoundImprovingRate = soundImprovingRate;
     this.userInOut     = userInOut;
 }
Beispiel #6
0
 public Charger(IUserInOut userInOut)
 {
     this.userInOut = userInOut;
 }
Beispiel #7
0
 public HeadsetIPhone(IUserInOut userInOut)
 {
     this.userInOut = userInOut;
 }
Beispiel #8
0
 public TuningScreen(int height, int width, ScreenType type, IScreenProfile profile, IUserInOut userInOut) : base(height, width, type, userInOut)
 {
     CurrentProfile = profile;
     this.userInOut = userInOut;
 }
Beispiel #9
0
 public NoNameHeadset(IUserInOut userInOut)
 {
     this.userInOut = userInOut;
 }
Beispiel #10
0
 public BatteryTask(int capacity, int chargingTime, IUserInOut userInOut)
     : base(capacity, chargingTime, userInOut)
 {
 }
Beispiel #11
0
 public MultiTouchPanel(int height, int width, int sensitivityRate, IUserInOut userInOut) : base(height, width, sensitivityRate)
 {
     this.userInOut = userInOut;
 }
Beispiel #12
0
 public UsbDisplay(IUserInOut userInOut)
 {
     this.userInOut = userInOut;
 }
Beispiel #13
0
 protected Mobile(IUserInOut userInOut)
 {
     this.userInOut = userInOut;
 }
Beispiel #14
0
 public PortableSpeaker(IUserInOut userInOut)
 {
     this.userInOut = userInOut;
 }
Beispiel #15
0
 public CellularModule(CellularType moduleType, int workingDistance, IUserInOut userInOut)
 {
     ModuleType      = moduleType;
     WorkingDistance = workingDistance;
     this.userInOut  = userInOut;
 }
Beispiel #16
0
 public Speaker(int outputPower, string bandwidth, IUserInOut userInOut)
 {
     OutputPower    = outputPower;
     Bandwidth      = bandwidth;
     this.userInOut = userInOut;
 }
Beispiel #17
0
 public Keyboard(int height, int width, int buttonsNumber, IUserInOut userInOut) : base(height, width)
 {
     ButtonsNumber  = buttonsNumber;
     this.userInOut = userInOut;
 }
Beispiel #18
0
 public Microphone(int sensitivityRate, string bandwidth, IUserInOut userInOut)
 {
     SensitivityRate = sensitivityRate;
     Bandwidth       = bandwidth;
     this.userInOut  = userInOut;
 }
Beispiel #19
0
 public FlashLight(IUserInOut userInOut)
 {
     this.userInOut = userInOut;
 }