rifki_cs29

DatabaseContract

Jul 1st, 2020
1,074
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.rifki.kotlin.mygithubfinal.db
  2.  
  3. import android.net.Uri
  4. import android.provider.BaseColumns
  5.  
  6. object DatabaseContract {
  7.     const val AUTHORITY = "com.rifki.kotlin.mygithubfinal"
  8.     const val SCHEME = "content"
  9.  
  10.     internal class FavouriteColumns : BaseColumns {
  11.         companion object {
  12.             const val TABLE_NAME = "favourite"
  13.             const val _ID = "_id"
  14.             const val USERNAME = "username"
  15.             const val AVATAR = "avatar"
  16.             const val URL = "url"
  17.  
  18.             val CONTENT_URI : Uri = Uri.Builder().scheme(SCHEME)
  19.                 .authority(AUTHORITY)
  20.                 .appendPath(TABLE_NAME)
  21.                 .build()
  22.         }
  23.     }
  24. }
RAW Paste Data