mirror of
https://github.com/ppy/osu.git
synced 2024-11-13 19:27:31 +08:00
de52f0a80c
This is a prerequisite for https://github.com/ppy/osu/pull/25480. The `WebSocketNotificationsClient` was tightly coupled to chat specifics making it difficult to use in the second factor verification flow. This commit's goal is to separate the websocket connection and message handling concerns from specific chat logic concerns.
19 lines
513 B
C#
19 lines
513 B
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace osu.Game.Online.Chat
|
|
{
|
|
public interface IChatClient : IDisposable
|
|
{
|
|
event Action<Channel>? ChannelJoined;
|
|
event Action<Channel>? ChannelParted;
|
|
event Action<List<Message>>? NewMessages;
|
|
event Action? PresenceReceived;
|
|
|
|
void FetchInitialMessages();
|
|
}
|
|
}
|