parent
38038c7939
commit
8fea813004
@ -0,0 +1,15 @@
|
|||||||
|
package com.example.what_the_fantasy.data.local
|
||||||
|
|
||||||
|
import com.example.what_the_fantasy.data.model.Quote
|
||||||
|
|
||||||
|
object DailyQuoteStub {
|
||||||
|
val Dailyquote = Quote(
|
||||||
|
id = 1,
|
||||||
|
content = "All we have to decide is what to do with the time that is given us.",
|
||||||
|
likes = 466,
|
||||||
|
language = "en",
|
||||||
|
character = CharacterStub.gandalf.name,
|
||||||
|
source = "The Lord of the Rings: The Fellowship of the Ring",
|
||||||
|
imgUrl = CharacterStub.gandalf.imgUrl
|
||||||
|
)
|
||||||
|
}
|
@ -0,0 +1,19 @@
|
|||||||
|
package com.example.what_the_fantasy.data.local
|
||||||
|
|
||||||
|
import com.example.what_the_fantasy.data.model.Favorite
|
||||||
|
|
||||||
|
object FavoriteStub {
|
||||||
|
val favorites: MutableList<Favorite> = mutableListOf(
|
||||||
|
Favorite(UserStub.users[0], QuoteStub.quote1),
|
||||||
|
Favorite(UserStub.users[1], QuoteStub.quote12),
|
||||||
|
Favorite(UserStub.users[2], QuoteStub.quote13),
|
||||||
|
Favorite(UserStub.users[3], QuoteStub.quote6),
|
||||||
|
Favorite(UserStub.users[4], QuoteStub.quote5),
|
||||||
|
Favorite(UserStub.users[5], QuoteStub.quote3),
|
||||||
|
Favorite(UserStub.users[6], QuoteStub.quote17),
|
||||||
|
Favorite(UserStub.users[7], QuoteStub.quote7),
|
||||||
|
Favorite(UserStub.users[8], QuoteStub.quote19),
|
||||||
|
Favorite(UserStub.users[9], QuoteStub.quote20),
|
||||||
|
Favorite(UserStub.users[10], QuoteStub.quote11)
|
||||||
|
)
|
||||||
|
}
|
@ -0,0 +1,6 @@
|
|||||||
|
package com.example.what_the_fantasy.data.model
|
||||||
|
|
||||||
|
class Favorite (
|
||||||
|
val user: User,
|
||||||
|
val quote: Quote
|
||||||
|
)
|
Loading…
Reference in new issue