// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Threading; using System.Threading.Tasks; using osu.Game.Online.API; using osu.Game.Online.Notifications; namespace osu.Game.Tests { /// /// A connector for s that poll for new messages. /// public class PollingNotificationsClientConnector : NotificationsClientConnector { public PollingNotificationsClientConnector(IAPIProvider api) : base(api) { } protected override Task BuildNotificationClientAsync(CancellationToken cancellationToken) => Task.FromResult((NotificationsClient)new PollingNotificationsClient(API)); } }