export default (configuration) => {
    return `package ${configuration.packageName}.model.remote


    import ${configuration.name}.R
    import androidx.lifecycle.LifecycleOwner
    import ${configuration.packageName}.adapters.ChatRoomAdapter
    import ${configuration.packageName}.adapters.DataRecyclerAdapter
    import ${configuration.packageName}.extensions.hideSoftKeyboard
    import ${configuration.packageName}.extensions.snackBar
    import ${configuration.packageName}.model.remote.ChatRoomListResponse
    import ${configuration.packageName}.network.Status
    import ${configuration.packageName}.viewmodels.BaasViewModel
    import java.io.Serializable
    
    
    
    fun loadDataData(viewLifecycleOwner: LifecycleOwner, baasViewModel: BaasViewModel, userId: Int, adapter: ChatRoomAdapter) {
    
        baasViewModel.getAllRoom(userId).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) }
                }
            }
        }
    }

      `;
  };