|
@@ -29,9 +29,9 @@ class MemberListFragment : BaseFragment<FragmentMemberListBinding>() {
|
|
|
|
|
|
private var companyName = ""
|
|
private var companyName = ""
|
|
|
|
|
|
- private var depId = 0
|
|
|
|
|
|
+ private var departmentId = 0
|
|
|
|
|
|
- private var depName = ""
|
|
|
|
|
|
+ private var departmentName = ""
|
|
|
|
|
|
override fun getViewBinding(
|
|
override fun getViewBinding(
|
|
inflater: LayoutInflater, container: ViewGroup?, bundle: Bundle?
|
|
inflater: LayoutInflater, container: ViewGroup?, bundle: Bundle?
|
|
@@ -43,8 +43,8 @@ class MemberListFragment : BaseFragment<FragmentMemberListBinding>() {
|
|
requireArguments().apply {
|
|
requireArguments().apply {
|
|
companyId = getInt("companyId")
|
|
companyId = getInt("companyId")
|
|
companyName = getString("companyName").toString()
|
|
companyName = getString("companyName").toString()
|
|
- depId = getInt("depId")
|
|
|
|
- depName = getString("depName").toString()
|
|
|
|
|
|
+ departmentId = getInt("depId")
|
|
|
|
+ departmentName = getString("depName").toString()
|
|
}
|
|
}
|
|
|
|
|
|
initViews()
|
|
initViews()
|
|
@@ -52,7 +52,7 @@ class MemberListFragment : BaseFragment<FragmentMemberListBinding>() {
|
|
|
|
|
|
override fun initViews() {
|
|
override fun initViews() {
|
|
binding.subtitle.text =
|
|
binding.subtitle.text =
|
|
- String.format(resources.getString(R.string.member_sub_title), companyName, depName)
|
|
|
|
|
|
+ String.format(resources.getString(R.string.member_sub_title), companyName, departmentName)
|
|
initMemberList()
|
|
initMemberList()
|
|
}
|
|
}
|
|
|
|
|
|
@@ -62,7 +62,7 @@ class MemberListFragment : BaseFragment<FragmentMemberListBinding>() {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
- ServiceCreator.create<APIService>().getMembersList(MemberListRequest(companyId, depId))
|
|
|
|
|
|
+ ServiceCreator.create<APIService>().getMembersList(MemberListRequest(companyId, departmentId))
|
|
.enqueue(object : Callback<MemberListResponse> {
|
|
.enqueue(object : Callback<MemberListResponse> {
|
|
override fun onResponse(
|
|
override fun onResponse(
|
|
call: Call<MemberListResponse>, response: Response<MemberListResponse>
|
|
call: Call<MemberListResponse>, response: Response<MemberListResponse>
|