use of com.xabber.android.presentation.ui.contactlist.viewobjects.CrowdfundingChatVO in project xabber-android by redsolution.
the class ContactListPresenter method onItemClick.
public void onItemClick(IFlexible item) {
if (item instanceof ContactVO) {
AccountJid accountJid = ((ContactVO) item).getAccountJid();
UserJid userJid = ((ContactVO) item).getUserJid();
if (view != null)
view.onContactClick(RosterManager.getInstance().getAbstractContact(accountJid, userJid));
} else if (item instanceof ButtonVO) {
ButtonVO button = (ButtonVO) item;
if (view != null)
view.onButtonItemClick(button);
} else if (item instanceof CrowdfundingChatVO) {
if (view != null) {
AccountJid accountJid = CrowdfundingChat.getDefaultAccount();
UserJid userJid = CrowdfundingChat.getDefaultUser();
if (accountJid != null && userJid != null)
view.onContactClick(RosterManager.getInstance().getAbstractContact(accountJid, userJid));
}
}
}
Aggregations