SHARE
TWEET

Untitled

a guest Apr 24th, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.udacoding.wisatapedia.db.model_db
  2.  
  3. /**
  4.  * Created by User on 18/02/2019.
  5.  */
  6. open class TransactionModel(val id: Long?,
  7.                         val idProduct : String?,
  8.                         val idLinkProduct : String?,
  9.                         val productCode: String?,
  10.                         val titleProduct: String?,
  11.                         val priceProduct: String?,
  12.                         val photoProduct: String?,
  13.                         val amountProduct: String?,
  14.                         val sellerProduct: String?,
  15.                         val emailUser: String?,
  16.                        val idUser: String?,
  17.                         val flag : String?,
  18.                             val nameCategory : String?) {
  19.  
  20.         companion object {
  21.             const val TABLE_TRANSACTION_PRODUCT = "tbl_transaction"
  22.             const val ID = "ID_"
  23.             const val ID_PRODUCT_LINK = "id_product_link"
  24.             const val ID_PRODUCT = "id_product"
  25.             const val PRODUCT_CODE ="product_code"
  26.             const val TITLE_PRODUCT ="title_product"
  27.             const val PRICE_PRODUCT ="price_product"
  28.             const val PHOTO_PRODUCT ="photo_product"
  29.             const val AMOUNT_PRODUCT ="amount_product"
  30.             const val SELLER_PRODUCT ="seller_product"
  31.             const val EMAIL_USER = "email_user"
  32.             const val ID_USER ="id_user"
  33.             const val FLAG ="flag"
  34.             const val NAMA_CATEGORY ="nama_category"
  35.             const val NAMA_CATEGORY_2 ="nama_category2"
  36.  
  37.  
  38.              var isChecked: Boolean = false
  39.         }
  40.  
  41.  
  42.  
  43.     open fun getChecked(): Boolean {
  44.         return isChecked
  45.     }
  46.  
  47.     fun setChecked(checked: Boolean) {
  48.         isChecked = checked
  49.     }
  50.  
  51.  
  52.  
  53.  
  54. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top