mirror of
https://github.com/ppy/osu.git
synced 2024-11-19 06:02:56 +08:00
24 lines
661 B
C#
24 lines
661 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;
|
|
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;
|
|
}
|
|
}
|