2020-03-03 14:37:01 +00: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 06:42:21 +00:00
|
|
|
|
using System.Collections.Generic;
|
2020-03-17 05:51:54 +00:00
|
|
|
|
using osu.Game.Users;
|
2020-03-16 06:42:21 +00:00
|
|
|
|
|
|
|
|
|
namespace osu.Game.Overlays.Dashboard.Friends
|
2020-03-03 14:37:01 +00:00
|
|
|
|
{
|
|
|
|
|
public class FriendsBundle
|
|
|
|
|
{
|
|
|
|
|
public FriendsOnlineStatus Status { get; }
|
|
|
|
|
|
2020-03-16 06:42:21 +00:00
|
|
|
|
public int Count => Users.Count;
|
|
|
|
|
|
2020-03-17 05:51:54 +00:00
|
|
|
|
public List<User> Users { get; }
|
2020-03-03 14:37:01 +00:00
|
|
|
|
|
2020-03-17 05:51:54 +00:00
|
|
|
|
public FriendsBundle(FriendsOnlineStatus status, List<User> users)
|
2020-03-03 14:37:01 +00:00
|
|
|
|
{
|
|
|
|
|
Status = status;
|
2020-03-16 06:42:21 +00:00
|
|
|
|
Users = users;
|
2020-03-03 14:37:01 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum FriendsOnlineStatus
|
|
|
|
|
{
|
|
|
|
|
All,
|
|
|
|
|
Online,
|
|
|
|
|
Offline
|
|
|
|
|
}
|
|
|
|
|
}
|