Skip to content

Commit fd55393

Browse files
author
Philipp Karlsson
committed
Fixing trasient vars in InsightAttribute
1 parent 96ae09a commit fd55393

File tree

1 file changed

+6
-6
lines changed
  • kotlin-insight-client/kotlin-insight-client-api/src/main/kotlin/com/linkedplanet/kotlininsightclient/api/model

1 file changed

+6
-6
lines changed

kotlin-insight-client/kotlin-insight-client-api/src/main/kotlin/com/linkedplanet/kotlininsightclient/api/model/Model.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ sealed class InsightAttribute(
130130
@Transient open val schema: ObjectTypeSchemaAttribute?,
131131
@field:NotNull val type: AttributeTypeEnum,
132132
val isMulti: Boolean,
133-
open val displayValue: String?,
134-
open val displayValues: List<String>?
133+
@Transient open val displayValue: String? = null,
134+
@Transient open val displayValues: List<String>? = null
135135
) {
136136
data class Text(
137137
@get:JvmName("getAttributeId")
@@ -186,8 +186,8 @@ sealed class InsightAttribute(
186186
@get:JvmName("getAttributeId")
187187
@field:NotNull override val attributeId: InsightAttributeId,
188188
val value: LocalTime?,
189-
override val displayValue: String?,
190-
override val schema: ObjectTypeSchemaAttribute?
189+
override val schema: ObjectTypeSchemaAttribute?,
190+
override val displayValue: String? = null
191191
) : InsightAttribute(attributeId, schema, AttributeTypeEnum.Time, false, displayValue, null){
192192
override fun toString() = value?.toString() ?: ""
193193
}
@@ -196,8 +196,8 @@ sealed class InsightAttribute(
196196
@get:JvmName("getAttributeId")
197197
@field:NotNull override val attributeId: InsightAttributeId,
198198
val value: ZonedDateTime?,
199-
override val displayValue: String?,
200-
override val schema: ObjectTypeSchemaAttribute?
199+
override val schema: ObjectTypeSchemaAttribute?,
200+
override val displayValue: String? = null
201201
) : InsightAttribute(attributeId, schema, AttributeTypeEnum.DateTime, false, displayValue, null){
202202
override fun toString() = value?.toString() ?: ""
203203
}

0 commit comments

Comments
 (0)