1
0
tinklu-paslaugos/Lab1/ChatRoom/ChatRoomService.cs

40 lines
889 B
C#

namespace ChatRoom;
using ChatRoomContract;
public class ChatRoomService : IChatRoomService
{
//NOTE: instance-per-request service would need logic to be static or injected from a singleton instance
private readonly ChatRoomLogic logic = new ChatRoomLogic();
public int RegisterClient(string name)
{
return logic.RegisterClient(name);
}
public void ApproveMessage(int messageId)
{
throw new NotImplementedException();
}
public Message? GetNewMessage()
{
throw new NotImplementedException();
}
public int GetStrikes(int clientId)
{
throw new NotImplementedException();
}
public void RejectMessage(int messageId)
{
throw new NotImplementedException();
}
public bool SendMessage(int clientId, string contents)
{
throw new NotImplementedException();
}
}