diff options
Diffstat (limited to 'src/main/scala/reading/models/Book.scala')
-rw-r--r-- | src/main/scala/reading/models/Book.scala | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/scala/reading/models/Book.scala b/src/main/scala/reading/models/Book.scala index 344b4c6..1ee7eb6 100644 --- a/src/main/scala/reading/models/Book.scala +++ b/src/main/scala/reading/models/Book.scala @@ -3,11 +3,13 @@ package reading.models case class Book ( title: String, author: String, - period: Period, + year: String, + parts: Int = 1, + period: Option[Period], genres: Seq[Genre], themes: Seq[Theme], programs: Seq[Program], - pages: Int + level: Level ) extends Ordered[Book] { def compare(that: Book) = { def formatTitle(title: String) = |