1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 05:52:54 +08:00

Add more request handling code

This commit is contained in:
Craftplacer 2021-06-05 15:55:58 +02:00
parent 5e44329e0b
commit 248e90df6d
No known key found for this signature in database
GPG Key ID: 0D94BDA3F64B90CE

View File

@ -73,6 +73,18 @@ namespace osu.Game.Tests.Visual.Online
listChannelsRequest.TriggerSuccess(new List<Channel>(1) { publicChannel });
return true;
case GetUpdatesRequest updatesRequest:
updatesRequest.TriggerSuccess(new GetUpdatesResponse
{
Messages = new List<Message>(0),
Presence = new List<Channel>(0)
});
return true;
case JoinChannelRequest joinChannelRequest:
joinChannelRequest.TriggerSuccess();
return true;
default:
return false;
}