mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 14:46:38 +09:00
Rename everything into channel and remove everything chat
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
// 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;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using osu.Framework.IO.Network;
|
||||
@ -10,11 +11,16 @@ namespace osu.Game.Online.API.Requests
|
||||
{
|
||||
public class GetChannelMessagesRequest : APIRequest<List<Message>>
|
||||
{
|
||||
private readonly IEnumerable<ChannelChat> channels;
|
||||
private readonly IEnumerable<Channel> channels;
|
||||
private long? since;
|
||||
|
||||
public GetChannelMessagesRequest(IEnumerable<ChannelChat> channels, long? sinceId)
|
||||
public GetChannelMessagesRequest(IEnumerable<Channel> channels, long? sinceId)
|
||||
{
|
||||
if (channels == null)
|
||||
throw new ArgumentNullException(nameof(channels));
|
||||
if (channels.Any(c => c.Target != TargetType.Channel))
|
||||
throw new ArgumentException("All channels in the argument channels must have the targettype Channel");
|
||||
|
||||
this.channels = channels;
|
||||
since = sinceId;
|
||||
}
|
||||
|
@ -6,7 +6,7 @@ using osu.Game.Online.Chat;
|
||||
|
||||
namespace osu.Game.Online.API.Requests
|
||||
{
|
||||
public class ListChannelsRequest : APIRequest<List<ChannelChat>>
|
||||
public class ListChannelsRequest : APIRequest<List<Channel>>
|
||||
{
|
||||
protected override string Target => @"chat/channels";
|
||||
}
|
||||
|
Reference in New Issue
Block a user