如何在OrganizationAccess
中调用access_role?
这是类
用户
class User : Serializable {
var id = ""
var user_organization_accesses: ArrayList<OrganizationAccess>? = null
}
组织访问
class OrganizationAccess:Serializable {
var access_role = ""
}
我尝试过的
mUser = intent.getSerializableExtra(ARG_PARAM) as User // receive from previous activity
longToast("Role is " + mUser.user_organization_accesses!!.xxx)
我应该为xxx写什么?
最佳答案
我已经解决了
longToast("Role is " + mUser.user_organization_accesses!!.component1().access_role)