export default (configuration) => {
    return `package com.manaknight.app.data

    import Manaknight.R
    import androidx.lifecycle.LifecycleOwner
    import com.manaknight.app.adapters.ChatRoomAdapter
    import com.manaknight.app.adapters.DataRecyclerAdapter
    import com.manaknight.app.adapters.FriendListAdapter
    import com.manaknight.app.extensions.hideSoftKeyboard
    import com.manaknight.app.extensions.snackBar
    import com.manaknight.app.model.remote.ChatRoomListResponse
    import com.manaknight.app.network.Status
    import com.manaknight.app.viewmodels.BaasViewModel
    import java.io.Serializable
    
    
    
    fun loadAllUserData(viewLifecycleOwner: LifecycleOwner, baasViewModel: BaasViewModel, userId: Int, adapter: FriendListAdapter) {
    
        baasViewModel.getAllUser().observe(viewLifecycleOwner) {
            when (it.status) {
                Status.ERROR -> println(it.message ?: "Something went wrong")
                Status.LOADING -> {
    
                }
    
                Status.SUCCESS -> {
    
                    it.data?.let { it1 -> adapter.updateData(it1.list) }
                }
            }
        }
    }
    
    

      `;
  };