1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-29 01:22:54 +08:00
osu-lazer/osu.Game/Online/Chat/UserChat.cs

24 lines
661 B
C#
Raw Normal View History

2018-04-09 04:12:57 +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;
using osu.Game.Users;
namespace osu.Game.Online.Chat
{
public class UserChat : ChatBase
{
public User User { get; }
public UserChat(User user, Message[] messages = null)
{
User = user ?? throw new ArgumentNullException(nameof(user));
if (messages != null) AddNewMessages(messages);
}
public override TargetType Target => TargetType.User;
public override long ChatID => User.Id;
}
}