parent
6a81c8c89e
commit
8eec64748c
@ -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
|
||||
)
|
||||
}
|
@ -1,30 +1,80 @@
|
||||
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.SrcType
|
||||
|
||||
object SourceStub {
|
||||
private val sourceLOTR = Source(
|
||||
1,
|
||||
"Le Seigneur des Anneaux",
|
||||
1954
|
||||
val theLordOfTheRingsMovie = Source(
|
||||
id = 1,
|
||||
title = "The Lord of the Rings: The Fellowship of the Ring",
|
||||
dateS = 2001,
|
||||
type = SrcType.Movie
|
||||
)
|
||||
|
||||
private val sourceWitcher = Source(
|
||||
2,
|
||||
"The Witcher",
|
||||
1990
|
||||
val theTwoTowersMovie = Source(
|
||||
id = 2,
|
||||
title = "The Lord of the Rings: The Two Towers",
|
||||
dateS = 2002,
|
||||
type = SrcType.Movie
|
||||
)
|
||||
|
||||
private val sourceGOT = Source(
|
||||
3,
|
||||
"Game of Thrones",
|
||||
1996
|
||||
val theReturnOfTheKingMovie = Source(
|
||||
id = 3,
|
||||
title = "The Lord of the Rings: The Return of the King",
|
||||
dateS = 2003,
|
||||
type = SrcType.Movie
|
||||
)
|
||||
|
||||
private val sourceElric = Source(
|
||||
4,
|
||||
"Elric de Melniboné",
|
||||
1972
|
||||
val harryPotterSeries = Source(
|
||||
id = 4,
|
||||
title = "Harry Potter",
|
||||
dateS = 1997,
|
||||
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…
Reference in new issue