2017-06-16 23:35:56 +02:00
/ * *
* Datatype used for the smmdbapi query
* /
2017-06-04 20:15:04 +02:00
package datatypes ;
import javafx.beans.property.IntegerProperty ;
import javafx.beans.property.SimpleIntegerProperty ;
import javafx.beans.property.SimpleStringProperty ;
import javafx.beans.property.StringProperty ;
public class SmmdbApiDataType {
private final IntegerProperty id = new SimpleIntegerProperty ( ) ;
private final IntegerProperty owner = new SimpleIntegerProperty ( ) ;
private final IntegerProperty coursetype = new SimpleIntegerProperty ( ) ;
2017-08-25 14:57:15 +02:00
private final IntegerProperty gamestyle = new SimpleIntegerProperty ( ) ;
2017-06-04 20:15:04 +02:00
private final IntegerProperty difficulty = new SimpleIntegerProperty ( ) ;
private final IntegerProperty lastmodified = new SimpleIntegerProperty ( ) ;
private final IntegerProperty uploaded = new SimpleIntegerProperty ( ) ;
private final IntegerProperty downloads = new SimpleIntegerProperty ( ) ;
private final IntegerProperty stars = new SimpleIntegerProperty ( ) ;
2017-06-18 00:33:07 +02:00
private final IntegerProperty hasimage = new SimpleIntegerProperty ( ) ;
2017-06-04 20:15:04 +02:00
private final IntegerProperty ispackage = new SimpleIntegerProperty ( ) ;
private final IntegerProperty updatereq = new SimpleIntegerProperty ( ) ;
2017-06-05 17:16:39 +02:00
private final StringProperty nintendoid = new SimpleStringProperty ( ) ;
2017-06-04 20:15:04 +02:00
private final StringProperty title = new SimpleStringProperty ( ) ;
2017-08-25 14:57:15 +02:00
public SmmdbApiDataType ( final int id , final int owner , final int coursetype , final int gamestyle , final int difficulty ,
2017-06-18 00:33:07 +02:00
final int lastmodified , final int uploaded , final int downloads , final int stars , final int hasimage ,
final int ispackage , final int updatereq , final String nintendoid , final String title ) {
2017-06-04 20:15:04 +02:00
this . id . set ( id ) ;
this . owner . set ( owner ) ;
this . coursetype . set ( coursetype ) ;
2017-08-25 14:57:15 +02:00
this . gamestyle . set ( gamestyle ) ;
2017-06-04 20:15:04 +02:00
this . difficulty . set ( difficulty ) ;
this . lastmodified . set ( lastmodified ) ;
this . uploaded . set ( uploaded ) ;
this . downloads . set ( downloads ) ;
this . stars . set ( stars ) ;
2017-06-18 00:33:07 +02:00
this . hasimage . set ( hasimage ) ;
2017-06-04 20:15:04 +02:00
this . ispackage . set ( ispackage ) ;
this . updatereq . set ( updatereq ) ;
2017-06-05 17:16:39 +02:00
this . nintendoid . set ( nintendoid ) ;
this . title . set ( title ) ;
2017-06-04 20:15:04 +02:00
}
public IntegerProperty idProperty ( ) {
return id ;
}
public IntegerProperty ownerProperty ( ) {
return owner ;
}
public IntegerProperty coursetypeProperty ( ) {
return coursetype ;
}
2017-06-05 17:16:39 +02:00
public StringProperty nintendoidProperty ( ) {
return nintendoid ;
}
2017-06-04 20:15:04 +02:00
2017-08-25 14:57:15 +02:00
public IntegerProperty gamestyleProperty ( ) {
return gamestyle ;
2017-06-04 20:15:04 +02:00
}
public IntegerProperty difficultyProperty ( ) {
return difficulty ;
}
public IntegerProperty lastmodifiedProperty ( ) {
return lastmodified ;
}
public IntegerProperty uploadedProperty ( ) {
return uploaded ;
}
public IntegerProperty downloadsProperty ( ) {
return downloads ;
}
public IntegerProperty starsProperty ( ) {
return stars ;
}
2017-06-18 00:33:07 +02:00
public IntegerProperty hasimageProperty ( ) {
return hasimage ;
}
2017-06-04 20:15:04 +02:00
public IntegerProperty ispackageProperty ( ) {
return ispackage ;
}
public IntegerProperty updatereqProperty ( ) {
return updatereq ;
}
public StringProperty titleProperty ( ) {
return title ;
}
public int getId ( ) {
return idProperty ( ) . get ( ) ;
}
public int getOwner ( ) {
return ownerProperty ( ) . get ( ) ;
}
public int getCoursetype ( ) {
return coursetypeProperty ( ) . get ( ) ;
}
2017-08-25 14:57:15 +02:00
public int getGamestyle ( ) {
return gamestyleProperty ( ) . get ( ) ;
2017-06-04 20:15:04 +02:00
}
public int getDifficulty ( ) {
return difficultyProperty ( ) . get ( ) ;
}
public int getLastmodified ( ) {
return lastmodifiedProperty ( ) . get ( ) ;
}
public int getUploaded ( ) {
return uploadedProperty ( ) . get ( ) ;
}
public int getDownloads ( ) {
return downloadsProperty ( ) . get ( ) ;
}
public int getStars ( ) {
return starsProperty ( ) . get ( ) ;
}
2017-06-18 00:33:07 +02:00
public int getHasimage ( ) {
return hasimageProperty ( ) . get ( ) ;
}
2017-06-04 20:15:04 +02:00
public int getIspackage ( ) {
return ispackageProperty ( ) . get ( ) ;
}
public int getUpdatereq ( ) {
return updatereqProperty ( ) . get ( ) ;
}
2017-06-05 17:16:39 +02:00
public String getNintendoid ( ) {
return nintendoidProperty ( ) . get ( ) ;
}
2017-06-04 20:15:04 +02:00
public String getTitle ( ) {
return titleProperty ( ) . get ( ) ;
}
public final void setId ( int id ) {
idProperty ( ) . set ( id ) ;
}
public final void setOwner ( int owner ) {
ownerProperty ( ) . set ( owner ) ;
}
public final void setCoursetype ( int coursetype ) {
coursetypeProperty ( ) . set ( coursetype ) ;
}
2017-08-25 14:57:15 +02:00
public final void setGamestyle ( int leveltype ) {
gamestyleProperty ( ) . set ( leveltype ) ;
2017-06-04 20:15:04 +02:00
}
public final void setDifficulty ( int difficulty ) {
difficultyProperty ( ) . set ( difficulty ) ;
}
public final void setLastmodified ( int lastmodified ) {
lastmodifiedProperty ( ) . set ( lastmodified ) ;
}
public final void setUploaded ( int uploaded ) {
uploadedProperty ( ) . set ( uploaded ) ;
}
public final void setDownloads ( int downloads ) {
downloadsProperty ( ) . set ( downloads ) ;
}
public final void setStars ( int stars ) {
starsProperty ( ) . set ( stars ) ;
}
2017-06-18 00:33:07 +02:00
public final void setHasimage ( int hasimage ) {
hasimageProperty ( ) . set ( hasimage ) ;
}
2017-06-04 20:15:04 +02:00
public final void setIspackage ( int ispackage ) {
ispackageProperty ( ) . set ( ispackage ) ;
}
public final void setUpdatereq ( int updatereq ) {
updatereqProperty ( ) . set ( updatereq ) ;
}
2017-06-05 17:16:39 +02:00
public final void setNintendoid ( String nintendoid ) {
nintendoidProperty ( ) . set ( nintendoid ) ;
}
2017-06-04 20:15:04 +02:00
public final void setTitle ( String title ) {
titleProperty ( ) . set ( title ) ;
}
2017-06-18 00:33:07 +02:00
2017-06-04 20:15:04 +02:00
}