Created
April 30, 2020 13:57
-
-
Save singhrahuldps/27f49d29073be11b5ce7ab771a34d134 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Bluetooth implements CommunicationDriver{ | |
String connectedDevice; | |
@Override | |
public void connectDevice(String deviceName) { | |
this.connectedDevice = deviceName; | |
System.out.println("Connected to " + this.connectedDevice); | |
} | |
@Override | |
public void disconnectDevice() { | |
System.out.println("Disconnected " + this.connectedDevice); | |
this.connectedDevice = null; | |
} | |
@Override | |
public void sendFile(String filePath) { | |
System.out.println("File sent successfully!"); | |
} | |
@Override | |
public void receiveFile() { | |
System.out.println("File received successfully!"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment