mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 23:22:55 +08:00
Rename GetMessagesRequest to GetChannelMessagesRequest
This commit is contained in:
parent
56de6c1067
commit
c937789684
@ -8,12 +8,12 @@ using osu.Game.Online.Chat;
|
||||
|
||||
namespace osu.Game.Online.API.Requests
|
||||
{
|
||||
public class GetMessagesRequest : APIRequest<List<Message>>
|
||||
public class GetChannelMessagesRequest : APIRequest<List<Message>>
|
||||
{
|
||||
private readonly List<ChannelChat> channels;
|
||||
private long? since;
|
||||
|
||||
public GetMessagesRequest(List<ChannelChat> channels, long? sinceId)
|
||||
public GetChannelMessagesRequest(List<ChannelChat> channels, long? sinceId)
|
||||
{
|
||||
this.channels = channels;
|
||||
since = sinceId;
|
@ -49,7 +49,7 @@ namespace osu.Game.Overlays
|
||||
|
||||
public const float TAB_AREA_HEIGHT = 50;
|
||||
|
||||
private GetMessagesRequest fetchReq;
|
||||
private GetChannelMessagesRequest fetchReq;
|
||||
|
||||
private readonly ChatTabControl channelTabs;
|
||||
|
||||
@ -422,7 +422,7 @@ namespace osu.Game.Overlays
|
||||
|
||||
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)
|
||||
{
|
||||
@ -442,7 +442,7 @@ namespace osu.Game.Overlays
|
||||
{
|
||||
if (fetchReq != null) return;
|
||||
|
||||
fetchReq = new GetMessagesRequest(careChannels, lastMessageId);
|
||||
fetchReq = new GetChannelMessagesRequest(careChannels, lastMessageId);
|
||||
|
||||
fetchReq.Success += delegate (List<Message> messages)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user