Rename everything into channel and remove everything chat

This commit is contained in:
miterosan
2018-04-11 20:01:57 +02:00
parent 39ecc3d31d
commit 3860594f40
20 changed files with 232 additions and 310 deletions

View File

@ -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;
}

View File

@ -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";
}