Don't use data class in this case

This commit is contained in:
Mikołaj Pich 2018-08-20 21:24:53 +02:00
parent 4437f978b3
commit e9d2f5b308
No known key found for this signature in database
GPG key ID: F62B26E36D4C4BAA
2 changed files with 9 additions and 12 deletions

View file

@ -1,7 +1,5 @@
# api
# Wulkanowy
[![CircleCI](https://img.shields.io/circleci/project/github/wulkanowy/api/master.svg?style=flat-square)](https://circleci.com/gh/wulkanowy/api)
[![Codecov](https://img.shields.io/codecov/c/github/wulkanowy/api/master.svg?style=flat-square)](https://codecov.io/gh/wulkanowy/api)
[![Bintray](https://img.shields.io/bintray/v/wulkanowy/wulkanowy/api.svg?style=flat-square)](https://bintray.com/wulkanowy/wulkanowy/api)

View file

@ -2,16 +2,15 @@ package io.github.wulkanowy.api.notes
import pl.droidsonroids.jspoon.annotation.Selector
data class Note(
class Note {
lateinit var date: String
var date: String = "",
@Selector(".wartosc", index = 0)
lateinit var teacher: String
@Selector(".wartosc", index = 0)
var teacher: String = "",
@Selector(".wartosc", index = 1)
lateinit var category: String
@Selector(".wartosc", index = 1)
var category: String = "",
@Selector(".wartosc", index = 2)
var content: String = ""
)
@Selector(".wartosc", index = 2)
lateinit var content: String
}