mirror of
https://github.com/deavminet/dnetd
synced 2024-09-21 09:43:37 +02:00
41 lines
474 B
D
41 lines
474 B
D
/**
|
|
* DChannel
|
|
*
|
|
* Represents a channel and its
|
|
* associated information such
|
|
* as its name, topic, members
|
|
*/
|
|
|
|
module dnetd.dchannel;
|
|
|
|
import dnetd.dconnection : DConnection;
|
|
|
|
public class DChannel
|
|
{
|
|
/**
|
|
* Channel information
|
|
*/
|
|
private string name;
|
|
//private string topic;
|
|
|
|
/**
|
|
* Users in this channel
|
|
*/
|
|
private DConnection[] members;
|
|
|
|
this(string name)
|
|
{
|
|
|
|
}
|
|
|
|
public string getName()
|
|
{
|
|
return name;
|
|
}
|
|
|
|
public void join(DConnection client)
|
|
{
|
|
|
|
}
|
|
|
|
} |