2017-06-16 23:35:56 +02:00
/ * *
2017-10-15 13:37:45 +02:00
* cemu_UI
*
2018-04-28 12:17:12 +02:00
* Copyright 2017 - 2018 < @Seil0 >
2017-10-15 13:37:45 +02:00
*
* This program is free software ; you can redistribute it and / or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation ; either version 3 of the License , or
* ( at your option ) any later version .
*
* This program is distributed in the hope that it will be useful ,
* but WITHOUT ANY WARRANTY ; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
* GNU General Public License for more details .
*
* You should have received a copy of the GNU General Public License
* along with this program ; if not , write to the Free Software
* Foundation , Inc . , 51 Franklin Street , Fifth Floor , Boston ,
* MA 02110 - 1301 , USA .
2017-06-16 23:35:56 +02:00
* /
2017-11-13 16:44:39 +01:00
package com.cemu_UI.datatypes ;
2017-06-04 20:15:04 +02:00
import javafx.beans.property.IntegerProperty ;
import javafx.beans.property.SimpleIntegerProperty ;
import javafx.beans.property.SimpleStringProperty ;
import javafx.beans.property.StringProperty ;
public class SmmdbApiDataType {
2017-08-26 00:13:09 +02:00
private final IntegerProperty courseTheme = new SimpleIntegerProperty ( ) ;
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 ( ) ;
2017-08-26 00:13:09 +02:00
private final IntegerProperty autoScroll = new SimpleIntegerProperty ( ) ;
2017-06-04 20:15:04 +02:00
private final IntegerProperty stars = new SimpleIntegerProperty ( ) ;
2017-08-26 00:13:09 +02:00
private final IntegerProperty time = new SimpleIntegerProperty ( ) ;
private final StringProperty owner = new SimpleStringProperty ( ) ;
private final StringProperty id = new SimpleStringProperty ( ) ;
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-10-15 13:37:45 +02:00
/ * *
* Data type used for the smmdbapi query
* /
2017-08-26 00:13:09 +02:00
public SmmdbApiDataType ( final int courseTheme , final int gameStyle , final int difficulty , final int lastmodified ,
final int uploaded , final int autoScroll , final int stars , final int time ,
final String owner , final String id , final String nintendoid , final String title ) {
2017-06-04 20:15:04 +02:00
this . id . set ( id ) ;
this . owner . set ( owner ) ;
2017-08-26 00:13:09 +02:00
this . courseTheme . set ( courseTheme ) ;
this . gameStyle . set ( gameStyle ) ;
2017-06-04 20:15:04 +02:00
this . difficulty . set ( difficulty ) ;
this . lastmodified . set ( lastmodified ) ;
this . uploaded . set ( uploaded ) ;
2017-08-26 00:13:09 +02:00
this . autoScroll . set ( autoScroll ) ;
2017-06-04 20:15:04 +02:00
this . stars . set ( stars ) ;
2017-08-26 00:13:09 +02:00
this . time . set ( time ) ;
2017-06-05 17:16:39 +02:00
this . nintendoid . set ( nintendoid ) ;
this . title . set ( title ) ;
2017-06-04 20:15:04 +02:00
}
2017-08-26 00:13:09 +02:00
public IntegerProperty courseThemeProperty ( ) {
return courseTheme ;
2017-06-04 20:15:04 +02:00
}
2017-08-26 00:13:09 +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 ;
}
2017-08-26 00:13:09 +02:00
public IntegerProperty autoScrollProperty ( ) {
return autoScroll ;
2017-06-04 20:15:04 +02:00
}
public IntegerProperty starsProperty ( ) {
return stars ;
}
2017-08-26 00:13:09 +02:00
public IntegerProperty timeProperty ( ) {
return time ;
2017-06-18 00:33:07 +02:00
}
2017-08-26 00:13:09 +02:00
public StringProperty ownerProperty ( ) {
return owner ;
2017-06-04 20:15:04 +02:00
}
2017-08-26 00:13:09 +02:00
public StringProperty idProperty ( ) {
return id ;
}
public StringProperty nintendoidProperty ( ) {
return nintendoid ;
2017-06-04 20:15:04 +02:00
}
public StringProperty titleProperty ( ) {
return title ;
}
2017-08-26 00:13:09 +02:00
public int getCourseTheme ( ) {
return courseThemeProperty ( ) . get ( ) ;
2017-06-04 20:15:04 +02:00
}
2017-08-26 00:13:09 +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 ( ) ;
}
2017-08-26 00:13:09 +02:00
public int getAutoScroll ( ) {
return autoScrollProperty ( ) . get ( ) ;
2017-06-04 20:15:04 +02:00
}
public int getStars ( ) {
return starsProperty ( ) . get ( ) ;
}
2017-08-26 00:13:09 +02:00
public int getTime ( ) {
return timeProperty ( ) . get ( ) ;
2017-06-18 00:33:07 +02:00
}
2017-08-26 00:13:09 +02:00
public String getOwner ( ) {
return ownerProperty ( ) . get ( ) ;
2017-06-04 20:15:04 +02:00
}
2017-08-26 00:13:09 +02:00
public String getId ( ) {
return idProperty ( ) . get ( ) ;
2017-06-04 20:15:04 +02:00
}
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 ( ) ;
}
2017-08-26 00:13:09 +02:00
public final void setCourseTheme ( int courseTheme ) {
courseThemeProperty ( ) . set ( courseTheme ) ;
2017-06-04 20:15:04 +02:00
}
2017-08-26 00:13:09 +02:00
public final void setGameStyle ( int gameStyle ) {
gameStyleProperty ( ) . set ( gameStyle ) ;
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 ) ;
}
2017-08-26 00:13:09 +02:00
public final void setAutoScroll ( int autoScroll ) {
autoScrollProperty ( ) . set ( autoScroll ) ;
2017-06-04 20:15:04 +02:00
}
public final void setStars ( int stars ) {
starsProperty ( ) . set ( stars ) ;
}
2017-08-26 00:13:09 +02:00
public final void setTime ( int time ) {
timeProperty ( ) . set ( time ) ;
2017-06-18 00:33:07 +02:00
}
2017-08-26 00:13:09 +02:00
public final void setOwner ( String owner ) {
ownerProperty ( ) . set ( owner ) ;
2017-06-04 20:15:04 +02:00
}
2017-08-26 00:13:09 +02:00
public final void setId ( String id ) {
idProperty ( ) . set ( id ) ;
2017-06-04 20:15:04 +02:00
}
2017-08-26 00:13:09 +02:00
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
}