diff --git a/What_The_Fantasy/app/src/main/java/com/example/what_the_fantasy/MainActivity.kt b/What_The_Fantasy/app/src/main/java/com/example/what_the_fantasy/MainActivity.kt index 8414a52..e59a4dd 100644 --- a/What_The_Fantasy/app/src/main/java/com/example/what_the_fantasy/MainActivity.kt +++ b/What_The_Fantasy/app/src/main/java/com/example/what_the_fantasy/MainActivity.kt @@ -38,7 +38,6 @@ fun Title(title: String, modifier: Modifier = Modifier) { ) } -@Preview(showBackground = true) @Composable fun GreetingPreview() { What_The_FantasyTheme { diff --git a/What_The_Fantasy/app/src/main/java/com/example/what_the_fantasy/data/Character.kt b/What_The_Fantasy/app/src/main/java/com/example/what_the_fantasy/data/Character.kt new file mode 100644 index 0000000..324f060 --- /dev/null +++ b/What_The_Fantasy/app/src/main/java/com/example/what_the_fantasy/data/Character.kt @@ -0,0 +1,7 @@ +package com.example.what_the_fantasy.data + +data class Character ( + val id: Int, + val name: String, + val idImg: Int +) \ No newline at end of file diff --git a/What_The_Fantasy/app/src/main/java/com/example/what_the_fantasy/data/CharacterStub.kt b/What_The_Fantasy/app/src/main/java/com/example/what_the_fantasy/data/CharacterStub.kt new file mode 100644 index 0000000..2626e54 --- /dev/null +++ b/What_The_Fantasy/app/src/main/java/com/example/what_the_fantasy/data/CharacterStub.kt @@ -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 + ) +} \ No newline at end of file diff --git a/What_The_Fantasy/app/src/main/java/com/example/what_the_fantasy/data/Image.kt b/What_The_Fantasy/app/src/main/java/com/example/what_the_fantasy/data/Image.kt new file mode 100644 index 0000000..d927a48 --- /dev/null +++ b/What_The_Fantasy/app/src/main/java/com/example/what_the_fantasy/data/Image.kt @@ -0,0 +1,6 @@ +package com.example.what_the_fantasy.data + +data class Image( + val id: Int, + val url: String +) diff --git a/What_The_Fantasy/app/src/main/java/com/example/what_the_fantasy/data/ImageStub.kt b/What_The_Fantasy/app/src/main/java/com/example/what_the_fantasy/data/ImageStub.kt new file mode 100644 index 0000000..db3bbfe --- /dev/null +++ b/What_The_Fantasy/app/src/main/java/com/example/what_the_fantasy/data/ImageStub.kt @@ -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" + ) +} \ No newline at end of file diff --git a/What_The_Fantasy/app/src/main/java/com/example/what_the_fantasy/data/Quote.kt b/What_The_Fantasy/app/src/main/java/com/example/what_the_fantasy/data/Quote.kt new file mode 100644 index 0000000..b0c8069 --- /dev/null +++ b/What_The_Fantasy/app/src/main/java/com/example/what_the_fantasy/data/Quote.kt @@ -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 +) \ No newline at end of file diff --git a/What_The_Fantasy/app/src/main/java/com/example/what_the_fantasy/data/QuoteStub.kt b/What_The_Fantasy/app/src/main/java/com/example/what_the_fantasy/data/QuoteStub.kt new file mode 100644 index 0000000..4fab1ac --- /dev/null +++ b/What_The_Fantasy/app/src/main/java/com/example/what_the_fantasy/data/QuoteStub.kt @@ -0,0 +1,244 @@ +package com.example.what_the_fantasy.data + +object QuoteStub { + private val quoteAragorn1 = Quote( + 1, + "Un jour viendra où le courage des hommes faillira… mais ce jour n’est pas arrivé !", + 1000, + "fr", + true, + null, + 1, + 1, + 1 + ) + + private val quoteAragorn2 = Quote( + 2, + "Je ne suis pas un homme qui prend aisément la fuite.", + 900, + "fr", + true, + null, + 1, + 1, + 1 + ) + + private val quoteGandalf1 = Quote( + 3, + "Un magicien n'est jamais en retard, ni en avance d'ailleurs. Il arrive précisément à l'heure prévue.", + 1500, + "fr", + true, + null, + 2, + 1, + 1 + ) + + private val quoteGandalf2 = Quote( + 4, + "Fuyez, pauvres fous !", + 2000, + "fr", + true, + null, + 2, + 1, + 1 + ) + + private val quoteLegolas1 = Quote( + 5, + "Ils emmènent les Hobbits à Isengard !", + 1200, + "fr", + true, + null, + 3, + 1, + 1 + ) + + private val quoteLegolas2 = Quote( + 6, + "Un soleil rouge se lève… Beaucoup de sang a dû couler cette nuit.", + 1100, + "fr", + true, + null, + 3, + 1, + 1 + ) + + private val quoteGeralt1 = Quote( + 7, + "Les mauvaises choses arrivent à ceux qui les méritent.", + 1300, + "fr", + true, + null, + 4, + 2, + 1 + ) + + private val quoteGeralt2 = Quote( + 8, + "Si je devais choisir entre un mal et un autre, alors je préfère ne pas choisir du tout.", + 1700, + "fr", + true, + null, + 4, + 2, + 1 + ) + + private val quoteYennefer1 = Quote( + 9, + "La magie, c’est le chaos, l’art et la science combinés.", + 1400, + "fr", + true, + null, + 5, + 2, + 1 + ) + + private val quoteYennefer2 = Quote( + 10, + "Je suis Yennefer de Vengerberg. Je ne supplie jamais.", + 1600, + "fr", + true, + null, + 5, + 2, + 1 + ) + + private val quoteCiri1 = Quote( + 11, + "Je suis une enfant de la destinée.", + 1250, + "fr", + true, + null, + 6, + 2, + 1 + ) + + private val quoteCiri2 = Quote( + 12, + "L’avenir n’est jamais écrit.", + 1350, + "fr", + true, + null, + 6, + 2, + 1 + ) + + private val quoteJonSnow1 = Quote( + 13, + "L’hiver vient.", + 1800, + "fr", + true, + null, + 7, + 3, + 1 + ) + + private val quoteJonSnow2 = Quote( + 14, + "L’amour est la mort du devoir.", + 1900, + "fr", + true, + null, + 7, + 3, + 1 + ) + + private val quoteDaenerys1 = Quote( + 15, + "Je ne suis pas une femme ordinaire. Mes rêves se réalisent.", + 1700, + "fr", + true, + null, + 8, + 3, + 1 + ) + + private val quoteDaenerys2 = Quote( + 16, + "Dracarys !", + 2500, + "fr", + true, + null, + 8, + 3, + 1 + ) + + private val quoteTywin1 = Quote( + 17, + "Un lion ne se soucie pas de l’opinion des moutons.", + 1600, + "fr", + true, + null, + 9, + 3, + 1 + ) + + private val quoteTywin2 = Quote( + 18, + "N’importe quel imbécile peut gagner une bataille, mais il faut un roi pour gagner une guerre.", + 1700, + "fr", + true, + null, + 9, + 3, + 1 + ) + + private val quoteElric1 = Quote( + 19, + "Le destin est une chose étrange, il nous fait souvent croiser des chemins inattendus.", + 1400, + "fr", + true, + null, + 10, + 4, + 1 + ) + + private val quoteElric2 = Quote( + 20, + "Stormbringer ! Lame maudite, mon seul véritable compagnon.", + 1500, + "fr", + true, + null, + 10, + 4, + 1 + ) + +} \ No newline at end of file diff --git a/What_The_Fantasy/app/src/main/java/com/example/what_the_fantasy/data/Source.kt b/What_The_Fantasy/app/src/main/java/com/example/what_the_fantasy/data/Source.kt new file mode 100644 index 0000000..db51b32 --- /dev/null +++ b/What_The_Fantasy/app/src/main/java/com/example/what_the_fantasy/data/Source.kt @@ -0,0 +1,7 @@ +package com.example.what_the_fantasy.data + +data class Source ( + val id: Int, + val title: String, + val dateS: Int +) \ No newline at end of file diff --git a/What_The_Fantasy/app/src/main/java/com/example/what_the_fantasy/data/SourceStub.kt b/What_The_Fantasy/app/src/main/java/com/example/what_the_fantasy/data/SourceStub.kt new file mode 100644 index 0000000..eec82b6 --- /dev/null +++ b/What_The_Fantasy/app/src/main/java/com/example/what_the_fantasy/data/SourceStub.kt @@ -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 + ) + +} \ No newline at end of file