Ejemplo n.º 1
0
 public SimCorpMobile(LCDScreenColorful screen,
                      Battery battery,
                      Keyboard keyboard,
                      MultiTouch multiTouchFunctionality,
                      MEMSMicrophone memsMicrophone,
                      DualRearCamera dualRearCamera,
                      Processor cpu,
                      InternalStorage internalStorage,
                      RemovableStorage removableStorage,
                      Software software,
                      Network network,
                      Connectivity connectivity)
 {
     this.vLCDScreen = screen;
     this.vBattery   = battery;
     this.vKeyboard  = keyboard;
     this.vTouchScreenFunctionality = multiTouchFunctionality;
     this.vMEMSMicrophone           = memsMicrophone;
     this.vDualRearCamera           = dualRearCamera;
     this.vCPU              = cpu;
     this.vInternalStorage  = internalStorage;
     this.vRemovableStorage = removableStorage;
     this.vSoftware         = software;
     this.vNetwork          = network;
     this.vConnectivity     = connectivity;
 }
Ejemplo n.º 2
0
        public override string ToString()
        {
            var descriptionBuilder = new StringBuilder();

            descriptionBuilder.AppendLine($"Screen type: {Screen.ToString()}");
            descriptionBuilder.AppendLine($"Keyboard type: {Keyboard.ToString()}");
            descriptionBuilder.AppendLine($"Touchscreen: {TouchScreenFunctionality.ToString()}");
            descriptionBuilder.AppendLine($"Microphone type: {Microphone.ToString()}");
            descriptionBuilder.AppendLine($"Camera: {Camera.ToString()}");
            descriptionBuilder.AppendLine($"Processor: {CPU.ToString()}");
            descriptionBuilder.AppendLine($"Internal storage: {InternalStorage.ToString()}");
            descriptionBuilder.AppendLine($"Removable storage: {RemovableStorage.ToString()}");
            descriptionBuilder.AppendLine($"Software: {Software.ToString()}");
            descriptionBuilder.AppendLine($"Network: {Network.ToString()}");
            descriptionBuilder.AppendLine($"Connectivity: {Connectivity.ToString()}");

            return(descriptionBuilder.ToString());
        }
Ejemplo n.º 3
0
 public void StoreToRemovableStorage(Object data)
 {
     Output.WriteLine("Store the data to the removable storage:");
     RemovableStorage.Store(data);
 }