-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
139 additions
and
1 deletion.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
model/src/main/java/de/g00fy2/model/entities/db/ChampionDbEntity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package de.g00fy2.model.entities.db; | ||
|
||
import com.raizlabs.android.dbflow.annotation.PrimaryKey; | ||
import com.raizlabs.android.dbflow.annotation.Table; | ||
import de.g00fy2.model.db.AppDatabase; | ||
|
||
/** | ||
* Created by Thomas Wirth on 09.12.2017. | ||
*/ | ||
|
||
@Table(database = AppDatabase.class, allFields = true) public class ChampionDbEntity { | ||
|
||
public String name; | ||
public String title; | ||
public String key; | ||
@PrimaryKey public int id; | ||
|
||
@Override public String toString() { | ||
return "ChampionDbEntity{" | ||
+ "name='" | ||
+ name | ||
+ '\'' | ||
+ ", title='" | ||
+ title | ||
+ '\'' | ||
+ ", key='" | ||
+ key | ||
+ '\'' | ||
+ ", id=" | ||
+ id | ||
+ '}'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
model/src/main/java/de/g00fy2/model/entities/db/SummonerSpellDbEntity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package de.g00fy2.model.entities.db; | ||
|
||
import com.raizlabs.android.dbflow.annotation.PrimaryKey; | ||
import com.raizlabs.android.dbflow.annotation.Table; | ||
import de.g00fy2.model.db.AppDatabase; | ||
|
||
/** | ||
* Created by Thomas Wirth on 09.12.2017. | ||
*/ | ||
|
||
@Table(database = AppDatabase.class, allFields = true) public class SummonerSpellDbEntity { | ||
|
||
@PrimaryKey public int id; | ||
public int summonerLevel; | ||
public String name; | ||
public String key; | ||
public String description; | ||
|
||
@Override public String toString() { | ||
return "SummonerSpellDbEntity{" | ||
+ "id=" | ||
+ id | ||
+ ", summonerLevel=" | ||
+ summonerLevel | ||
+ ", name='" | ||
+ name | ||
+ '\'' | ||
+ ", key='" | ||
+ key | ||
+ '\'' | ||
+ ", description='" | ||
+ description | ||
+ '\'' | ||
+ '}'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters