aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/reading/Books.scala
blob: 29c26d2325d594ad8daaf4ad6f207dd47dff3f03 (plain)
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
package reading

import reading.models.{Book, Period, Theme, Genre}, Period._, Theme._, Genre._

object Books {
  def apply(): Seq[Book] = Seq(
    Book(
      title  = "Les Dix petits nègres",
      author = "Agatha Christie",
      period = Siecle20,
      genres = Seq(Policier),
      themes = Seq(Peur),
      pages  = 250
    ),

    Book(
      title  = "Le Joueur",
      author = "Fiódor Dostoyevski",
      period = Siecle19,
      genres = Seq(),
      themes = Seq(Peur),
      pages  = 170
    ),

    Book(
      title  = "Voyage au bout de la nuit",
      author = "Céline",
      period = Siecle20,
      genres = Seq(),
      themes = Seq(Peur),
      pages  = 380
    ),

    Book(
      title  = "Le Petit Prince",
      author = "Antoine de Saint Exupéry",
      period = Siecle19,
      genres = Seq(Policier),
      themes = Seq(Amitie),
      pages  = 130
    ),

    Book(
      title  = "Les Frères Karamazov",
      author = "Fiódor Dostoyevski",
      period = Siecle19,
      genres = Seq(),
      themes = Seq(Famille),
      pages  = 850
    )
  )
}