Skip to content

Instantly share code, notes, and snippets.

@lomza
Last active July 26, 2018 18:54
Show Gist options
  • Save lomza/87703c3f1899bf36d88ea5544602feba to your computer and use it in GitHub Desktop.
Save lomza/87703c3f1899bf36d88ea5544602feba to your computer and use it in GitHub Desktop.
@Entity(tableName = "DAY_LOOK")
data class DayLookEntity(
@PrimaryKey(autoGenerate = true)
@ColumnInfo(name = "_id")
var id: Long? = null,
@ColumnInfo(name = "DATE")
var date: String,
@ColumnInfo(name = "SCREENON")
var screenon: Int? = null,
@ColumnInfo(name = "SCREENOFF")
var screenoff: Int? = null,
@ColumnInfo(name = "SCREENUNLOCK")
var screenunlock: Int? = null
) {
constructor() : this(
id = null,
date = "",
screenon = null,
screenoff = null,
screenunlock = null
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment