C# Class ChatRelay.Adapters.IrcAdapter

Inheritance: IChatServerAdapter
Show file Open project: DanRigby/ChatRelay

Public Methods

Method Description
Connect ( ) : System.Threading.Tasks.Task
Disconnect ( ) : void
IrcAdapter ( ChatServer chatServerConfig ) : ChatRelay.Models
JoinChannel ( string channelName ) : void
SendMessage ( string destinationRoom, ChatMessage message ) : void

Private Methods

Method Description
Client_ConnectFailed ( object sender, IrcErrorEventArgs e ) : void
Client_Connected ( object sender, EventArgs e ) : void
Client_Disconnected ( object sender, EventArgs e ) : void
Client_ErrorMessageReceived ( object sender, IrcErrorMessageEventArgs e ) : void
CreateHastebinFromText ( string text ) : string
OnConnectFailedCallback ( object sender, EventArgs eventArgs ) : void
OnConnectedCallback ( object sender, EventArgs eventArgs ) : void

Method Details

Connect() public method

public Connect ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

Disconnect() public method

public Disconnect ( ) : void
return void

IrcAdapter() public method

public IrcAdapter ( ChatServer chatServerConfig ) : ChatRelay.Models
chatServerConfig ChatRelay.Models.ChatServer
return ChatRelay.Models

JoinChannel() public method

public JoinChannel ( string channelName ) : void
channelName string
return void

SendMessage() public method

public SendMessage ( string destinationRoom, ChatMessage message ) : void
destinationRoom string
message ChatRelay.Models.ChatMessage
return void