001         package com.croftsoft.apps.chat.user;
002    
003         import com.croftsoft.core.util.queue.Queue;
004    
005         import com.croftsoft.core.animation.model.ModelId;
006    
007         /*********************************************************************
008         * User data.
009         *
010         * @version
011         *   2003-06-18
012         * @since
013         *   2003-06-05
014         * @author
015         *   <a href="https://www.croftsoft.com/">David Wallace Croft</a>
016         *********************************************************************/
017    
018         public interface  User
019         //////////////////////////////////////////////////////////////////////
020         //////////////////////////////////////////////////////////////////////
021         {
022    
023         public long     getEventIndex      ( );
024    
025         public long     getLastRequestTime ( );
026    
027         public Queue    getMessageQueue    ( );
028    
029         public ModelId  getModelId         ( );
030    
031         public String   getPassword        ( );
032    
033         public Queue    getRequestQueue    ( );
034    
035         public UserId   getUserId          ( );
036    
037         public String   getUsername        ( );
038    
039         //////////////////////////////////////////////////////////////////////
040         //////////////////////////////////////////////////////////////////////
041    
042         public long  nextEventIndex ( );
043    
044         public void  setModelId  ( ModelId  modelId  );
045    
046         public void  setPassword ( String   password );
047    
048         public void  updateLastRequestTime ( );
049    
050         //////////////////////////////////////////////////////////////////////
051         //////////////////////////////////////////////////////////////////////
052         }