|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.walluck.oscar.handlers.SNACHandler
org.walluck.oscar.handlers.InviteHandler
public class InviteHandler
Family 0x0006 - This isn't really ever used by anyone anymore.
Once upon a time, there used to be a menu item in AIM clients that said something like "Invite a friend to use AIM..." and then it would ask for an email address and it would sent a mail to them saying how perfectly wonderful the AIM service is and why you should use it and click here if you hate the person who sent this to you and want to complain and yell at them in a small box with pretty fonts.
AOL seems to offer this feature, so we support it.
SNACHandler
Constructor Summary | |
---|---|
InviteHandler()
Family 0x0006. |
Method Summary | |
---|---|
void |
handleSNAC(AIMSession sess,
SNACHandler handler,
AIMFrame frame,
SNAC snac,
AIMInputStream buffer)
Handles incoming SNAC's. |
void |
invite(AIMSession sess,
AIMConnection conn,
String email,
String message)
Subtype 0x0002 - Invite a friend to use AIM. |
Methods inherited from class org.walluck.oscar.handlers.SNACHandler |
---|
getFamily, getVersion, setFamily, setVersion |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InviteHandler()
Method Detail |
---|
public void invite(AIMSession sess, AIMConnection conn, String email, String message) throws IOException
sess
- the oscar sessionconn
- the bos connection for this sessionemail
- your friend's emailmessage
- the message to send to your friend (must be 256
characters or less)
IOException
- if an error occurspublic void handleSNAC(AIMSession sess, SNACHandler handler, AIMFrame frame, SNAC snac, AIMInputStream buffer) throws IOException
handleSNAC
in class SNACHandler
sess
- the oscar sessionhandler
- the handlerframe
- the incoming framesnac
- the incoming SNACbuffer
- the incoming buffer
IOException
- if an error occurs
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |