osu/osu.Game/Online/API/Requests/GetMessagesRequest.cs

21 lines
572 B
C#

// 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;
public GetMessagesRequest(Channel channel)
{
this.channel = channel;
}
protected override string Target => $@"chat/channels/{channel.Id}/messages";
}
}