fin modèle

pull/5/head
kevin.modejar 2 months ago
parent 6a81c8c89e
commit 8eec64748c

@ -3,63 +3,109 @@ package com.example.what_the_fantasy.data.local
import com.example.what_the_fantasy.data.model.Character import com.example.what_the_fantasy.data.model.Character
object CharacterStub { object CharacterStub {
private val aragorn = Character( val aragorn = Character(
1, id = 1,
"Aragorn", name = "Aragorn",
1 imgUrl = "https://img.freepik.com/vecteurs-libre/personnage-guerrier-fantaisie_1045-185.jpg?size=338&ext=jpg"
) )
val legolas = Character(
private val gandalf = Character( id = 2,
2, name = "Legolas",
"Gandalf", imgUrl = "https://img.freepik.com/vecteurs-libre/personnage-elfe-fantaisie_1045-186.jpg?size=338&ext=jpg"
2
) )
val gandalf = Character(
private val legolas = Character( id = 3,
3, name = "Gandalf",
"Legolas", imgUrl = "https://img.freepik.com/vecteurs-libre/personnage-magicien-fantaisie_1045-187.jpg?size=338&ext=jpg"
3
) )
val frodoBaggins = Character(
private val geralt = Character( id = 4,
4, name = "Frodo Baggins",
"Geralt de Riv", imgUrl = "https://img.freepik.com/vecteurs-libre/personnage-hobbit-fantaisie_1045-188.jpg?size=338&ext=jpg"
4
) )
val gimli = Character(
private val yennefer = Character( id = 5,
5, name = "Gimli",
"Yennefer de Vengerberg", imgUrl = "https://img.freepik.com/vecteurs-libre/personnage-nain-fantaisie_1045-189.jpg?size=338&ext=jpg"
5
) )
val galadriel = Character(
private val ciri = Character( id = 6,
6, name = "Galadriel",
"Cirilla Fiona Elen Riannon", imgUrl = "https://img.freepik.com/vecteurs-libre/personnage-elfe-femme-fantaisie_1045-190.jpg?size=338&ext=jpg"
6
) )
val boromir = Character(
private val jonSnow = Character( id = 7,
7, name = "Boromir",
"Jon Snow", imgUrl = "https://img.freepik.com/vecteurs-libre/personnage-guerrier-homme-fantaisie_1045-191.jpg?size=338&ext=jpg"
7
) )
val eowyn = Character(
private val daenerys = Character( id = 8,
8, name = "Éowyn",
"Daenerys Targaryen", imgUrl = "https://img.freepik.com/vecteurs-libre/personnage-guerriere-femme-fantaisie_1045-192.jpg?size=338&ext=jpg"
8
) )
val saruman = Character(
private val tywin = Character( id = 9,
9, name = "Saruman",
"Tywin Lannister", imgUrl = "https://img.freepik.com/vecteurs-libre/personnage-magicien-malefique-fantaisie_1045-193.jpg?size=338&ext=jpg"
9 )
val faramir = Character(
id = 10,
name = "Faramir",
imgUrl = "https://img.freepik.com/vecteurs-libre/personnage-guerrier-homme-fantaisie_1045-194.jpg?size=338&ext=jpg"
)
val theoden = Character(
id = 11,
name = "Théoden",
imgUrl = "https://img.freepik.com/vecteurs-libre/personnage-roi-fantaisie_1045-195.jpg?size=338&ext=jpg"
)
val merry = Character(
id = 12,
name = "Merry",
imgUrl = "https://img.freepik.com/vecteurs-libre/personnage-hobbit-fantaisie_1045-196.jpg?size=338&ext=jpg"
)
val pippin = Character(
id = 13,
name = "Pippin",
imgUrl = "https://img.freepik.com/vecteurs-libre/personnage-hobbit-fantaisie_1045-197.jpg?size=338&ext=jpg"
)
val samwiseGamgee = Character(
id = 14,
name = "Samwise Gamgee",
imgUrl = "https://img.freepik.com/vecteurs-libre/personnage-hobbit-fantaisie_1045-198.jpg?size=338&ext=jpg"
)
val elrond = Character(
id = 15,
name = "Elrond",
imgUrl = "https://img.freepik.com/vecteurs-libre/personnage-elfe-homme-fantaisie_1045-199.jpg?size=338&ext=jpg"
)
val arwen = Character(
id = 16,
name = "Arwen",
imgUrl = "https://img.freepik.com/vecteurs-libre/personnage-elfe-femme-fantaisie_1045-200.jpg?size=338&ext=jpg"
)
val treebeard = Character(
id = 17,
name = "Treebeard",
imgUrl = "https://img.freepik.com/vecteurs-libre/personnage-ent-fantaisie_1045-201.jpg?size=338&ext=jpg"
)
val gollum = Character(
id = 18,
name = "Gollum",
imgUrl = "https://img.freepik.com/vecteurs-libre/personnage-creature-fantaisie_1045-202.jpg?size=338&ext=jpg"
)
val nazgul = Character(
id = 19,
name = "Nazgûl",
imgUrl = "https://img.freepik.com/vecteurs-libre/personnage-spectre-fantaisie_1045-203.jpg?size=338&ext=jpg"
)
val shelob = Character(
id = 20,
name = "Shelob",
imgUrl = "https://img.freepik.com/vecteurs-libre/personnage-araignee-fantaisie_1045-204.jpg?size=338&ext=jpg"
) )
private val elric = Character( val allCharacters: List<Character> = listOf(
10, aragorn, legolas, gandalf, frodoBaggins, gimli, galadriel, boromir, eowyn, saruman, faramir,
"Elric de Melniboné", theoden, merry, pippin, samwiseGamgee, elrond, arwen, treebeard, gollum, nazgul, shelob
10
) )
} }

