mirror of
https://github.com/MatomoCamp/matomocamp-companion-android.git
synced 2024-09-19 16:13:46 +02:00
simplify the Link class by removing secondary constructor
This commit is contained in:
parent
9db6ec56ad
commit
a37e102cd5
1 changed files with 1 additions and 3 deletions
|
@ -11,15 +11,13 @@ import kotlinx.android.parcel.Parcelize
|
|||
@Parcelize
|
||||
data class Link(
|
||||
@PrimaryKey(autoGenerate = true)
|
||||
val id: Long,
|
||||
val id: Long = 0L,
|
||||
@ColumnInfo(name = "event_id")
|
||||
val eventId: Long,
|
||||
val url: String,
|
||||
val description: String?
|
||||
) : Parcelable {
|
||||
|
||||
constructor(eventId: Long, url: String, description: String?) : this(0L, eventId, url, description)
|
||||
|
||||
companion object {
|
||||
const val TABLE_NAME = "links"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue