Search in sources :

Example 1 with User

use of drift.com.drift.model.User in project drift-sdk-android by Driftt.

the class PresentationManager method showPopupForMessage.

private void showPopupForMessage(final Message message, final int otherMessages) {
    User user = UserManager.getInstance().userMap.get(message.authorId);
    Auth auth = Auth.getInstance();
    if (user != null) {
        showPopupForMessage(user, message, otherMessages);
    } else if (auth != null && auth.endUser != null && auth.endUser.orgId != null) {
        UserManager.getInstance().getUsers(auth.endUser.orgId, new UserManagerCallback() {

            @Override
            public void didLoadUsers(Boolean success) {
                User user = UserManager.getInstance().userMap.get(message.authorId);
                showPopupForMessage(user, message, otherMessages);
            }
        });
    }
}
Also used : UserManagerCallback(drift.com.drift.wrappers.UserManagerCallback) User(drift.com.drift.model.User) Auth(drift.com.drift.model.Auth)

Aggregations

Auth (drift.com.drift.model.Auth)1 User (drift.com.drift.model.User)1 UserManagerCallback (drift.com.drift.wrappers.UserManagerCallback)1