-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRemoteDeviceInfo.java
43 lines (34 loc) · 1.36 KB
/
RemoteDeviceInfo.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// Importing the class for creating simple string properties in JavaFX
import javafx.beans.property.SimpleStringProperty;
// Definition of the RemoteDeviceInfo class
public class RemoteDeviceInfo {
// Creating a simple string property for the device name
public final SimpleStringProperty deviceName = new SimpleStringProperty("");
// Creating a simple string property for the device address
public final SimpleStringProperty deviceAddress = new SimpleStringProperty("");
// Getter method for retrieving the device address
public String getDeviceAddress() {
return deviceAddress.get();
}
// Setter method for setting the device address
public void setDeviceAddress(String deviceAddress) {
this.deviceAddress.set(deviceAddress);
}
// Getter method for retrieving the device name
public String getDeviceName() {
return deviceName.get();
}
// Setter method for setting the device name
public void setDeviceName(String deviceName) {
this.deviceName.set(deviceName);
}
// Constructor for initializing the device name and address
public RemoteDeviceInfo(String name, String address) {
setDeviceName(name);
setDeviceAddress(address);
}
// Default constructor with empty values for device name and address
public RemoteDeviceInfo() {
this("", "");
}
}