91 lines
2.4 KiB
C#
91 lines
2.4 KiB
C#
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using IRCStates;
|
|
using IRCTokens;
|
|
|
|
namespace IRCRobots
|
|
{
|
|
public class Server : IServer
|
|
{
|
|
private int SentCount { get; set; }
|
|
|
|
public IEnumerable<SentLine> SendRaw(string line, SendPriority sendPriority = SendPriority.Default)
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
|
|
public IEnumerable<SentLine> Send(Line line, SendPriority sendPriority = SendPriority.Default)
|
|
{
|
|
LinePresend(line);
|
|
var sentLine = new SentLine {Id = SentCount, Priority = sendPriority, Line = line};
|
|
SentCount++;
|
|
return new[] {sentLine};
|
|
}
|
|
|
|
public void SetThrottle(int rate, float time)
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
|
|
public (string address, int port) ServerAddress()
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
|
|
public async Task Connect(ITCPTransport transport, ConnectionParams connectionParams)
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
|
|
public async Task Disconnect()
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
|
|
public void LinePreread(Line line)
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
|
|
public void LinePresend(Line line)
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
|
|
public async Task LineRead(Line line)
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
|
|
public async Task LineSend(Line line)
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
|
|
public async Task STSPolicy(STSPolicy stsPolicy)
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
|
|
public async Task ResumePolicy(ResumePolicy resumePolicy)
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
|
|
public bool CapAgreed(ICapability capability)
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
|
|
public string? CapAvailable(ICapability capability)
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
|
|
public async Task<bool> SASLAuth(SASLParams saslParams)
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
}
|
|
}
|