예제 #1
0
파일: Mobile.cs 프로젝트: Anpl-sc/Labs
        public void DataTransfer(object data)
        {
            IDataDeice dataDeice = UsbDevice as IDataDeice;

            if (dataDeice != null)
            {
                dataDeice.DataTransfer(data);
            }
            else
            {
                userInOut.WriteLine("Data transferring function is not available");
            }
        }
예제 #2
0
 public void PowerSupply(object data)
 {
     userInOut.WriteLine($"{nameof(Charger)} connected to USB, charging mobile device");
 }
예제 #3
0
 public void Show(IScreenImage image, IScreenProfile profile)
 {
     userInOut.WriteLine("Image on " + Type + " display with brightness " + profile.Brightness + ", and contrast " + profile.Contrast + "\n");
 }
예제 #4
0
 public void Play(object data)
 {
     userInOut.WriteLine($"{nameof(HeadsetIPhone)} sound");
 }
예제 #5
0
 public void Play(object data)
 {
     userInOut.WriteLine($"{nameof(NoNameHeadset)} sound");
 }
예제 #6
0
파일: UsbDisplay.cs 프로젝트: Anpl-sc/Labs
 public void PowerSupply(object data)
 {
     userInOut.WriteLine($"{nameof(UsbDisplay)} connected to USB, consuming power");
 }
예제 #7
0
 public override void ParseInput(IUserInput userInput)
 {
     userInOut.WriteLine("User input on multi touch panel\n");
 }
예제 #8
0
 public void Play(object data)
 {
     userInOut.WriteLine($"{nameof(SamsungHeadphones)} sound");
 }
예제 #9
0
 public void TransmitPackage(ICellularPackage package)
 {
     userInOut.WriteLine("Transmit " + package.PackageType + " package\n");
 }
예제 #10
0
 public override void ParseInput(IUserInput userInput)
 {
     userInOut.WriteLine("User input on keyboard\n");
 }
예제 #11
0
파일: Battery.cs 프로젝트: Anpl-sc/Labs
 public void PowerSupply(IPowerProfile powerProfile)
 {
     userInOut.WriteLine("Power supplying with voltage " + powerProfile.Voltage + ", and currency " + powerProfile.OutputCurrency + "\n");
 }
예제 #12
0
 public void TransmitSound(ISound sound)
 {
     userInOut.WriteLine("Transmit sound with Bit Rate " + sound.BitRate + ", and Pitch " + sound.Pitch + "\n");
 }
예제 #13
0
 public void PowerSupply(object data)
 {
     userInOut.WriteLine($"{nameof(FlashLight)} connected to USB, consuming power");
 }
예제 #14
0
 public void PlaySound(ISound sound)
 {
     userInOut.WriteLine("Playing sound with Bit Rate " + sound.BitRate + ", and Pitch " + sound.Pitch + "\n");
 }
예제 #15
0
 public void Play(object data)
 {
     userInOut.WriteLine($"{nameof(PortableSpeaker)} sound, Volume " + Volume);
 }
예제 #16
0
 public void Show(IScreenImage image)
 {
     userInOut.WriteLine("Image on " + Type + " display\n");
 }