use of org.awesomeapp.messenger.model.Presence in project Zom-Android by zom.
the class LoopbackConnection method loginAsync.
@Override
public void loginAsync(long accountId, String passwordTemp, long providerId, boolean retry) {
ContentResolver contentResolver = mContext.getContentResolver();
String userName = Imps.Account.getUserName(contentResolver, accountId);
mUserPresence = new Presence(Presence.AVAILABLE, "available", null, null, Presence.CLIENT_TYPE_DEFAULT);
mUser = new Contact(new LoopbackAddress(userName + "!", "loopback", null), userName, Imps.Contacts.TYPE_NORMAL);
setState(LOGGED_IN, null);
}
Aggregations