@ -3,53 +3,89 @@ package com.example.what_the_fantasy.data.local
import com.example.what_the_fantasy.data.model.Image import com.example.what_the_fantasy.data.model.Image
object ImageStub { object ImageStub {
private val imageAragorn = Image( val aragornImage = Image(
1, id = 1,
"https://static.posters.cz/image/750/art-photo/aragorn-i142865.jpg" url = "https://img.freepik.com/vecteurs-libre/personnage-guerrier-fantaisie_1045-185.jpg?size=338&ext=jpg"
) )
val legolasImage = Image(
private val imageGandalf = Image( id = 2,
2, url = "https://img.freepik.com/vecteurs-libre/personnage-elfe-fantaisie_1045-186.jpg?size=338&ext=jpg"
"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"
) )
val gandalfImage = Image(
private val imageLegolas = Image( id = 3,
3, url = "https://img.freepik.com/vecteurs-libre/personnage-magicien-fantaisie_1045-187.jpg?size=338&ext=jpg"
"https://storage.canalblog.com/81/50/1203904/92832500_o.jpeg"
) )
val frodoBagginsImage = Image(
private val imageGeralt = Image( id = 4,
4, url = "https://img.freepik.com/vecteurs-libre/personnage-hobbit-fantaisie_1045-188.jpg?size=338&ext=jpg"
"https://www.journaldugeek.com/app/uploads/2024/05/the-witcher-3-mod.jpg"
) )
val gimliImage = Image(
private val imageYennefer = Image( id = 5,
5, url = "https://img.freepik.com/vecteurs-libre/personnage-nain-fantaisie_1045-189.jpg?size=338&ext=jpg"
"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"
) )
val galadrielImage = Image(
private val imageCiri = Image( id = 6,
6, url = "https://img.freepik.com/vecteurs-libre/personnage-elfe-femme-fantaisie_1045-190.jpg?size=338&ext=jpg"
"https://www.gamelove.com/sites/www.gamelove.com/files/Guide/the_witcher_3/ciri/guide-the-witcher-3-personnages-ciri-001.jpg²"
) )
val boromirImage = Image(
private val imageJonSnow = Image( id = 7,
7, url = "https://img.freepik.com/vecteurs-libre/personnage-guerrier-homme-fantaisie_1045-191.jpg?size=338&ext=jpg"
"https://i0.wp.com/imagesociale.fr/wp-content/uploads/got_jonsnow.jpg?ssl=1"
) )
val eowynImage = Image(
private val imageDaenerys = Image( id = 8,
8, url = "https://img.freepik.com/vecteurs-libre/personnage-guerriere-femme-fantaisie_1045-192.jpg?size=338&ext=jpg"
"https://www.leparisien.fr/resizer/VgcUVs3QvEeH9RP-T5l0XF2tYQQ=/932x582/cloudfront-eu-central-1.images.arcpublishing.com/leparisien/FXGTC7Z3TDOHOGXQI54NDKHQHI.jpg"
) )
val sarumanImage = Image(
private val imageTywin = Image( id = 9,
9, url = "https://img.freepik.com/vecteurs-libre/personnage-magicien-malefique-fantaisie_1045-193.jpg?size=338&ext=jpg"
"https://media.vanityfair.fr/photos/60df271ce629ebff31500ece/1:1/w_652,h_652,c_limit/vf_tywin_lannister_4413.jpeg" )
val faramirImage = Image(
id = 10,
url = "https://img.freepik.com/vecteurs-libre/personnage-guerrier-homme-fantaisie_1045-194.jpg?size=338&ext=jpg"
)
val theodenImage = Image(
id = 11,
url = "https://img.freepik.com/vecteurs-libre/personnage-roi-fantaisie_1045-195.jpg?size=338&ext=jpg"
)
val merryImage = Image(
id = 12,
url = "https://img.freepik.com/vecteurs-libre/personnage-hobbit-fantaisie_1045-196.jpg?size=338&ext=jpg"
)
val pippinImage = Image(
id = 13,
url = "https://img.freepik.com/vecteurs-libre/personnage-hobbit-fantaisie_1045-197.jpg?size=338&ext=jpg"
)
val samwiseGamgeeImage = Image(
id = 14,
url = "https://img.freepik.com/vecteurs-libre/personnage-hobbit-fantaisie_1045-198.jpg?size=338&ext=jpg"
)
val elrondImage = Image(
id = 15,
url = "https://img.freepik.com/vecteurs-libre/personnage-elfe-homme-fantaisie_1045-199.jpg?size=338&ext=jpg"
)
val arwenImage = Image(
id = 16,
url = "https://img.freepik.com/vecteurs-libre/personnage-elfe-femme-fantaisie_1045-200.jpg?size=338&ext=jpg"
)
val treebeardImage = Image(
id = 17,
url = "https://img.freepik.com/vecteurs-libre/personnage-ent-fantaisie_1045-201.jpg?size=338&ext=jpg"
)
val gollumImage = Image(
id = 18,
url = "https://img.freepik.com/vecteurs-libre/personnage-creature-fantaisie_1045-202.jpg?size=338&ext=jpg"
)
val nazgulImage = Image(
id = 19,
url = "https://img.freepik.com/vecteurs-libre/personnage-spectre-fantaisie_1045-203.jpg?size=338&ext=jpg"
)
val shelobImage = Image(
id = 20,
url = "https://img.freepik.com/vecteurs-libre/personnage-araignee-fantaisie_1045-204.jpg?size=338&ext=jpg"
) )
private val imageElric = Image( val allImages: List<Image> = listOf(
10, aragornImage, legolasImage, gandalfImage, frodoBagginsImage, gimliImage, galadrielImage, boromirImage, eowynImage, sarumanImage, faramirImage,
"https://cdna.artstation.com/p/assets/images/images/036/577/590/large/maena-paillet-elric11-web.jpg?1618043196" theodenImage, merryImage, pippinImage, samwiseGamgeeImage, elrondImage, arwenImage, treebeardImage, gollumImage, nazgulImage, shelobImage
) )
} }

