package de.dtele.messages.events {
  
  import de.dtele.messages.MessageResponse;
  
  import flash.events.Event;
  
  public class MessageResponseEvent extends Event {
    
    /* Constants */
    /**
     * The MessageResponseEvent.RESPONSE constant defines the value of the 
     * <code>type</code> property of the event object 
     * for a <code>response</code> event.
     * 
     * @eventType response
     */
    public static const RESPONSE:String = "response";
    
    /* Properties */
    private var _response:MessageResponse;
    /**
     * The response this event was dispatched for
     */
    public function get response():MessageResponse { return this._response; }
    
    /* Methods */
    public function MessageResponseEvent(type:String, response:MessageResponse, bubbles:Boolean=false, cancelable:Boolean=false) {
      
      super(type, bubbles, cancelable);
      
      this._response = response;
    }
  }
}