Skip to content

Instantly share code, notes, and snippets.

@jezinka
Last active September 13, 2017 06:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jezinka/66dbebab1e56b48525c72260ddf1f4f9 to your computer and use it in GitHub Desktop.
Save jezinka/66dbebab1e56b48525c72260ddf1f4f9 to your computer and use it in GitHub Desktop.
package com.projects.jezinka.myplaces
import android.provider.BaseColumns
object MyPlacesContract {
data class MyPlace(val id: Long,
val longitude: String,
val latitude: String,
val note: String,
val order: Int)
class MyPlaceEntry : BaseColumns {
companion object {
val TABLE_NAME = "my_place"
val _ID = "_id"
val COLUMN_NAME_LONGITUDE = "longitude"
val COLUMN_NAME_LATITUDE = "latitude"
val COLUMN_NAME_NOTE = "note"
val COLUMN_NAME_ORDER = "order_no"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment