mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 20:32:55 +08:00
Add more request handling code
This commit is contained in:
parent
5e44329e0b
commit
248e90df6d
@ -73,6 +73,18 @@ namespace osu.Game.Tests.Visual.Online
|
|||||||
listChannelsRequest.TriggerSuccess(new List<Channel>(1) { publicChannel });
|
listChannelsRequest.TriggerSuccess(new List<Channel>(1) { publicChannel });
|
||||||
return true;
|
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:
|
default:
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user