mirror of
https://codeberg.org/Mercury-IM/Mercury-IM
synced 2024-06-16 08:34:53 +02:00
26 lines
643 B
Java
26 lines
643 B
Java
package org.mercury_im.messenger.xmpp;
|
|
|
|
import org.jivesoftware.smack.XMPPConnection;
|
|
import org.mercury_im.messenger.entity.Account;
|
|
|
|
public class MercuryConnection {
|
|
|
|
private static final XmppConnectionFactory connectionFactory = new XmppConnectionFactory();
|
|
|
|
private final Account account;
|
|
private XMPPConnection connection;
|
|
|
|
public MercuryConnection(Account account) {
|
|
this.account = account;
|
|
this.connection = connectionFactory.createConnection(account);
|
|
}
|
|
|
|
public Account getAccount() {
|
|
return account;
|
|
}
|
|
|
|
public XMPPConnection getConnection() {
|
|
return connection;
|
|
}
|
|
}
|