001         package com.croftsoft.apps.chat.request;
002    
003         import com.croftsoft.core.lang.NullArgumentException;
004    
005         import com.croftsoft.core.security.Authentication;
006    
007         /*********************************************************************
008         * A request to create an avatar.
009         *
010         * @version
011         *   2003-06-20
012         * @since
013         *   2003-06-06
014         * @author
015         *   <a href="https://www.croftsoft.com/">David Wallace Croft</a>
016         *********************************************************************/
017    
018         public final class  CreateModelRequest
019           extends CoalesceableRequest
020         //////////////////////////////////////////////////////////////////////
021         //////////////////////////////////////////////////////////////////////
022         {
023    
024         private static final long  serialVersionUID = 0L;
025    
026         //
027    
028         private final String  avatarType;
029    
030         private final double  x;
031    
032         private final double  y;
033    
034         //////////////////////////////////////////////////////////////////////
035         //////////////////////////////////////////////////////////////////////
036    
037         public  CreateModelRequest (
038           Authentication  authentication,
039           String          avatarType,
040           double          x,
041           double          y )
042         //////////////////////////////////////////////////////////////////////
043         {
044           super ( authentication );
045    
046           NullArgumentException.check ( this.avatarType = avatarType );
047    
048           this.x = x;
049    
050           this.y = y;
051         }
052    
053         //////////////////////////////////////////////////////////////////////
054         //////////////////////////////////////////////////////////////////////
055    
056         public String  getAvatarType ( ) { return avatarType; }
057    
058         public double  getX          ( ) { return x; }
059    
060         public double  getY          ( ) { return y; }
061    
062         //////////////////////////////////////////////////////////////////////
063         //////////////////////////////////////////////////////////////////////
064         }