www.pudn.com > AjaxChatUchat.rar > IChatEngine.cs


using System; 
 
namespace UChat.ChatEngine 
{ 
	public interface IChatEngine 
	{ 
		///  
		/// HTML Formatted user list 
		///  
		string UserList 
		{ 
			get; 
		} 
		///  
		/// Get the list of currently 
		/// known users 
		///  
		string[] Users 
		{ 
			get; 
		} 
		///  
		/// Get the current buffer text 
		///  
		string BufferText 
		{ 
			get; 
		} 
		///  
		/// Check to see if a given user 
		/// exists based on a guid 
		///  
		bool GuidExists( string guid ); 
		///  
		/// Check to see if a given user  
		/// exists already 
		///  
		bool UserExists( string user ); 
		///  
		/// Add a user to the chat group 
		///  
		void AddUser( string guid, string user ); 
		///  
		/// Ping the chat engine to indicate 
		/// you are still there 
		///  
		void Ping( string user ); 
		///  
		/// Add text to the chat buffer 
		///  
		void AddText( string guid, string text ); 
		///  
		/// Remove a user 
		///  
		void Remove( string user, string password ); 
	} 
}