@ -0,0 +1,100 @@
package com.example.what_the_fantasy.data.local
import com.example.what_the_fantasy.data.model.Question
object QuestionStub {
val question1 = Question(
id = 1,
question = "Quel est le nom du roi des elfes dans 'Le Seigneur des Anneaux' ?",
ansA = "Elrond",
ansB = "Legolas",
ansC = "Thranduil",
ansD = "Galadriel",
correctAns = "C"
)
val question2 = Question(
id = 2,
question = "Qui est l'auteur de la série 'Harry Potter' ?",
ansA = "J.K. Rowling",
ansB = "J.R.R. Tolkien",
ansC = "C.S. Lewis",
ansD = "George R.R. Martin",
correctAns = "A"
)
val question3 = Question(
id = 3,
question = "Dans 'Star Wars', qui est le père de Luke Skywalker ?",
ansA = "Obi-Wan Kenobi",
ansB = "Darth Vader",
ansC = "Yoda",
ansD = "Han Solo",
correctAns = "B"
)
val question4 = Question(
id = 4,
question = "Quel est le nom de l'épée de Bilbo Baggins ?",
ansA = "Glamdring",
ansB = "Sting",
ansC = "Andúril",
ansD = "Orcrist",
correctAns = "B"
)
val question5 = Question(
id = 5,
question = "Dans 'Game of Thrones', quel est le nom de la capitale des Sept Couronnes ?",
ansA = "Winterfell",
ansB = "King's Landing",
ansC = "Dorne",
ansD = "Casterly Rock",
correctAns = "B"
)
val question6 = Question(
id = 6,
question = "Quel est le nom du dragon de Daenerys Targaryen dans 'Game of Thrones' ?",
ansA = "Drogon",
ansB = "Viserion",
ansC = "Rhaegal",
ansD = "Balerion",
correctAns = "A"
)
val question7 = Question(
id = 7,
question = "Qui est l'auteur de 'Le Hobbit' ?",
ansA = "J.R.R. Tolkien",
ansB = "C.S. Lewis",
ansC = "George R.R. Martin",
ansD = "J.K. Rowling",
correctAns = "A"
)
val question8 = Question(
id = 8,
question = "Dans 'Le Seigneur des Anneaux', qui est le porteur de l'Anneau Unique ?",
ansA = "Frodo Baggins",
ansB = "Samwise Gamgee",
ansC = "Aragorn",
ansD = "Gandalf",
correctAns = "A"
)
val question9 = Question(
id = 9,
question = "Quel est le nom du royaume gouverné par Théoden dans 'Le Seigneur des Anneaux' ?",
ansA = "Gondor",
ansB = "Rohan",
ansC = "Mordor",
ansD = "Lothlórien",
correctAns = "B"
)
val question10 = Question(
id = 10,
question = "Dans 'Harry Potter', quel est le nom de l'école de magie fréquentée par Harry ?",
ansA = "Poudlard",
ansB = "Beauxbâtons",
ansC = "Durmstrang",
ansD = "Ilvermorny",
correctAns = "A"
)
val allQuestions: List<Question> = listOf(
question1, question2, question3, question4, question5, question6, question7, question8, question9, question10
)
}

