/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package net.kirauks.minigames.launcher.games;

import javafx.beans.property.ReadOnlyStringProperty;
import javafx.beans.property.SimpleStringProperty;

/**
 *
 * @author Karl
 */
public class GameModel {
    private SimpleStringProperty name;
    private SimpleStringProperty description;
    private SimpleStringProperty url;
    
    public GameModel(String name, String description, String url){
        this.name = new SimpleStringProperty(name);
        this.name = new SimpleStringProperty(description);
        this.name = new SimpleStringProperty(url);
    }
    
    public ReadOnlyStringProperty nameProperty(){
        return this.name;
    }
    public ReadOnlyStringProperty descriptionProperty(){
        return this.description;
    }
    public ReadOnlyStringProperty urlProperty(){
        return this.url;
    }
}

@@ -226,16 +226,45 @@
 games;%0A%0A
+import java.io.Serializable;%0A
 import j
@@ -308,16 +308,16 @@
 operty;%0A
-
 import j
@@ -410,17 +410,98 @@
 meModel 
-%7B
+implements Serializable%7B%0A    private static final long serialVersionUID = 1L;%0A    
 %0A    pri
@@ -611,19 +611,20 @@
 roperty 
-url
+path
 ;%0A    %0A 
@@ -1078,46 +1078,283 @@
 rty 
-urlProperty()%7B%0A        return this.url
+pathProperty()%7B%0A        return this.path;%0A    %7D%0A    %0A    public String getName()%7B%0A        return this.name.getValue();%0A    %7D%0A    public String getDescription()%7B%0A        return this.description.getValue();%0A    %7D%0A    public String getPath()%7B%0A        return this.path.getValue()
 ;%0A  

Improve game model