org.walluck.oscar.handlers
Class InviteHandler

java.lang.Object
  extended byorg.walluck.oscar.handlers.SNACHandler
      extended byorg.walluck.oscar.handlers.InviteHandler

public class InviteHandler
extends SNACHandler

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.

Since:
1.0
Version:
1.0
Author:
David Walluck
See Also:
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, java.lang.String email, java.lang.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

InviteHandler

public InviteHandler()
Family 0x0006.

Method Detail

invite

public void invite(AIMSession sess,
                   AIMConnection conn,
                   java.lang.String email,
                   java.lang.String message)
            throws java.io.IOException
Subtype 0x0002 - Invite a friend to use AIM.

Parameters:
sess - the oscar session
conn - the bos connection for this session
email - your friend's email
message - the message to send to your friend (must be 256 characters or less)
Throws:
java.io.IOException - if an error occurs

handleSNAC

public void handleSNAC(AIMSession sess,
                       SNACHandler handler,
                       AIMFrame frame,
                       SNAC snac,
                       AIMInputStream buffer)
                throws java.io.IOException
Handles incoming SNAC's.

Specified by:
handleSNAC in class SNACHandler
Parameters:
sess - the oscar session
handler - the handler
frame - the incoming frame
snac - the incoming SNAC
buffer - the incoming buffer
Throws:
java.io.IOException - if an error occurs