@ -2,245 +2,191 @@ package com.example.what_the_fantasy.data.local
import com.example.what_the_fantasy.data.model.Quote import com.example.what_the_fantasy.data.model.Quote
object QuoteStub {
private val quoteAragorn1 = Quote(
1,
"Un jour viendra où le courage des hommes faillira… mais ce jour nest 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, cest le chaos, lart 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( object QuoteStub {
11, val quote1 = Quote(
"Je suis une enfant de la destinée.", id = 1,
1250, content = "All we have to decide is what to do with the time that is given us.",
"fr", likes = 466,
true, language = "en",
null, character = CharacterStub.gandalf.name,
6, source = "The Lord of the Rings: The Fellowship of the Ring",
2, imgUrl = CharacterStub.gandalf.imgUrl
1 )
) val quote2 = Quote(
id = 2,
private val quoteCiri2 = Quote( content = "A wizard is never late, nor is he early, he arrives precisely when he means to.",
12, likes = 467,
"Lavenir nest jamais écrit.", language = "en",
1350, character = CharacterStub.gandalf.name,
"fr", source = "The Lord of the Rings: The Fellowship of the Ring",
true, imgUrl = CharacterStub.gandalf.imgUrl
null, )
6, val quote3 = Quote(
2, id = 3,
1 content = "Even the smallest person can change the course of the future.",
) likes = 466,
language = "en",
private val quoteJonSnow1 = Quote( character = CharacterStub.galadriel.name,
13, source = "The Lord of the Rings: The Fellowship of the Ring",
"Lhiver vient.", imgUrl = CharacterStub.galadriel.imgUrl
1800, )
"fr", val quote4 = Quote(
true, id = 4,
null, content = "I would rather share one lifetime with you than face all the ages of this world alone.",
7, likes = 120,
3, language = "en",
1 character = CharacterStub.arwen.name,
) source = "The Lord of the Rings: The Fellowship of the Ring",
imgUrl = CharacterStub.arwen.imgUrl
private val quoteJonSnow2 = Quote( )
14, val quote5 = Quote(
"Lamour est la mort du devoir.", id = 5,
1900, content = "Faithless is he that says farewell when the road darkens.",
"fr", likes = 150,
true, language = "en",
null, character = CharacterStub.gimli.name,
7, source = "The Lord of the Rings: The Fellowship of the Ring",
3, imgUrl = CharacterStub.gimli.imgUrl
1 )
) val quote6 = Quote(
id = 6,
private val quoteDaenerys1 = Quote( content = "It's a dangerous business, Frodo, going out your door. You step onto the road, and if you don't keep your feet, there's no knowing where you might be swept off to.",
15, likes = 200,
"Je ne suis pas une femme ordinaire. Mes rêves se réalisent.", language = "en",
1700, character = CharacterStub.frodoBaggins.name,
"fr", source = "The Lord of the Rings: The Fellowship of the Ring",
true, imgUrl = CharacterStub.frodoBaggins.imgUrl
null, )
8, val quote7 = Quote(
3, id = 7,
1 content = "I am no man.",
) likes = 300,
language = "en",
private val quoteDaenerys2 = Quote( character = CharacterStub.eowyn.name,
16, source = "The Lord of the Rings: The Return of the King",
"Dracarys !", imgUrl = CharacterStub.eowyn.imgUrl
2500, )
"fr", val quote8 = Quote(
true, id = 8,
null, content = "The world is changed. I feel it in the water. I feel it in the earth. I smell it in the air.",
8, likes = 400,
3, language = "en",
1 character = CharacterStub.treebeard.name,
) source = "The Lord of the Rings: The Two Towers",
imgUrl = CharacterStub.treebeard.imgUrl
private val quoteTywin1 = Quote( )
17, val quote9 = Quote(
"Un lion ne se soucie pas de lopinion des moutons.", id = 9,
1600, content = "We wants it, we needs it. Must have the precious.",
"fr", likes = 500,
true, language = "en",
null, character = CharacterStub.gollum.name,
9, source = "The Lord of the Rings: The Two Towers",
3, imgUrl = CharacterStub.gollum.imgUrl
1 )
) val quote10 = Quote(
id = 10,
private val quoteTywin2 = Quote( content = "The board is set, the pieces are moving. We come to it at last, the great battle of our time.",
18, likes = 600,
"Nimporte quel imbécile peut gagner une bataille, mais il faut un roi pour gagner une guerre.", language = "en",
1700, character = CharacterStub.gandalf.name,
"fr", source = "The Lord of the Rings: The Return of the King",
true, imgUrl = CharacterStub.gandalf.imgUrl
null, )
9, val quote11 = Quote(
3, id = 11,
1 content = "Un grand pouvoir implique de grandes responsabilités.",
) likes = 466,
language = "fr",
private val quoteElric1 = Quote( character = CharacterStub.aragorn.name,
19, source = "Spider-Man",
"Le destin est une chose étrange, il nous fait souvent croiser des chemins inattendus.", imgUrl = CharacterStub.aragorn.imgUrl
1400, )
"fr", val quote12 = Quote(
true, id = 12,
null, content = "Que la Force soit avec toi.",
10, likes = 467,
4, language = "fr",
1 character = CharacterStub.legolas.name,
) source = "Star Wars",
imgUrl = CharacterStub.legolas.imgUrl
private val quoteElric2 = Quote( )
20, val quote13 = Quote(
"Stormbringer ! Lame maudite, mon seul véritable compagnon.", id = 13,
1500, content = "La magie est partout. Il suffit de savoir où la trouver.",
"fr", likes = 466,
true, language = "fr",
null, character = CharacterStub.gandalf.name,
10, source = "Harry Potter",
4, imgUrl = CharacterStub.gandalf.imgUrl
1 )
val quote14 = Quote(
id = 14,
content = "Le monde est plein de choses magiques, patientant que nos sens s'aiguisent.",
likes = 120,
language = "fr",
character = CharacterStub.frodoBaggins.name,
source = "Le Seigneur des Anneaux",
imgUrl = CharacterStub.frodoBaggins.imgUrl
)
val quote15 = Quote(
id = 15,
content = "La peur mène à la colère, la colère mène à la haine, la haine mène à la souffrance.",
likes = 150,
language = "fr",
character = CharacterStub.gimli.name,
source = "Star Wars",
imgUrl = CharacterStub.gimli.imgUrl
)
val quote16 = Quote(
id = 16,
content = "La vie est une aventure audacieuse ou rien du tout.",
likes = 200,
language = "fr",
character = CharacterStub.galadriel.name,
source = "Helen Keller",
imgUrl = CharacterStub.galadriel.imgUrl
)
val quote17 = Quote(
id = 17,
content = "Le courage n'est pas l'absence de peur, mais la capacité de vaincre ce qui fait peur.",
likes = 300,
language = "fr",
character = CharacterStub.boromir.name,
source = "Nelson Mandela",
imgUrl = CharacterStub.boromir.imgUrl
)
val quote18 = Quote(
id = 18,
content = "La folie, c'est de faire toujours la même chose et de s'attendre à un résultat différent.",
likes = 400,
language = "fr",
character = CharacterStub.eowyn.name,
source = "Albert Einstein",
imgUrl = CharacterStub.eowyn.imgUrl
)
val quote19 = Quote(
id = 19,
content = "Le bonheur n'est pas quelque chose de tout fait. Il vient de vos propres actions.",
likes = 500,
language = "fr",
character = CharacterStub.saruman.name,
source = "Dalaï Lama",
imgUrl = CharacterStub.saruman.imgUrl
)
val quote20 = Quote(
id = 20,
content = "La vie est un mystère qu'il faut vivre, et non un problème à résoudre.",
likes = 600,
language = "fr",
character = CharacterStub.samwiseGamgee.name,
source = "Gandhi",
imgUrl = CharacterStub.samwiseGamgee.imgUrl
)
val allQuotes: List<Quote> = listOf(
quote1, quote2, quote3, quote4, quote5, quote6, quote7, quote8, quote9, quote10,
quote11, quote12, quote13, quote14, quote15, quote16, quote17, quote18, quote19, quote20
) )
} }

@ -1,30 +1,80 @@
package com.example.what_the_fantasy.data.local package com.example.what_the_fantasy.data.local
import com.example.what_the_fantasy.data.model.Source import com.example.what_the_fantasy.data.model.Source
import com.example.what_the_fantasy.data.model.SrcType
object SourceStub { object SourceStub {
private val sourceLOTR = Source( val theLordOfTheRingsMovie = Source(
1, id = 1,
"Le Seigneur des Anneaux", title = "The Lord of the Rings: The Fellowship of the Ring",
1954 dateS = 2001,
type = SrcType.Movie
) )
val theTwoTowersMovie = Source(
private val sourceWitcher = Source( id = 2,
2, title = "The Lord of the Rings: The Two Towers",
"The Witcher", dateS = 2002,
1990 type = SrcType.Movie
) )
val theReturnOfTheKingMovie = Source(
private val sourceGOT = Source( id = 3,
3, title = "The Lord of the Rings: The Return of the King",
"Game of Thrones", dateS = 2003,
1996 type = SrcType.Movie
) )
val harryPotterSeries = Source(
private val sourceElric = Source( id = 4,
4, title = "Harry Potter",
"Elric de Melniboné", dateS = 1997,
1972 type = SrcType.Series
)
val starWarsMovie = Source(
id = 5,
title = "Star Wars",
dateS = 1977,
type = SrcType.Movie
)
val spiderManMovie = Source(
id = 6,
title = "Spider-Man",
dateS = 2002,
type = SrcType.Movie
)
val theWitcherVideoGame = Source(
id = 7,
title = "The Witcher",
dateS = 2007,
type = SrcType.VideoGame
)
val theElderScrollsVideoGame = Source(
id = 8,
title = "The Elder Scrolls",
dateS = 1994,
type = SrcType.VideoGame
)
val gameOfThronesSeries = Source(
id = 9,
title = "Game of Thrones",
dateS = 2011,
type = SrcType.Series
)
val theHobbitMovie = Source(
id = 10,
title = "The Hobbit: An Unexpected Journey",
dateS = 2012,
type = SrcType.Movie
) )
val allSources: List<Source> = listOf(
theLordOfTheRingsMovie,
theTwoTowersMovie,
theReturnOfTheKingMovie,
harryPotterSeries,
starWarsMovie,
spiderManMovie,
theWitcherVideoGame,
theElderScrollsVideoGame,
gameOfThronesSeries,
theHobbitMovie
)
} }

