1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-25 23:43:20 +08:00
osu-lazer/osu.Game/Online/API/Requests/GetMessagesRequest.cs

21 lines
572 B
C#
Raw Normal View History

2018-04-13 17:19:50 +08:00
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System.Collections.Generic;
using osu.Game.Online.Chat;
namespace osu.Game.Online.API.Requests
{
public class GetMessagesRequest : APIRequest<List<Message>>
{
private readonly Channel channel;
2018-04-13 17:19:50 +08:00
public GetMessagesRequest(Channel channel)
2018-04-13 17:19:50 +08:00
{
this.channel = channel;
2018-04-13 17:19:50 +08:00
}
protected override string Target => $@"chat/channels/{channel.Id}/messages";
2018-04-13 17:19:50 +08:00
}
}