-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDatasource.kt
94 lines (89 loc) · 3.86 KB
/
Datasource.kt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
package com.example.factsapp.data
import com.example.factsapp.R
import com.example.factsapp.model.Fact
import com.example.factsapp.model.FactType
class Datasource {
fun loadFacts(): List<Fact> {
return listOf(
Fact(
info = "Armadillos can hold their breath for up to six minutes and are known to walk " +
"underwater to cross streams",
source = "r/funfacts",
imageId = R.drawable.armadillo,
type = FactType.NATURE,
submittedBy = "BenGeorgeNetto"
),
Fact(
info = "There once lived a Viking called Harald Bluetooth. " +
"He was called that because he loved blueberries. " +
"The Bluetooth technology we know nowadays, has been named after him. " +
"And the symbol are the runic H and B put together",
source = "r/funfacts",
imageId = R.drawable.bluetooth,
type = FactType.FUN,
submittedBy = "BenGeorgeNetto"
),
Fact(
info = "There are more trees on earth than stars in the Milky way",
source = "www.nature.com",
imageId = R.drawable.milky_trees,
type = FactType.NATURE,
submittedBy = "BenGeorgeNetto"
),
Fact(
info = "In Switzerland it is illegal to own just one guinea pig." +
" This is because guinea pigs are social animals, " +
"and they are considered victims of abuse if they are alone",
source = "r/funfacts",
imageId = R.drawable.guineapig,
type = FactType.INTERESTING,
submittedBy = "BenGeorgeNetto"
),
Fact(
info = "Bees sleep holding each other’s feet",
source = "r/funfacts",
imageId = R.drawable.bees,
type = FactType.NATURE,
submittedBy = "BenGeorgeNetto"
),
Fact(
info = "Researchers have found that during thunderstorms plants emit electric " +
"discharges along with hydroxyl (OH) and hydroperoxyl (HO2), " +
"which can change the surrounding air quality by altering molecules",
source = "r/interestingasfuck",
imageId = R.drawable.plants_lightning,
type = FactType.SCIENCE,
submittedBy = "BenGeorgeNetto"
),
Fact(
info = "Koalas have fingerprints that are almost indistinguishable from human fingerprints",
source = "r/funfacts",
imageId = R.drawable.koala,
type = FactType.NATURE,
submittedBy = "BenGeorgeNetto"
),
Fact(
info = "You can time travel at the south pole",
source = "r/funfacts",
imageId = R.drawable.time_south,
type = FactType.SCIENCE,
submittedBy = "BenGeorgeNetto"
),
// Insert your fact here
Fact(
info = "The human circulatory system is more than 60,000 miles long (96,560 km!)",
source = "www.rd.com",
imageId = R.drawable.circulatory_system,
type = FactType.SCIENCE,
submittedBy = "mksiddiq"
),
Fact(
info = "The word “mafia” is never mentioned in the film version of The Godfather because the actual mafia demanded it",
source = "r/facts",
imageId = R.drawable.godfather,
type = FactType.MISC,
submittedBy = "BenGeorgeNetto"
),
)
}
}