// Sample code file: ChatUser.java

// Warning: This code has been marked up for HTML

/*
   Copyright (c) 2000 Novell, Inc.  All Rights Reserved.

   THIS WORK IS SUBJECT TO U.S. AND INTERNATIONAL COPYRIGHT LAWS AND TREATIES. 
   USE AND REDISTRIBUTION OF THIS WORK IS SUBJECT TO THE LICENSE AGREEMENT 
   ACCOMPANYING THE SOFTWARE DEVELOPMENT KIT (SDK) THAT CONTAINS THIS WORK. 
   PURSUANT TO THE SDK LICENSE AGREEMENT, NOVELL HEREBY GRANTS TO DEVELOPER A 
   ROYALTY-FREE, NON-EXCLUSIVE LICENSE TO INCLUDE NOVELL'S SAMPLE CODE IN ITS 
   PRODUCT. NOVELL GRANTS DEVELOPER WORLDWIDE DISTRIBUTION RIGHTS TO MARKET, 
   DISTRIBUTE, OR SELL NOVELL'S SAMPLE CODE AS A COMPONENT OF DEVELOPER'S 
   PRODUCTS. NOVELL SHALL HAVE NO OBLIGATIONS TO DEVELOPER OR DEVELOPER'S 
   CUSTOMERS WITH RESPECT TO THIS CODE. 
*/
 


package com.novell.Chat;

// ConsoleOne imports
import com.novell.application.console.snapin.*;

/**
 * Contains all of the information needed to identify and communicate with
 * a user or Chat Room.
 */
public class ChatUser
{
    /**
     * The name of the user.
     */
    private String name;
    
    /**
     * The DN of the user.
     */
    private String fullName;
    
    /**
     * The IP of the user.
     */
    private String ipAddress;
    
    /**
     * The port of the user.
     */
    private int port = -1;
    
    /**
     * The object entry of this user.
     */
    private ObjectEntry oe;
    
    /**
     * Constructors
     */        
    public ChatUser()
    {        
    }
     
    public ChatUser(ObjectEntry oe, String name, String fullName, String ipAddress)
    {
        this.oe = oe;
        this.name = name;
        this.fullName = fullName;
        this.ipAddress = ipAddress;       
    }
    
    public ObjectEntry getObjectEntry()
    {
        return oe;
    }
    
    public void setObjectEntry(ObjectEntry oe)
    {                
        this.oe = oe;
    }
    
    public String getName()
    {
        return name;
    }
    
    public void setName(String name)
    {
        this.name = name;
    }
    
    public String getFullName()
    {
        return fullName;
    }
    
    public void setFullName(String fullName)
    {
        this.fullName = fullName;
    }
    
    public String getIPAddress()
    {
        return ipAddress;
    }
    
    public void setIPAddress(String ipAddress)
    {
        this.ipAddress = ipAddress;
    }
    
    public int getPort()
    {
        return port;
    }
    
    public void setPort(int port)
    {
        this.port = port;
    }
}