diff --git a/src/Client/src/main/java/greenify/client/Friend.java b/src/Client/src/main/java/greenify/client/Friend.java new file mode 100644 index 0000000..87ec3cd --- /dev/null +++ b/src/Client/src/main/java/greenify/client/Friend.java @@ -0,0 +1,32 @@ +package greenify.client; + +import javafx.beans.property.SimpleFloatProperty; +import javafx.beans.property.SimpleStringProperty; + +public class Friend { + + private SimpleStringProperty friend; + private SimpleFloatProperty friendScore; + + public Friend(String friend, Float friendScore) { + this.friend = new SimpleStringProperty(friend); + this.friendScore = new SimpleFloatProperty(friendScore); + } + + + public String getFriend() { + return friend.get(); + } + + public void setFriend(String name) { + this.friend = new SimpleStringProperty(name); + } + + public Float getFriendScore() { + return friendScore.get(); + } + + public void setScore(Float score) { + this.friendScore = new SimpleFloatProperty(score); + } +} \ No newline at end of file