add a new field, note type

This commit is contained in:
tibbi
2016-11-14 22:34:56 +01:00
parent afbf579ece
commit 6c67016bfe
4 changed files with 21 additions and 11 deletions

View File

@ -1,8 +1,8 @@
package com.simplemobiletools.notes.models
class Note(var id: Int, var title: String, var value: String) {
class Note(var id: Int, var title: String, var value: String, val type: Int) {
override fun equals(other: Any?) = other != null && this.toString() == other.toString()
override fun toString() = "Note {id=$id, title=$title, value=$value}"
override fun toString() = "Note {id=$id, title=$title, value=$value, type=$type}"
}