package com.imt.intimamedia.events.patient { import com.imt.flex.cairngormExtended.event.SuperEvent; import com.imt.intimamedia.control.ApplicationController; import com.imt.intimamedia.vo.AppointmentVo; import com.imt.intimamedia.vo.PatientVo; /** * Evénement de de création d'un patient */ public class CreatePatientEvent extends SuperEvent { private var _patient : PatientVo; private var _appointment : AppointmentVo; private var _person : int; public function CreatePatientEvent( patient : PatientVo, appointment : AppointmentVo, person : int, dispatcher : * = null ) { super( ApplicationController.CREATE_PATIENT ); this.patient = patient; this.appointment = appointment; this.person = person; this.dispatcher = dispatcher; } /** * Patient transporté par l'événement * * @default null */ public function get patient () : PatientVo { return _patient; } /** * @private */ public function set patient ( value : PatientVo ) : void { _patient = value; } /** * RDV transporté par l'événement * * @default null */ public function get appointment () : AppointmentVo { return _appointment; } /** * @private */ public function set appointment ( value : AppointmentVo ) : void { _appointment = value; } /** * ID de l'individu (humain) transporté par l'événement * * @default null */ public function get person () : int { return _person; } /** * @private */ public function set person ( value : int ) : void { _person = value; } } }