title: Data Class in Kotlin
body: <p>I need to display image by use Data class </p>
  
  <p>I confused in data class I deal with image as image or Int
  data class User(val pic : Image)</p>
  
  <p>or
  data class User(val pic : Int)</p>
  
  <p>and display it throw CustomAdapter</p>
  
  <pre><code>  class CustomAdapter(val userList: ArrayList&lt;User&gt;) :      RecyclerView.Adapter&lt;CustomAdapter.ViewHolder&gt;() {   
    class ViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {
  
   override fun onCreateViewHolder(parent: ViewGroup, viewType: Int):    CustomAdapter.ViewHolder {
      val v =  LayoutInflater.from(parent.context).inflate(R.layout.list_layout, parent, false)
      return ViewHolder(v)
  
       fun bindItems(user: User) {
  
    val imageView = itemView.findViewById(R.id.image_item) as ImageView
  
          imageView.setImageResource(pic: )
  
  
      }
  
  }
  </code></pre>
  
  <p>I know my code not complete
  so I need just example to demonstrate images in Data Class</p>