tempus/app/src/main/java/com/cappielloantonio/play/model/Server.kt
2023-03-02 10:48:30 +01:00

35 lines
No EOL
794 B
Kotlin

package com.cappielloantonio.play.model
import android.os.Parcelable
import androidx.annotation.Keep
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import kotlinx.android.parcel.Parcelize
@Keep
@Parcelize
@Entity(tableName = "server")
data class Server(
@PrimaryKey
@ColumnInfo(name = "id")
val serverId: String,
@ColumnInfo(name = "server_name")
val serverName: String,
@ColumnInfo(name = "username")
val username: String,
@ColumnInfo(name = "password")
val password: String,
@ColumnInfo(name = "address")
val address: String,
@ColumnInfo(name = "timestamp")
val timestamp: Long,
@ColumnInfo(name = "low_security", defaultValue = "false")
val isLowSecurity: Boolean
) : Parcelable