parent
45dbea5ad4
commit
0a2691eccb
@ -0,0 +1,10 @@
|
||||
package com.example.what_the_fantasy.model
|
||||
|
||||
class Character(
|
||||
val id:Int,
|
||||
val character:String,
|
||||
val imgPath: String
|
||||
)
|
||||
{
|
||||
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package com.example.what_the_fantasy.model
|
||||
|
||||
class Question(
|
||||
val id:Int,
|
||||
val question:String,
|
||||
val ansA:String,
|
||||
val ansB:String,
|
||||
val ansC:String,
|
||||
val ansD:String,
|
||||
val correctAns: String,
|
||||
)
|
||||
{
|
||||
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package com.example.what_the_fantasy.model
|
||||
|
||||
class Quote(
|
||||
val id:Int,
|
||||
val content:String,
|
||||
val character:String,
|
||||
val imagePath:String,
|
||||
val titleSrc:String,
|
||||
var likes:Int,
|
||||
val lang:String,
|
||||
val type:SrcType)
|
||||
{
|
||||
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
package com.example.what_the_fantasy.model
|
||||
|
||||
class Source(
|
||||
val id:Int,
|
||||
val title:String,
|
||||
val date:String,
|
||||
val type:SrcType
|
||||
)
|
||||
{
|
||||
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
package com.example.what_the_fantasy.model
|
||||
|
||||
enum class SrcType (val value: String) {
|
||||
Movie("@string/movie"),
|
||||
VideoGame("@string/videoGame"),
|
||||
Series("@string/series"),
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
package com.example.what_the_fantasy.model
|
||||
|
||||
class User(
|
||||
val id:Int,
|
||||
var username:String,
|
||||
var email:String,
|
||||
var date:String,
|
||||
val imagePath:String,
|
||||
)
|
||||
{
|
||||
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="app_name">What The Fantasy</string>
|
||||
<string name="movie">Film</string>
|
||||
<string name="videoGame">Jeu Vidéo</string>
|
||||
<string name="series">Série</string>
|
||||
</resources>
|
@ -1,3 +1,6 @@
|
||||
<resources>
|
||||
<string name="app_name">What_The_Fantasy</string>
|
||||
<string name="app_name">What The Fantasy</string>
|
||||
<string name="movie">Movie</string>
|
||||
<string name="videoGame">Video Game</string>
|
||||
<string name="series">Series</string>
|
||||
</resources>
|
Loading…
Reference in new issue