2019-09-04 12:09:20 -04:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
2019-09-18 20:45:11 -04:00
|
|
|
|
namespace Ryujinx.HLE.HOS.Services.Nifm.StaticService.GeneralService
|
2019-09-04 12:09:20 -04:00
|
|
|
|
{
|
|
|
|
|
static class GeneralServiceManager
|
|
|
|
|
{
|
|
|
|
|
private static List<GeneralServiceDetail> _generalServices = new List<GeneralServiceDetail>();
|
|
|
|
|
|
|
|
|
|
public static int Count
|
|
|
|
|
{
|
|
|
|
|
get => _generalServices.Count;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void Add(GeneralServiceDetail generalServiceDetail)
|
|
|
|
|
{
|
|
|
|
|
_generalServices.Add(generalServiceDetail);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void Remove(int index)
|
|
|
|
|
{
|
|
|
|
|
_generalServices.RemoveAt(index);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static GeneralServiceDetail Get(int clientId)
|
|
|
|
|
{
|
|
|
|
|
return _generalServices.First(item => item.ClientId == clientId);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|