Added default constructors to database models
Empty constructors are needed as we apply the single parameters using setters. Also it seems to be a sqlite standard.
This commit is contained in:
@@ -36,6 +36,11 @@ public class Accessory {
|
|||||||
*/
|
*/
|
||||||
private int mAvailable;
|
private int mAvailable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Empty default constructor.
|
||||||
|
*/
|
||||||
|
public Accessory() {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The constructor of this accessory object.
|
* The constructor of this accessory object.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -41,6 +41,11 @@ public class Character {
|
|||||||
*/
|
*/
|
||||||
private int mAvailable;
|
private int mAvailable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Empty default constructor.
|
||||||
|
*/
|
||||||
|
public Character() {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The constructor of this character object.
|
* The constructor of this character object.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -31,6 +31,11 @@ public class Game {
|
|||||||
*/
|
*/
|
||||||
private String mCoverUri;
|
private String mCoverUri;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Empty default constructor.
|
||||||
|
*/
|
||||||
|
public Game() {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The constructor of this game object.
|
* The constructor of this game object.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -62,6 +62,11 @@ public class Kart {
|
|||||||
*/
|
*/
|
||||||
private int mAvailable;
|
private int mAvailable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Empty default constructor.
|
||||||
|
*/
|
||||||
|
public Kart() {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The constructor of this kart object.
|
* The constructor of this kart object.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -61,6 +61,11 @@ public class Ruleset {
|
|||||||
*/
|
*/
|
||||||
private int mBikesAvailable;
|
private int mBikesAvailable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Empty default constructor.
|
||||||
|
*/
|
||||||
|
public Ruleset() {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The constructor of this ruleset object.
|
* The constructor of this ruleset object.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -46,6 +46,11 @@ public class Track {
|
|||||||
*/
|
*/
|
||||||
private int mAvailable;
|
private int mAvailable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Empty default constructor.
|
||||||
|
*/
|
||||||
|
public Track() {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The constructor of this track object.
|
* The constructor of this track object.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -36,6 +36,11 @@ public class Wheels {
|
|||||||
*/
|
*/
|
||||||
private int mAvailable;
|
private int mAvailable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Empty default constructor.
|
||||||
|
*/
|
||||||
|
public Wheels() {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The constructor of this wheels object.
|
* The constructor of this wheels object.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user