net.kano.joscar.snac
Class SnacResponseEvent

java.lang.Object
  extended byFlapPacketEvent
      extended bySnacPacketEvent
          extended bySnacResponseEvent

public class SnacResponseEvent
extends SnacPacketEvent

An event fired when a SNAC packet is received in response to an outgoing SNAC request.


Constructor Summary
protected SnacResponseEvent(SnacPacketEvent other, SnacRequest request)
          Creates a new SnacResponseEvent with the given properties, a copy of the given event plus the given request.
 
Method Summary
 SnacRequest getRequest()
          The SNAC request to which the associated packet is in response.
 
Methods inherited from class SnacPacketEvent
getSnacCommand, getSnacPacket, getSnacProcessor
 
Methods inherited from class FlapPacketEvent
getFlapCommand, getFlapPacket, getFlapProcessor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SnacResponseEvent

protected SnacResponseEvent(SnacPacketEvent other,
                            SnacRequest request)
Creates a new SnacResponseEvent with the given properties, a copy of the given event plus the given request.

Parameters:
other - a SnacPacketEvent to copy
request - the request to which the given SnacPacketEvent is a response
Method Detail

getRequest

public final SnacRequest getRequest()
The SNAC request to which the associated packet is in response.

Returns:
the SNAC request to which the associated packet responds