use of com.fanap.podchat.call.contacts.ContactsFragment in project pod-chat-android-sdk by FanapSoft.
the class CallPresenter method onGetContacts.
@Override
public void onGetContacts(String content, ChatResponse<ResultContact> outPutContact) {
super.onGetContacts(content, outPutContact);
ArrayList<ContactsWrapper> contactsWrappers = new ArrayList<>();
for (Contact c : outPutContact.getResult().getContacts()) {
ContactsWrapper contactsWrapper = new ContactsWrapper(c);
contactsWrappers.add(contactsWrapper);
}
ContactsFragment fragment = new ContactsFragment();
Bundle v = new Bundle();
v.putParcelableArrayList("CONTACTS", contactsWrappers);
fragment.setArguments(v);
if (!outPutContact.isCache())
view.showContactsFragment(fragment);
else
view.updateContactsFragment(contactsWrappers);
}
Aggregations