@ -0,0 +1,80 @@
package com.example.what_the_fantasy.data.local
import com.example.what_the_fantasy.data.model.User
object UserStub {
val user1 = User(
id = 1,
username = "Aragorn123",
email = "aragorn@example.com",
date = "2022-01-15",
imgUrl = "https://img.freepik.com/vecteurs-libre/personnage-guerrier-fantaisie_1045-185.jpg?size=338&ext=jpg"
)
val user2 = User(
id = 2,
username = "Legolas456",
email = "legolas@example.com",
date = "2021-05-23",
imgUrl = "https://img.freepik.com/vecteurs-libre/personnage-elfe-fantaisie_1045-186.jpg?size=338&ext=jpg"
)
val user3 = User(
id = 3,
username = "Gandalf789",
email = "gandalf@example.com",
date = "2020-09-10",
imgUrl = "https://img.freepik.com/vecteurs-libre/personnage-magicien-fantaisie_1045-187.jpg?size=338&ext=jpg"
)
val user4 = User(
id = 4,
username = "FrodoBaggins",
email = "frodo@example.com",
date = "2023-03-18",
imgUrl = "https://img.freepik.com/vecteurs-libre/personnage-hobbit-fantaisie_1045-188.jpg?size=338&ext=jpg"
)
val user5 = User(
id = 5,
username = "Gimli999",
email = "gimli@example.com",
date = "2022-07-04",
imgUrl = "https://img.freepik.com/vecteurs-libre/personnage-nain-fantaisie_1045-189.jpg?size=338&ext=jpg"
)
val user6 = User(
id = 6,
username = "Galadriel321",
email = "galadriel@example.com",
date = "2021-11-30",
imgUrl = "https://img.freepik.com/vecteurs-libre/personnage-elfe-femme-fantaisie_1045-190.jpg?size=338&ext=jpg"
)
val user7 = User(
id = 7,
username = "Boromir654",
email = "boromir@example.com",
date = "2023-06-22",
imgUrl = "https://img.freepik.com/vecteurs-libre/personnage-guerrier-homme-fantaisie_1045-191.jpg?size=338&ext=jpg"
)
val user8 = User(
id = 8,
username = "Eowyn777",
email = "eowyn@example.com",
date = "2022-04-11",
imgUrl = "https://img.freepik.com/vecteurs-libre/personnage-guerriere-femme-fantaisie_1045-192.jpg?size=338&ext=jpg"
)
val user9 = User(
id = 9,
username = "Saruman888",
email = "saruman@example.com",
date = "2021-08-15",
imgUrl = "https://img.freepik.com/vecteurs-libre/personnage-magicien-malefique-fantaisie_1045-193.jpg?size=338&ext=jpg"
)
val user10 = User(
id = 10,
username = "Faramir222",
email = "faramir@example.com",
date = "2023-02-08",
imgUrl = "https://img.freepik.com/vecteurs-libre/personnage-guerrier-homme-fantaisie_1045-194.jpg?size=338&ext=jpg"
)
val allUsers: List<User> = listOf(
user1, user2, user3, user4, user5, user6, user7, user8, user9, user10
)
}
Loading…
Cancel
Save