Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- object Service {
- def apply(username:String, server:String, password:String)
- {
- val x = new XMPPConnection(server);
- x.login(username, password);
- new Service(x);
- }
- def apply(jid:String, password:String)
- {
- val (user :: server :: _) = jid.split("@").toList
- this(user, server, password)
- }
- }
- class Service(connection:XMPPConnection)
- {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement