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

Rename GetMessagesRequest to GetChannelMessagesRequest

This commit is contained in:
miterosan 2018-03-28 21:33:50 +02:00
parent 56de6c1067
commit c937789684
2 changed files with 5 additions and 5 deletions

View File

@ -8,12 +8,12 @@ using osu.Game.Online.Chat;
namespace osu.Game.Online.API.Requests namespace osu.Game.Online.API.Requests
{ {
public class GetMessagesRequest : APIRequest<List<Message>> public class GetChannelMessagesRequest : APIRequest<List<Message>>
{ {
private readonly List<ChannelChat> channels; private readonly List<ChannelChat> channels;
private long? since; private long? since;
public GetMessagesRequest(List<ChannelChat> channels, long? sinceId) public GetChannelMessagesRequest(List<ChannelChat> channels, long? sinceId)
{ {
this.channels = channels; this.channels = channels;
since = sinceId; since = sinceId;

View File

@ -49,7 +49,7 @@ namespace osu.Game.Overlays
public const float TAB_AREA_HEIGHT = 50; public const float TAB_AREA_HEIGHT = 50;
private GetMessagesRequest fetchReq; private GetChannelMessagesRequest fetchReq;
private readonly ChatTabControl channelTabs; private readonly ChatTabControl channelTabs;
@ -422,7 +422,7 @@ namespace osu.Game.Overlays
private void fetchInitialMessages(ChannelChat channel) private void fetchInitialMessages(ChannelChat channel)
{ {
var req = new GetMessagesRequest(new List<ChannelChat> { channel }, null); var req = new GetChannelMessagesRequest(new List<ChannelChat> { channel }, null);
req.Success += delegate (List<Message> messages) req.Success += delegate (List<Message> messages)
{ {
@ -442,7 +442,7 @@ namespace osu.Game.Overlays
{ {
if (fetchReq != null) return; if (fetchReq != null) return;
fetchReq = new GetMessagesRequest(careChannels, lastMessageId); fetchReq = new GetChannelMessagesRequest(careChannels, lastMessageId);
fetchReq.Success += delegate (List<Message> messages) fetchReq.Success += delegate (List<Message> messages)
{ {