diff --git a/xxclient/src/main/java/io/elixxir/xxclient/models/Fact.kt b/xxclient/src/main/java/io/elixxir/xxclient/models/Fact.kt index 55ee8d97a3f788882e41a6e14d3bed6ed6a266ec..635fc507750dd15cd649945277cdb1b3b549544b 100644 --- a/xxclient/src/main/java/io/elixxir/xxclient/models/Fact.kt +++ b/xxclient/src/main/java/io/elixxir/xxclient/models/Fact.kt @@ -6,5 +6,5 @@ data class Fact( @SerializedName("Fact") val fact: String, @SerializedName("T") - val type: Long + val type: Int ) : BindingsModel \ No newline at end of file diff --git a/xxclient/src/main/java/io/elixxir/xxclient/models/FactType.kt b/xxclient/src/main/java/io/elixxir/xxclient/models/FactType.kt index 799470acf7f22441edf63ac240dfbd050cae8095..e5da77421650646f94d143dc0a3f1da4dd514964 100644 --- a/xxclient/src/main/java/io/elixxir/xxclient/models/FactType.kt +++ b/xxclient/src/main/java/io/elixxir/xxclient/models/FactType.kt @@ -5,13 +5,13 @@ sealed class FactType { object Username : FactType() object Email : FactType() object Phone : FactType() - class Other(val code: Long) : FactType() + class Other(val code: Int) : FactType() companion object { - fun from(code: Long): FactType = when (code) { - 0L -> Username - 1L -> Email - 2L -> Phone + fun from(code: Int): FactType = when (code) { + 0 -> Username + 1 -> Email + 2 -> Phone else -> Other(code) } }