001         package com.croftsoft.apps.chat.event;
002    
003         import com.croftsoft.core.lang.NullArgumentException;
004    
005         import com.croftsoft.apps.chat.model.ChatModel;
006    
007         /*********************************************************************
008         * A model was created in the World.
009         *
010         * @version
011         *   2003-06-07
012         * @since
013         *   2003-06-07
014         * @author
015         *   <a href="https://www.croftsoft.com/">David Wallace Croft</a>
016         *********************************************************************/
017    
018         public final class  CreateModelEvent
019           extends AbstractEvent
020         //////////////////////////////////////////////////////////////////////
021         //////////////////////////////////////////////////////////////////////
022         {
023    
024         private static final long  serialVersionUID = 0L;
025    
026         //
027    
028         private final ChatModel  chatModel;
029    
030         //////////////////////////////////////////////////////////////////////
031         //////////////////////////////////////////////////////////////////////
032    
033         public  CreateModelEvent ( ChatModel  chatModel )
034         //////////////////////////////////////////////////////////////////////
035         {
036           NullArgumentException.check ( this.chatModel = chatModel );
037         }
038    
039         //////////////////////////////////////////////////////////////////////
040         //////////////////////////////////////////////////////////////////////
041    
042         public ChatModel  getChatModel ( ) { return chatModel; }
043    
044         //////////////////////////////////////////////////////////////////////
045         //////////////////////////////////////////////////////////////////////
046         }