Move private channel constructor to own class

This commit is contained in:
Dean Herbert
2018-07-23 20:46:44 +02:00
parent 2726d91594
commit 0aacde836a
5 changed files with 36 additions and 21 deletions

View File

@ -18,7 +18,7 @@ namespace osu.Game.Online.API.Requests
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");
throw new ArgumentException($"All channels in the argument channels must have the {nameof(Channel.Target)} Channel");
this.channels = channels;
}