parent
45dbea5ad4
commit
95c2780c3a
@ -0,0 +1,7 @@
|
||||
package com.example.what_the_fantasy.data
|
||||
|
||||
data class Character (
|
||||
val id: Int,
|
||||
val name: String,
|
||||
val idImg: Int
|
||||
)
|
@ -0,0 +1,63 @@
|
||||
package com.example.what_the_fantasy.data
|
||||
|
||||
object CharacterStub {
|
||||
private val aragorn = Character(
|
||||
1,
|
||||
"Aragorn",
|
||||
1
|
||||
)
|
||||
|
||||
private val gandalf = Character(
|
||||
2,
|
||||
"Gandalf",
|
||||
2
|
||||
)
|
||||
|
||||
private val legolas = Character(
|
||||
3,
|
||||
"Legolas",
|
||||
3
|
||||
)
|
||||
|
||||
private val geralt = Character(
|
||||
4,
|
||||
"Geralt de Riv",
|
||||
4
|
||||
)
|
||||
|
||||
private val yennefer = Character(
|
||||
5,
|
||||
"Yennefer de Vengerberg",
|
||||
5
|
||||
)
|
||||
|
||||
private val ciri = Character(
|
||||
6,
|
||||
"Cirilla Fiona Elen Riannon",
|
||||
6
|
||||
)
|
||||
|
||||
private val jonSnow = Character(
|
||||
7,
|
||||
"Jon Snow",
|
||||
7
|
||||
)
|
||||
|
||||
private val daenerys = Character(
|
||||
8,
|
||||
"Daenerys Targaryen",
|
||||
8
|
||||
)
|
||||
|
||||
private val tywin = Character(
|
||||
9,
|
||||
"Tywin Lannister",
|
||||
9
|
||||
)
|
||||
|
||||
private val elric = Character(
|
||||
10,
|
||||
"Elric de Melniboné",
|
||||
10
|
||||
)
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
package com.example.what_the_fantasy.data
|
||||
|
||||
data class Image(
|
||||
val id: Int,
|
||||
val url: String
|
||||
)
|
@ -0,0 +1,53 @@
|
||||
package com.example.what_the_fantasy.data
|
||||
|
||||
object ImageStub {
|
||||
private val imageAragorn = Image(
|
||||
1,
|
||||
"https://static.posters.cz/image/750/art-photo/aragorn-i142865.jpg"
|
||||
)
|
||||
|
||||
private val imageGandalf = Image(
|
||||
2,
|
||||
"https://static.wikia.nocookie.net/seigneur-des-anneaux/images/a/ad/Gandalf_Db.jpg/revision/latest/thumbnail/width/360/height/360?cb=20210919182300&path-prefix=fr"
|
||||
)
|
||||
|
||||
private val imageLegolas = Image(
|
||||
3,
|
||||
"https://storage.canalblog.com/81/50/1203904/92832500_o.jpeg"
|
||||
)
|
||||
|
||||
private val imageGeralt = Image(
|
||||
4,
|
||||
"https://www.journaldugeek.com/app/uploads/2024/05/the-witcher-3-mod.jpg"
|
||||
)
|
||||
|
||||
private val imageYennefer = Image(
|
||||
5,
|
||||
"https://www.parismatch.com/lmnr/var/pm/public/media/image/2022/03/02/01/The-Witcher-qui-est-l-actrice-Anya-Chalotra.jpg?VersionId=kkBQlX3KHlm1X7sTcGJGwJa3UREFwYFd"
|
||||
)
|
||||
|
||||
private val imageCiri = Image(
|
||||
6,
|
||||
"https://www.gamelove.com/sites/www.gamelove.com/files/Guide/the_witcher_3/ciri/guide-the-witcher-3-personnages-ciri-001.jpg²"
|
||||
)
|
||||
|
||||
private val imageJonSnow = Image(
|
||||
7,
|
||||
"https://i0.wp.com/imagesociale.fr/wp-content/uploads/got_jonsnow.jpg?ssl=1"
|
||||
)
|
||||
|
||||
private val imageDaenerys = Image(
|
||||
8,
|
||||
"https://www.leparisien.fr/resizer/VgcUVs3QvEeH9RP-T5l0XF2tYQQ=/932x582/cloudfront-eu-central-1.images.arcpublishing.com/leparisien/FXGTC7Z3TDOHOGXQI54NDKHQHI.jpg"
|
||||
)
|
||||
|
||||
private val imageTywin = Image(
|
||||
9,
|
||||
"https://media.vanityfair.fr/photos/60df271ce629ebff31500ece/1:1/w_652,h_652,c_limit/vf_tywin_lannister_4413.jpeg"
|
||||
)
|
||||
|
||||
private val imageElric = Image(
|
||||
10,
|
||||
"https://cdna.artstation.com/p/assets/images/images/036/577/590/large/maena-paillet-elric11-web.jpg?1618043196"
|
||||
)
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package com.example.what_the_fantasy.data
|
||||
|
||||
data class Quote (
|
||||
val id: Int,
|
||||
val content: String,
|
||||
val likes: Int,
|
||||
val langue: String,
|
||||
val isValide: Boolean,
|
||||
val reason: String?,
|
||||
val idChar: Int,
|
||||
val idSrc: Int,
|
||||
val idUserVerif: Int
|
||||
)
|
@ -0,0 +1,7 @@
|
||||
package com.example.what_the_fantasy.data
|
||||
|
||||
data class Source (
|
||||
val id: Int,
|
||||
val title: String,
|
||||
val dateS: Int
|
||||
)
|
@ -0,0 +1,28 @@
|
||||
package com.example.what_the_fantasy.data
|
||||
|
||||
object SourceStub {
|
||||
private val sourceLOTR = Source(
|
||||
1,
|
||||
"Le Seigneur des Anneaux",
|
||||
1954
|
||||
)
|
||||
|
||||
private val sourceWitcher = Source(
|
||||
2,
|
||||
"The Witcher",
|
||||
1990
|
||||
)
|
||||
|
||||
private val sourceGOT = Source(
|
||||
3,
|
||||
"Game of Thrones",
|
||||
1996
|
||||
)
|
||||
|
||||
private val sourceElric = Source(
|
||||
4,
|
||||
"Elric de Melniboné",
|
||||
1972
|
||||
)
|
||||
|
||||
}
|
Loading…
Reference in new issue