fix some LocalContact related warnings

This commit is contained in:
tibbi 2018-11-05 22:48:19 +01:00
parent ba108340b1
commit 79e46c43d5
1 changed files with 6 additions and 1 deletions

View File

@ -25,4 +25,9 @@ data class LocalContact(
@ColumnInfo(name = "company") var company: String, @ColumnInfo(name = "company") var company: String,
@ColumnInfo(name = "job_position") var jobPosition: String, @ColumnInfo(name = "job_position") var jobPosition: String,
@ColumnInfo(name = "websites") var websites: ArrayList<String>, @ColumnInfo(name = "websites") var websites: ArrayList<String>,
@ColumnInfo(name = "ims") var IMs: ArrayList<IM>) @ColumnInfo(name = "ims") var IMs: ArrayList<IM>) {
override fun equals(other: Any?) = this.id == (other as? LocalContact?)?.id
override fun hashCode() = id ?: 0
}