2020-03-03 22:37:01 +08:00
|
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
|
2020-03-16 14:42:21 +08:00
|
|
|
|
using System.Collections.Generic;
|
2020-03-17 13:51:54 +08:00
|
|
|
|
using osu.Game.Users;
|
2020-03-16 14:42:21 +08:00
|
|
|
|
|
|
|
|
|
namespace osu.Game.Overlays.Dashboard.Friends
|
2020-03-03 22:37:01 +08:00
|
|
|
|
{
|
|
|
|
|
public class FriendsBundle
|
|
|
|
|
{
|
|
|
|
|
public FriendsOnlineStatus Status { get; }
|
|
|
|
|
|
2020-03-16 14:42:21 +08:00
|
|
|
|
public int Count => Users.Count;
|
|
|
|
|
|
2020-03-17 13:51:54 +08:00
|
|
|
|
public List<User> Users { get; }
|
2020-03-03 22:37:01 +08:00
|
|
|
|
|
2020-03-17 13:51:54 +08:00
|
|
|
|
public FriendsBundle(FriendsOnlineStatus status, List<User> users)
|
2020-03-03 22:37:01 +08:00
|
|
|
|
{
|
|
|
|
|
Status = status;
|
2020-03-16 14:42:21 +08:00
|
|
|
|
Users = users;
|
2020-03-03 22:37:01 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum FriendsOnlineStatus
|
|
|
|
|
{
|
|
|
|
|
All,
|
|
|
|
|
Online,
|
|
|
|
|
Offline
|
|
|
|
|
}
|
|
|
|
|
}
|